/* Volksbank Köln Bonn · Altersvorsorgedepot · Leitfaden-Seite
   Aufbau wie die bisherigen AVD-Seiten, Gestaltung in der Volksbank-CI:
   Hellblau als Grundflaeche, Dunkelblau fuer Ueberschriften und Akzentflaechen,
   Mittelblau fuer Knoepfe und Zahlen, Orange nur als Akzent. Schrift GenosGFG.
   Mobil zuerst. Alle Bewegungen entfallen bei "Bewegung reduzieren". */

@font-face {
  font-family: "GenosGFG";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/genos-regular.woff2?v=1") format("woff2");
}
@font-face {
  font-family: "GenosGFG";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/genos-bold.woff2?v=1") format("woff2");
}

:root {
  /* Volksbank-Farben (von volksbank-koeln-bonn.de) */
  --dunkel: #002D67;
  --dunkel-2: #00388B;
  --blau: #0066B3;
  --blau-tief: #005598;
  --hell: #E0EDF6;
  --hell-2: #B3D1E8;
  --hell-3: #EEF5FB;
  --orange: #FF6600;
  --orange-gross: #E05A00;  /* grosse Schrift auf Hellblau, mind. 3:1 */
  --orange-text: #B84A00;   /* kleine Schrift auf Weiss, mind. 4,5:1 */
  --orange-flaeche: #FEF2EB;
  /* Namen aus den bisherigen Seiten bleiben, damit Server-Seiten und Portal passen */
  --nacht: var(--dunkel);
  --tinte: var(--dunkel);
  --text: #1F2329;
  --text-2: #4E5663;
  --linie: #D9E0E8;
  --rahmen-feld: #BFCAD9;
  --flaeche: #F5F7F9;
  --weiss: #ffffff;
  --rand: 20px;
  --weich: cubic-bezier(.2, .7, .2, 1);
  --schatten-karte: 0 1px 2px rgb(0 45 103 / .05), 0 24px 48px -28px rgb(0 45 103 / .3);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }
body {
  margin: 0;
  font-family: "GenosGFG", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17.5px;
  line-height: 1.5;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blau); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
strong, b { font-weight: 700; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

.rahmen { position: relative; width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--rand); }
.rahmen-schmal { max-width: 840px; }
.held-schmal { max-width: 780px; }
.unsichtbar { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.sprung {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--weiss); color: var(--blau); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.sprung:focus { top: 12px; }

.vorschau-hinweis {
  background: #fff4d6; color: #5c3b00; font-size: 14px; font-weight: 700;
  padding: 8px var(--rand); text-align: center; border-bottom: 1px solid #f0d58a;
}
html[data-vorschau=""] .vorschau-hinweis, html[data-vorschau=""] .danke-vorschau { display: none; }
.danke-vorschau { margin-top: 12px !important; padding: 10px 14px; border-radius: 12px; background: #fff7d6; border: 1px solid #f0d77a; color: #5c4400; font-size: 14px !important; font-weight: 700; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 40;
  background: rgb(255 255 255 / .97);
  border-bottom: 1px solid rgb(0 45 103 / .08);
}
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) { .kopf { background: rgb(255 255 255 / .86); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); }}
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: block; flex: 0 0 auto; }
.logo img { height: 40px; width: auto; }
.kopf-nav { display: flex; align-items: center; gap: 24px; }
.kopf-link { font-weight: 700; font-size: 16px; color: var(--dunkel); text-decoration: none; padding: 10px 2px; }
.kopf-link:hover { color: var(--blau); text-decoration: underline; }

