/* ============================================================
   Certanos Partners — Unternehmensnachfolge im Mittelstand
   Palette: warmes Stein-Weiß, Tannengrün, Tinte
   Typo:    Newsreader (Display-Serif) + Barlow (Sans)
   Fonts:   lokal gehostet (DSGVO — keine Anfragen an Google)
   ============================================================ */

/* Newsreader — Variable Font (wght 300–600, optische Größe) */
@font-face {
    font-family: 'Newsreader';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url(../fonts/newsreader-var-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Newsreader';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url(../fonts/newsreader-var-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Newsreader';
    font-style: italic;
    font-weight: 300 600;
    font-display: swap;
    src: url(../fonts/newsreader-var-italic-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Newsreader';
    font-style: italic;
    font-weight: 300 600;
    font-display: swap;
    src: url(../fonts/newsreader-var-italic-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Barlow — statische Schnitte 400/500/600 */
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/barlow-400-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/barlow-400-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(../fonts/barlow-500-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(../fonts/barlow-500-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(../fonts/barlow-600-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(../fonts/barlow-600-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #F7F5F0;
    --bg-raised: #FCFBF7;
    --ink: #20261F;
    --ink-soft: #4C544A;
    --green: #3D5A45;
    --green-deep: #24352A;
    --cream-on-dark: #EFEDE4;
    --stone: #CEC8B9;
    --line: #DAD5C8;
    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --sans: 'Barlow', 'Segoe UI', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--green); color: var(--cream-on-dark); }

a { color: var(--green); }

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding: 1.1rem 0;
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}

.nav.scrolled {
    background: rgba(247, 245, 240, .92);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 var(--line);
    padding: .7rem 0;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--sans);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
}

.logo span {
    font-size: .78rem;
    color: var(--green);
    margin-left: .45rem;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 1.9rem;
    list-style: none;
}

.nav__links a {
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color .2s ease;
}

.nav__links a:hover { color: var(--green); }

.nav__links a.nav__cta {
    color: var(--bg);
    background: var(--green);
    padding: .5rem 1.1rem;
    border-radius: 3px;
    transition: background .2s ease;
}

.nav__links a.nav__cta:hover { background: var(--green-deep); color: var(--bg); }

.nav__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ink);
    cursor: pointer;
    line-height: 1;
    padding: .25rem .5rem;
}

/* ---------- Hero ---------- */

.hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 8.5rem 4rem;
}

.hero__eyebrow {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1.6rem;
}

.hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.4rem, 5.6vw, 4.2rem);
    line-height: 1.13;
    letter-spacing: -.01em;
    max-width: 17em;
    margin-bottom: 1.8rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--green);
}

.hero__sub {
    max-width: 38em;
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin-bottom: 2.4rem;
}

.hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin-bottom: 4.5rem;
}

.btn-primary {
    display: inline-block;
    background: var(--green);
    color: var(--bg);
    font-weight: 500;
    font-size: .98rem;
    letter-spacing: .02em;
    text-decoration: none;
    padding: .85rem 1.7rem;
    border-radius: 3px;
    transition: background .2s ease, transform .2s ease;
}

.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); }

.link-quiet {
    font-size: .98rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 1px solid var(--stone);
    padding-bottom: .15rem;
    transition: color .2s ease, border-color .2s ease;
}

.link-quiet:hover { color: var(--green); border-color: var(--green); }

/* Kontinuum-Strecke im Hero: Jahrzehnte → Übergabe → nächste Dekade */
.hero__kontinuum {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    max-width: 760px;
}

.hero__kontinuum span {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    white-space: nowrap;
}

.hero__kontinuum i {
    flex: 1;
    height: 1px;
    background: var(--stone);
    position: relative;
}

.hero__kontinuum i::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -2.5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

/* ---------- Chronik: durchlaufende Linie + Randspalte ---------- */

.chronik {
    position: relative;
    padding-bottom: 2rem;
}

.chronik::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 200px;
    width: 1px;
    background: var(--line);
}

.section {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    column-gap: 3.5rem;
    padding: 5.5rem 0 2rem;
    position: relative;
}

