/* =========================================================================
   Nordzypern Entscheidungs-Kompass — ZypernScout
   style.css

   Aufbau:
   1.  Design-Tokens (Farben, Typografie, Schatten, Abstände)
   2.  Reset & Grundlagen
   3.  Layout-Hülle / Screen-System
   4.  Wiederkehrende Elemente (Buttons, Eyebrow, Kompass-Motiv)
   5.  Hero
   6.  Fragestrecke (Fortschritt, Fragen, Auswahlkarten, Navigation)
   7.  Ergebnis-Dashboard (Score-Kreis, Balken, Empfehlungen, Schritte)
   8.  Conversion / Formular
   9.  Fußzeile
   10. Animationen
   11. Responsiv (Tablet / Desktop)
   12. Barrierefreiheit (Fokus, reduzierte Bewegung)
   ========================================================================= */


/* =========================================================================
   1. DESIGN-TOKENS
   ========================================================================= */
:root {
    /* --- Farbwelt: Sand, Creme, Weiß, Tiefblau, Olivgrün, dezentes Gold --- */
    --ink:        #12303C;   /* Tiefblau – Haupttext, Anker         */
    --ink-2:      #1C4A5A;   /* Tiefblau, etwas heller              */
    --ink-soft:   #496670;   /* gedämpfter Blauton für Fließtext    */
    --cream:      #F7F2E8;   /* warmer Creme-Hintergrund            */
    --cream-2:    #FCF9F2;   /* hellste Creme-Fläche                */
    --sand:       #E8DABF;   /* Sand                                */
    --sand-deep:  #DAC8A2;   /* tieferer Sandton für Kanten         */
    --olive:      #5E6B47;   /* Olivgrün                            */
    --olive-2:    #76845C;   /* helleres Oliv                       */
    --gold:       #BE9C54;   /* dezenter Goldakzent                 */
    --gold-soft:  #DBC18A;   /* weiches Gold für Verläufe           */
    --white:      #FFFFFF;

    --line:       rgba(18, 48, 60, .12);   /* feine Trennlinien     */
    --line-soft:  rgba(18, 48, 60, .07);

    /* --- Typografie --- */
    /* DSGVO-freundlich: keine externen Schriften, nur Systemstacks. */
    --serif: "Hoefler Text", "Iowan Old Style", "Palatino Linotype",
             Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
    --sans:  "Avenir Next", "Segoe UI", system-ui, -apple-system,
             "Helvetica Neue", Arial, sans-serif;

    /* --- Weiche Schatten --- */
    --shadow-sm: 0 2px 8px rgba(18, 48, 60, .06);
    --shadow-md: 0 10px 30px rgba(18, 48, 60, .10);
    --shadow-lg: 0 24px 60px rgba(18, 48, 60, .16);
    --shadow-gold: 0 14px 34px rgba(190, 156, 84, .26);

    /* --- Radien & Abstände --- */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;

    --maxw: 1080px;
    --gut: clamp(20px, 5vw, 56px);

    --ease: cubic-bezier(.22, .61, .36, 1);
}


/* =========================================================================
   2. RESET & GRUNDLAGEN
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* Sanfter, atmosphärischer Verlauf statt flacher Fläche */
    background-image:
        radial-gradient(120% 80% at 80% -10%, #FBF6EC 0%, rgba(251,246,236,0) 55%),
        radial-gradient(90% 70% at 0% 0%, #F2EAD8 0%, rgba(242,234,216,0) 60%);
    background-attachment: fixed;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

a { color: var(--ink-2); }

button { font-family: inherit; cursor: pointer; }


/* =========================================================================
   3. LAYOUT-HÜLLE / SCREEN-SYSTEM
   ========================================================================= */
.app { min-height: 100svh; display: flex; flex-direction: column; }

.shell {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-inline: var(--gut);
}

/* Jeder Hauptabschnitt ist ein "Screen". Nur der aktive ist sichtbar. */
.screen { display: none; }
.screen.is-active {
    display: block;
    animation: screen-in .55s var(--ease) both;
}

@keyframes screen-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* =========================================================================
   4. WIEDERKEHRENDE ELEMENTE
   ========================================================================= */

/* Eyebrow – kleine, ruhige Auszeichnungszeile */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    font-family: var(--sans);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--olive);
    margin: 0 0 1.1rem;
}
.eyebrow::before {
    content: "";
    width: 26px; height: 1px;
    background: var(--gold);
}

