/* Aufnahmeantrag — Feuerwehr Bayreuth
   Dunkles Theme mit Hero-Bild, Touch-Bar-Magnifikation, Multi-Step-Form. */

:root {
    --rot:        #e6213c;
    --rot-tief:   #b9152b;
    --rot-glow:   rgba(230, 33, 60, 0.55);
    --bg:         #0a0d14;
    --bg-2:       #11151f;
    --bg-3:       #161b27;
    --linie:      rgba(255, 255, 255, 0.08);
    --linie-stark:rgba(255, 255, 255, 0.18);
    --text:       #f4f6fa;
    --text-mute:  #aab2c3;
    --text-dim:   #6b7387;
    --feld-bg:    rgba(255, 255, 255, 0.04);
    --feld-bg-hov:rgba(255, 255, 255, 0.07);
    --feld-bg-fk: rgba(255, 255, 255, 0.10);
    --radius:     16px;
    --radius-klein: 10px;
    --uebergang:  220ms cubic-bezier(0.22, 0.61, 0.36, 1);
    --uebergang-mag: 120ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(230, 33, 60, 0.18), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(230, 33, 60, 0.10), transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

::selection { background: var(--rot); color: #fff; }

/* === Kopfzeile === */
.kopf {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
    pointer-events: none;
}
.kopf-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 32px 18px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    pointer-events: auto;
}
.logo {
    height: 64px;
    width: auto;
    display: block;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
}

/* === Zurück-zur-Startseite oben rechts === */
.zurueck-startseite {
    position: fixed;
    top: 18px;
    right: 24px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(20, 24, 35, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.zurueck-startseite svg {
    width: 16px;
    height: 16px;
    transition: transform 220ms ease;
}
.zurueck-startseite:hover {
    background: rgba(200, 16, 46, 0.92);
    border-color: rgba(255, 255, 255, 0.30);
    transform: translateX(-2px);
}
.zurueck-startseite:hover svg { transform: translateX(-3px); }

@media (max-width: 540px) {
    .zurueck-startseite span { display: none; }
    .zurueck-startseite { padding: 10px; }
    .zurueck-startseite svg { width: 18px; height: 18px; }
}

/* === Hero === */
.hero {
    --p: var(--hero-fortschritt, 0);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    height: calc(100vh - var(--p) * 35vh);
    min-height: 380px;
    margin: 0 calc(var(--p) * 32px);
    border-radius: calc(var(--p) * 28px);
    border: 1px solid rgba(255, 255, 255, calc(var(--p) * 0.10));
    display: flex;
    align-items: flex-end;
}
.hero-bild {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    z-index: 0;
    transform: scale(calc(1.18 - var(--p) * 0.18));
    transform-origin: center 30%;
    will-change: transform;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(10, 13, 20, 0)    0%,
            rgba(10, 13, 20, 0)    35%,
            rgba(10, 13, 20, 0.45) 65%,
            rgba(10, 13, 20, 0.92) 100%);
    z-index: 1;
}
.hero-inhalt {
    position: relative;
    z-index: 2;
    padding: 48px 56px 56px;
    max-width: 1100px;
    width: 100%;
    transform: translateY(calc(var(--p) * -10px));
    will-change: transform;
}
.hero-kennung {
    display: inline-block;
    font-size: calc(12px + (1 - var(--p)) * 2px);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rot);
    background: rgba(230, 33, 60, 0.14);
    border: 1px solid rgba(230, 33, 60, 0.35);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: calc(22px + (1 - var(--p)) * 14px);
    backdrop-filter: blur(10px);
    transition: opacity var(--uebergang);
    opacity: calc(0.4 + var(--p) * 0.6 + (1 - var(--p)) * 1);
}
.hero h1 {
    /* Begrenzt auf max. 2 Zeilen — initial ~88 px, beim Scrollen ~64 px */
    font-size: clamp(
        40px,
        calc(8vw - var(--p) * 2.5vw),
        calc(88px - var(--p) * 24px)
    );
    line-height: 0.98;
    letter-spacing: -0.025em;
    font-weight: 800;
    margin: 0 0 calc(20px + (1 - var(--p)) * 12px);
    color: #fff;
    text-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
    text-wrap: balance;
    max-width: 22ch;
    will-change: font-size, margin;
}
.hero-text {
    font-size: clamp(
        15px,
        calc(1.7vw + (1 - var(--p)) * 0.8vw),
        calc(26px - var(--p) * 8px)
    );
    color: rgba(255, 255, 255, calc(0.78 + (1 - var(--p)) * 0.12));
    max-width: 640px;
    margin: 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
    line-height: 1.45;
}

/* === Schrittleiste mit Touch-Bar-Magnifikation === */
.schrittleiste {
    position: sticky;
    top: 12px;
    z-index: 20;
    margin: -36px auto 0;
    max-width: fit-content;
    padding: 0 16px;
}
.schritte {
    position: relative;
    display: flex;
    gap: 6px;
    padding: 8px;
    background: rgba(15, 18, 27, 0.78);
    border: 1px solid var(--linie-stark);
    border-radius: 999px;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

/* Apple-Style Slide-Indikator */
.indikator {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background: var(--rot);
    border-radius: 999px;
    box-shadow: 0 10px 28px var(--rot-glow);
    z-index: 0;
    pointer-events: none;
    transition:
        transform 520ms cubic-bezier(0.32, 0.72, 0, 1),
        width    520ms cubic-bezier(0.32, 0.72, 0, 1),
        height   520ms cubic-bezier(0.32, 0.72, 0, 1);
}

.schritt-knopf {
    --skala: 1;
    position: relative;
    z-index: 1;
    background: transparent;
    border: 0;
    color: var(--text-mute);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transform: scale(var(--skala));
    transform-origin: center bottom;
    transition:
        color var(--uebergang),
        transform var(--uebergang-mag),
        padding 520ms cubic-bezier(0.32, 0.72, 0, 1),
        font-size 520ms cubic-bezier(0.32, 0.72, 0, 1);
    white-space: nowrap;
}
.schritt-knopf .nr {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    transition: color var(--uebergang);
}
.schritt-knopf:hover {
    color: #fff;
}
.schritt-knopf:hover .nr { color: var(--rot); }
.schritt-knopf.aktiv {
    color: #fff;
    background: transparent;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 600;
    z-index: 2;
}
.schritt-knopf.aktiv .nr {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
}
.schritt-knopf.aktiv:hover { background: transparent; }
.schritt-knopf.erledigt:not(.aktiv) {
    color: #fff;
}
.schritt-knopf.erledigt:not(.aktiv) .nr { color: var(--rot); }

@media (max-width: 720px) {
    .schritt-knopf .titel { display: none; }
    .schritt-knopf {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
    }
}

/* === Hülle === */
.huelle {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

/* === Meldungen === */
.meldungen { margin-bottom: 24px; }
.meldung {
    border-radius: var(--radius-klein);
    padding: 14px 18px;
    margin-bottom: 8px;
    background: rgba(230, 33, 60, 0.08);
    border: 1px solid rgba(230, 33, 60, 0.30);
    color: #ffd5db;
    font-size: 14px;
}
.meldung-error { color: #ffb8c1; }

/* === Formular === */
.formular {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}
.formular::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 200px at 50% -50%, rgba(230, 33, 60, 0.10), transparent 70%);
    pointer-events: none;
}
.formular > * { position: relative; }

/* Schritt-Inhalte: nur einer sichtbar */
.schritt {
    display: none;
    animation: schritt-erscheinen 380ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.schritt.aktiv { display: block; }
@keyframes schritt-erscheinen {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.schritt-kopf {
    margin-bottom: 28px;
    border-bottom: 1px solid var(--linie);
    padding-bottom: 22px;
}
.schritt-marker {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--rot);
    margin-bottom: 10px;
}
.schritt-kopf h2 {
    font-size: clamp(24px, 3vw, 32px);
    margin: 0 0 8px;
    letter-spacing: -0.015em;
    color: #fff;
    font-weight: 700;
}
.schritt-kopf p {
    margin: 0;
    color: var(--text-mute);
    font-size: 15px;
    line-height: 1.55;
}

.abschnitt-hinweis {
    color: var(--text-mute);
    margin: 0 0 14px;
    font-size: 14.5px;
}
.abschnitt-trenner {
    margin: 28px 0 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--rot);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}
.abschnitt-trenner::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--linie), transparent);
}