/* Marker auf der Linie am Sektionsanfang */
.section::before {
    content: '';
    position: absolute;
    left: 196px;
    top: 6.3rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid var(--bg);
}

.section__label {
    grid-column: 1;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-align: right;
    padding-right: 2rem;
    padding-top: .35rem;
    position: sticky;
    top: 6rem;
    align-self: start;
}

.section__body { grid-column: 2; max-width: 46rem; }

.section__body h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.85rem, 3.4vw, 2.7rem);
    line-height: 1.2;
    letter-spacing: -.01em;
    margin-bottom: 1.4rem;
}

.section__body h2 em { font-style: italic; color: var(--green); }

.section__body p { color: var(--ink-soft); margin-bottom: 1.15rem; }

.section__body p.lead { font-size: 1.13rem; color: var(--ink); }

/* ---------- Abgrenzung: Gegenüberstellung ---------- */

.contrast {
    margin-top: 2.4rem;
    border-top: 1px solid var(--line);
}

.contrast__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--line);
}

.contrast__row.contrast__head {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: .8rem 0;
}

.contrast__head .c-them { color: var(--stone); }
.contrast__head .c-us { color: var(--green); }

.contrast__row .c-them {
    color: var(--ink-soft);
    opacity: .75;
}

.contrast__row .c-us { color: var(--ink); font-weight: 500; }

/* ---------- Herkunft ---------- */

.pull {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.45rem;
    line-height: 1.45;
    color: var(--green);
    border-left: 2px solid var(--green);
    padding-left: 1.4rem;
    margin: 2.2rem 0;
}

/* ---------- Werte ---------- */

.values { margin-top: 1.5rem; }

.values__item {
    display: grid;
    grid-template-columns: minmax(11rem, 15rem) 1fr;
    gap: 2rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--line);
}

.values__item:first-child { border-top: 1px solid var(--line); }

.values__item dt {
    font-family: var(--serif);
    font-size: 1.35rem;
    line-height: 1.3;
    color: var(--ink);
}

.values__item dd { color: var(--ink-soft); }

/* ---------- Ansatz: Schritte ---------- */

.steps { margin-top: 2.2rem; }

.step {
    display: grid;
    grid-template-columns: 3.2rem 1fr;
    gap: 1.4rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
}

.step:first-child { border-top: 1px solid var(--line); }

.step__num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.7rem;
    color: var(--green);
    line-height: 1.2;
}

.step h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: .35rem;
}

.step p { color: var(--ink-soft); margin: 0; }

/* ---------- Zielprofil: dunkle Tafel ---------- */

.profile-panel {
    background: var(--green-deep);
    color: var(--cream-on-dark);
    border-radius: 6px;
    padding: 3rem 3.2rem 2.4rem;
    margin-top: 2.2rem;
}

.profile-panel__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem 3rem;
}

.profile-panel h3 {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: .6rem;
}

.profile-panel ul { list-style: none; }

.profile-panel li {
    padding: .32rem 0;
    border-bottom: 1px solid rgba(239, 237, 228, .12);
    font-size: 1rem;
}

.profile-panel li:last-child { border-bottom: none; }

.profile-panel p.profile-panel__note {
    color: var(--cream-on-dark);
    margin-top: 2.4rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(239, 237, 228, .18);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.3rem;
}

/* ---------- Team ---------- */

.team__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.2rem;
}

.team-card {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2rem 2rem 1.8rem;
}

.team-card__photo {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    border: 1px solid var(--stone);
    object-fit: cover;
    display: block;
    margin-bottom: 1.2rem;
}

.team-card h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.3rem;
    margin-bottom: .15rem;
}

.team-card__role {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: .8rem;
}

.team-card p { font-size: .97rem; color: var(--ink-soft); margin: 0; }

/* ---------- Kontakt ---------- */

.contact-form {
    margin-top: 2.4rem;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2rem;
}

.contact-form__title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 1.4rem;
}

