/* Globale Body-Farbe, kann bei Bedarf angepasst werden */
body {
    background-color: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

main {
    margin-top: 130px;
}

@media (max-width: 480px) {
    main {
        margin-top: 100px;
    }
}

/* H2 Zwischenüberschriften - Wortumbruch-Regeln */
.page-unternehmens-coaching .page-content h2 {
    /* Standard-Styles von core.css werden geerbt */
    /* Nur Wortumbruch-Regeln hinzufügen für konsistentes Verhalten */
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: none;
}

/* =========================================
   UNTERNEHMENS COACHING - PAGE SPECIFIC STYLES
   ========================================= */

/* Container für H1 und Subheadline - Zentriert auf der Seite */
/* Container für H1 und Subheadline - Zentriert auf der Seite */
.headline-container {
    max-width: var(--ks-text-max-width, 800px);
    margin: var(--ks-spacing-lg) auto 0 auto;
    /* Zentrieren via Auto-Margin */
    padding: var(--ks-spacing-md);
    text-align: left;
    /* Inhalt linksbündig */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Items links ausrichten */
    width: 100%;
}

/* H1 Überschrift */
.main-headline {
    color: #64B5F6;
    /* Blue specific to Unternehmens Coaching */
    margin: 0;
    text-align: left;
    font-size: 5.5rem;
    line-height: 1.1;
    width: 100%;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

/* Hero-Subheadline linksbündig unter der H1 im selben Container */
.hero-subheadline {
    color: #333;
    font-size: 2rem;
    margin: var(--ks-spacing-sm) 0 0 0;
    /* Nur Top-Margin für Abstand zu H1 */
    padding: 0;
    text-align: left !important;
    line-height: 1.6;
    width: 100%;
}

.hero-subheadline p {
    margin: 0;
    text-align: left !important;
}

/* H2 in Teaser-Blöcken: Keine border-bottom, kein padding-left */
/* H2 in Teaser-Blöcken: Moved to modules/teaser/style.css */

/* Teaser-Block Hintergrundfarben: Wechsel zwischen #64B5F6 und weiß */
/* Teaser-Block Colors: Moved to modules/teaser/style.css */

/* =========================================
   GESTALTUNGSRASTER - BÜNDIGE AUSRICHTUNG
   ========================================= */

/* Sicherstellen dass Text-Blöcke und Headlines bündig abschließen */
.page-unternehmens-coaching .ks-block-text,
.page-unternehmens-coaching .ks-block-text__content {
    padding-left: var(--ks-spacing-sm);
    padding-right: var(--ks-spacing-sm);
}

.page-unternehmens-coaching .ks-block-text__content p,
.page-unternehmens-coaching .ks-block-text__content ul,
.page-unternehmens-coaching .ks-block-text__content ol {
    padding-left: 0;
    padding-right: 0;
    max-width: var(--ks-text-max-width);
    margin-left: auto;
    margin-right: auto;
}

/* H2 in Text-Blöcken: Kein zusätzliches Padding, nutzt Container-Padding */
.page-unternehmens-coaching .ks-block-text h2 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Headline-Block: Container und H2 sollen bündig mit Text-Blöcken sein */
.page-unternehmens-coaching .ks-block-headline__content h2 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Listen: Bullet Points leicht links eingerückt */
.page-unternehmens-coaching .page-content ul,
.page-unternehmens-coaching .page-content ol {
    list-style: none;
    padding-left: 0;
}

.page-unternehmens-coaching .page-content li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
}

.page-unternehmens-coaching .page-content li::before {
    content: '›';
    color: #64B5F6;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Listen auch in Text-Blöcken: Bullet Points leicht links eingerückt */
.page-unternehmens-coaching .ks-block-text__content ul,
.page-unternehmens-coaching .ks-block-text__content ol {
    list-style: none;
    padding-left: 0;
}

.page-unternehmens-coaching .ks-block-text__content li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
}

.page-unternehmens-coaching .ks-block-text__content li::before {
    content: '›';
    color: #64B5F6;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/*
=================================
--- Coaching Unterseiten-Sektionen (Bild & Text) ---
=================================
*/

.coaching-section {
    padding: 80px 20px;
}

/* Abwechselnde Hintergrundfarben */
.coaching-section:nth-of-type(even) {
    background-color: #64B5F6;
}

.coaching-section:nth-of-type(odd) {
    background-color: #ffffff;
}


.coaching-section .container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.coaching-section .image-container {
    flex: 1;
    max-width: 50%;
}

.coaching-section .image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.coaching-section .text-container {
    flex: 1;
    max-width: 50%;
    /* KORREKTUR: Sorgt für korrekten Umbruch bei Flexbox */
    min-width: 0;
}

/* Kehrt die Reihenfolge von Bild und Text um */
.coaching-section.layout-reverse .container {
    flex-direction: row-reverse;
}

.coaching-section h2 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    /* KORREKTUR: Sorgt für den Umbruch von langen Wörtern */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.coaching-section p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Button-Stil */
.coaching-section .button {
    display: inline-block;
    background-color: #ffd45c;
    color: black;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
}

.coaching-section .button:hover {
    background-color: #b2902f !important;
    color: var(--ks-color-white);
    transform: translateY(-3px);
}


/*
=================================
--- Globale Responsive Anpassungen (KORRIGIERT) ---
=================================
*/

/* Für Tablets und kleinere Geräte */
@media (max-width: 992px) {

    /* Text-Hero auf Mobilgeräten */
    .text-hero-content h1 {
        /* KORREKTUR: Die Schriftgröße skaliert, wird aber nicht zu groß */
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        line-height: 1.1;
        overflow-wrap: break-word;
        width: 80vw;
    }

    .text-hero-content .subheading {
        font-size: 1.2rem;
        text-align: center;
    }

    /* Bild-und-Text-Sektionen auf Mobilgeräten */
    .coaching-section .container,
    .coaching-section.layout-reverse .container {
        flex-direction: column;
        text-align: left;
        /* KORREKTUR: von 'center' zu 'left' geändert */
    }

    .coaching-section .image-container,
    .coaching-section .text-container {
        max-width: 100%;
        /* Erlaubt den Elementen, die volle Breite einzunehmen */
    }

    .coaching-section h2 {
        font-size: 2rem;
    }
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .page-unternehmens-coaching .headline-container {
        padding: var(--ks-spacing-sm);
    }

    .page-unternehmens-coaching .main-headline {
        font-size: 4rem;
    }

    .page-unternehmens-coaching .hero-subheadline {
        font-size: 1.6rem;
    }

    /* Responsive Teaser Overrides Moved to modules/teaser/style.css */

    @media (max-width: 480px) {
        .page-unternehmens-coaching .main-headline {
            font-size: 3rem;
        }

        .page-unternehmens-coaching .hero-subheadline {
            font-size: 1.4rem;
        }
    }
}