/* ============================================================
   Referenzseite 5 · Portrait-Bühne + thematische Stimmen
   ============================================================ */

.ref4-page {
    background: #fff;
}

/* --- Thematische Navigation ------------------------------- */

.ref4-chapter-nav {
    position: relative;
    z-index: 5;
    margin-top: -30px;
}

.ref4-chapter-nav-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 44px rgba(10, 37, 64, 0.08);
}

.ref4-chapter-link {
    display: grid;
    min-height: 108px;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: center;
    padding: 18px 22px;
    border-right: 1px solid var(--border);
    color: var(--anthracite);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.ref4-chapter-link:last-child {
    border-right: 0;
}

.ref4-chapter-link:hover,
.ref4-chapter-link:focus-visible {
    color: var(--green-dark);
    background: var(--green-soft);
}

.ref4-chapter-link:focus-visible {
    outline: 3px solid rgba(128, 179, 44, 0.3);
    outline-offset: -3px;
}

.ref4-chapter-link > span {
    align-self: start;
    padding-top: 2px;
    color: var(--kicker);
    font-size: 0.66rem;
    font-weight: 900;
}

.ref4-chapter-link strong {
    display: block;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 0.9rem;
    line-height: 1.32;
}

.ref4-chapter-link small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 0.69rem;
    line-height: 1.4;
}

/* --- Thematische Kapitel ---------------------------------- */

.ref4-chapter {
    position: relative;
    padding: 126px 0 116px;
    scroll-margin-top: 88px;
    background: #fff;
}

.ref4-chapter:nth-child(even) {
    background: #f5f8fa;
}

.ref4-chapter-grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.47fr) minmax(0, 1.12fr);
    gap: clamp(62px, 9vw, 142px);
    align-items: start;
}

.ref4-chapter-intro {
    position: sticky;
    top: 116px;
    min-width: 0;
}

.ref4-chapter-number {
    display: block;
    margin-bottom: 24px;
    color: transparent;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: clamp(4.6rem, 8vw, 7.3rem);
    font-weight: 800;
    line-height: 0.78;
    letter-spacing: -0.06em;
    -webkit-text-stroke: 1px rgba(10, 37, 64, 0.17);
}

.ref4-chapter-intro .eyebrow {
    margin-bottom: 13px;
}

.ref4-chapter-intro h2 {
    margin: 0;
    color: var(--anthracite);
    font-family: "Outfit", "Inter", sans-serif;
    font-size: clamp(2rem, 3.45vw, 3.25rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.ref4-chapter-description {
    margin: 24px 0 0;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.72;
}

.ref4-chapter-note {
    margin: 25px 0 0;
    color: #2c4a68;
    font-family: "Caveat", cursive;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.18;
    transform: rotate(-2deg);
    transform-origin: left center;
}

.ref4-chapter-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ref4-chapter-count::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

/* --- Einspaltige Stimmen nach Screenshot-Vorlage ---------- */

.ref4-voice-list {
    min-width: 0;
    border-top: 1px solid rgba(10, 37, 64, 0.14);
}

.ref4-voice {
    position: relative;
    min-width: 0;
    padding: 66px 0 72px;
    border-bottom: 1px solid rgba(10, 37, 64, 0.14);
}

.ref4-voice:first-child {
    padding-top: 18px;
}

.ref4-voice-index {
    display: inline-block;
    margin-bottom: 28px;
    padding: 0;
    color: var(--kicker);
    background: transparent;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.08em;
}

.ref4-voice-copy::after {
    content: "";
    display: table;
    clear: both;
}

.ref4-voice-portrait {
    position: relative;
    float: right;
    width: clamp(118px, 12vw, 162px);
    aspect-ratio: 1.04 / 1;
    margin: -11px 0 30px 42px;
}

.ref4-voice-portrait::before {
    content: "";
    position: absolute;
    inset: -9px 7px 8px -9px;
    border: 1px solid rgba(128, 179, 44, 0.26);
    border-radius: 51% 49% 47% 53% / 45% 53% 47% 55%;
    transform: rotate(-5deg);
}

.ref4-voice:nth-child(even) .ref4-voice-portrait::before {
    inset: 4px -9px -8px 8px;
    border-color: rgba(10, 37, 64, 0.13);
    transform: rotate(5deg);
}

.ref4-voice-portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 51% 49% 47% 53% / 45% 53% 47% 55%;
    background: #dce6ed;
    box-shadow: 0 15px 34px rgba(10, 37, 64, 0.13);
}

.ref4-voice:nth-child(3n + 2) .ref4-voice-portrait img {
    border-radius: 46% 54% 52% 48% / 54% 44% 56% 46%;
}

.ref4-voice blockquote {
    margin: 0;
    color: #435466;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: clamp(1.55rem, 2.45vw, 2.22rem);
    font-weight: 650;
    line-height: 1.42;
    letter-spacing: -0.025em;
    text-wrap: pretty;
}


.ref4-voice footer {
    display: grid;
    clear: both;
    gap: 5px;
    margin-top: 35px;
    padding-left: 18px;
    border-left: 3px solid var(--green);
}

.ref4-voice footer strong {
    color: var(--anthracite);
    font-size: 0.88rem;
}

.ref4-voice footer span {
    color: var(--text-light);
    font-size: 0.76rem;
    line-height: 1.45;
}

.ref4-error {
    padding: 80px 5vw;
    color: var(--anthracite);
    text-align: center;
}

/* --- Abschluss -------------------------------------------- */

.ref4-closing {
    position: relative;
    overflow: hidden;
    padding: 98px 0 104px;
    color: var(--text, #425466);
    background: #f7f7f3;
}


.ref4-closing-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.45fr);
    gap: 70px;
    align-items: end;
}