.form-hidden { display: none; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.2rem;
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: .35rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    font: inherit;
    font-size: .98rem;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: .65rem .8rem;
    transition: border-color .2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green);
    outline: none;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form .btn-primary {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.contact-form__note {
    font-size: .85rem;
    color: var(--ink-soft);
    margin-top: 1rem;
}

.contact__promise {
    margin-top: 2rem;
    font-size: .95rem;
    color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.footer {
    border-top: 1px solid var(--line);
    margin-top: 4rem;
    padding: 2.2rem 0 2.6rem;
}

.footer__inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__links {
    display: flex;
    gap: 1.6rem;
    list-style: none;
}

.footer__links a {
    font-size: .88rem;
    color: var(--ink-soft);
    text-decoration: none;
}

.footer__links a:hover { color: var(--green); }

.footer__copy { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Rechtsseiten ---------- */

.legal {
    max-width: 46rem;
    margin: 0 auto;
    padding: 9rem 1.5rem 4rem;
}

.legal h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 2.4rem;
    margin-bottom: 2rem;
}

.legal h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.4rem;
    margin: 2.2rem 0 .8rem;
}

.legal p { color: var(--ink-soft); margin-bottom: 1rem; }

.legal h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.15rem;
    margin: 1.6rem 0 .6rem;
}

.legal ul {
    color: var(--ink-soft);
    margin: 0 0 1rem 1.3rem;
}

.legal .info-block {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.legal .info-block p { margin-bottom: .25rem; }
.legal .info-block p:last-child { margin-bottom: 0; }

.legal .back-link {
    display: inline-block;
    margin-bottom: 2rem;
    text-decoration: none;
}

.legal .legal-note {
    font-size: .85rem;
    color: var(--ink-soft);
    font-style: italic;
    margin-top: 2rem;
}

/* ---------- Animationen ---------- */

@media (prefers-reduced-motion: no-preference) {

    .hero__eyebrow,
    .hero h1,
    .hero__sub,
    .hero__actions,
    .hero__kontinuum {
        opacity: 0;
        transform: translateY(18px);
        animation: rise .8s ease forwards;
    }

    .hero h1 { animation-delay: .12s; }
    .hero__sub { animation-delay: .24s; }
    .hero__actions { animation-delay: .36s; }
    .hero__kontinuum { animation-delay: .55s; }

    @keyframes rise {
        to { opacity: 1; transform: translateY(0); }
    }

    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity .7s ease, transform .7s ease;
    }

    .reveal.visible { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 900px) {

    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(78vw, 320px);
        background: var(--bg-raised);
        box-shadow: -8px 0 30px rgba(32, 38, 31, .12);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 2.5rem;
        gap: 1.4rem;
        transition: right .3s ease;
    }

    .nav__links.open { right: 0; }

    .nav__toggle { display: block; z-index: 110; }

    .chronik::before { display: none; }
    .chronik { padding-bottom: 3rem; }

    /* Jede Sektion wird zur Kapitel-Karte */
    .section {
        grid-template-columns: minmax(0, 1fr);
        background: var(--bg-raised);
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 1.8rem 1.5rem;
        margin-top: 2.8rem;
    }

    .section:first-of-type { margin-top: 1rem; }

    /* Ohne Reset landet der Body in einer impliziten zweiten Spalte
       neben dem Label — Ursache des gequetschten Mobil-Layouts */
    .section__label,
    .section__body {
        grid-column: auto;
        min-width: 0;
    }

    /* Verbinder: kurze Linie mit Punkt zwischen den Karten */
    .section::before {
        content: '';
        position: absolute;
        left: 50%;
        top: -2.8rem;
        width: 1px;
        height: 2.8rem;
        background: var(--stone);
        border: none;
        border-radius: 0;
    }

    .section::after {
        content: '';
        position: absolute;
        left: 50%;
        top: -1.65rem;
        transform: translateX(-50%);
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: var(--green);
        border: 2px solid var(--bg);
    }

    .section:first-of-type::before,
    .section:first-of-type::after { display: none; }

    /* Label wird zum Chip in der Karte */
    .section__label {
        position: static;
        display: inline-block;
        justify-self: start;
        text-align: left;
        background: rgba(61, 90, 69, .09);
        color: var(--green);
        padding: .3rem .75rem .28rem;
        border-radius: 2rem;
        margin-bottom: 1.1rem;
    }

    .hero { min-height: auto; padding-top: 7rem; }

    .hero__kontinuum {
        flex-direction: column;
        align-items: flex-start;
        gap: .55rem;
    }

    .hero__kontinuum i { display: none; }

    .hero__kontinuum span::before {
        content: '';
        display: inline-block;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--green);
        margin-right: .6rem;
        vertical-align: .15em;
    }

    /* Gegenüberstellung: "Wir" zuerst, der Fonds als Fußnote */
    .contrast { border-top: none; }
    .contrast__head { display: none; }

    .contrast__row {
        display: flex;
        flex-direction: column-reverse;
        gap: .1rem;
        padding: 1.05rem 0;
    }

    .contrast__row .c-us {
        font-family: var(--serif);
        font-size: 1.13rem;
        line-height: 1.4;
    }

    .contrast__row .c-them {
        font-size: .86rem;
        opacity: .6;
    }

    .contrast__row .c-them::before { content: 'Statt: '; color: var(--stone); font-weight: 600; }

    .values__item { grid-template-columns: 1fr; gap: .4rem; }

    .profile-panel { padding: 2rem 1.6rem 1.8rem; }
    .profile-panel__grid { grid-template-columns: 1fr; gap: 1.8rem; }

    /* Team: wischbares Karussell, Fotos im Zentrum.
       Rand-Abstände über ::before/::after-Spacer (Spacer + 1rem Gap = 1.5rem),
       da End-Padding in Scroll-Containern nicht überall zuverlässig wirkt */
    .team__grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 1.5rem;
        gap: 1rem;
        margin: 2rem -1.5rem 0;
        padding-bottom: .5rem;
        scrollbar-width: none;
    }

    .team__grid::-webkit-scrollbar { display: none; }

    .team__grid::before,
    .team__grid::after {
        content: '';
        flex: 0 0 .5rem;
    }

    .team__grid .team-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
        text-align: center;
    }

    .team-card__photo {
        width: 128px;
        height: 128px;
        margin-inline: auto;
    }

    /* Formular liegt bereits in der Kapitel-Karte — eigene Rahmung ablegen */
    .contact-form {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        margin-top: 1.6rem;
    }

    .form-row { grid-template-columns: 1fr; }
}