/* Buttons */
.btn {
    --bg: var(--ink);
    --fg: var(--cream-2);
    appearance: none;
    border: 0;
    background: var(--bg);
    color: var(--fg);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: .01em;
    padding: 1.05rem 2.1rem;
    border-radius: 100px;
    box-shadow: var(--shadow-md);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease),
                background .25s var(--ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65em;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }

.btn--gold { --bg: linear-gradient(135deg, var(--gold) 0%, #A9883F 100%);
             --fg: #fff; box-shadow: var(--shadow-gold); }
.btn--full { width: 100%; }

.btn--ghost {
    --bg: transparent; --fg: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
}
.btn--ghost:hover { background: rgba(255,255,255,.6); box-shadow: var(--shadow-sm); }

.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Reines Text-Link-Button (Zurück / Neustart) */
.linkbtn {
    appearance: none; border: 0; background: none;
    color: var(--ink-soft);
    font-size: .95rem; font-weight: 600;
    padding: .55rem .25rem;
    display: inline-flex; align-items: center; gap: .45em;
    border-radius: 8px;
    transition: color .2s var(--ease);
}
.linkbtn:hover { color: var(--ink); }
.linkbtn[disabled] { opacity: .35; pointer-events: none; }

/* Glaskarte – Grundbaustein für Kartenflächen */
.glass {
    background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.66));
    backdrop-filter: blur(10px) saturate(115%);
    -webkit-backdrop-filter: blur(10px) saturate(115%);
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: var(--shadow-md);
    border-radius: var(--r-lg);
}

/* ---- Kompass-Motiv (Signature-Element) ----
   Erscheint zart im Hero und kehrt als Score-Ring im Ergebnis zurück. */
.compass-rose {
    position: absolute;
    inset: auto;
    pointer-events: none;
    opacity: .5;
}
.compass-rose svg { width: 100%; height: 100%; display: block; }


/* =========================================================================
   5. HERO
   ========================================================================= */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100svh;
    display: flex;
    align-items: flex-start;          /* Inhalt oben statt mittig -> Logo sitzt höher */
    /* Oben etwas weniger, unten mehr Abstand */
    padding-top: clamp(26px, 5vh, 52px);
    padding-bottom: clamp(48px, 10vh, 96px);
}

/* großflächiges, ruhiges Lichtspiel im Hintergrund */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(70% 55% at 78% 18%, rgba(216,193,138,.45) 0%, rgba(216,193,138,0) 60%),
        radial-gradient(80% 60% at 12% 92%, rgba(94,107,71,.16) 0%, rgba(94,107,71,0) 55%),
        linear-gradient(165deg, #FBF7EE 0%, #F1E7D2 100%);
}

/* zarter Horizont – mediterrane Anmutung, sehr dezent */
.hero__horizon {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 38%;
    z-index: 0;
    background: linear-gradient(180deg, rgba(28,74,90,0) 0%, rgba(28,74,90,.05) 70%, rgba(28,74,90,.09) 100%);
}
.hero__horizon::after {
    content: "";
    position: absolute; left: 0; right: 0; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(190,156,84,.55), transparent);
}

/* großer, zarter Kompass im Hintergrund */
.hero .compass-rose {
    top: 50%; right: -10%;
    width: min(70vw, 620px);
    aspect-ratio: 1;
    transform: translateY(-50%);
    opacity: .22;
    color: var(--ink-2);
    animation: rose-drift 60s linear infinite;
}
@keyframes rose-drift { to { transform: translateY(-50%) rotate(360deg); } }

