/* ==========================================================================
   Startseite, Richtung A "Der Stapel" (Scheibe 3, 07.10.2026)
   Baut auf altersvorsorge-ingolstadt.css auf (Tokens --av-*, Kopf, Fuß).
   Ein Motiv: Verträge als Blätter, die beim Scrollen sortiert werden.
   ========================================================================== */

.st-body {
    --st-kopf: 64px;
    --st-hell-blau: #E1ECF5;
    --st-hell-blau-d: #D2E3F1;
    --st-rot: #B42318;
    --st-gruen: #1E6B3A;
    font-size: 1.0625rem;
}
:where(.st-body) p { margin: 0; }
:where(.st-body) h3 { margin: 0; }
:where(.st-body) figure { margin: 0; }
:where(.st-body) blockquote { margin: 0; }

/* Sprungmarke für Tastatur */
.st-skip {
    position: absolute;
    left: 1rem;
    top: -200px;
    z-index: 100;
    background: var(--av-ink);
    color: #fff;
    font: 600 1rem/1 'General Sans', system-ui, sans-serif;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
}
.st-skip:focus { top: 0.75rem; }
.st-skip:hover { background: var(--av-blau-d); color: #fff; }
.st-skip:active { background: var(--av-blau); }

/* --------------------------------------------------------------------------
   Kopf mit Navigation
   -------------------------------------------------------------------------- */
.st-nav { display: flex; gap: 1.4rem; margin-left: auto; margin-right: 0.75rem; }
.st-nav a {
    font: 600 0.9375rem/1 'General Sans', system-ui, sans-serif;
    color: var(--av-ink);
    padding: 0.7rem 0;
    white-space: nowrap;
}
.st-nav a:hover { color: var(--av-blau); }
.st-nav a:active { color: var(--av-blau-d); }
.st-nav a:focus-visible { outline: 2px solid var(--av-blau); outline-offset: 3px; border-radius: 2px; }

.st-menue { display: none; position: relative; margin-left: auto; }
.st-menue summary {
    list-style: none;
    cursor: pointer;
    font: 600 0.9375rem/1 'General Sans', system-ui, sans-serif;
    color: var(--av-ink);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    box-shadow: inset 0 0 0 2px var(--av-ink);
    white-space: nowrap;
}
.st-menue summary::-webkit-details-marker { display: none; }
.st-menue summary:hover { background: var(--av-ink); color: #fff; }
.st-menue summary:active { background: var(--av-blau-d); color: #fff; box-shadow: inset 0 0 0 2px var(--av-blau-d); }
.st-menue summary:focus-visible { outline: 2px solid var(--av-blau); outline-offset: 3px; }
.st-menue[open] summary { background: var(--av-ink); color: #fff; }
.st-menue-liste {
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    min-width: 230px;
    background: var(--av-surface);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 2px 4px rgba(38, 40, 43, 0.08), 0 18px 36px -18px rgba(38, 40, 43, 0.45);
    display: flex;
    flex-direction: column;
}
.st-menue-liste a {
    font: 600 1rem/1.2 'General Sans', system-ui, sans-serif;
    color: var(--av-ink);
    padding: 0.85rem 1rem;
    border-radius: 10px;
}
.st-menue-liste a:hover { background: var(--av-page); color: var(--av-blau); }
.st-menue-liste a:active { background: var(--st-hell-blau); color: var(--av-blau-d); }
.st-menue-liste a:focus-visible { outline: 2px solid var(--av-blau); outline-offset: -2px; }

/* --------------------------------------------------------------------------
   Knöpfe
   -------------------------------------------------------------------------- */
.st-knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--av-blau);
    color: #fff;
    font: 700 1rem/1.1 'General Sans', system-ui, sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.st-knopf:hover { background: var(--av-blau-d); color: #fff; }
.st-knopf:active { background: var(--av-ink); color: #fff; transform: translateY(1px); }
.st-knopf:focus-visible { outline: 2px solid var(--av-ink); outline-offset: 3px; }
.st-knopf.st-leise { background: transparent; color: var(--av-ink); box-shadow: inset 0 0 0 2px var(--av-ink); }
.st-knopf.st-leise:hover { background: var(--av-ink); color: #fff; }
.st-knopf.st-leise:active { background: var(--av-blau-d); color: #fff; box-shadow: inset 0 0 0 2px var(--av-blau-d); }
.st-knopf[disabled] { opacity: 0.6; cursor: progress; }

/* --------------------------------------------------------------------------
   Hero: der Stapel
   -------------------------------------------------------------------------- */
.st-body .st-hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.st-hero-raster {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    width: 100%;
}
.st-hero h1 {
    font-size: clamp(2.2rem, 3.3vw, 3rem);
    line-height: 1.06;
    max-width: 17ch;
    margin: 0 0 1.4rem;
}
.st-lead { font-size: clamp(1.1rem, 1.4vw, 1.25rem); line-height: 1.6; max-width: 32em; }
.st-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.5rem; margin-top: 2rem; }
.st-textlink { display: inline-flex; align-items: center; min-height: 52px; font: 700 1rem/1.1 'General Sans', system-ui, sans-serif; color: var(--av-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; white-space: nowrap; }
.st-textlink:hover { color: var(--av-blau-d); }
.st-textlink:active { color: var(--av-blau); }
.st-textlink:focus-visible { outline: 2px solid var(--av-ink); outline-offset: 3px; border-radius: 4px; }
/* Visitenkarte: sein Gesicht gleich oben, als Blatt aus demselben Papier wie der Stapel */
.st-karte {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    max-width: 31rem;
    margin-top: 1.6rem;
    padding: 10px 18px 10px 10px;
    background: var(--av-surface);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(38, 40, 43, 0.10), 0 10px 24px -14px rgba(38, 40, 43, 0.35);
}
.st-karte img { flex: none; width: 128px; height: auto; aspect-ratio: 510 / 590; object-fit: cover; border-radius: 10px; }
.st-karte p { font-size: 0.9375rem; line-height: 1.5; color: var(--av-text); }
.st-karte b { display: block; font: 700 1.125rem/1.3 'General Sans', system-ui, sans-serif; color: var(--av-ink); margin-bottom: 0.2rem; }
.st-karte + .st-reihe { margin-top: 1.4rem; }

/* Angeheftet, nur wenn das Skript es erlaubt (Desktop, genug Höhe, keine reduzierte Bewegung) */
.st-pin .st-hero { height: 185vh; padding: 0; }
.st-pin .st-hero-pin {
    position: sticky;
    top: var(--st-kopf);
    height: calc(100vh - var(--st-kopf));
    height: calc(100svh - var(--st-kopf));
    display: flex;
    align-items: center;
}

.st-buehne-rahmen { position: relative; width: 100%; max-width: 640px; justify-self: end; }
.st-pin .st-buehne-rahmen { max-width: min(640px, calc(100svh - var(--st-kopf) - 110px)); }
.st-buehne { position: relative; isolation: isolate; }
.st-buehne.st-an { aspect-ratio: 1 / 1; }

/* Ohne Skript: die Blätter stehen untereinander, nichts überlappt */
.st-buehne:not(.st-an) { display: flex; flex-direction: column; gap: 8px; }
.st-buehne:not(.st-an) .st-etikett { display: none; }

.st-blatt {
    background: var(--av-surface);
    border-radius: 10px;
    padding: 14px 16px 16px;
    box-shadow: 0 1px 2px rgba(38, 40, 43, 0.10), 0 10px 24px -14px rgba(38, 40, 43, 0.35);
    transform-origin: 50% 50%;
}
.st-an .st-blatt { position: absolute; left: 0; top: 0; will-change: transform; }
.st-blatt b { display: block; font: 700 0.875rem/1.25 'General Sans', system-ui, sans-serif; color: var(--av-ink); hyphens: auto; overflow-wrap: anywhere; }
.st-blatt small { display: block; font: 500 0.875rem/1.3 'General Sans', system-ui, sans-serif; color: var(--av-muted); margin-top: 2px; }
.st-blatt i { display: block; height: 7px; border-radius: 4px; background: var(--av-ghost-navy); margin-top: 10px; }
.st-blatt i + i { width: 72%; margin-top: 6px; }
.st-zulage {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--av-gold);
    color: var(--av-ink);
    font: 700 0.875rem/1.2 'General Sans', system-ui, sans-serif;
}
.st-blatt.st-weg { background: #F7F9FB; }
.st-etikett {
    position: absolute;
    top: 0;
    width: 40%;
    font: 700 0.875rem/1.2 'General Sans', system-ui, sans-serif;
    color: var(--av-ink);
    opacity: 0;
}
.st-etikett span { display: block; font-weight: 500; color: var(--av-muted); margin-top: 2px; }
.st-beispiel { margin: 0.6rem 0 0; font: 500 0.875rem/1.3 'General Sans', system-ui, sans-serif; color: var(--av-muted); text-align: right; }

/* --------------------------------------------------------------------------
   Stimmen (dunkle Fläche)
   -------------------------------------------------------------------------- */
.st-body .st-stimmen { background: var(--av-ink); color: var(--av-on-navy); padding: clamp(4rem, 8vw, 7rem) 0; }
.st-stimmen-kopf { max-width: 40rem; }
.st-stimmen-etikett { font: 600 0.9rem/1.35 'General Sans', system-ui, sans-serif; color: var(--av-on-navy-muted); margin: 0 0 0.6rem; }
.st-stimmen h2 {
    font-family: var(--av-display);
    font-weight: 600;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: #fff;
}
.st-stimmen-unterzeile { margin: 0.9rem 0 0; font-size: 1.125rem; line-height: 1.55; color: var(--av-on-navy-muted); }
/* Alle neun Stimmen offen, als Textspalten statt Kästen */
.st-stimmen-liste { columns: 3; column-gap: clamp(2rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.st-stimme { break-inside: avoid; margin: 0 0 clamp(2.25rem, 3.5vw, 3rem); }
.st-stimme p { font-size: 1.0625rem; line-height: 1.6; color: var(--av-on-navy); }
.st-stimme figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; margin-top: 0.9rem; }
.st-stimme-name { font: 700 0.9375rem/1.3 'General Sans', system-ui, sans-serif; color: #fff; }
.st-sterne { display: inline-flex; gap: 2px; }
.st-sterne svg { width: 15px; height: 15px; fill: var(--av-on-navy); }
.st-sterne .st-stern-leer { fill: none; stroke: var(--av-on-navy-muted); stroke-width: 1.5; }
.st-knopf.st-stimmen-mehr { display: none; background: transparent; color: var(--av-on-navy); box-shadow: inset 0 0 0 2px var(--av-on-navy-muted); margin: 0 0 2rem; }
.st-knopf.st-stimmen-mehr:hover { background: var(--av-on-navy); color: var(--av-ink); }
.st-knopf.st-stimmen-mehr:active { background: #fff; color: var(--av-ink); transform: translateY(1px); }
.st-knopf.st-stimmen-mehr:focus-visible { outline-color: var(--av-on-navy); }
.st-stimmen-hinweis { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.55; color: var(--av-on-navy-muted); max-width: 62ch; }

/* --------------------------------------------------------------------------
   Was ich mir ansehe: Zeilen, keine Karten
   -------------------------------------------------------------------------- */
.st-body .st-ansehen { background: var(--av-surface); padding: clamp(4.5rem, 9vw, 8rem) 0; }
.st-zeilen { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: clamp(2.25rem, 4vw, 3.5rem); }
.st-zeile { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1rem, 4vw, 4rem); align-items: baseline; }
.st-zeile h3 { font-family: var(--av-display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; color: var(--av-ink); letter-spacing: -0.015em; }
.st-zeile p { max-width: 54ch; line-height: 1.65; }
/* Eine Lebenslage mit Gewicht: die Kinderzulage als echte Zahl, Zitrus nur fürs Staatsgeld */
.st-zeile-fokus { background: var(--av-page); border-radius: 24px; padding: clamp(1.75rem, 4vw, 3rem); margin: 0 calc(-1 * clamp(1.75rem, 4vw, 3rem)); align-items: center; }
.st-zeile .st-zahl { margin-top: 1.1rem; font-family: var(--av-display); font-weight: 600; font-size: clamp(3.25rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.02em; color: var(--av-blau); }
.st-zeile .st-zahl span { display: block; margin-bottom: 0.35rem; font: 700 0.9375rem/1.2 'General Sans', system-ui, sans-serif; letter-spacing: 0; color: var(--av-ink); }
.st-zeile .st-zahl-text { margin-top: 0.6rem; font-size: 0.9375rem; line-height: 1.45; color: var(--av-muted); max-width: 22ch; }
.st-ansehen-intro { margin-top: 0.9rem; font-size: clamp(1.1rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--av-muted); max-width: 40ch; }
.st-pfeil {
    display: inline-block;
    margin-top: 0.8rem;
    padding-block: 4px;
    font: 600 1rem/1.3 'General Sans', system-ui, sans-serif;
    color: var(--av-blau);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.st-pfeil::after { content: ' \2192'; }
.st-pfeil:hover { color: var(--av-blau-d); }
.st-pfeil:active { color: var(--av-ink); }
.st-pfeil:focus-visible { outline: 2px solid var(--av-blau); outline-offset: 3px; border-radius: 2px; }

.st-kuendigen {
    margin-top: clamp(3rem, 6vw, 5rem);
    display: grid;
    background: var(--av-page);
    border-radius: 20px;
    padding: clamp(1.75rem, 4vw, 3rem);
}
.st-kuendigen-satz { font-family: var(--av-display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.22; color: var(--av-ink); letter-spacing: -0.015em; max-width: 34ch; }

/* --------------------------------------------------------------------------
   Anfangen
   -------------------------------------------------------------------------- */
.st-body .st-anfangen { background: var(--av-page); padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.st-wege { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; margin-top: clamp(2rem, 4vw, 3rem); }
.st-weg-gross {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-areas: "etikett etikett" "titel text" "titel los";
    column-gap: clamp(1.5rem, 5vw, 4.5rem);
    row-gap: 0.9rem;
    align-items: start;
    background: var(--av-blau);
    color: #fff;
    border-radius: 24px;
    padding: clamp(1.75rem, 4vw, 3.25rem);
    transition: background-color 0.18s ease, transform 0.12s ease;
}
.st-weg-gross:hover { background: var(--av-blau-d); color: #fff; }
.st-weg-gross:active { background: var(--av-ink); transform: translateY(1px); }
.st-weg-gross:focus-visible { outline: 3px solid var(--av-ink); outline-offset: 3px; }
.st-weg-etikett { grid-area: etikett; font: 600 0.9375rem/1.3 'General Sans', system-ui, sans-serif; color: #fff; }
.st-weg-titel { grid-area: titel; font-family: var(--av-display); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; color: #fff; }
.st-weg-text { grid-area: text; font-size: 1.0625rem; line-height: 1.6; color: #fff; max-width: 34ch; }
.st-weg-los { grid-area: los; align-self: end; padding-top: 0.5rem; font: 700 1rem/1.2 'General Sans', system-ui, sans-serif; color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.st-weg-los::after { content: ' \2192'; }
.st-weg-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.st-weg-liste li { flex: 1; display: flex; }
.st-weg-liste a {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    background: var(--av-surface);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    transition: background-color 0.18s ease;
}
.st-weg-liste strong { font: 700 1.0625rem/1.25 'General Sans', system-ui, sans-serif; color: var(--av-ink); }
.st-weg-liste strong::after { content: ' \2192'; color: var(--av-blau); }
.st-weg-liste span { font-size: 0.9375rem; line-height: 1.45; color: var(--av-muted); }
.st-weg-liste a:hover { background: var(--st-hell-blau); }
.st-weg-liste a:active { background: var(--st-hell-blau-d); }
.st-weg-liste a:focus-visible { outline: 2px solid var(--av-blau); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Über mich
   -------------------------------------------------------------------------- */
.st-body .st-ich { background: var(--av-page); padding: clamp(4.5rem, 9vw, 8rem) 0; }
.st-ich h2 { color: var(--av-ink); }
.st-ich-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.st-ich-raster img { width: 100%; max-width: 460px; height: auto; aspect-ratio: 510 / 590; object-fit: cover; border-radius: 20px; }
.st-ich-text h2 { margin: 0.8rem 0 1.3rem; max-width: 17ch; }
.st-ich-text p + p { margin-top: 1rem; }
.st-ich-text p { max-width: 54ch; line-height: 1.65; }
.st-ich-text a { color: var(--av-blau); text-decoration: underline; text-underline-offset: 3px; }
.st-ich-text a:hover { color: var(--av-blau-d); text-decoration-thickness: 2px; }
.st-ich-text a:active { color: var(--av-ink); }
.st-ich-text a:focus-visible { outline: 2px solid var(--av-blau); outline-offset: 2px; border-radius: 2px; }

/* --------------------------------------------------------------------------
   Häufige Fragen: zum Aufklappen, links die Überschrift, rechts die Fragen
   -------------------------------------------------------------------------- */
.st-body .st-fragen { background: var(--av-surface); padding: clamp(4.5rem, 9vw, 8rem) 0; }
.st-fragen-raster { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.st-fragen-kopf { position: sticky; top: calc(var(--st-kopf) + 2rem); }
.st-fragen-kopf p { margin-top: 0.9rem; font-size: clamp(1.1rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--av-muted); max-width: 26ch; }
.st-fragen-liste { display: grid; gap: 0.75rem; }
.st-frage { background: var(--av-page); border-radius: 16px; }
.st-frage summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.25rem 1.15rem 1.5rem; cursor: pointer; list-style: none; border-radius: 16px; }
.st-frage summary::-webkit-details-marker { display: none; }
.st-frage h3 { font: 700 clamp(1.125rem, 1.5vw, 1.25rem)/1.3 'General Sans', system-ui, sans-serif; color: var(--av-ink); }
.st-frage-zeichen { flex: none; position: relative; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--av-blau); transition: background-color 0.2s ease, transform 0.2s ease; }
.st-frage-zeichen::before, .st-frage-zeichen::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.875rem; height: 2px; margin: -1px 0 0 -0.4375rem; background: #fff; border-radius: 1px; transition: transform 0.2s ease; }
.st-frage-zeichen::after { transform: rotate(90deg); }
.st-frage[open] .st-frage-zeichen::after { transform: rotate(0deg); }
.st-frage summary:hover .st-frage-zeichen { background: var(--av-blau-d); }
.st-frage summary:active .st-frage-zeichen { transform: scale(0.92); }
.st-frage summary:focus-visible { outline: 2px solid var(--av-blau); outline-offset: 2px; }
.st-frage p { max-width: 60ch; line-height: 1.7; padding: 0 1.5rem 1.4rem; }
.st-frage a { color: var(--av-blau); text-decoration: underline; text-underline-offset: 3px; }
.st-frage a:hover { color: var(--av-blau-d); }
.st-frage a:active { color: var(--av-ink); }
.st-frage a:focus-visible { outline: 2px solid var(--av-blau); outline-offset: 2px; border-radius: 2px; }

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */
.st-body .st-kontakt { background: var(--av-page); padding: clamp(4.5rem, 9vw, 8rem) 0; }
.st-kontakt-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.st-kontakt-text h2 { max-width: 14ch; margin-bottom: 1.2rem; }
.st-kontakt-text > p { max-width: 40ch; line-height: 1.65; }
.st-direkt-kopf { display: flex; align-items: center; gap: 0.9rem; margin-top: 2.2rem; }
.st-direkt-kopf img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.st-direkt-kopf b { display: block; font: 700 1.125rem/1.3 'General Sans', system-ui, sans-serif; color: var(--av-ink); }
.st-direkt-kopf span { display: block; font: 500 0.9375rem/1.35 'General Sans', system-ui, sans-serif; color: var(--av-muted); margin-top: 0.15rem; }
.st-direkt { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.25rem; }
.st-direkt a, .st-direkt-adresse {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.7rem 0;
    font: 700 1.0625rem/1.3 'General Sans', system-ui, sans-serif;
    color: var(--av-ink);
    overflow-wrap: anywhere;
}
.st-direkt a span, .st-direkt-adresse span { font: 600 0.875rem/1.2 'General Sans', system-ui, sans-serif; color: var(--av-muted); }
.st-direkt a:hover { color: var(--av-blau); }
.st-direkt a:active { color: var(--av-blau-d); }
.st-direkt a:focus-visible { outline: 2px solid var(--av-blau); outline-offset: 2px; border-radius: 4px; }

.st-form { background: var(--av-surface); border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.75rem); position: relative; }
.st-fortschritt { height: 6px; border-radius: 3px; background: var(--av-ghost-navy); overflow: hidden; }
.st-fortschritt span { display: block; height: 100%; width: 100%; background: var(--av-blau); border-radius: 3px; transform-origin: 0 50%; transform: scaleX(0.25); transition: transform 0.3s ease; }
.st-schritt-zahl { margin: 0.8rem 0 1.5rem; font: 600 0.875rem/1.2 'General Sans', system-ui, sans-serif; color: var(--av-muted); }
.st-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.st-schritt { border: 0; padding: 0; margin: 0; min-width: 0; }
.st-schritt + .st-schritt { margin-top: 2rem; }
.st-js .st-schritt { display: none; margin-top: 0; }
.st-js .st-schritt.st-aktiv { display: block; }
.st-js .st-schritt-zahl, .st-js .st-fortschritt { display: block; }
.st-schritt-zahl, .st-fortschritt { display: none; }
.st-schritt legend { padding: 0; margin-bottom: 1rem; font-family: var(--av-display); font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.2; color: var(--av-ink); }
.st-hinweis { margin: -0.4rem 0 1rem; font-size: 0.9375rem; color: var(--av-muted); }
.st-wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.st-wahl label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 58px;
    padding: 0.85rem 1.1rem;
    background: var(--av-page);
    border-radius: 14px;
    font: 600 1rem/1.3 'General Sans', system-ui, sans-serif;
    color: var(--av-ink);
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.st-wahl input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--av-blau); cursor: pointer; }
.st-wahl label:hover { background: var(--av-champ-d); }
.st-wahl label:active { background: var(--st-hell-blau-d); }
.st-wahl label:has(input:checked) { background: var(--st-hell-blau); box-shadow: inset 0 0 0 2px var(--av-blau); }
.st-wahl label:has(input:focus-visible) { outline: 2px solid var(--av-ink); outline-offset: 2px; }

.st-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.st-feld-breit { grid-column: 1 / -1; }
.st-feld label { display: block; margin-bottom: 0.4rem; font: 600 0.9375rem/1.3 'General Sans', system-ui, sans-serif; color: var(--av-ink); }
.st-feld label span { font-weight: 500; color: var(--av-muted); }
.st-feld input, .st-feld textarea {
    width: 100%;
    font: 400 1rem/1.4 'General Sans', system-ui, sans-serif;
    color: var(--av-ink);
    background: var(--av-page);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.st-feld textarea { resize: vertical; min-height: 7rem; }
.st-feld input:hover, .st-feld textarea:hover { background: var(--av-champ-d); }
.st-feld input:active, .st-feld textarea:active { border-color: var(--av-muted); }
.st-feld input:focus-visible, .st-feld textarea:focus-visible { outline: 2px solid var(--av-blau); outline-offset: 2px; background: var(--av-surface); border-color: var(--av-blau); }
.st-feld input[aria-invalid="true"] { border-color: var(--st-rot); }
.st-fehler { margin-top: 0.4rem; font: 600 0.875rem/1.3 'General Sans', system-ui, sans-serif; color: var(--st-rot); }
.st-zustimmung { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1.4rem; font-size: 0.9375rem; line-height: 1.5; cursor: pointer; }
.st-zustimmung input { flex: none; width: 20px; height: 20px; margin: 0.15rem 0 0; accent-color: var(--av-blau); cursor: pointer; }
.st-zustimmung input:focus-visible { outline: 2px solid var(--av-ink); outline-offset: 2px; }
.st-zustimmung a { color: var(--av-blau); text-decoration: underline; text-underline-offset: 3px; }
.st-zustimmung a:hover { color: var(--av-blau-d); }
.st-zustimmung a:active { color: var(--av-ink); }
.st-zustimmung a:focus-visible { outline: 2px solid var(--av-blau); outline-offset: 2px; }

.st-status { margin-top: 1rem; font: 600 1rem/1.45 'General Sans', system-ui, sans-serif; color: var(--av-ink); }
.st-status:empty { display: none; }
.st-status.st-nein { color: var(--st-rot); }
.st-status.st-nein a { color: var(--st-rot); text-decoration: underline; }
.st-form-knoepfe { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.8rem; margin-top: 1.6rem; }

/* Nach dem Senden: das Formular tritt zurück, die Bestätigung steht allein */
.st-form.st-gesendet .st-schritt,
.st-form.st-gesendet .st-form-knoepfe,
.st-form.st-gesendet .st-fortschritt,
.st-form.st-gesendet .st-schritt-zahl { display: none !important; }
.st-form.st-gesendet .st-status { margin-top: 0; font-family: var(--av-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; color: var(--st-gruen); }

/* --------------------------------------------------------------------------
   Rechtstexte (Impressum, Datenschutz): ein ruhiges Blatt, gut lesbar
   -------------------------------------------------------------------------- */
.st-recht { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.st-recht-text {
    max-width: 46rem;
    margin: 0 auto;
    padding: clamp(1.6rem, 4vw, 3.2rem);
    background: var(--av-surface);
    border-radius: 12px;
    box-shadow: 0 10px 24px -14px rgba(38, 40, 43, 0.28);
    font: 400 1rem/1.7 'General Sans', system-ui, sans-serif;
    color: var(--av-text);
    overflow-wrap: anywhere;
}
.st-recht-text h1 { margin: 0 0 1.4rem; font: 600 clamp(2rem, 4vw, 2.8rem)/1.1 var(--av-display); color: var(--av-ink); }
.st-recht-text h2 { margin: 2.4rem 0 0.8rem; font: 600 clamp(1.3rem, 2.2vw, 1.6rem)/1.25 var(--av-display); color: var(--av-ink); }
.st-recht-text h3 { margin: 1.8rem 0 0.6rem; font: 700 1.0625rem/1.35 'General Sans', system-ui, sans-serif; color: var(--av-ink); }
.st-recht-text p { margin: 0 0 1rem; }
.st-recht-text ul { margin: 0 0 1.2rem; padding-left: 1.2rem; }
.st-recht-text li { margin-bottom: 0.4rem; }
.st-recht-text strong { font-weight: 700; color: var(--av-ink); }
.st-recht-text a { color: var(--av-blau); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.st-recht-text a:hover { color: var(--av-blau-d); text-decoration-thickness: 2px; }
.st-recht-text a:active { color: var(--av-ink); }
.st-recht-text a:focus-visible { outline: 2px solid var(--av-blau); outline-offset: 2px; border-radius: 2px; }

/* --------------------------------------------------------------------------
   Responsiv
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .st-nav { display: none; }
    .st-menue { display: block; }
}

@media (max-width: 900px) {
    .st-hero-raster { grid-template-columns: minmax(0, 1fr); }
    .st-buehne-rahmen { max-width: none; justify-self: stretch; }
    .st-buehne.st-an { aspect-ratio: auto; height: 660px; margin-top: 0.5rem; }
    .st-blatt { padding: 11px 14px 14px; }
    .st-blatt i { display: none; }
    .st-etikett { width: 100%; }
    .st-etikett span { display: inline; margin-left: 6px; }
    .st-stimmen-liste { columns: 2; }
    .st-zeile { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
    .st-weg-gross { grid-template-columns: minmax(0, 1fr); grid-template-areas: "etikett" "titel" "text" "los"; }
    .st-weg-liste { grid-template-columns: minmax(0, 1fr); }
    .st-ich-raster { grid-template-columns: minmax(0, 1fr); }
    .st-ich-raster img { max-width: 360px; }
    .st-kontakt-raster { grid-template-columns: minmax(0, 1fr); }
    .st-fragen-raster { grid-template-columns: minmax(0, 1fr); }
    .st-fragen-kopf { position: static; }
}

@media (max-width: 600px) {
    .st-stimmen-liste { columns: 1; }
    .st-stimmen-zu .st-stimme:nth-child(n+4) { display: none; }
    .st-knopf.st-stimmen-mehr:not([hidden]) { display: inline-flex; }
    .st-wahl, .st-felder { grid-template-columns: minmax(0, 1fr); }
    .st-karte { align-items: flex-start; gap: 0.9rem; padding: 10px 14px 10px 10px; }
    .st-karte img { width: 112px; }
    .st-karte p { font-size: 0.9375rem; }
    .st-reihe .st-knopf { flex: 1 1 100%; }
    .st-reihe .st-textlink { flex: 1 1 100%; justify-content: center; }
    .st-zeile-fokus { margin: 0; padding: 1.5rem 1.25rem; border-radius: 18px; gap: 1.1rem; }
    .st-form-knoepfe .st-knopf { flex: 1 1 auto; }
}

@media (max-width: 480px) {
    .av-logo-name span { display: none; }
    .st-menue summary { padding: 0.7rem 0.85rem; }
}

/* Unter 380 px lief der Name in den Menü-Knopf (07.10.2026). Jetzt darf er umbrechen, Knöpfe schrumpfen nie. */
@media (max-width: 380px) {
    .st-header .av-logo { gap: 0.5rem; }
    .st-header .av-logo img { width: 32px; height: 32px; }
    .st-header .av-logo-name strong { white-space: normal; }
    .st-menue { flex-shrink: 0; margin-left: auto; padding-left: 0.5rem; }
    .st-header .av-header-tel { flex-shrink: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .st-knopf:active, .st-weg-gross:active, .st-frage summary:active .st-frage-zeichen { transform: none; }
    .st-frage-zeichen, .st-frage-zeichen::before, .st-frage-zeichen::after { transition: none; }
}
