/*
  Rentenrechner Ben Hoffmann. CI nach strategie/brand-identity/brand-file.md:
  Licht aus dem Dunkel, keine Akzentfarbe, hervorgehoben wird mit Licht (Weiß).
  Fließtext Instrument Sans. Titelschrift Brunson ist noch nicht lizenziert,
  deshalb hier Anton als freier Platzhalter (SIL Open Font License), siehe README.

  Kopie aus projekte/2026-10-rentenrechner/ für die Website (30.10.2026). Geändert sind nur die Pfade
  der Schriften (dieselben Dateien wie in assets/schriften/ der Website, eine Kopie reicht) und der
  Rückweg zur Startseite im Kopf (Abschnitt „Einbindung in die Website“ am Ende). Seit 30.10.2026 außerdem am
  Ende: Block zum Zinseszins, Lückenbalken im selben Stil und das Raster für den Desktop ab 1024 Pixeln.
*/

@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/schriften/InstrumentSans-variabel.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Titel";
  src: url("../assets/schriften/Anton.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --tafel: #111214;
  --kachel: #24262B;
  --weiss: #F4F5F7;
  --gleis: #8A8F98;
  --linie: #2C2F35;
  --rahmen-aus: #3A3D43;
  --rand: 20px;
  --breite: 560px;
  --radius: 12px;
  --weich: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--tafel);
  /* ein Licht im dunklen Raum, neutral, ohne Farbe */
  background-image: radial-gradient(120% 55% at 50% -8%, rgba(244, 245, 247, 0.07), rgba(244, 245, 247, 0) 62%);
  background-repeat: no-repeat;
  color: var(--weiss);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
}

/* feines Korn */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E");
  z-index: 0;
}

a { color: var(--weiss); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--weiss);
  outline-offset: 3px;
}

.seite {
  position: relative;
  z-index: 1;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand) 48px;
}

/* ---------- Kopf ---------- */

.kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0 14px;
  border-bottom: 1px solid var(--linie);
}
.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gleis);
  margin: 0;
}

/* ---------- Titel ---------- */

.titel {
  font-family: "Titel", "Instrument Sans", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  word-spacing: normal;
  line-height: 1.04;
  font-size: clamp(38px, 11.5vw, 60px);
  margin: 34px 0 18px;
  text-wrap: balance;
}
h2 {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 8px 0 22px;
  text-wrap: balance;
  outline: none;
}
p { margin: 0 0 14px; }
.leise { color: var(--gleis); }
.klein { font-size: 14px; line-height: 1.5; }

.punkte {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: grid;
  gap: 10px;
}
.punkte li {
  position: relative;
  padding-left: 22px;
  color: var(--gleis);
  font-size: 16px;
}
.punkte li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--weiss);
}

/* ---------- Fortschritt ---------- */

.fortschritt { margin: 22px 0 6px; }
.fortschritt[hidden] { display: none; }
.fortschritt-zeile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
}
.fortschritt-balken {
  height: 4px;
  border-radius: 4px;
  background: var(--linie);
  overflow: hidden;
  margin-top: 8px;
}
.fortschritt-balken span {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--weiss);
  border-radius: 4px;
  transition: width 0.4s var(--weich);
}
.zurueck {
  border: 0;
  background: none;
  color: var(--weiss);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 0;
  cursor: pointer;
}
.zurueck[hidden] { visibility: hidden; display: inline-block; }

/* ---------- Schritte und Felder ---------- */

.schritt[hidden] { display: none; }
.schritt { animation: auftauchen 0.5s var(--weich) both; }

fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
legend, .feld-titel {
  display: block;
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 4px;
  padding: 0;
}
.hilfe {
  display: block;
  color: var(--gleis);
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 10px;
}
.feld { display: block; margin: 0 0 24px; }
.feld[hidden] { display: none; }

.eingabe {
  position: relative;
  display: flex;
  align-items: center;
}
.eingabe input {
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  color: var(--weiss);
  background: var(--tafel);
  border: 1.5px solid var(--rahmen-aus);
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: none;
}
.eingabe input::-webkit-outer-spin-button,
.eingabe input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.eingabe input::placeholder { color: var(--gleis); font-weight: 400; }
.eingabe input:focus { outline: none; border-color: var(--weiss); }
.eingabe .einheit {
  position: absolute;
  right: 16px;
  color: var(--gleis);
  font-size: 16px;
  pointer-events: none;
}
.eingabe.mit-einheit input { padding-right: 76px; }
.eingabe input[aria-invalid="true"] { border-color: var(--weiss); border-width: 2px; }

.fehler {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
}
.fehler:empty { display: none; }
.fehler::before { content: "Bitte prüfen: "; font-weight: 400; color: var(--gleis); }

/* Auswahl: beleuchtet heißt gewählt */
.wahl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wahl label { position: relative; display: block; }
.wahl input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.wahl span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 10px 14px;
  border: 1.5px solid var(--rahmen-aus);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.wahl input:checked + span {
  background: var(--weiss);
  color: var(--tafel);
  border-color: var(--weiss);
}
.wahl input:focus-visible + span { outline: 2px solid var(--weiss); outline-offset: 3px; }

details.aufklapp {
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
  margin: 0 0 24px;
}
details.aufklapp summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 28px 16px 0;
  font-weight: 600;
  position: relative;
}
details.aufklapp summary::-webkit-details-marker { display: none; }
details.aufklapp summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 22px;
  font-weight: 400;
}
details.aufklapp[open] summary::after { content: "\2212"; }
details.aufklapp .innen { padding: 0 0 8px; }