.hero__content { position: relative; z-index: 1; max-width: 660px; }

.hero h1 {
    font-size: clamp(2.3rem, 7vw, 4.1rem);
    line-height: 1.04;
    margin-bottom: .55rem;
}
.hero h1 em {
    font-style: italic;
    color: var(--ink-2);
}
.hero__sub {
    font-size: clamp(1.05rem, 2.6vw, 1.28rem);
    color: var(--ink-soft);
    max-width: 38ch;
    margin-bottom: 1.5rem;
}
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hero__meta {
    font-size: .9rem;
    color: var(--ink-soft);
    font-weight: 500;
}

/* Trust-Zeile mit Trenn-Punkten (steht jetzt ÜBER dem CTA-Button) */
.trustline {
    margin: .2rem 0 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1.4rem;
    list-style: none;
    padding: 0;
    font-size: .92rem;
    color: var(--ink);
    font-weight: 500;
}
.trustline li {
    display: inline-flex; align-items: center; gap: .55em;
}
.trustline li::before {
    content: "";
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(190,156,84,.16);
}

/* dezenter Hinweis "Letztes Ergebnis ansehen" */
.resume-note {
    margin-top: 1.6rem;
    font-size: .9rem;
    color: var(--ink-soft);
}
.resume-note button {
    appearance: none; border: 0; background: none;
    color: var(--ink-2); font-weight: 700;
    text-decoration: underline; text-underline-offset: 3px;
    cursor: pointer; padding: 0;
}


/* =========================================================================
   6. FRAGESTRECKE
   ========================================================================= */
.quiz { padding-block: clamp(28px, 7vh, 60px); }

/* Kopf mit Markenzeile + Fortschritt */
.quiz__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}
.brandmark {
    display: inline-flex; align-items: center; gap: .6em;
    font-family: var(--serif); font-weight: 600;
    font-size: 1.05rem; color: var(--ink);
    letter-spacing: -.01em;
}
.brandmark__dot {
    width: 26px; height: 26px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--gold-soft), var(--gold));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
    flex: none;
}
.quiz__count { font-size: .88rem; color: var(--ink-soft); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Fortschrittsbalken */
.progress {
    height: 6px;
    background: rgba(18,48,60,.10);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: clamp(28px, 6vh, 52px);
}
.progress__bar {
    height: 100%;
    width: 0%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--olive), var(--gold));
    transition: width .5s var(--ease);
}

/* Frage */
.question { max-width: 760px; }
.question__step {
    font-size: .82rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: .8rem;
}
.question__title {
    font-size: clamp(1.55rem, 4.5vw, 2.4rem);
    margin-bottom: 1.6rem;
}

/* Auswahlkarten */
.options {
    display: grid;
    grid-template-columns: 1fr;
    gap: .8rem;
}
.option {
    position: relative;
    text-align: left;
    appearance: none;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.7));
    border-radius: var(--r-md);
    padding: 1.15rem 3.2rem 1.15rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease),
                border-color .22s var(--ease), background .22s var(--ease);
    display: flex; align-items: center;
}
.option:hover {
    transform: translateY(-2px);
    border-color: var(--sand-deep);
    box-shadow: var(--shadow-md);
}
/* Auswahl-Indikator (Kreis -> Häkchen) */
.option__tick {
    position: absolute;
    right: 1.1rem; top: 50%;
    transform: translateY(-50%);
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--sand-deep);
    transition: all .22s var(--ease);
    display: grid; place-items: center;
}
.option__tick svg { width: 13px; height: 13px; opacity: 0; transform: scale(.5); transition: all .22s var(--ease); color:#fff; }

.option.is-selected {
    border-color: var(--olive);
    background: linear-gradient(180deg, rgba(94,107,71,.10), rgba(94,107,71,.05));
    box-shadow: 0 12px 30px rgba(94,107,71,.18);
}
.option.is-selected .option__tick {
    background: var(--olive);
    border-color: var(--olive);
}
.option.is-selected .option__tick svg { opacity: 1; transform: scale(1); }

/* Eingangs-Animation der Karten (gestaffelt per --i) */
.options .option {
    opacity: 0;
    animation: option-in .45s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 55ms + 60ms);
}
@keyframes option-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Navigation unter den Fragen */
.quiz__nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: clamp(28px, 5vh, 44px);
}
.quiz__hint { font-size: .85rem; color: var(--ink-soft); }