/* === Felder === */
.feld {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}
.feld:last-child { margin-bottom: 0; }
.feld-titel {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mute);
    letter-spacing: 0.2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    border: 1px solid var(--linie);
    border-radius: var(--radius-klein);
    padding: 14px 16px;
    font-family: inherit;
    font-size: 16px;
    color: var(--text);
    background: var(--feld-bg);
    transition: border-color var(--uebergang), background var(--uebergang),
                box-shadow var(--uebergang);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:hover,
textarea:hover { background: var(--feld-bg-hov); }
input:focus,
textarea:focus {
    outline: none;
    background: var(--feld-bg-fk);
    border-color: var(--rot);
    box-shadow: 0 0 0 4px rgba(230, 33, 60, 0.18);
}
textarea {
    resize: vertical;
    min-height: 96px;
    font-family: inherit;
}

input.fehler,
input.fehler:focus {
    border-color: var(--rot);
    background: rgba(230, 33, 60, 0.08);
    box-shadow: 0 0 0 4px rgba(230, 33, 60, 0.20);
}
.feld-fehler {
    display: none;
    color: #ff8a98;
    font-size: 13px;
    font-weight: 500;
    margin-top: 2px;
}
.feld.hat-fehler .feld-fehler { display: block; }

/* Hinweis-Text (z. B. unter Adresse im Förder-Formular) */
.adresse-hinweis {
    color: var(--text-mute);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 12px 0 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--rot);
    border-radius: 4px;
}