/* ---------- Knöpfe ---------- */

.knopf {
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 14px 20px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  color: var(--tafel);
  background: var(--weiss);
  border: 1.5px solid var(--weiss);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.knopf:active { transform: scale(0.985); }
.knopf[disabled] { opacity: 0.6; cursor: progress; }
.knopf.zweit {
  background: transparent;
  color: var(--weiss);
  border-color: var(--rahmen-aus);
}

/* ---------- Eintragen ---------- */

.offen {
  border-left: 2px solid var(--weiss);
  padding: 2px 0 2px 14px;
  margin: 0 0 24px;
}
.haken {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}
.haken input {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin: 1px 0 0;
  border: 1.5px solid var(--gleis);
  border-radius: 6px;
  background: var(--tafel);
  display: grid;
  place-content: center;
  cursor: pointer;
}
.haken input::after {
  content: "";
  width: 7px;
  height: 13px;
  border: solid var(--tafel);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
}
.haken input:checked { background: var(--weiss); border-color: var(--weiss); }
.haken input:checked::after { opacity: 1; }
.haken input[aria-invalid="true"] { border-color: var(--weiss); border-width: 2px; }
.haken .art {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gleis);
  margin-bottom: 2px;
}
.nw { white-space: nowrap; }
.haken + .fehler { margin: -8px 0 18px 40px; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Ergebnis ---------- */

.ergebnis-zahl {
  font-family: "Titel", "Instrument Sans", sans-serif;
  font-size: clamp(64px, 21vw, 104px);
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 10px 0 6px;
  font-variant-numeric: tabular-nums;
  animation: aufleuchten 1.1s var(--weich) both;
}
.ergebnis-zahl .waehrung {
  font-size: 0.42em;
  letter-spacing: 0.08em;
  margin-left: 0.18em;
}
.unterzeile { font-size: 18px; margin-bottom: 26px; }

.rechnung {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 30px;
  font-variant-numeric: tabular-nums;
}
.rechnung td { padding: 10px 0; border-top: 1px solid var(--linie); vertical-align: top; }
.rechnung td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.rechnung tr.summe td { border-top: 1.5px solid var(--weiss); font-weight: 700; }

.block { border-top: 1px solid var(--linie); padding-top: 26px; margin-top: 30px; }
.block h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gleis);
  margin: 0 0 12px;
}
.gross {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
  text-wrap: balance;
}

/* Licht an, Licht aus: was die Rente trägt, ist hell, die Lücke bleibt dunkel */
.balken {
  display: flex;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--rahmen-aus);
  margin: 6px 0 10px;
}
.balken .an { background: var(--weiss); transition: width 0.9s var(--weich); }
.balken .aus { flex: 1; background: var(--tafel); }
.balken-legende {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  margin-bottom: 18px;
}
.balken-legende span:last-child { text-align: right; color: var(--gleis); }

.zeitstrahl {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 8px 0 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.zeitstrahl .strich { height: 10px; border-radius: 5px; background: var(--weiss); }

.grundlage { font-size: 14px; line-height: 1.55; color: var(--gleis); }
.grundlage p { margin-bottom: 10px; }
.grundlage ul { margin: 0 0 12px; padding-left: 18px; }
.grundlage li { margin-bottom: 4px; }
.grundlage a { color: var(--gleis); }
.grundlage strong { color: var(--weiss); font-weight: 600; }

.hinweis-pflicht {
  font-size: 14px;
  color: var(--gleis);
  border-top: 1px solid var(--linie);
  padding-top: 14px;
  margin-top: 26px;
}

.entwicklung {
  margin-top: 34px;
  border: 1.5px dashed var(--rahmen-aus);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 14px;
}
.entwicklung pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--gleis);
  margin: 10px 0 0;
  max-height: 420px;
  overflow: auto;
}

.fuss {
  display: flex;
  gap: 22px;
  justify-content: center;
  padding: 28px 0 8px;
  margin-top: 40px;
  border-top: 1px solid var(--linie);
  font-size: 14px;
}
.fuss a { color: var(--gleis); }

.knopfreihe { display: grid; gap: 12px; margin-top: 28px; }

/* ---------- Bewegung ---------- */