/* ---- Mehrfachauswahl ---- */
/* Hinweis-Badge direkt unter der Frage */
.multi-hint {
    display: inline-flex; align-items: center; gap: .5em;
    font-size: .82rem; font-weight: 600; letter-spacing: .01em;
    color: var(--olive);
    background: rgba(94, 107, 71, .10);
    border: 1px solid rgba(94, 107, 71, .22);
    padding: .32rem .75rem;
    border-radius: 100px;
    margin: 0 0 1.1rem;
}
.multi-hint::before {
    content: "";
    width: 7px; height: 7px; border-radius: 2px;   /* eckig = Mehrfach */
    background: var(--olive);
}

/* Bei Mehrfachauswahl: Häkchen-Feld eckig statt rund (Checkbox-Anmutung) */
.options--multi .option__tick { border-radius: 7px; }

/* „Weiter“-Schaltfläche bei Mehrfachauswahl */
.quiz__continue {
    margin-top: 1.5rem;
    display: flex;
}
.multi-continue[disabled] {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.multi-continue[disabled]:hover { transform: none; box-shadow: none; }



/* Abschlusskarte vor der Ergebnisansicht */
.completion-card {
    max-width: 720px;
    margin: clamp(18px, 4vh, 34px) auto 0;
    padding: clamp(28px, 5vw, 46px);
    border-radius: var(--r-xl);
    background:
        linear-gradient(145deg, rgba(255,255,255,.72), rgba(252,249,242,.88)),
        var(--cream-2);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.completion-card .question__title { margin-bottom: .85rem; }
/* Ergebnis-Button steht oben auf der Schlussseite, mit klarem Abstand darunter */
.completion-card__cta { margin: 0 auto 1.8rem; }
.completion-card__text {
    max-width: 560px;
    margin: 0 auto;
    color: var(--ink-soft);
    font-size: 1.02rem;
}


/* =========================================================================
   7. ERGEBNIS-DASHBOARD
   ========================================================================= */
.result { padding-block: clamp(32px, 7vh, 64px); }

.result__head { text-align: center; max-width: 640px; margin: 0 auto 2.4rem; }
.result__profilelabel {
    font-size: .82rem; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--olive); margin-bottom: .7rem;
}
.result__profile {
    font-size: clamp(2rem, 6vw, 3.1rem);
    margin-bottom: .8rem;
}
.result__desc { font-size: 1.08rem; color: var(--ink-soft); }

/* ---- Persönliche Einschätzung (aus den Antworten abgeleitet) ---- */
.einschaetzung {
    max-width: 760px;
    margin: 0 auto 2.2rem;
    padding: 1.7rem 1.8rem;
    text-align: left;
}
.einschaetzung__eyebrow {
    font-family: var(--serif);
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    color: var(--ink);
    margin: 0 0 1.1rem;
}
.einschaetzung__list {
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
    display: grid;
    gap: .75rem;
}
.einschaetzung__list li {
    position: relative;
    padding-left: 1.7rem;
    color: var(--ink-soft);
    line-height: 1.55;
}
.einschaetzung__list li::before {
    content: "";
    position: absolute; left: 0; top: .5em;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(190, 156, 84, .16);
}
.einschaetzung__list strong { color: var(--ink); font-weight: 600; }
.einschaetzung__cta {
    margin: 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.5;
}

/* Dashboard-Raster */
.dash {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Score-Karte mit Kompass-Ring */
.score-card { padding: 1.8rem 1.6rem; text-align: center; }
.score-ring { position: relative; width: 210px; height: 210px; margin: .4rem auto 1rem; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring__track { fill: none; stroke: rgba(18,48,60,.10); stroke-width: 14; }
.score-ring__fill {
    fill: none;
    stroke: url(#scoreGrad);
    stroke-width: 14;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.4s var(--ease);
}
/* Kompassnadel + Zentrum */
.score-ring__needle { transform-origin: 105px 105px; transition: transform 1.2s var(--ease); }
.score-ring__center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0;
}
.score-ring__num {
    font-family: var(--serif);
    font-size: 3.1rem; font-weight: 600; line-height: 1;
    color: var(--ink); font-variant-numeric: tabular-nums;
}
.score-ring__label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-top: .35rem; }
.score-card__caption { font-size: .96rem; color: var(--ink-soft); max-width: 34ch; margin: 0 auto; }

/* Dimensions-Balken */
.bars-card { padding: 1.7rem 1.6rem; }
.bars-card h3 { font-size: 1.15rem; margin-bottom: 1.2rem; }
.bar { margin-bottom: 1.05rem; }
.bar:last-child { margin-bottom: 0; }
.bar__top {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: .4rem;
}
.bar__name { font-size: .95rem; font-weight: 600; color: var(--ink); }
.bar__val { font-size: .85rem; font-weight: 700; color: var(--olive); font-variant-numeric: tabular-nums; }
.bar__track { height: 9px; background: rgba(18,48,60,.09); border-radius: 100px; overflow: hidden; }
.bar__fill {
    height: 100%; width: 0%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--ink-2), var(--olive));
    transition: width 1.1s var(--ease);
}