/* === Adress-Zeile === */
.feld-adresse { position: relative; }
.adresse-zeile {
    display: grid;
    grid-template-columns: 1fr 110px 120px;
    gap: 10px;
}
.adresse-strasse { position: relative; }
.adresse-strasse input { width: 100%; }

.vorschlaege {
    list-style: none;
    margin: 0;
    padding: 6px;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(20, 24, 35, 0.96);
    border: 1px solid var(--linie-stark);
    border-radius: var(--radius-klein);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
    z-index: 30;
    max-height: 320px;
    overflow-y: auto;
    backdrop-filter: blur(20px);
}
.vorschlaege li {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text);
    font-size: 15px;
    line-height: 1.35;
}
.vorschlaege li:hover,
.vorschlaege li.aktiv {
    background: rgba(230, 33, 60, 0.12);
    color: #fff;
}
.vorschlaege .v-strasse { font-weight: 600; }
.vorschlaege .v-ort {
    color: var(--text-dim);
    font-size: 13px;
    display: block;
    margin-top: 2px;
}
.vorschlaege .v-leer {
    color: var(--text-dim);
    font-size: 14px;
    cursor: default;
    text-align: center;
    padding: 14px 12px;
}
.vorschlaege .v-leer:hover { background: transparent; }

@media (max-width: 560px) {
    .adresse-zeile { grid-template-columns: 1fr 1fr; }
    .adresse-strasse { grid-column: 1 / -1; }
}

/* === Ja/Nein-Schalter === */
.schalter {
    display: inline-flex;
    flex-wrap: wrap;
    background: var(--feld-bg);
    border: 1px solid var(--linie);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 18px;
    gap: 2px;
}
.schalter-mehrfach { display: flex; }
.schalter.hat-fehler {
    border-color: var(--rot);
    box-shadow: 0 0 0 4px rgba(230, 33, 60, 0.18);
}
.schalter-knopf { position: relative; }
.schalter-knopf input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.schalter-knopf span {
    display: inline-block;
    padding: 9px 26px;
    border-radius: 999px;
    font-weight: 600;
    color: var(--text-mute);
    transition: background var(--uebergang), color var(--uebergang);
}
.schalter-knopf input:checked + span {
    background: var(--rot);
    color: #fff;
    box-shadow: 0 6px 18px var(--rot-glow);
}

/* === Conditional === */
.ausklapp {
    overflow: hidden;
    transition: max-height 320ms ease, opacity 240ms ease, margin-top 240ms ease;
}
.ausklapp[hidden] {
    display: block !important;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}