/* Feinschliff für echte Telefonbreiten */
@media (max-width: 520px) {

    body { font-size: 1rem; }

    .container { padding: 0 1.1rem; }

    .hero { padding-top: 6.5rem; }

    .hero h1 {
        font-size: 2.1rem;
        line-height: 1.18;
    }

    .hero__sub { font-size: 1.05rem; margin-bottom: 2rem; }

    .hero__actions .btn-primary {
        width: 100%;
        text-align: center;
        padding: 1rem 1.7rem;
    }

    .section { padding: 1.6rem 1.2rem; }

    .section__body h2 { font-size: 1.65rem; }

    .section__body p.lead { font-size: 1.05rem; }

    .pull { font-size: 1.25rem; padding-left: 1.1rem; margin: 1.8rem 0; }

    .values__item { padding: 1.2rem 0; }
    .values__item dt { font-size: 1.2rem; }

    .step { grid-template-columns: 2.4rem 1fr; gap: 1rem; padding: 1.25rem 0; }
    .step__num { font-size: 1.4rem; }

    .profile-panel { padding: 1.6rem 1.25rem 1.4rem; }
    .profile-panel p.profile-panel__note { font-size: 1.15rem; margin-top: 1.8rem; padding-top: 1.3rem; }

    .team__grid {
        margin: 1.8rem -1.2rem 0;
        scroll-padding-inline: 1.2rem;
    }

    .team__grid::before,
    .team__grid::after { flex-basis: .2rem; }

    .team__grid .team-card {
        flex-basis: 86%;
        padding: 1.6rem 1.3rem 1.5rem;
    }

    /* 16px verhindert den iOS-Auto-Zoom beim Fokussieren */
    .form-group input,
    .form-group textarea { font-size: 1rem; padding: .8rem .85rem; }

    .contact-form .btn-primary { width: 100%; padding: 1rem 1.7rem; }

    .footer__inner { flex-direction: column; align-items: flex-start; gap: .6rem; }
}