/* Empfehlungskarten (Immobilientyp / Lage / Strategie) */
.recos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.reco { padding: 1.5rem 1.4rem; }
.reco__icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, var(--sand), var(--sand-deep));
    display: grid; place-items: center; color: var(--ink-2);
    margin-bottom: .9rem;
}
.reco__icon svg { width: 22px; height: 22px; }
.reco__k { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .35rem; }
.reco__v { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; color: var(--ink); line-height: 1.3; }

/* Nächste Schritte */
.steps-card { padding: 1.8rem 1.6rem; }
.steps-card h3 { font-size: 1.3rem; margin-bottom: 1.3rem; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 1.3rem 3.3rem;
    color: var(--ink-soft);
    font-size: 1.02rem;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: -2px;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--ink);
    color: var(--cream-2);
    font-family: var(--serif); font-weight: 600; font-size: 1.05rem;
    display: grid; place-items: center;
}
/* verbindende Linie zwischen den Schritten */
.steps li:not(:last-child)::after {
    content: "";
    position: absolute; left: 18.5px; top: 38px; bottom: 8px;
    width: 1.5px;
    background: linear-gradient(var(--sand-deep), transparent);
}
.steps li strong { color: var(--ink); font-weight: 600; }

.result__actions {
    display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center;
    margin-top: 1.6rem;
}

/* dezenter Beratungs-Hinweis */
.advice-hint {
    text-align: center;
    font-size: .96rem;
    color: var(--ink-soft);
    max-width: 46ch;
    margin: 1.6rem auto 0;
}


/* =========================================================================
   8. CONVERSION / FORMULAR
   ========================================================================= */
.lead {
    margin-top: clamp(40px, 8vh, 80px);
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xl);
    background:
        radial-gradient(80% 120% at 90% 0%, rgba(28,74,90,.9), rgba(18,48,60,1));
    color: var(--cream-2);
    padding: clamp(28px, 6vw, 56px);
    box-shadow: var(--shadow-lg);
}
.lead .compass-rose {
    top: -30%; right: -12%;
    width: min(60vw, 420px); aspect-ratio: 1;
    color: var(--gold-soft); opacity: .14;
}
.lead__inner { position: relative; z-index: 1; }
.lead__grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; }