.ref4-closing .eyebrow {
    color: var(--text, #425466);
}

.ref4-closing .eyebrow::before {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-bottom: 20px;
    border-radius: 2px;
    background: var(--green, #80b32c);
}

.ref4-closing h2 {
    max-width: 760px;
    margin: 13px 0 0;
    color: #3e4a56;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: clamp(2.2rem, 4.3vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.ref4-closing p:last-child {
    margin: 0;
    color: var(--text, #425466);
    font-size: 1rem;
    line-height: 1.72;
}

.ref4-final-cta {
    padding-top: 0;
}

/* --- Responsive ------------------------------------------- */

@media (max-width: 1040px) {
    .ref4-chapter-grid {
        grid-template-columns: minmax(225px, 0.42fr) minmax(0, 1fr);
        gap: 70px;
    }

    .ref4-voice blockquote {
        font-size: clamp(1.45rem, 2.65vw, 1.95rem);
    }
}

@media (max-width: 900px) {
    .ref4-chapter-grid,
    .ref4-closing-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .ref4-chapter {
        padding: 90px 0 84px;
    }

    .ref4-chapter-grid {
        gap: 54px;
    }

    .ref4-chapter-intro {
        position: static;
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 0 24px;
        align-items: start;
    }

    .ref4-chapter-number {
        grid-row: 1 / span 5;
        margin: 9px 0 0;
        font-size: 4.5rem;
    }

    .ref4-chapter-intro .eyebrow,
    .ref4-chapter-intro h2,
    .ref4-chapter-description,
    .ref4-chapter-note,
    .ref4-chapter-count {
        grid-column: 2;
    }

    .ref4-closing-inner {
        gap: 24px;
    }
}

@media (max-width: 700px) {
    .ref4-chapter-nav {
        margin-top: 0;
    }

    .ref4-chapter-nav-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ref4-chapter-link:nth-child(2) {
        border-right: 0;
    }

    .ref4-chapter-link:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }

    .ref4-voice-portrait {
        width: 104px;
        margin-left: 24px;
    }

    .ref4-voice blockquote {
        font-size: 1.36rem;
        line-height: 1.48;
    }
}

@media (max-width: 540px) {
    .ref4-chapter-nav-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .ref4-chapter-link,
    .ref4-chapter-link:nth-child(2) {
        min-height: 84px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .ref4-chapter-link:last-child {
        border-bottom: 0;
    }

    .ref4-chapter-intro {
        display: block;
    }

    .ref4-chapter-number {
        margin-bottom: 24px;
        font-size: 4.4rem;
    }

    .ref4-voice {
        padding: 55px 0 60px;
    }

    .ref4-voice:first-child {
        padding-top: 10px;
    }

    .ref4-voice-index {
        margin-bottom: 24px;
    }

    .ref4-voice-portrait {
        width: 88px;
        margin: -7px 0 21px 19px;
    }

    .ref4-voice blockquote {
        font-size: 1.22rem;
        line-height: 1.5;
    }

    .ref4-closing {
        padding: 76px 0 82px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ref4-chapter-link {
        transition: none;
    }
}