.ausklapp:not([hidden]) {
    max-height: 1500px;
    opacity: 1;
    margin-top: 8px;
}

/* === Checkboxen === */
.kaestchen-raster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.kaestchen {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid var(--linie);
    border-radius: var(--radius-klein);
    background: var(--feld-bg);
    cursor: pointer;
    transition: border-color var(--uebergang), background var(--uebergang);
    user-select: none;
}
.kaestchen:hover {
    border-color: rgba(230, 33, 60, 0.5);
    background: rgba(230, 33, 60, 0.05);
}
.kaestchen input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.kaestchen-marker {
    width: 22px;
    height: 22px;
    border: 2px solid var(--linie-stark);
    border-radius: 6px;
    flex-shrink: 0;
    background: transparent;
    display: grid;
    place-items: center;
    transition: background var(--uebergang), border-color var(--uebergang);
}
.kaestchen-marker::after {
    content: "";
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    margin-bottom: 2px;
    transition: transform var(--uebergang);
}
.kaestchen input:checked ~ .kaestchen-marker {
    background: var(--rot);
    border-color: var(--rot);
    box-shadow: 0 4px 14px var(--rot-glow);
}
.kaestchen input:checked ~ .kaestchen-marker::after { transform: rotate(45deg) scale(1); }
.kaestchen input:checked ~ .kaestchen-label { color: #fff; font-weight: 600; }
.kaestchen-label { font-size: 15px; color: var(--text); }

/* Einwilligung */
.kaestchen.einwilligung {
    align-items: flex-start;
    padding: 18px 20px;
    margin-bottom: 6px;
}
.kaestchen.einwilligung .kaestchen-marker { margin-top: 2px; }
.kaestchen.einwilligung .kaestchen-label {
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
    color: var(--text-mute);
}
.kaestchen.einwilligung input:checked ~ .kaestchen-label {
    color: #fff;
    font-weight: 500;
}
.kaestchen.einwilligung.hat-fehler {
    border-color: var(--rot);
    background: rgba(230, 33, 60, 0.08);
    box-shadow: 0 0 0 4px rgba(230, 33, 60, 0.20);
}

/* === Drag & Drop === */
.ablage {
    display: grid;
    place-items: center;
    border: 2px dashed var(--linie-stark);
    border-radius: var(--radius);
    background: var(--feld-bg);
    padding: 30px 24px;
    cursor: pointer;
    transition: border-color var(--uebergang), background var(--uebergang),
                transform var(--uebergang);
    min-height: 120px;
}
.ablage:hover {
    border-color: var(--rot);
    background: rgba(230, 33, 60, 0.06);
}
.ablage.aktiv {
    border-color: var(--rot);
    background: rgba(230, 33, 60, 0.10);
    transform: scale(1.005);
}
.ablage-inhalt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.ablage-symbol {
    width: 32px;
    height: 32px;
    color: var(--rot);
}

/* Datei-Liste */
.dateiliste {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dateiliste li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--linie);
    border-radius: var(--radius-klein);
    animation: einblenden 240ms ease;
}
.dateiliste .ico-doc { width: 22px; height: 22px; color: var(--rot); flex-shrink: 0; }
.dateiliste .datei-name {
    flex: 1;
    font-size: 14.5px;
    color: var(--text);
    word-break: break-all;
}
.dateiliste .datei-groesse {
    font-size: 13px;
    color: var(--text-dim);
    flex-shrink: 0;
}
.dateiliste .datei-entfernen {
    background: none;
    border: 0;
    color: var(--text-dim);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background var(--uebergang), color var(--uebergang);
}
.dateiliste .datei-entfernen:hover {
    background: rgba(230, 33, 60, 0.18);
    color: #fff;
}
.dateiliste .datei-entfernen svg { width: 16px; height: 16px; }