.lead h2 { color: var(--cream-2); font-size: clamp(1.7rem, 5vw, 2.5rem); }
.lead__lead { color: rgba(247,242,232,.82); font-size: 1.08rem; max-width: 42ch; }

/* kleine Vertrauenspunkte über dem Formular */
.assurances { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.assurances li {
    display: flex; gap: .7em; align-items: flex-start;
    font-size: .95rem; color: rgba(247,242,232,.9);
}
.assurances li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--gold-soft); }

/* Formularfläche */
.lead__form {
    background: rgba(255,255,255,.97);
    color: var(--ink);
    border-radius: var(--r-lg);
    padding: clamp(20px, 4vw, 32px);
    box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.05rem; }
.field label {
    display: block; font-size: .85rem; font-weight: 600;
    color: var(--ink); margin-bottom: .4rem;
}
.field .req { color: var(--gold); }
.field input,
.field select,
.field textarea {
    width: 100%;
    font-family: inherit; font-size: 1rem; color: var(--ink);
    background: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: .85rem 1rem;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--olive);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(94,107,71,.15);
}
.field.has-error input,
.field.has-error select { border-color: #B4503C; background: #FCF1EE; }
.field__err { display: none; color: #B4503C; font-size: .82rem; margin-top: .35rem; }
.field.has-error .field__err { display: block; }

.field-row { display: grid; grid-template-columns: 1fr; gap: 0; }

/* Honeypot – für echte Nutzer unsichtbar, fängt Bots ab */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: .4rem; }

/* Fehlermeldung beim Versand (dezent, gut lesbar auf der hellen Formularfläche) */
.form-error {
    margin-top: .9rem;
    padding: .85rem 1rem;
    border-radius: var(--r-md, 12px);
    background: #FBF1EA;
    border: 1px solid #E7C9B7;
    color: #8A4B2B;
    font-size: .9rem;
    line-height: 1.5;
}
.form-error a { color: #8A4B2B; font-weight: 600; }
.form-error[hidden] { display: none; }

/* Ladezustand des Sende-Buttons */
.btn.is-loading { opacity: .75; cursor: progress; }
.form-note a { color: var(--ink-2); }

/* Erfolgsmeldung nach Absenden */
.lead__success {
    display: none;
    text-align: center;
    padding: 1rem 0;
    animation: screen-in .5s var(--ease) both;
}
.lead__success.is-on { display: block; }
.success-badge {
    width: 76px; height: 76px; margin: 0 auto 1.2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    display: grid; place-items: center;
    box-shadow: var(--shadow-gold);
}
.success-badge svg { width: 36px; height: 36px; color: #fff; }
/* Die Erfolgsmeldung liegt auf der weißen Formularfläche –
   daher dunkle, gut lesbare Schrift statt der Creme-Töne. */
.lead__success h3 { color: var(--ink); font-size: 1.7rem; }
.lead__success p { color: var(--ink-soft); max-width: 40ch; margin-inline: auto; }


/* =========================================================================
   9. FUSSZEILE
   ========================================================================= */
.foot {
    margin-top: auto;
    padding: 2.4rem 0 3rem;
    /* Auf Geräten mit Home-Indikator nicht unter die Systemleiste rutschen */
    padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px));
    text-align: center;
    color: var(--ink-soft);
    font-size: .85rem;
}
.foot strong { color: var(--ink); font-family: var(--serif); font-weight: 600; }
.foot a { color: var(--ink-2); }


/* =========================================================================
   10. ANIMATIONEN (Hilfsklassen)
   ========================================================================= */
.fade-up { opacity: 0; animation: option-in .6s var(--ease) forwards; }


/* =========================================================================
   11. RESPONSIV — Tablet / Desktop
   ========================================================================= */
@media (min-width: 720px) {
    body { font-size: 18px; }

    .options { grid-template-columns: 1fr 1fr; }

    .field-row { grid-template-columns: 1fr 1fr; gap: 1rem; }

    .recos { grid-template-columns: repeat(3, 1fr); }

    .dash { grid-template-columns: 1fr 1.15fr; align-items: start; }

    .lead__grid { grid-template-columns: .95fr 1.1fr; align-items: start; }
}

@media (min-width: 1000px) {
    .hero h1 { font-size: 4.3rem; }
}


/* =========================================================================
   12. BARRIEREFREIHEIT
   ========================================================================= */

/* Klar sichtbarer Tastatur-Fokus */
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 6px;
}
.option:focus-visible { outline-offset: 4px; }