/* ---------- Knoepfe: Volksbank-Pille in Mittelblau, Pfeil im orangen Kreis ---------- */
.knopf {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 0 12px 0 26px; border-radius: 999px;
  background: linear-gradient(180deg, #0870BE 0%, var(--blau) 55%, var(--blau-tief) 100%);
  color: var(--weiss);
  font-weight: 700; font-size: 18px; line-height: 1.2; letter-spacing: 0; text-decoration: none; text-align: center;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 2px 6px rgb(0 45 103 / .18), 0 16px 32px -14px rgb(0 102 179 / .75);
  transition: transform .2s var(--weich), box-shadow .2s ease, filter .2s ease;
}
.knopf:hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 2px 6px rgb(0 45 103 / .2), 0 20px 38px -14px rgb(0 102 179 / .85); }
.knopf:active { transform: scale(.985); }
.knopf .pfeil {
  width: 36px; height: 36px; flex: 0 0 auto; padding: 8px; border-radius: 50%;
  background: var(--orange); color: var(--weiss);
  box-shadow: 0 4px 10px -4px rgb(180 60 0 / .7);
  transition: transform .2s var(--weich);
}
.knopf:hover .pfeil { transform: translateX(4px); }
.knopf-gross { width: 100%; }
.knopf-klein { min-height: 44px; padding: 0 22px; font-size: 16px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 8px 20px -10px rgb(0 102 179 / .7); }
.knopf-glanz::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .22) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: glanz 5.5s 1.6s ease-in-out infinite;
}
@keyframes glanz { 0% { transform: translateX(-120%); } 28%, 100% { transform: translateX(120%); } }
.knopf-hinweis { margin-top: 12px; font-size: 14px; color: var(--text-2); text-align: center; }
.schloss { display: inline-block; width: 14px; height: 14px; margin: 0 6px 0 0; vertical-align: -2px; opacity: .9; }
/* steht nach .knopf, sonst gewinnt dessen display */
.kopf-nav .nur-breit { display: none; }
/* auf dunkelblauen Flaechen: weisse Pille */
.rechner-ergebnis .knopf, .abschluss .knopf {
  background: var(--weiss); color: var(--dunkel);
  box-shadow: 0 2px 6px rgb(0 0 0 / .18), 0 18px 36px -16px rgb(0 0 0 / .55);
}
.rechner-ergebnis .knopf:hover, .abschluss .knopf:hover { filter: none; background: var(--hell-3); }
.abschluss .knopf-glanz::after { background: linear-gradient(105deg, transparent 35%, rgb(0 102 179 / .12) 50%, transparent 65%); }

.kopf-nav .kopf-link { display: none; }
button.knopf { border: 0; font-family: inherit; cursor: pointer; }
.augenbraue .pille-breit { display: none; }
.pfeil-runter, .pfeil-hoch { transition: transform .2s var(--weich); }
.knopf:hover .pfeil-runter { transform: translateY(3px); }
.knopf:hover .pfeil-hoch { transform: translateY(-3px); }