@keyframes einblenden {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === Schritt-Aktionen === */
.schritt-aktionen {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--linie);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.schritt-aktionen > :only-child { margin-left: auto; }

.weiter, .zurueck, .primaer {
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border: 0;
    border-radius: var(--radius-klein);
    padding: 14px 26px;
    cursor: pointer;
    transition: background var(--uebergang), transform var(--uebergang),
                box-shadow var(--uebergang), color var(--uebergang);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.zurueck {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-mute);
    border: 1px solid var(--linie);
}
.zurueck:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.weiter, .primaer {
    background: var(--rot);
    color: #fff;
    box-shadow: 0 10px 28px var(--rot-glow);
    margin-left: auto;
}
.weiter:hover, .primaer:hover {
    background: var(--rot-tief);
    transform: translateY(-1px);
    box-shadow: 0 14px 36px var(--rot-glow);
}
.weiter:active, .primaer:active { transform: translateY(0); }

.primaer:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.primaer-symbol {
    width: 1em;
    height: 1em;
    display: block;
    transform: translateY(-1px);
}

/* === Zusammenfassung in Schritt 5 === */
.zusammenfassung {
    margin-top: 24px;
    padding: 20px;
    background: var(--feld-bg);
    border: 1px solid var(--linie);
    border-radius: var(--radius-klein);
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 20px;
    font-size: 14px;
}
.zusammenfassung dt {
    color: var(--text-dim);
    font-weight: 500;
}
.zusammenfassung dd {
    margin: 0;
    color: var(--text);
    font-weight: 600;
    word-break: break-word;
}
.zusammenfassung:empty { display: none; }

/* === Fußzeile === */
.fuss {
    text-align: center;
    padding: 32px 16px 40px;
    color: var(--text-dim);
    font-size: 13px;
}

/* === Erfolgsseite === */
.seite-danke {
    background:
        radial-gradient(900px 500px at 50% 0%, rgba(230, 33, 60, 0.18), transparent 60%),
        var(--bg);
}
.danke-huelle {
    min-height: calc(100vh - 230px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}
.danke-karte {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid var(--linie);
    border-radius: 24px;
    padding: 56px 48px 48px;
    text-align: center;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    max-width: 580px;
    width: 100%;
    backdrop-filter: blur(20px);
}
.danke-karte h1 {
    font-size: 32px;
    margin: 24px 0 12px;
    color: #fff;
    letter-spacing: -0.015em;
    font-weight: 700;
}
.danke-text {
    font-size: 17px;
    color: var(--text-mute);
    margin: 0 0 8px;
}
.danke-signatur {
    color: var(--rot);
    font-weight: 600;
    margin: 16px 0 0;
    letter-spacing: 0.2px;
}
.zurueck.zurueck-link {
    display: inline-block;
    margin-top: 32px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 2px solid var(--rot);
    padding: 4px 2px;
    font-weight: 600;
    background: transparent;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
}
.zurueck.zurueck-link:hover { color: var(--rot); background: transparent; }

/* Animierter Haken */
.haken-rahmen {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    background: rgba(230, 33, 60, 0.14);
    border: 1px solid rgba(230, 33, 60, 0.30);
    border-radius: 50%;
    display: grid;
    place-items: center;
    animation: puls 1800ms ease-out 700ms both;
    box-shadow: 0 0 60px rgba(230, 33, 60, 0.30);
}
.haken-svg { width: 110px; height: 110px; color: var(--rot); }
.haken-bogen {
    stroke-dasharray: 280;
    stroke-dashoffset: 280;
    animation: bogen-zeichnen 900ms cubic-bezier(0.65, 0, 0.25, 1) forwards;
}
.haken-strich {
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation: haken-zeichnen 480ms cubic-bezier(0.65, 0, 0.25, 1) 700ms forwards;
}
@keyframes bogen-zeichnen { to { stroke-dashoffset: 0; } }
@keyframes haken-zeichnen { to { stroke-dashoffset: 0; } }
@keyframes puls {
    0%   { transform: scale(0.85); opacity: 0; }
    60%  { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* === Mobile === */
@media (max-width: 720px) {
    .hero { margin: 0 16px; height: 380px; border-radius: 22px; }
    .hero-inhalt { padding: 32px 28px 40px; }
    .kopf-inner { padding: 16px 20px; }
    .logo { height: 44px; }
    .formular { padding: 24px; border-radius: 14px; }
    .schrittleiste { top: 8px; }
    .huelle { padding: 40px 16px 60px; }
    .danke-karte { padding: 40px 24px 32px; }
}