/* "Skip"-fähiger, gut lesbarer Kontrast bereits in Tokens berücksichtigt. */

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .hero .compass-rose { animation: none; }
}

/* visuell versteckt, aber für Screenreader verfügbar */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* =========================================================================
   13. MARKE & WEBSITE-INHALTE (Logo, Kennzahlen, Kontakt)
   ========================================================================= */

/* Logo im Hero – etwas kompakter, da der Hero oben jetzt höher beginnt */
.hero-logo {
    width: clamp(140px, 22vw, 184px);
    height: auto;
    margin: 0 0 1.1rem;
    filter: drop-shadow(0 10px 22px rgba(18, 48, 60, .12));
}

/* Kennzahlen unter dem Hero */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 1.1rem 2.6rem;
    margin: 2.3rem 0 0;
    padding-top: 1.7rem;
    border-top: 1px solid var(--line);
}
.hero-stats dt {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 600; color: var(--ink); line-height: 1;
    font-variant-numeric: tabular-nums;
}
.hero-stats dd {
    margin: .3rem 0 0;
    font-size: .8rem; color: var(--ink-soft); letter-spacing: .01em;
}

/* Logo in der Fragestrecke */
.brand-logo { height: 38px; width: auto; display: block; }

/* Direkter Kontakt im Conversion-Bereich */
.lead-direct {
    margin-top: 1.8rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(247, 242, 232, .18);
}
.lead-direct__k {
    font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold-soft); margin: 0 0 .6rem;
}
.lead-direct__row {
    display: flex; align-items: center; gap: .85rem;
    color: var(--cream-2); text-decoration: none;
    font-weight: 600; font-size: 1rem;
    padding: .5rem 0;
    transition: color .2s var(--ease);
}
.lead-direct__row:hover { color: var(--gold-soft); }
.lead-direct__ico {
    width: 40px; height: 40px; flex: none; border-radius: 11px;
    display: grid; place-items: center;
    background: rgba(219, 193, 138, .14);
    color: var(--gold-soft);
}
.lead-direct__ico svg { width: 20px; height: 20px; }

/* Erweiterte Fußzeile mit echten Kontaktdaten */
.foot__logo { width: 132px; height: auto; margin: 0 auto 1.5rem; }
.foot__grid {
    display: grid; grid-template-columns: 1fr; gap: 1.6rem;
    text-align: center; max-width: 780px; margin: 0 auto 1.4rem;
}
.foot__h {
    font-family: var(--serif); color: var(--ink);
    font-weight: 600; font-size: 1.02rem; margin: 0 0 .45rem;
}
.foot__grid p { margin: 0 0 .3rem; line-height: 1.7; }
.foot__social { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; justify-content: center; }
.foot__fine { font-size: .8rem; color: var(--ink-soft); margin-top: .7rem; }

/* Dezente Rechtslinks (Impressum / Datenschutz) */
.foot__legal {
    display: flex; flex-wrap: wrap; gap: .4rem 1.4rem;
    justify-content: center; margin-top: .9rem;
}
.foot__legal a {
    font-size: .82rem; color: var(--ink-soft); text-decoration: none;
    transition: color .2s var(--ease);
}
.foot__legal a:hover {
    color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
}

@media (min-width: 680px) {
    .foot__grid { grid-template-columns: repeat(3, 1fr); text-align: left; }
    .foot__social { justify-content: flex-start; }
}