@keyframes auftauchen {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes aufleuchten {
  from { opacity: 0; filter: blur(14px); }
  to { opacity: 1; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .schritt, .ergebnis-zahl { animation: none; }
  .fortschritt-balken span, .balken .an, .wahl span { transition: none; }
}

@media (min-width: 600px) {
  :root { --rand: 28px; }
  .titel { margin-top: 56px; }
}

/* ---------- Einbindung in die Website (30.10.2026) ---------- */
/* „Ben Hoffmann“ im Kopf führt zur Startseite, sieht aus wie bisher, Tippfläche 44 Pixel hoch. */
.kopf a.label {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -12px 0;
}
.kopf a.label:hover { color: var(--weiss); }

/* ---------- Was dein Geld an der Börse machen könnte (30.10.2026, nur Website, zinseszins.js) ---------- */
/* Vorbilder von Daven (Glaskarte, Punktraster, Pillen, schwebende Karte) in Bens CI: nur Weiß mit leichtem Leuchten
   und Grau. Glas heißt hier: Licht dahinter, wenig Tönung, Glanzkante oben, feine Kante, mehrschichtiger weicher Schatten. */
:root {
  --glas-grund: linear-gradient(180deg, rgba(244, 245, 247, 0.075) 0%, rgba(244, 245, 247, 0.03) 44%, rgba(244, 245, 247, 0.02) 100%);
  --glas-schatten:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.035),
    0 1px 1px rgba(0, 0, 0, 0.4),
    0 12px 32px rgba(0, 0, 0, 0.38),
    0 44px 96px rgba(0, 0, 0, 0.5);
  --text-auf-glas: #A4A9B1;
}
.zz-karte {
  position: relative;
  z-index: 1;
  margin: 28px 0 0;
  padding: 20px 18px 18px;
  border-radius: 24px;
  background: var(--glas-grund);
  /* Bewusst ohne backdrop-filter: Hinter der Karte liegt nur weiches Licht, und ein backdrop-filter hier würde die
     Unschärfe der schwebenden Karte darin abschneiden (Backdrop Root), die Linien schienen dort scharf durch. */
  box-shadow: var(--glas-schatten);
}
/* Feine Kante: Oben links fällt das Licht auf das Glas, unten rechts kommt es leise zurück */
.zz-karte::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(142deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.07) 28%, rgba(255, 255, 255, 0.02) 62%, rgba(255, 255, 255, 0.13));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
/* Das Licht hinter dem Glas: Ohne etwas dahinter gäbe es nichts, das durchscheint */
.zz-buehne { position: relative; }
.zz-buehne::before {
  content: "";
  position: absolute;
  inset: -6% -4% -8% 12%;
  pointer-events: none;
  background: radial-gradient(58% 56% at 64% 36%, rgba(244, 245, 247, 0.17), rgba(244, 245, 247, 0) 72%);
  filter: blur(26px);
}

.zz-regler { margin: 24px 0 18px; }
.zz-eingaben {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9.5rem;
  gap: 16px;
  align-items: center;
}
.zz-eingaben .eingabe input { min-height: 52px; padding-top: 10px; padding-bottom: 10px; }
.zz-eingaben .eingabe.mit-einheit input { padding-right: 64px; }
.zz-regler input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
.zz-regler input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(to right, var(--weiss) var(--anteil, 2.6%), rgba(244, 245, 247, 0.14) var(--anteil, 2.6%));
}
.zz-regler input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(244, 245, 247, 0.14); }
.zz-regler input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--weiss); }
.zz-regler input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.3), 0 2px 5px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease-out;
}
.zz-regler input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.08); }
.zz-regler input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.zz-regler input[type="range"]:focus { outline: none; }
.zz-regler input[type="range"]:focus-visible { outline: 2px solid var(--weiss); outline-offset: 3px; border-radius: 4px; }

.zz-karten-kopf { display: grid; gap: 12px; margin: 0 0 10px; }
.zz-titel { font-weight: 600; font-size: 17px; line-height: 1.35; letter-spacing: -0.005em; margin: 0 0 12px; text-wrap: balance; }
.zz-karten-kopf .zz-titel { margin: 0; }