/* ---------- Flaechen: Held hellblau, Abschluss dunkelblau ---------- */
.held, .abschluss { position: relative; overflow: hidden; isolation: isolate; }
.held {
  color: var(--dunkel);
  background: linear-gradient(180deg, #EAF3FA 0%, var(--hell) 55%, #D6E7F3 100%);
}
.abschluss {
  color: var(--weiss);
  background: linear-gradient(172deg, var(--dunkel-2) 0%, var(--dunkel) 55%, #00224F 100%);
}
.deko { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora { position: absolute; border-radius: 50%; will-change: transform; }
.a1 {
  width: 150vw; height: 150vw; max-width: 1100px; max-height: 1100px; left: -60vw; top: -70vw;
  background: radial-gradient(closest-side, rgb(255 255 255 / .95), rgb(255 255 255 / 0));
  animation: drift-a 19s ease-in-out infinite alternate;
}
.a2 {
  width: 130vw; height: 130vw; max-width: 900px; max-height: 900px; right: -70vw; bottom: -55vw;
  background: radial-gradient(closest-side, rgb(0 102 179 / .22), rgb(0 102 179 / 0));
  animation: drift-b 23s ease-in-out infinite alternate;
}
.a3 {
  width: 80vw; height: 80vw; max-width: 560px; max-height: 560px; right: -30vw; top: -20vw;
  background: radial-gradient(closest-side, rgb(255 102 0 / .14), rgb(255 102 0 / 0));
  animation: drift-a 27s ease-in-out infinite alternate-reverse;
}
.abschluss .a1 { background: radial-gradient(closest-side, rgb(0 102 179 / .6), rgb(0 102 179 / 0)); }
.abschluss .a2 { background: radial-gradient(closest-side, rgb(0 140 230 / .3), rgb(0 140 230 / 0)); }
@keyframes drift-a { to { transform: translate3d(9%, 7%, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-10%, -6%, 0) scale(1.12); } }
.gitter {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(0 45 103 / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(0 45 103 / .06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 20%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 90% 70% at 70% 20%, #000 10%, transparent 70%);
}
.abschluss .gitter {
  background-image:
    linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
}

/* ---------- Held ---------- */
.held { padding: 24px 0 66px; }
.held-raster { display: grid; gap: 30px; }
.augenbraue { display: flex; flex-wrap: wrap; gap: 8px; }
.pille {
  display: inline-flex; align-items: center; gap: 9px; min-height: 32px; padding: 4px 14px 4px 12px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; letter-spacing: .01em;
  background: var(--weiss); border: 1px solid rgb(0 45 103 / .1); color: var(--dunkel);
  box-shadow: 0 6px 16px -10px rgb(0 45 103 / .45);
}
.puls { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: 0 0 auto; }
.puls::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--orange); opacity: 0; animation: puls 2.2s ease-out infinite; }
@keyframes puls { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

.held-titel { margin-top: 18px; font-weight: 700; color: var(--dunkel); }
.titel-vor { display: block; font-size: clamp(22px, 5.8vw, 32px); font-weight: 700; letter-spacing: -0.005em; color: var(--dunkel); }
.betrag {
  display: grid; grid-template-columns: auto auto; align-items: start; justify-content: start;
  width: max-content; max-width: 100%; margin-top: 10px;
  font-size: clamp(104px, 32vw, 196px); line-height: .82; font-weight: 700; letter-spacing: -0.035em;
  animation: betrag-ein 1s var(--weich) both;
}
@keyframes betrag-ein { from { transform: translateY(22px) scale(.96); } to { transform: none; } }
/* "bis zu" waagerecht ueber der Zahl: liest sich in einem Zug mit der Zeile darueber */
.betrag-bis {
  grid-column: 1 / -1; margin: 0 0 .1em .04em;
  font-size: clamp(24px, 6.4vw, 36px); line-height: 1.1; letter-spacing: 0; font-weight: 700; color: var(--orange-gross);
}
.betrag-zahl { padding-bottom: .05em; color: var(--blau); }
.betrag-einheit { margin: .05em 0 0 .06em; font-size: .5em; line-height: .9; letter-spacing: 0; color: var(--orange-gross); }
.titel-nach { display: block; margin-top: 10px; font-size: clamp(28px, 7.6vw, 48px); letter-spacing: -0.015em; line-height: 1.04; color: var(--dunkel); }
.plus-kind {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 7px 16px 7px 8px; border-radius: 999px;
  background: var(--weiss); border: 1px solid rgb(255 102 0 / .35); color: var(--dunkel); font-weight: 700; font-size: 17px;
  box-shadow: 0 8px 20px -14px rgb(180 60 0 / .55);
}
.plus-zeichen { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: var(--weiss); font-weight: 700; font-size: 19px; line-height: 1; }
.unterzeile { margin-top: 16px; font-size: 17.5px; color: var(--text-2); max-width: 34em; }
.held-aktion { margin-top: 22px; }
.zweit-link { display: block; margin-top: 14px; text-align: center; font-weight: 700; font-size: 16.5px; color: var(--blau); }

.ein { animation: hoch .8s var(--weich) both; animation-delay: calc(var(--v, 0) * 90ms + 120ms); }
@keyframes hoch { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Leitfaden als Mappe */
.mappe-buehne { display: grid; place-items: center; padding: 8px 0 4px; }
.mappe { position: relative; width: min(64vw, 280px); aspect-ratio: 720 / 1019; }
.blatt { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 6px; background: #fff; box-shadow: 0 30px 60px -26px rgb(0 45 103 / .55), 0 2px 8px rgb(0 45 103 / .16); }
.blatt-hinten-links { transform: rotate(-9deg) translate(-26%, 6%) scale(.86); }
.blatt-hinten-rechts { transform: rotate(8deg) translate(26%, 4%) scale(.86); }
.blatt-vorne { transform: rotate(-1.5deg); animation: schweben 7s ease-in-out infinite alternate; }
@keyframes schweben { to { transform: rotate(-.5deg) translateY(-8px); } }
.siegel {
  position: absolute; right: -14px; top: -14px; width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; transform: rotate(12deg);
  font-size: 12px; font-weight: 700; line-height: 1.15; letter-spacing: .02em; color: #fff;
  background: radial-gradient(circle at 30% 25%, #FF8126, #E85400 72%);
  box-shadow: 0 12px 24px -10px rgb(160 50 0 / .6), inset 0 1px 0 rgb(255 255 255 / .35);
}
.siegel strong { display: block; font-size: 28px; line-height: 1; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Zahlenleiste ---------- */
.zahlen { position: relative; z-index: 2; margin-top: -34px; }
.zahlen-liste {
  list-style: none; margin: 0; padding: 6px; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 24px; box-shadow: var(--schatten-karte);
}
.zahlen-liste li { padding: 14px 12px; display: grid; gap: 2px; align-content: start; }
.zahlen-liste li:nth-child(odd) { border-right: 1px solid var(--linie); }
.zahlen-liste li:nth-child(-n+2) { border-bottom: 1px solid var(--linie); }
.zahlen-liste strong { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--blau); line-height: 1.1; }
.zahlen-liste span { font-size: 14.5px; line-height: 1.35; color: var(--text-2); }

/* ---------- Helle Abschnitte ---------- */
.abschnitt { padding: 64px 0; }
.abschnitt h2 { font-size: clamp(31px, 8vw, 52px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.04; color: var(--dunkel); }
.einleitung { margin-top: 14px; font-size: 18.5px; color: var(--text-2); max-width: 34em; }

/* ---------- Rechner ---------- */
.rechner-abschnitt { padding-top: 56px; }
.rechner { display: grid; gap: 16px; margin-top: 28px; }
.rechner-eingaben { padding: 4px 18px; border-radius: 24px; background: var(--weiss); border: 1px solid var(--linie); box-shadow: var(--schatten-karte); }
.feld { margin: 0; padding: 18px 0; border: 0; min-width: 0; }
.feld + .feld { border-top: 1px solid var(--linie); }
.feld-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.feld-titel { display: block; padding: 0; font-size: 17.5px; font-weight: 700; color: var(--dunkel); line-height: 1.35; }
legend.feld-titel { float: left; width: 100%; margin-bottom: 12px; }
legend.feld-titel + * { clear: both; }
.feld-wert { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; color: var(--blau); white-space: nowrap; font-variant-numeric: tabular-nums; }
.feld-hinweis { margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: var(--text-2); }

.regler { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 36px; margin: 8px 0 0; background: transparent; cursor: pointer; --anteil: 47.4%; }
.regler::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--blau) 0 var(--anteil), var(--hell) var(--anteil) 100%); }
.regler::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: #fff; border: 7px solid var(--orange); box-shadow: 0 4px 12px rgb(0 45 103 / .3); }
.regler::-moz-range-track { height: 8px; border-radius: 99px; background: var(--hell); }
.regler::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--blau); }
.regler::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 7px solid var(--orange); box-shadow: 0 4px 12px rgb(0 45 103 / .3); }
.regler:focus-visible { outline: none; }
.regler:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgb(255 102 0 / .35); }
.regler:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgb(255 102 0 / .35); }

.chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.chip {
  min-height: 42px; padding: 0 4px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font: inherit; font-size: 16px; font-weight: 700; color: var(--dunkel);
  background: var(--weiss); border: 1.5px solid var(--rahmen-feld); transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--blau); }
.chip[aria-pressed="true"] { background: var(--blau); border-color: var(--blau); color: #fff; }

.zaehler { display: inline-flex; align-items: center; border: 1.5px solid var(--rahmen-feld); border-radius: 999px; overflow: hidden; background: #fff; }
.zaehler-knopf { width: 56px; height: 50px; border: 0; background: var(--hell-3); color: var(--blau); font: inherit; font-size: 26px; font-weight: 700; cursor: pointer; }
.zaehler-knopf:hover { background: var(--hell); }
.zaehler-wert { min-width: 60px; text-align: center; font-size: 23px; font-weight: 700; color: var(--dunkel); font-variant-numeric: tabular-nums; }

.wahl { position: relative; display: grid; gap: 8px; }
.wahl-2 { grid-template-columns: 1fr 1fr; }
.wahl-5 { grid-template-columns: 1.7fr repeat(4, 1fr); }
.wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.wahl label {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 6px; text-align: center;
  border: 1.5px solid var(--rahmen-feld); border-radius: 999px; background: #fff; cursor: pointer;
  font-size: 16px; font-weight: 700; color: var(--dunkel); white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.wahl label:hover { border-color: var(--blau); }
.wahl input:checked + label { background: var(--blau); border-color: var(--blau); color: #fff; }
.wahl input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }

.rechner-ergebnis {
  position: relative; overflow: hidden; isolation: isolate; align-self: start;
  padding: 24px 20px 22px; border-radius: 24px; color: #fff;
  background: radial-gradient(90% 70% at 100% 0%, rgb(255 102 0 / .2), transparent 60%), radial-gradient(80% 60% at 0% 100%, rgb(0 102 179 / .55), transparent 70%), linear-gradient(160deg, var(--dunkel-2), var(--dunkel) 60%, #00224F);
  box-shadow: 0 30px 60px -30px rgb(0 45 103 / .85);
}
.ergebnis-label { font-size: 18px; font-weight: 700; color: var(--hell-2); }
.ergebnis-zahl { margin-top: 6px; font-size: clamp(70px, 21vw, 104px); font-weight: 700; letter-spacing: -0.03em; line-height: .95; font-variant-numeric: tabular-nums; }
.ergebnis-zahl #r-summe { display: inline-block; }
.ergebnis-zahl .hops { animation: hops .45s var(--weich); }
@keyframes hops { 0% { transform: scale(.94); opacity: .6; } 100% { transform: none; opacity: 1; } }
.ergebnis-euro { font-size: .55em; color: var(--orange); letter-spacing: 0; }
.ergebnis-quote { margin-top: 8px; font-size: 17px; color: rgb(255 255 255 / .9); }
.ergebnis-teile { margin: 18px 0 0; }
.ergebnis-teile div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgb(255 255 255 / .14); font-size: 16px; }
.ergebnis-teile dt { color: rgb(255 255 255 / .82); }
.ergebnis-teile dd { margin: 0; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ergebnis-hinweis { margin: 12px 0 18px; font-size: 15px; line-height: 1.5; color: rgb(255 255 255 / .86); }
.rechner-ergebnis .knopf { font-size: 17px; }
.rechner-fussnote { margin-top: 16px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); max-width: 62em; }
.ohne-js { display: none; margin-top: 24px; padding: 18px 20px; border-radius: 18px; background: var(--hell-3); }
html:not(.js) .ohne-js { display: block; }
html:not(.js) .rechner, html:not(.js) .rechner-fussnote { display: none; }

/* ---------- Anfordern ---------- */
.anfordern { background: var(--hell-3); }
.anfordern-raster { display: grid; gap: 24px; grid-template-areas: "kopf" "form" "liste"; }
.anfordern-kopf { grid-area: kopf; }
.anfordern-liste { grid-area: liste; }
.formkarte { grid-area: form; }
.anfordern .haken-liste { margin-top: 4px; }
.mini-mappe { display: none; }
.haken-liste { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.haken-liste li { position: relative; padding-left: 38px; font-size: 17.5px; line-height: 1.42; color: var(--text); }
.haken-liste li::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--blau) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.formkarte { position: relative; padding: 22px 16px 20px; border-radius: 24px; background: var(--weiss); border: 1px solid var(--linie); box-shadow: 0 1px 2px rgb(0 45 103 / .05), 0 30px 60px -30px rgb(0 45 103 / .38); }
.formkarte::before { content: ""; position: absolute; left: 24px; top: -1px; width: 56px; height: 4px; border-radius: 0 0 4px 4px; background: var(--orange); }
.formkarte-titel { font-size: 25px; font-weight: 700; letter-spacing: -0.01em; color: var(--dunkel); }
.formkarte-intro { margin-top: 4px; font-size: 16.5px; color: var(--text-2); }
.formfeld { margin-top: 16px; }
.formfeld label { display: block; margin-bottom: 6px; font-size: 15.5px; font-weight: 700; color: var(--dunkel); }
.formfeld input {
  display: block; width: 100%; height: 54px; padding: 0 16px; border-radius: 12px;
  border: 1.5px solid var(--rahmen-feld); background: #fff; color: var(--text);
  font: inherit; font-size: 17.5px; transition: border-color .15s ease, box-shadow .15s ease;
}
.formfeld input:hover { border-color: #8FA6C2; }
.formfeld input:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 4px rgb(0 102 179 / .18); }
.formfeld input[aria-invalid="true"], .haken input[aria-invalid="true"] ~ label { border-color: #c62828; }
.formfeld input[aria-invalid="true"] { box-shadow: 0 0 0 3px rgb(198 40 40 / .12); }
.formfehler { margin-top: 6px; font-size: 14.5px; font-weight: 700; color: #b3261e; }
.formfehler[hidden] { display: none; }
.honig { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.haken { position: relative; margin-top: 12px; }
.haken input { position: absolute; left: 15px; top: 16px; width: 22px; height: 22px; margin: 0; accent-color: var(--blau); cursor: pointer; }
.haken label {
  display: block; padding: 13px 14px 13px 50px; border: 1.5px solid var(--linie); border-radius: 14px; background: #F8FBFE;
  font-size: 14.5px; line-height: 1.5; color: var(--text); cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.haken input:checked + label { border-color: #9CC3E3; background: var(--hell-3); }
.haken input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.haken .formfehler { padding-left: 4px; }

.knopf-formular { margin-top: 18px; min-height: 70px; gap: 14px; padding: 8px 18px; }
.knopf-formular .pfeil { display: none; }
.knopf-text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.knopf-zeile { font-size: 18.5px; font-weight: 700; }
.knopf-unterzeile { font-size: 14px; font-weight: 400; opacity: .92; }
.knopf[disabled] { cursor: progress; filter: saturate(.7) brightness(.95); }
.formstatus { margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--dunkel); }
.formstatus:empty { display: none; }
.formklein { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }

.danke { padding: 8px 2px 4px; text-align: center; }
.danke[hidden] { display: none; }
.danke:focus { outline: none; }
.danke-symbol { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #2b9a63, #1c6e46); box-shadow: 0 14px 30px -12px rgb(28 110 70 / .7); animation: auftauchen .6s var(--weich) both; }
.danke-symbol svg { width: 34px; height: 34px; }
@keyframes auftauchen { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.danke-titel { font-size: 27px; font-weight: 700; letter-spacing: -0.01em; color: var(--dunkel); }
.danke p { margin-top: 10px; font-size: 16.5px; color: var(--text); }
.danke-symbol-post { background: linear-gradient(145deg, #0870BE, var(--blau-tief)); box-shadow: 0 14px 30px -12px rgb(0 102 179 / .7); }
.danke-lead { max-width: 420px; margin-inline: auto; }
.danke-schritte { list-style: none; display: grid; gap: 8px; max-width: 420px; margin: 18px auto 0; padding: 0; text-align: left; counter-reset: none; }
.danke-schritte li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--hell-3); border: 1px solid #D6E4F0; }
.schritt-nr { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--dunkel); color: #fff; font-size: 15px; font-weight: 700; }
.schritt-text { min-width: 0; font-size: 15.5px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.schritt-text strong { display: block; font-size: 16.5px; color: var(--dunkel); }
.schritt-text b { font-weight: 700; color: var(--dunkel); }
.am-stueck { white-space: nowrap; }
.danke .danke-klein { max-width: 420px; margin-inline: auto; }
.danke-klein { margin-top: 14px !important; font-size: 15.5px !important; color: var(--text-2); }
.danke-tipp { margin-top: 18px !important; padding: 14px 16px; border-radius: 14px; background: var(--orange-flaeche); border: 1px solid #FBCFB3; text-align: left; font-size: 15.5px !important; }

/* ---------- Fuer wen ---------- */
.fuer-wen { background: var(--weiss); }
.karten { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.karte { padding: 22px 20px 20px; border-radius: 22px; background: var(--hell-3); border: 1px solid #D6E4F0; }
.karte-symbol { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #0870BE, var(--dunkel)); box-shadow: 0 10px 20px -10px rgb(0 45 103 / .8); }
.karte-symbol svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.karte h3 { margin-top: 16px; font-size: 22px; font-weight: 700; color: var(--dunkel); }
.karte p { margin-top: 8px; font-size: 16.5px; line-height: 1.52; color: var(--text-2); }
.karte .karte-seite { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px; background: var(--weiss); border: 1px solid #C9DDEE; color: var(--blau); font-size: 14px; font-weight: 700; }

/* ---------- Fragen ---------- */
.fragen-abschnitt { background: var(--hell-3); }
.fragen { margin-top: 28px; display: grid; gap: 10px; }
.fragen details { background: var(--weiss); border: 1px solid var(--linie); border-radius: 18px; transition: box-shadow .25s ease, border-color .25s ease; }
.fragen details[open] { border-color: #C9DDEE; box-shadow: var(--schatten-karte); }
.fragen summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 62px 18px 20px; font-weight: 700; font-size: 18px; line-height: 1.38; color: var(--dunkel);
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::before, .fragen summary::after {
  content: ""; position: absolute; right: 30px; top: 50%; width: 14px; height: 2.5px; margin: -1px -7px 0 0; border-radius: 2px;
  background: var(--orange); transition: transform .3s var(--weich);
}
.fragen summary::after { transform: rotate(90deg); }
.fragen details[open] summary::after { transform: rotate(0deg); }
.fragen summary:hover { color: var(--blau); }
.antwort { padding: 0 20px 18px; }
.antwort p { color: var(--text-2); font-size: 17px; }
.antwort p + p { margin-top: 10px; }
.fragen details::details-content { block-size: 0; overflow-y: clip; transition: block-size .35s var(--weich), content-visibility .35s allow-discrete; }
.fragen details[open]::details-content { block-size: auto; }

/* ---------- Abschluss ---------- */
.abschluss { padding: 76px 0 80px; text-align: center; }
.abschluss-kicker { font-size: 19px; font-weight: 700; color: #FFB27A; }
.abschluss h2 { margin-top: 12px; font-size: clamp(31px, 8vw, 52px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.04; }
.abschluss-text { margin: 16px auto 0; max-width: 32em; font-size: 18.5px; color: rgb(255 255 255 / .88); }
.abschluss .held-aktion { max-width: 440px; margin: 28px auto 0; }

/* ---------- Fuss ---------- */
.fuss { background: var(--flaeche); border-top: 1px solid var(--linie); color: var(--text-2); padding: 36px 0 128px; font-size: 15.5px; }
.fuss-logo { height: 34px; width: auto; }
.fuss-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 16px; }
.fuss-nav a, .fuss-knopf { color: var(--text); padding: 6px 0; }
.fuss-knopf { background: none; border: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fuss-knopf[hidden] { display: none; }
.fuss-klein { margin-top: 16px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); max-width: 70em; }

/* ---------- Haftleiste (nur schmal) ---------- */
.haftleiste {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgb(255 255 255 / .97); border: 1px solid rgb(0 45 103 / .1);
  box-shadow: 0 18px 40px -16px rgb(0 45 103 / .5), 0 2px 6px rgb(0 45 103 / .08);
  transform: translateY(150%); visibility: hidden; pointer-events: none;
  transition: transform .35s var(--weich), visibility 0s linear .35s;
}
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) { .haftleiste { background: rgb(255 255 255 / .88); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); }}
.haftleiste[data-sichtbar="ja"] { transform: none; visibility: visible; pointer-events: auto; transition: transform .35s var(--weich); }
.haftleiste-text { line-height: 1.2; min-width: 0; }
.haftleiste-text strong { display: block; font-size: 17.5px; font-weight: 700; color: var(--dunkel); white-space: nowrap; }
.haftleiste-text span { display: block; font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.haftleiste .knopf { flex: 0 0 auto; min-height: 50px; padding: 0 7px 0 18px; font-size: 17px; gap: 10px; }
.haftleiste .knopf .pfeil { width: 36px; height: 36px; }

/* ---------- Einwilligung ---------- */
.einwilligung {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 22px;
  box-shadow: 0 24px 60px -20px rgb(0 45 103 / .55);
  padding: 16px;
}
.einwilligung[hidden] { display: none; }
.einwilligung-innen { display: grid; gap: 12px; }
.einwilligung-text { font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.einwilligung-text p + p { margin-top: 6px; }
.einwilligung-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.knopf-wahl {
  min-height: 46px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  padding: 0 8px; white-space: nowrap;
  background: var(--weiss); color: var(--blau); border: 2px solid var(--blau);
  transition: background-color .2s ease;
}
.knopf-wahl:hover { background: var(--hell-3); }

/* ---------- Einblenden beim Scrollen (nur mit Skript, siehe av.js) ---------- */
[data-zeige] { transition: opacity .85s var(--weich), transform .85s var(--weich); }
.wartet { opacity: 0; transform: translateY(28px); }
.karten.wartet, .zahlen-liste.wartet { opacity: 1; transform: none; }
.karten > li, .zahlen-liste > li { transition: opacity .7s var(--weich), transform .7s var(--weich); }
.karten.wartet > li, .zahlen-liste.wartet > li { opacity: 0; transform: translateY(18px); }
.karten > li:nth-child(2), .zahlen-liste > li:nth-child(2) { transition-delay: .1s; }
.karten > li:nth-child(3), .zahlen-liste > li:nth-child(3) { transition-delay: .2s; }
.karten > li:nth-child(4), .zahlen-liste > li:nth-child(4) { transition-delay: .3s; }

/* ---------- sehr schmal ---------- */
@media (max-width: 359px) {
  :root { --rand: 16px; }
  .knopf { font-size: 16.5px; padding: 0 10px 0 18px; gap: 8px; }
  .knopf .pfeil { width: 32px; height: 32px; padding: 7px; }
  .knopf-zeile { font-size: 17.5px; }
  .pille { font-size: 13.5px; }
  .logo img { height: 36px; }
  .held { padding-top: 18px; }
  .betrag { font-size: 98px; }
  .wahl-5 { grid-template-columns: repeat(4, 1fr); }
  .wahl-5 label:first-of-type { grid-column: 1 / -1; }
  .zahlen-liste strong { font-size: 21px; }
  .rechner-eingaben { padding-inline: 14px; }
  .formkarte { padding-inline: 14px; }
  .haftleiste-text { overflow: hidden; }
  .haftleiste-text strong, .haftleiste-text span { overflow: hidden; text-overflow: ellipsis; }
  .haftleiste-text strong { font-size: 16px; }
  .haftleiste .knopf { padding: 0 6px 0 14px; }
}

/* ---------- ab 640 px ---------- */
@media (min-width: 640px) {
  :root { --rand: 32px; }
  .knopf { padding: 0 12px 0 30px; }
  .knopf-gross { width: auto; min-width: 360px; }
  .held-aktion { display: inline-block; }
  .zweit-link { text-align: left; }
  .augenbraue .pille-breit { display: inline-flex; }
  .knopf-formular { padding: 8px 12px 8px 30px; justify-content: space-between; }
  .knopf-formular .pfeil { display: block; }
  .knopf-formular .knopf-text { align-items: flex-start; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip { padding: 0 18px; }
  .abschluss .held-aktion { display: block; }
  .zahlen-liste { grid-template-columns: repeat(4, 1fr); padding: 8px; }
  .zahlen-liste li { padding: 16px 18px; border-bottom: 0 !important; border-right: 1px solid var(--linie); }
  .zahlen-liste li:last-child { border-right: 0; }
  .zahlen-liste strong { font-size: 28px; }
  .karten { grid-template-columns: 1fr 1fr; }
  .rechner-eingaben { padding: 8px 28px; }
  .rechner-ergebnis { padding: 30px 28px; }
  .rechner-ergebnis .knopf-gross { width: 100%; min-width: 0; }
  .formkarte { padding: 30px 30px 26px; }
  .formkarte::before { left: 30px; }
  .knopf-formular { width: 100%; }
  .einwilligung { left: 24px; right: auto; bottom: 24px; width: 480px; padding: 20px; }
  .einwilligung-text { font-size: 14px; }
  .haftleiste { left: 50%; right: auto; width: 520px; margin-left: -260px; }
}

/* ---------- ab 960 px ---------- */
@media (min-width: 960px) {
  .kopf-innen { min-height: 78px; }
  .logo img { height: 44px; }
  .kopf-nav .kopf-link { display: inline; }
  .kopf-nav .nur-breit { display: inline-flex; }
  .haftleiste { display: none; }
  .fuss { padding-bottom: 48px; }
  .fuss .rahmen { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 40px; }
  .fuss-nav { margin-top: 0; justify-content: flex-end; }
  .fuss-klein { grid-column: 1 / -1; }

  .held { padding: 72px 0 112px; }
  .held-raster { grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); gap: 40px 64px; align-items: center; }
  .unterzeile { font-size: 19.5px; }
  .held-aktion { margin-top: 30px; }
  .mappe { width: 360px; }
  .siegel { width: 106px; height: 106px; right: -26px; top: -22px; font-size: 13.5px; }
  .siegel strong { font-size: 34px; }
  .zahlen { margin-top: -52px; }

  .abschnitt { padding: 104px 0; }
  .rechner-abschnitt { padding-top: 96px; }
  .rechner { grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 24px; margin-top: 40px; }
  .rechner-ergebnis { position: sticky; top: 100px; }
  .anfordern-raster { grid-template-columns: minmax(0, 1fr) minmax(420px, 500px); grid-template-rows: auto 1fr; grid-template-areas: "kopf form" "liste form"; gap: 20px 64px; align-items: start; }
  .anfordern-raster > .formkarte { grid-row: 1 / span 2; }
  .anfordern .haken-liste { margin-top: 0; }
  .mini-mappe { display: flex; align-items: center; gap: 20px; margin: 36px 0 0; padding: 18px 22px 18px 18px; border-radius: 20px; background: var(--weiss); border: 1px solid var(--linie); max-width: 520px; }
  .mini-mappe img { width: 84px; height: auto; border-radius: 4px; transform: rotate(-3deg); box-shadow: 0 14px 28px -12px rgb(0 45 103 / .5); }
  .mini-mappe figcaption { display: grid; gap: 4px; font-size: 15px; color: var(--text-2); }
  .mini-mappe strong { font-size: 18px; color: var(--dunkel); }
  .karten { gap: 20px; }
  .karte { padding: 28px 28px 26px; }
  .abschluss { padding: 112px 0 116px; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  .ein, .betrag, .aurora, .puls::after, .blatt-vorne, .danke-symbol, .ergebnis-zahl .hops { animation: none !important; }
  .knopf-glanz::after { display: none; }
  .knopf, .knopf .pfeil, .haftleiste, .haftleiste[data-sichtbar="ja"], [data-zeige], .karten > li, .zahlen-liste > li,
  .fragen summary::before, .fragen summary::after, .chip, .wahl label, .formfeld input, .haken label { transition: none !important; }
  .fragen details::details-content { transition: none; }
  .knopf:active { transform: none; }
}

/* optionales Telefonfeld */
.formfeld label .optional { font-weight: 400; color: var(--text-2); }

/* Knoepfe ohne Pfeil (Kopf, Hinweisseiten): Text mittig */
.knopf:not(:has(.pfeil)) { padding-inline: 26px; }
@media (min-width: 640px) { .knopf:not(:has(.pfeil)) { padding-inline: 30px; } }