/* Umschalter in Pillenform: Ein Licht wandert zur gewählten Variante */
.zz-umschalter {
  position: relative;
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(244, 245, 247, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 3px rgba(0, 0, 0, 0.35);
}
.zz-umschalter[hidden] { display: none; }
.zz-umschalter label { position: relative; z-index: 1; flex: 1 1 auto; display: block; cursor: pointer; }
.zz-umschalter label[hidden] { display: none; }
.zz-umschalter input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.zz-umschalter label span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-auf-glas);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.zz-umschalter input:checked + span { color: var(--tafel); }
.zz-umschalter input:focus-visible + span { outline: 2px solid var(--weiss); outline-offset: 2px; }
.zz-umschalter-licht {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: var(--b, 0);
  translate: var(--x, 0) 0;
  border-radius: 999px;
  background: var(--weiss);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 20px rgba(244, 245, 247, 0.24);
  transition: translate 0.34s cubic-bezier(0.22, 1, 0.36, 1), width 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.zz-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-auf-glas);
}
.zz-legende li { display: inline-flex; align-items: center; gap: 8px; }
.zz-werte { margin: 14px 0 0; flex-direction: column; gap: 8px; font-size: 15px; }
.zz-werte strong { color: var(--weiss); font-weight: 600; }
.zz-schluessel { display: inline-block; width: 16px; height: 2px; border-radius: 1px; flex: none; }
.zz-feld { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.zz-hell { background: var(--weiss); box-shadow: 0 0 8px rgba(244, 245, 247, 0.6); }
.zz-grau { background: var(--gleis); }

.zz-svg { position: relative; }
.zz-svg[hidden], .zz-karte[hidden] { display: none; }
.zz-svg svg { display: block; overflow: visible; font-family: inherit; }
.zz-verlauf svg { touch-action: pan-y; }
.zz-verlauf:focus { outline: none; }
.zz-verlauf:focus-visible { outline: 2px solid var(--weiss); outline-offset: 6px; border-radius: 8px; }
.zz-t { font-size: 13px; fill: var(--text-auf-glas); }
.zz-zahl { font-variant-numeric: tabular-nums; }
.zz-t-hell { fill: var(--weiss); font-weight: 600; }
.zz-wert { font-size: 15px; font-weight: 600; fill: #C9CCD2; font-variant-numeric: tabular-nums; }
.zz-wert.zz-t-hell { fill: var(--weiss); }
.zz-endwert { font-size: 14px; font-weight: 600; fill: #D4D6DB; font-variant-numeric: tabular-nums; }
.zz-endwert.zz-t-hell { fill: var(--weiss); }
.zz-rasterpunkt { fill: rgba(244, 245, 247, 0.13); }
.zz-gitter { stroke: rgba(244, 245, 247, 0.055); stroke-width: 1; shape-rendering: crispEdges; }
.zz-achse { stroke: rgba(244, 245, 247, 0.14); stroke-width: 1; shape-rendering: crispEdges; }
.zz-endlinie { stroke: rgba(244, 245, 247, 0.16); stroke-width: 1; shape-rendering: crispEdges; }
.zz-pille rect { fill: rgba(244, 245, 247, 0.055); stroke: rgba(255, 255, 255, 0.075); stroke-width: 1; }
.zz-endpille { fill: rgba(30, 32, 36, 0.82); stroke: rgba(255, 255, 255, 0.17); stroke-width: 1; }
.zz-endmarke-hell .zz-endpunkt { fill: var(--weiss); filter: drop-shadow(0 0 4px rgba(244, 245, 247, 0.9)); }
.zz-endmarke-grau .zz-endpunkt { fill: var(--gleis); }
.zz-linie { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.zz-linie-hell { stroke: var(--weiss); stroke-width: 2.5; }
.zz-linie-licht { stroke: var(--weiss); stroke-width: 7; stroke-opacity: 0.34; }
.zz-linie-grau { stroke: var(--gleis); }
.zz-punkt { stroke: #17181B; stroke-width: 2; }
.zz-punkt-hell { fill: var(--weiss); }
.zz-punkt-grau { fill: var(--gleis); }
.zz-punkt-schein { fill: rgba(244, 245, 247, 0.17); }
.zz-faden { stroke: rgba(244, 245, 247, 0.6); stroke-width: 1; }
.zz-spur { fill: rgba(244, 245, 247, 0.05); stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.zz-balken-hell { fill: var(--weiss); }
.zz-balken.zz-balken-hell { filter: drop-shadow(0 0 9px rgba(244, 245, 247, 0.3)); }
.zz-balken-grau { fill: var(--gleis); }
.zz-balken:hover { fill-opacity: 0.86; }

/* Schwebende Karte: kleineres, helleres Glas über der Grafik, Hauptwert groß wie im Vorbild */
.zz-tipp {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  min-width: 196px;
  padding: 12px 14px 11px;
  border-radius: 16px;
  pointer-events: none;
  translate: var(--x, 0) var(--y, 0);
  scale: 0.96;
  opacity: 0;
  visibility: hidden;
  background: linear-gradient(180deg, rgba(62, 64, 70, 0.5), rgba(36, 38, 43, 0.56));
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 16px 36px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  transition: opacity 0.16s ease, scale 0.2s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.16s;
}
.zz-tipp.zz-offen {
  opacity: 1;
  scale: 1;
  visibility: visible;
  transition: opacity 0.12s ease, scale 0.2s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}
.zz-tipp p { margin: 0; }
.zz-tipp-kopf { color: #C2C5CB; }
.zz-tipp-wert { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.18; }
.zz-tipp-unter { color: #C2C5CB; margin-bottom: 8px !important; }
.zz-tipp-zeile { display: flex; align-items: center; gap: 8px; padding-top: 3px; }
.zz-tipp-zeile strong { font-weight: 600; margin-left: auto; padding-left: 14px; }
.zz-tipp-name { color: #C2C5CB; }
/* Am Handy kompakt: Die Karte steht oben in der Grafik und lässt Linie und Punkt frei */
@media (max-width: 559px) {
  .zz-tipp {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    column-gap: 14px;
    min-width: 0;
    padding: 8px 12px 8px;
    border-radius: 13px;
    font-size: 13px;
    line-height: 1.35;
  }
  .zz-tipp-wert { font-size: 17px; letter-spacing: -0.01em; text-align: right; line-height: 1.2; }
  .zz-tipp-unter { display: none; }
  .zz-tipp-zeile { grid-column: 1 / -1; padding-top: 2px; }
}

#zz-warten-text { margin-top: 14px; }
#zz-warten-text p { margin-bottom: 10px; }
#zz-warten-text p:last-child { margin-bottom: 0; }
details.zz-tabelle-auf { margin-top: 30px; }
.zz-tabelle { margin: 0 0 8px; }
.zz-tabelle th {
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--gleis);
  padding: 0 0 8px 12px;
}
.zz-tabelle th:first-child, .zz-tabelle td:first-child { text-align: left; padding-left: 0; }
.zz-tabelle td { text-align: right; padding-left: 12px; white-space: nowrap; }
.zz-hinweis { margin-top: 6px; }

/* ---------- Lückenbalken im selben Stil (30.10.2026, nur Website) ---------- */
/* Licht an, Licht aus bleibt: Die Rente leuchtet, die Lücke bleibt dunkel */
.balken {
  height: 56px;
  padding: 5px;
  border: 0;
  border-radius: 16px;
  background:
    radial-gradient(rgba(244, 245, 247, 0.12) 0.85px, transparent 1.1px) 0 0 / 14px 14px,
    rgba(244, 245, 247, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.3);
}
.balken .an {
  border-radius: 11px;
  background: linear-gradient(180deg, #fff, #E4E6EA);
  box-shadow: 0 0 22px rgba(244, 245, 247, 0.32);
}
.balken .aus { background: transparent; }
.balken-legende { flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin: 12px 0 18px; font-size: 14px; }
.balken-legende span,
.balken-legende span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  text-align: left;
  color: var(--weiss);
  font-variant-numeric: tabular-nums;
  background: rgba(244, 245, 247, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.balken-legende span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--weiss);
  box-shadow: 0 0 8px rgba(244, 245, 247, 0.7);
}
.balken-legende span:last-child::before { background: var(--gleis); box-shadow: none; }

/* ---------- Schritt 4: Beispielrechnung vor dem Eintragen (18.11.2026, nur Website) ---------- */
/* Gleiche Bausteine wie das Ergebnis (Tabelle, Glaskarte, Lückenbalken), die große Zahl etwas kleiner als im echten Ergebnis */
.beispiel h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gleis);
  margin: 0 0 12px;
}
.bsp-oben { margin-top: 30px; }
.bsp-zahl { font-size: clamp(56px, 17vw, 88px); }
.bsp-licht { position: relative; }
.bsp-licht .bsp-karte { margin-top: 0; }
.bsp-licht::before {
  content: "";
  position: absolute;
  inset: -8% 0 -10% 10%;
  pointer-events: none;
  background: radial-gradient(56% 56% at 60% 36%, rgba(244, 245, 247, 0.14), rgba(244, 245, 247, 0) 72%);
  filter: blur(26px);
}
.bsp-karte { padding: 22px 20px 20px; }
.bsp-karte .gross { font-size: 24px; }
.bsp-karte .balken-legende { margin-bottom: 14px; }
.bsp-karte > :last-child { margin-bottom: 0; }
.bsp-schluss { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--linie); }
#bsp-hinweis { margin-top: 18px; }
.bsp-boerse { margin-top: 36px; }
.bsp-boerse .gross { margin-bottom: 0; }
.bsp-grafik { margin-top: 22px; }
/* Handy und Tablet (Daven, 18.11.2026: „zu voll“): nur Zahl, Tabelle, Lücke, Grafik und Knopf.
   Die Pillen unter dem Balken und die Zusatzsätze stehen nur am Desktop, die Werte zeigt die Grafik selbst. */
@media (max-width: 1023px) {
  .beispiel .bsp-zusatz, .bsp-karte .balken-legende { display: none; }
  .bsp-karte .balken { margin-bottom: 0; }
  .beispiel .rechnung td { padding: 8px 0; }
  .beispiel .unterzeile { margin-bottom: 18px; }
  .bsp-schluss { margin-top: 32px; padding-top: 24px; }
  .bsp-schluss .gross { margin-bottom: 18px; }
}

/* ---------- Startansicht als volle Seite (30.10.2026, nur Website) ---------- */
/* Daven: „Füll doch bitte einfach diese Seite wie jeder normale Mensch aus.“ Hero über den ganzen ersten Bildschirm,
   darunter Abschnitte in der Sprache der Website: Maße aus assets/gestaltung.css (.block, .label, .ueberschrift,
   .einleitung), Linie über die ganze Breite, 88 Pixel Abstand am Handy, 136 am Desktop. gestaltung.css selbst lässt sich
   hier nicht laden, weil der Rechner dieselben Klassennamen anders nutzt (.kopf, .knopf, .block). */
body { overflow-x: clip; }
.start-held, .start-block {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.start-innen {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
}

/* Hero: erster Bildschirm minus Kopfzeile, Inhalt mittig */
.start-held {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 55px);
  min-height: calc(100svh - 55px);
  padding: 0 0 40px;
}
.start-held::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(44% 58% at 74% 46%, rgba(244, 245, 247, 0.11), rgba(244, 245, 247, 0) 72%);
}
.start-text > .knopf { margin-top: 10px; }
.start-text > .punkte { margin: 24px 0 0; }
.start-text .punkte li { text-wrap: balance; }

/* Lebenskreislauf im Hero: Der Kreis dreht sich Station für Station, die aktive Station steht oben */
.lebenskreis { margin: 40px auto 0; width: 100%; max-width: 420px; }
.lk-ring { position: relative; aspect-ratio: 1 / 1; --schritt: 60deg; --emoji: clamp(44px, 13vw, 62px); }
.lk-ring::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 245, 247, 0.1), rgba(244, 245, 247, 0) 72%);
  animation: lk-atmen 7s ease-in-out infinite;
}
.lk-spur { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lk-spur circle { fill: none; }
.lk-linie { stroke: rgba(244, 245, 247, 0.12); stroke-width: 0.35; stroke-dasharray: 0.4 1.6; stroke-linecap: round; }
.lk-licht {
  stroke: #F4F5F7; stroke-width: 0.6; stroke-linecap: round; stroke-dasharray: 16 84;
  filter: drop-shadow(0 0 1.4px rgba(244, 245, 247, 0.9));
  animation: lk-lauf 14.4s linear infinite;
}
.lk-stationen {
  list-style: none; margin: 0; padding: 0; position: absolute; inset: 0;
  transform: rotate(calc(var(--dreh, 0) * -1 * var(--schritt)));
  transition: transform 1100ms cubic-bezier(0.32, 0.72, 0, 1);
}
.lk-stationen li {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  /* Abstand über die Breite des Kreises, die startseite.js setzt */
  transform: rotate(calc(var(--i) * var(--schritt))) translateY(calc(var(--lk-breite, 420px) * -0.38)); }
.lk-emoji {
  position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: var(--emoji); height: var(--emoji); margin: calc(var(--emoji) / -2) 0 0 calc(var(--emoji) / -2);
  font-size: calc(var(--emoji) * 0.8); line-height: 1; border-radius: 50%;
  transform: rotate(calc(var(--i) * var(--schritt) * -1 + var(--dreh, 0) * var(--schritt))) scale(0.82);
  opacity: 0.5; filter: saturate(0.75);
  transition: transform 1100ms cubic-bezier(0.32, 0.72, 0, 1), opacity 700ms ease, filter 700ms ease;
}
.lk-emoji img { display: block; width: 100%; height: 100%; }
.lk-stationen li.an .lk-emoji {
  opacity: 1; filter: saturate(1) drop-shadow(0 6px 18px rgba(244, 245, 247, 0.28));
  transform: rotate(calc(var(--i) * var(--schritt) * -1 + var(--dreh, 0) * var(--schritt))) scale(1.22);
}
.lk-mitte {
  position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  border-radius: 50%; background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.lk-gross { display: block; width: 44%; aspect-ratio: 1 / 1; font-size: clamp(40px, 12vw, 64px); line-height: 1.1; transition: opacity 320ms ease, transform 420ms cubic-bezier(0.32, 0.72, 0, 1); }
.lk-gross img { display: block; width: 100%; height: 100%; }
.lk-text { max-width: 86%; color: var(--weiss, #F4F5F7); font-size: 15px; font-weight: 600; line-height: 1.25; text-wrap: balance; transition: opacity 320ms ease; }
.lk-mitte.wechsel .lk-gross { opacity: 0; transform: scale(0.86); }
.lk-mitte.wechsel .lk-text { opacity: 0; }
@keyframes lk-lauf { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes lk-atmen { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .lk-licht, .lk-ring::before { animation: none; }
  .lk-stationen, .lk-emoji, .lk-gross, .lk-text { transition: none; }
}

/* Abschnitte */
.start-block { padding: 88px 0; border-top: 1px solid var(--linie); overflow: clip; }
.start-kopf { margin-bottom: 48px; }
.start-zeile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gleis);
}
.start-zeile::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
  background: var(--weiss);
  box-shadow: 0 0 12px rgba(244, 245, 247, 0.45);
}
h2.start-titel {
  margin: 0;
  font-size: clamp(32px, 3.2vw + 20px, 68px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.start-einleitung { margin: 22px 0 0; max-width: 40em; color: #B7BBC2; font-size: 19px; line-height: 1.5; }

/* So funktioniert's */
.start-schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.start-schritte li { padding-top: 20px; border-top: 1px solid var(--rahmen-aus); }
.start-nr {
  display: block;
  margin-bottom: 14px;
  font-family: "Titel", "Instrument Sans", sans-serif;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--gleis);
}
.start-schritte h3, .start-kachel h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.start-schritte p, .start-kachel p, .start-fakt p, .start-fragen p { color: #B7BBC2; font-size: 18px; line-height: 1.5; }
.start-schritte p { margin: 0; }

/* Das siehst du am Ende */
.start-kacheln { display: grid; gap: 16px; }
.start-kachel { margin: 0; padding: 24px 22px 24px; }
.start-kachel p { margin: 0; font-size: 17px; }
.start-zeichen { display: block; width: 44px; height: 44px; margin-bottom: 18px; overflow: visible; }
.start-zeichen rect, .start-zeichen circle { fill: var(--weiss); }
.start-zeichen .leise { fill: var(--gleis); }
.start-zeichen .spur { fill: rgba(244, 245, 247, 0.1); }
.start-zeichen .strich { fill: none; stroke: var(--weiss); stroke-width: 2.5; stroke-linecap: round; }

/* Warum sich das lohnt */
.start-fakten { display: grid; gap: 40px; }
.start-fakt { padding-top: 20px; border-top: 1px solid var(--rahmen-aus); }
.start-fakt p { margin: 0; }
p.start-fakt-zahl {
  margin: 0 0 14px;
  font-family: "Titel", "Instrument Sans", sans-serif;
  font-size: min(48px, calc((100vw - 2 * var(--rand)) / 7.2));
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--weiss);
}
p.start-quelle { margin-top: 14px; color: var(--gleis); font-size: 14px; line-height: 1.5; }
.start-quelle a { color: var(--gleis); }

/* Fragen und Antworten */
.start-fragen details.aufklapp { margin: 0; border-top: 0; }
.start-fragen details.aufklapp:first-child { border-top: 1px solid var(--linie); }
.start-fragen details.aufklapp summary { font-size: 19px; line-height: 1.35; padding: 20px 32px 20px 0; }
.start-fragen details.aufklapp summary::after { top: 17px; }
.start-fragen details.aufklapp .innen { padding: 0 32px 22px 0; }
.start-fragen p { margin: 0; }
.start-fragen a { color: var(--weiss); }

/* Zeilenfall: kein Wort allein in der letzten Zeile, auch in kurzen Sätzen und Fragen */
.start-block p, .start-text > p { text-wrap: pretty; }
.start-block p.start-quelle, .start-block p.start-pflicht, .start-fragen summary { text-wrap: balance; }

/* Schluss */
.start-schluss { --gleis: #A4A9B1; }
.start-schluss .start-kopf { margin-bottom: 28px; }
.start-pflicht { margin: 18px 0 0; color: var(--gleis); font-size: 14px; }

/* Atmosphäre: Maße aus assets/gestaltung.css, Verhalten aus assets/atmosphaere.js */
.atmo { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.atmo-partikel { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.atmo-rauch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 72%, transparent 100%);
}

/* Auftauchen aus der Unschärfe wie auf der Website */
@media (prefers-reduced-motion: no-preference) {
  .js .start-auf { opacity: 0; filter: blur(12px); transform: translateY(10px); }
  .js .start-auf.da {
    opacity: 1;
    filter: blur(0);
    transform: none;
    transition: opacity 0.9s var(--weich), filter 1.1s var(--weich), transform 1.1s var(--weich);
    transition-delay: var(--spaet, 0s);
  }
}

@media (min-width: 600px) {
  .start-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .start-block { padding: 136px 0; }
  .start-kopf { margin-bottom: 72px; }
  .start-zeile { font-size: 17px; }
  .start-einleitung { font-size: 21px; }
  .start-schritte p, .start-fakt p, .start-fragen p { font-size: 19px; }
  .start-nr { font-size: 56px; }
}

/* ---------- Desktop ab 1024 Pixeln (30.10.2026, Daven: „den kompletten Platz und die Breite benutzen“) ---------- */
/* Handy und Tablet bleiben einspaltig, die Hüllen aus seite.js wirken dort nicht. Fließtext behält eine lesbare Zeilenlänge. */
@media (min-width: 1024px) {
  :root { --breite: 1296px; --rand: 48px; }

  /* Hero: links Text, rechts die Vorschau auf das Ergebnis */
  .start-held-raster {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    column-gap: 64px;
    align-items: center;
  }
  .start-text > .titel { margin: 0 0 24px; font-size: clamp(60px, 6.5vw, 94px); line-height: 1.02; }
  .start-text > p { font-size: 18px; max-width: 34em; }
  .start-text > .knopf { max-width: 360px; }
  .lebenskreis { margin: 0; justify-self: center; max-width: min(100%, 76svh, 600px); }
  .lk-ring { --emoji: clamp(52px, 5vw, 74px); }
  .lk-text { font-size: 18px; }
  .start-zahl { font-size: 76px; }
  .start-schritte { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .start-fakten { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  p.start-fakt-zahl { font-size: clamp(36px, 3.4vw, 56px); }
  .start-fragen-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
  .start-fragen-raster .start-kopf { margin-bottom: 0; }
  .start-schluss .knopf { max-width: 360px; }

  /* Eingabeschritte: Felder in zwei Spalten, Inhalt bleibt fokussiert */
  .fortschritt { max-width: 920px; margin-left: auto; margin-right: auto; }
  .schritt[data-schritt="1"]:not([hidden]),
  .schritt[data-schritt="2"]:not([hidden]),
  .schritt[data-schritt="3"]:not([hidden]),
  .schritt[data-schritt="5"]:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    align-items: end;
  }
  .schritt[data-schritt] > h2,
  .schritt[data-schritt] > .offen,
  .schritt[data-schritt] > .aufklapp,
  .schritt[data-schritt] > .haken,
  .schritt[data-schritt] > .haken + .fehler,
  .schritt[data-schritt] > .klein { grid-column: 1 / -1; }
  .schritt[data-schritt] > .knopf { grid-column: 1; }
  .schritt[data-schritt] > h2 { font-size: 32px; margin-top: 18px; margin-bottom: 26px; }

  /* Ergebnis: links die Zahlen, rechts die Lücke auf Glas */
  .erg-oben {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 64px;
    align-items: start;
  }
  .erg-zahlen h2 { font-size: 30px; }
  .ergebnis-zahl { font-size: 128px; }
  .erg-zahlen .rechnung { margin-bottom: 0; }
  .erg-luecke { position: relative; }
  .erg-luecke::before {
    content: "";
    position: absolute;
    inset: -8% -6% -10% 10%;
    pointer-events: none;
    background: radial-gradient(56% 56% at 60% 36%, rgba(244, 245, 247, 0.14), rgba(244, 245, 247, 0) 72%);
    filter: blur(26px);
  }
  .erg-luecke > .block {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 30px 34px 30px;
    border-top: 0;
    border-radius: 28px;
    background: var(--glas-grund);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    backdrop-filter: blur(28px) saturate(140%);
    box-shadow: var(--glas-schatten);
  }
  .erg-luecke > .block::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(142deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.07) 28%, rgba(255, 255, 255, 0.02) 62%, rgba(255, 255, 255, 0.13));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
  }
  .erg-luecke .balken { height: 72px; border-radius: 20px; padding: 6px; }
  .erg-luecke .balken .an { border-radius: 14px; }
  .erg-luecke > .block p:last-child { margin-bottom: 0; }

  /* Vorsichtig gerechnet unter der Lücke, Text bündig mit dem Text in der Karte */
  .erg-rechts { margin-top: 30px; }
  .erg-rechts > .block { margin-top: 32px; padding: 0 34px; border-top: 0; }
  /* Früher aufhören: eigene Zeile, Text in zwei Spalten */
  .erg-frueher { margin-top: 44px; column-count: 2; column-gap: 64px; }
  .erg-frueher h3 { column-span: all; }
  .erg-frueher > * { break-inside: avoid; }

  /* Zinseszins über die volle Breite: links Regler und Kernaussage, rechts das große Diagramm, darunter die Balken */
  .zinseszins { margin-top: 48px; padding-top: 40px; }
  .zz-kopf {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 9fr);
    column-gap: 56px;
    align-items: start;
  }
  .zz-links p { max-width: 62ch; }
  .zz-links .gross { font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; margin-top: 8px; }
  .zz-haupt { margin-top: 0; padding: 26px 30px 24px; border-radius: 30px; }
  .zz-karten-kopf { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
  .zz-karten-kopf .zz-titel { font-size: 19px; text-wrap: wrap; }
  .zz-umschalter { flex: none; }
  .zz-umschalter label span { padding: 0 14px; font-size: 14px; }
  /* Beide Karten gleich hoch, die Sätze zum Warten stehen darunter nebeneinander */
  .zz-paar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    margin-top: 28px;
    align-items: stretch;
  }
  .zz-paar .zz-karte { margin-top: 0; padding: 26px 30px 26px; border-radius: 30px; display: flex; flex-direction: column; }
  .zz-paar .zz-karte:first-child { grid-column: 1; grid-row: 1; }
  .zz-paar .zz-karte:last-child { grid-column: 2; grid-row: 1; }
  .zz-paar .zz-titel { font-size: 20px; margin-bottom: 16px; }
  #zz-warten-text {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    margin-top: 20px;
  }
  #zz-warten-text p { margin: 0; padding: 0 30px; max-width: calc(62ch + 60px); }
  /* Aufteilung als große Kennzahlen */
  .zz-paar .zz-werte {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: auto;
    padding-top: 24px;
  }
  .zz-paar .zz-werte li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; }
  .zz-paar .zz-werte li > span:last-child { display: contents; }
  .zz-paar .zz-name { color: var(--text-auf-glas); font-size: 15px; }
  .zz-paar .zz-werte strong { grid-column: 1 / -1; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-top: 4px; }
  .zz-paar .zz-komma { display: none; }
  .zz-paar .zz-teil { grid-column: 1 / -1; color: var(--text-auf-glas); font-size: 15px; }
  details.zz-tabelle-auf { margin-top: 36px; }
  .zz-klein { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
  .zz-klein p { margin-top: 0; }

  /* Unterer Teil: zwei Spalten, Fließtext bleibt schmal */
  .erg-unten {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 64px;
    align-items: start;
  }
  .erg-unten > .block { margin-top: 44px; }
  .erg-unten > .aufklapp { margin-top: 44px !important; }
  .erg-unten > .hinweis-pflicht,
  .erg-unten > .knopfreihe,
  .erg-unten > .entwicklung { grid-column: 1 / -1; }
  .erg-unten > .knopfreihe .knopf { max-width: 360px; }

  /* Schritt 4, Beispielrechnung: so breit wie die Eingabeschritte, links die Zahlen, rechts die Lücke auf Glas */
  .schritt.beispiel:not([hidden]) { max-width: 920px; margin-left: auto; margin-right: auto; }
  .bsp-oben { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .bsp-zahl { font-size: 96px; }
  .bsp-zahlen .rechnung { margin-bottom: 0; }
  .bsp-licht .bsp-karte { margin-top: 0; }
  .bsp-karte { padding: 28px 30px 26px; border-radius: 28px; }
  .bsp-boerse { margin-top: 48px; }
  .bsp-boerse .zusatz, .bsp-boerse .bsp-zusatz { margin: 10px 0 0; max-width: 62ch; }
  .bsp-grafik { margin-top: 24px; }
  .bsp-schluss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .bsp-schluss > * { grid-column: 1 / -1; }
  .bsp-schluss > p:not(.gross) { max-width: 62ch; }
  .bsp-schluss > .knopf { grid-column: 1; }
}

/* Schmaler Desktop: Der Umschalter bekommt eine eigene Zeile, sonst bricht der Titel dreizeilig um */
@media (min-width: 1024px) and (max-width: 1199px) {
  .zz-karten-kopf { display: grid; gap: 12px; }
  .zz-karten-kopf .zz-titel { text-wrap: balance; }
  .zz-umschalter label span { padding: 0 8px; }
}

/* Sehr breite Bildschirme: dieselbe Breite wie die Website (1.320 Pixel) */
@media (min-width: 1600px) {
  :root { --breite: 1448px; --rand: 64px; }
  .start-text > .titel { font-size: clamp(94px, 5.6vw, 106px); }
  .start-text > p { font-size: 20px; }
  .start-zahl { font-size: 88px; }
}

/* Vier Kacheln nebeneinander erst, wenn der Text Platz hat */
@media (min-width: 1200px) {
  .start-kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Rücksicht ---------- */
@media (prefers-reduced-motion: reduce) {
  .zz-umschalter-licht, .zz-tipp, .zz-tipp.zz-offen, .zz-umschalter label span { transition: none; }
  .zz-tipp { scale: 1; }
}
@media (prefers-reduced-transparency: reduce) {
  .zz-karte, .zz-tipp, .erg-luecke > .block {
    background: #1B1C20;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  .zz-karte, .zz-tipp, .erg-luecke > .block { background: #17181B; box-shadow: inset 0 0 0 1px var(--weiss); }
  .zz-t, .zz-legende, .zz-tipp-name, .zz-tipp-kopf, .zz-tipp-unter { color: var(--weiss); fill: var(--weiss); }
}
