/* =========================================================================
   ALTERSVORSORGEDEPOT 2027
   -------------------------------------------------------------------------
   DREI FARBEN, DURCHGEHEND

     dunkelbraun   dein Geld
     orange        staatliche Zulagen
     helles Beige  modellhafte Wertentwicklung

   Diese Zuordnung gilt in jeder Zeile, in jedem Balken, im Donut und in
   der Flächengrafik. Bitte nicht durchbrechen — sie ist der Grund, warum
   man die Rechnung ohne Legende versteht.
   ========================================================================= */

:root {
  --avd-dein:  #3A2C22;
  --avd-staat: #FF6100;
  --avd-wert:  #FDE3D0;
}

/* Punkte für Legenden */
.avd-pkt-dein, .avd-pkt-staat, .avd-pkt-wert {
  width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex: none;
}
.avd-pkt-dein  { background: var(--avd-dein); }
.avd-pkt-staat { background: var(--avd-staat); }
.avd-pkt-wert  { background: var(--avd-wert); border: 1px solid rgba(90,60,35,0.16); }

/* =========================================================================
   HERO — links Text, rechts Bild
   ========================================================================= */

.avd-hero {
  background: var(--cream);
  padding: clamp(120px, 12vw, 190px) 0 clamp(40px, 4vw, 64px);
  overflow: hidden;
}
.avdh-raster {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.avdh-text h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.8vw, 3.2rem);
  line-height: 1.14;
  margin-bottom: 20px;
}
.avdh-text .lede { margin-bottom: 14px; max-width: 54ch; }
.avdh-text .cta-row { margin-top: 26px; }

.avd-gesetzeszeile {
  font-family: var(--sans);
  font-size: 0.82rem; color: var(--warm-grey); line-height: 1.65;
  margin: 18px 0 0; max-width: 58ch;
  padding-left: 14px; border-left: 2px solid var(--orange);
}

/* ---------- Faktenzeile ----------
   Ersetzt die früheren schwebenden Labels im Foto. Die sahen aus wie
   Buttons und weckten die Erwartung, dass man sie anklicken kann. Hier
   ist auf einen Blick klar: Das sind Fakten, keine Bedienelemente.
   Deshalb kein Schatten, kein Hover, keine Kapselform wie bei den
   Chips im Rechner. */

.avdh-fakten {
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: 6px clamp(14px, 2vw, 26px);
  margin: 20px 0 0;
  padding: 0; list-style: none;
}
.avdh-fakten li {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 0.88rem; color: #5F4E42; line-height: 1.4;
  white-space: nowrap;
}
/* Trennpunkt zwischen den Fakten statt Rahmen um jeden einzelnen */
.avdh-fakten li + li::before {
  content: "·";
  color: var(--orange);
  font-weight: 700;
  margin-right: clamp(6px, 1vw, 12px);
}
.avdh-fakten strong {
  font-family: var(--serif);
  font-size: 1.05rem; font-weight: 700;
  color: var(--orange-dark);
  letter-spacing: -0.01em;
}

/* ---------- Hero-Bild ----------
   Der Bildausschnitt ist nicht geraten. Er wurde gerendert und
   angesehen. Das Foto hat viel Wand und Lampe über dem Kopf. Bei
   object-position 50% 50% steht davon die Hälfte im Bild und Nicola
   sitzt klein im unteren Drittel.

   Geprüfte Werte:
     Desktop, Seitenverhältnis rund 1,17 : 45% 88%
     gestapelt, Seitenverhältnis rund 1,2 : 45% 90%

   Wird die Höhe des Containers geändert, ändert sich auch der richtige
   Fokuspunkt. Dann bitte neu ansehen und nicht schätzen. */

.avdh-bild { position: relative; }
.avdh-bild picture, .avdh-bild img {
  display: block;
  width: calc(100% + clamp(0px, 4vw, 70px));
  height: clamp(360px, 40vw, 520px);
  object-fit: cover;
  object-position: 45% 88%;
  border-radius: var(--r) 0 0 var(--r);
}

/* =========================================================================
   VIER KENNZAHLEN
   ========================================================================= */

.avd-zahlenband { background: var(--cream); padding: 0 0 clamp(28px, 3vw, 48px); }
.avd-zahlen {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--white); border-radius: var(--r);
  box-shadow: var(--shadow-soft); overflow: visible;
}
.avdz-kachel {
  padding: clamp(22px, 2.4vw, 32px) clamp(16px, 1.8vw, 24px);
  border-left: 1px solid rgba(90,60,35,0.10);
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none;
  position: relative;
}
.avdz-kachel:first-child { border-left: none; }
.avdz-kachel:first-child { border-radius: var(--r) 0 0 var(--r); }
.avdz-kachel:last-child  { border-radius: 0 var(--r) var(--r) 0; }

a.avdz-kachel { transition: background 0.25s ease; }
a.avdz-kachel:hover { background: var(--cream); }

.avdz-wert {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2rem);
  font-weight: 700; color: var(--charcoal); line-height: 1.05; letter-spacing: -0.02em;
}
.avdz-text {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 600;
  color: var(--charcoal); line-height: 1.45;
}
.avdz-fuss {
  font-family: var(--sans); font-size: 0.76rem; color: var(--warm-grey);
  line-height: 1.55; margin-top: auto; padding-top: 4px;
}

/* Die fachlich wichtigste Kachel bekommt etwas mehr Gewicht */
.avdz-kachel.ist-hervor { background: var(--peach); }
.avdz-kachel.ist-hervor .avdz-wert { color: var(--orange-dark); }
.avdz-kachel.ist-hervor .avdz-fuss { color: #6B5849; }

.avdz-kachel.ist-link .avdz-fuss { color: var(--orange-dark); font-weight: 600; }
.avdz-kachel.ist-link .btn-arrow { transition: transform 0.25s ease; display: inline-block; }
.avdz-kachel.ist-link:hover .btn-arrow { transform: translateX(3px); }

/* =========================================================================
   VORHER / NACHHER
   Drei Spalten: Thema, bisher, ab 2027.
   ========================================================================= */

.avd-vorhernachher {
  background: var(--white); border-radius: var(--r); overflow: hidden;
  margin-top: clamp(24px, 2.6vw, 36px);
}
.avd-vn-kopf {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
}
.avd-vn-kopf > span {
  padding: 13px clamp(16px, 2vw, 24px);
  font-family: var(--sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--warm-grey);
  background: var(--cream);
  border-bottom: 1px solid rgba(90,60,35,0.14);
}
.avd-vn-kopf > span:first-child { grid-column: 1; background: var(--cream); }
.avd-vn-kopf .avdvn-spalte:nth-of-type(1) { grid-column: 2; }
.avd-vn-kopf .avdvn-spalte.ist-neu {
  grid-column: 3; color: var(--orange-dark); background: var(--peach);
}

.avd-vn-zeile {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  /* Sanftes Einblenden, Zeile für Zeile */
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s ease var(--verzug, 0ms), transform 0.5s ease var(--verzug, 0ms);
}
.avd-vn-zeile.ist-da { opacity: 1; transform: none; }

.avd-vn-zeile > span {
  padding: 15px clamp(16px, 2vw, 24px);
  font-family: var(--sans); font-size: 0.9rem; color: #5F4E42; line-height: 1.5;
  border-bottom: 1px solid rgba(90,60,35,0.08);
}
.avdvn-thema {
  font-weight: 600; color: var(--charcoal);
  display: flex; align-items: flex-start; gap: 9px;
}
.avdvn-thema i { font-style: normal; font-size: 1.05rem; line-height: 1.35; }
.avdvn-alt { background: var(--white); }
.avdvn-neu {
  background: rgba(251,217,192,0.34);
  color: var(--charcoal); font-weight: 500;
  display: flex; flex-direction: column; gap: 7px;
}
.avd-vn-zeile:last-child > span { border-bottom: none; }

/* Die entscheidenden Sprünge */
.avd-vn-zeile.ist-wichtig .avdvn-neu { background: rgba(255,97,0,0.13); }
.avdvn-sprung {
  font-family: var(--sans); font-size: 0.78rem; color: var(--warm-grey);
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.avdvn-sprung b { font-weight: 600; color: #6B5849; }
.avdvn-sprung b.ist-neu {
  color: var(--white); background: var(--orange);
  padding: 3px 9px; border-radius: 100px; font-size: 0.76rem;
}

.avd-kastenwichtig {
  background: var(--white); border-left: 3px solid var(--orange);
  border-radius: 0 var(--r) var(--r) 0;
  padding: clamp(22px, 2.6vw, 32px);
  margin-top: clamp(20px, 2.2vw, 28px);
}
.avd-kastenwichtig strong {
  display: block; font-family: var(--serif); font-size: 1.15rem;
  color: var(--charcoal); margin-bottom: 10px;
}
.avd-kastenwichtig p {
  font-family: var(--sans); font-size: 0.94rem; color: #5F4E42;
  line-height: 1.7; margin: 0 0 18px; max-width: 66ch;
}

/* =========================================================================
   FÖRDERLEISTE
   ========================================================================= */

.avd-leiste { display: flex; gap: 10px; margin-top: clamp(20px, 2.4vw, 32px); }
.avdl-stufe { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.avdl-satz {
  font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
  font-weight: 700; color: var(--orange-dark); line-height: 1;
}
.avdl-balken { height: 16px; border-radius: 100px; }
.avdl-balken.ist-eins { background: var(--orange); }
.avdl-balken.ist-zwei { background: var(--orange-light); }
.avdl-bereich { font-family: var(--sans); font-size: 0.84rem; font-weight: 600; color: var(--charcoal); }
.avdl-max { font-family: var(--sans); font-size: 0.78rem; color: var(--warm-grey); }

.avd-leiste-beispiele {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px; margin-top: clamp(24px, 2.6vw, 34px);
}
.avd-beispiel {
  background: var(--cream); border-radius: var(--r-sm);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 4px;
}
.avdb-titel {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--warm-grey);
  margin-bottom: 6px;
}
.avdb-zeile { font-family: var(--sans); font-size: 0.9rem; color: #5F4E42; }
.avdb-zeile.ist-plus { color: var(--orange-dark); font-weight: 600; }
.avdb-summe {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 700;
  color: var(--charcoal); margin-top: 8px;
  padding-top: 8px; border-top: 1px solid rgba(90,60,35,0.14);
}

/* =========================================================================
   KINDER
   ========================================================================= */

.avd-kinderblock {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 54px); align-items: center;
}
.avd-kb-text h2 { font-size: clamp(1.4rem, 1.2rem + 1.1vw, 1.9rem); margin-bottom: 14px; }
.avd-kb-text p { font-family: var(--sans); font-size: 0.95rem; color: #5F4E42; line-height: 1.72; margin: 0 0 12px; }
.avd-klein { font-size: 0.8rem !important; color: var(--warm-grey) !important; }
.avd-kb-rechnung { background: var(--white); border-radius: var(--r); padding: clamp(22px, 2.6vw, 32px); }
.avdkb-titel {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-dark);
  margin-bottom: 16px;
}
.avdkb-zeile {
  display: flex; justify-content: space-between; gap: 14px; padding: 10px 0 10px 14px;
  font-family: var(--sans); font-size: 0.92rem; color: #5F4E42;
  border-bottom: 1px solid rgba(90,60,35,0.08);
  border-left: 3px solid transparent;
}
.avdkb-zeile.ist-dein  { border-left-color: var(--avd-dein); }
.avdkb-zeile.ist-staat { border-left-color: var(--avd-staat); color: var(--orange-dark); font-weight: 600; }
.avdkb-summe {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 14px 0 0; margin-top: 6px; border-top: 2px solid var(--orange);
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--charcoal);
}
.avdkb-zweikinder {
  font-family: var(--sans); font-size: 0.84rem; color: var(--warm-grey);
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(90,60,35,0.1);
}

/* =========================================================================
   HINWEISBOX
   ========================================================================= */

.avd-hinweisbox {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--cream); border-radius: var(--r);
  padding: clamp(20px, 2.4vw, 30px); max-width: 720px;
}
.avdhb-emoji { font-size: 1.5rem; line-height: 1; flex: none; }
.avd-hinweisbox strong { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--charcoal); margin-bottom: 6px; }
.avd-hinweisbox p { font-family: var(--sans); font-size: 0.9rem; color: #5F4E42; line-height: 1.7; margin: 0; }

/* =========================================================================
   FÖRDERRECHNER
   ========================================================================= */

.avd-rechner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3vw, 48px); align-items: start;
  background: var(--white); border-radius: var(--r);
  padding: clamp(24px, 3vw, 44px);
  margin-top: clamp(24px, 2.6vw, 36px);
}
.avd-eingabe .rl-feld { margin-bottom: 24px; }
.avd-eingabe, .avd-ergebnis { min-width: 0; }

.avd-zeitzeile {
  font-family: var(--sans); font-size: 0.82rem; color: var(--warm-grey);
  line-height: 1.6; margin: 8px 0 0;
}
.avd-zeitzeile strong { color: var(--charcoal); font-weight: 600; }
.avd-zeitzeile.ist-hinweis { color: #5F4E42; }

.avd-beitraghinweis {
  font-family: var(--sans); font-size: 0.82rem; color: var(--warm-grey);
  margin: 0 0 12px;
}

/* Regler und Zahlenfeld nebeneinander */
.avd-reglerzeile { display: flex; align-items: center; gap: 16px; }
.avd-reglerzeile input[type="range"] {
  flex: 1; min-width: 0; accent-color: var(--orange);
  /* Der sichtbare Regler bleibt schlank, die Greiffläche wird größer.
     44 Pixel Höhe sind auf dem Handy der Unterschied zwischen
     „geht sofort" und „drei Versuche". */
  height: 44px;
  cursor: pointer;
}
.avd-reglerzeile input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(58,44,34,0.28);
  cursor: grab;
}
.avd-reglerzeile input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--white);
  cursor: grab;
}
.avd-reglerfeld { flex: none; width: 108px; }

.avd-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.avd-chip {
  background: none; border: 1px solid rgba(90,60,35,0.16); border-radius: 100px;
  padding: 9px 16px; font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  color: #5F4E42; cursor: pointer; transition: all 0.2s ease; min-height: 38px;
}
.avd-chip:hover { border-color: var(--orange-light); }
.avd-chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--white); }

.avd-mehrlink {
  font-family: var(--sans); font-size: 0.8rem; color: var(--orange-dark);
  margin: 12px 0 0; display: inline-flex; align-items: center;
}

.avd-beitraghinweisbox {
  background: var(--peach); border-radius: var(--r-sm);
  padding: 15px 17px; margin-top: 12px;
}
.avd-beitraghinweisbox[hidden] { display: none; }
.avd-beitraghinweisbox strong { display: block; font-family: var(--sans); font-size: 0.85rem; color: var(--charcoal); margin-bottom: 6px; line-height: 1.5; }
.avd-beitraghinweisbox p { font-family: var(--sans); font-size: 0.82rem; color: #5F4E42; line-height: 1.65; margin: 0; }

/* ---------- Kinder erfassen ---------- */

.avd-kind {
  background: var(--cream); border-radius: var(--r-sm);
  padding: 14px 16px; margin-bottom: 10px;
}
.avdk-kopf { display: flex; align-items: center; gap: 10px; }
.avdk-kopf label { font-family: var(--sans); font-size: 0.78rem; color: var(--warm-grey); flex: none; }
.avdk-kopf input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--charcoal);
}
.avd-kind-weg {
  background: none; border: none; cursor: pointer; font-size: 1.2rem;
  color: var(--warm-grey); flex: none;
  /* 44 Pixel, damit man den Knopf auf dem Handy sicher trifft */
  width: 44px; height: 44px; min-height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.avd-kind-weg:hover { color: var(--charcoal); background: rgba(90,60,35,0.08); }

.avdk-dauer { border: none; padding: 12px 0 0; margin: 10px 0 0; border-top: 1px solid rgba(90,60,35,0.1); }
.avdk-dauer legend {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--warm-grey);
  padding: 0; margin-bottom: 8px; display: flex; align-items: center;
}
.avdk-dauer label {
  display: flex; align-items: flex-start; gap: 9px;
  font-family: var(--sans); font-size: 0.84rem; color: #5F4E42;
  line-height: 1.5; padding: 7px 0; cursor: pointer; min-height: 36px;
}
.avdk-dauer input[type="radio"] { accent-color: var(--orange); margin-top: 3px; flex: none; }
.avdk-fuss { font-family: var(--sans); font-size: 0.74rem; color: var(--warm-grey); line-height: 1.55; margin: 6px 0 0; }

.avd-kind-hinzu {
  background: none; border: 1px dashed rgba(90,60,35,0.28); border-radius: var(--r-sm);
  padding: 12px 16px; font-family: var(--sans); font-size: 0.84rem; font-weight: 600;
  color: var(--orange-dark); cursor: pointer; width: 100%; margin-top: 4px; min-height: 44px;
  transition: border-color 0.22s ease;
}
.avd-kind-hinzu:hover { border-color: var(--orange); }
.avd-leer { font-family: var(--sans); font-size: 0.82rem; color: var(--warm-grey); line-height: 1.6; margin: 0 0 10px; }

.avd-statushinweis { background: var(--peach); border-radius: var(--r-sm); padding: 16px 18px; margin: -8px 0 24px; }
.avd-statushinweis[hidden] { display: none; }
.avd-statushinweis strong { display: block; font-family: var(--sans); font-size: 0.86rem; color: var(--charcoal); margin-bottom: 6px; }
.avd-statushinweis p { font-family: var(--sans); font-size: 0.82rem; color: #5F4E42; line-height: 1.65; margin: 0; }
.avd-statushinweis a { color: var(--orange-dark); border-bottom: 1px solid rgba(217,80,10,0.35); }

/* =========================================================================
   ERGEBNIS DES JAHRES — dein Geld und Staatsgeld strikt getrennt
   ========================================================================= */

.avd-karte { border-radius: var(--r); padding: clamp(20px, 2.2vw, 26px); margin-bottom: 12px; }

.avd-karte.ist-dein {
  background: var(--avd-dein); color: var(--white);
  display: flex; flex-direction: column; gap: 4px;
}
.ist-dein .avdk-label {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.ist-dein .avdk-wert {
  font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
}
.ist-dein .avdk-sub { font-family: var(--sans); font-size: 0.82rem; color: rgba(255,255,255,0.7); }

.avd-karte.ist-staat { background: var(--peach); border: 1px solid rgba(255,97,0,0.24); }
.ist-staat .avdk-label {
  display: block;
  font-family: var(--sans); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-dark);
  margin-bottom: 12px;
}
.avdk-posten-zeile {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid rgba(217,80,10,0.14);
}
.avdkp-name {
  font-family: var(--sans); font-size: 0.9rem; color: #5F4E42;
  display: inline-flex; align-items: center;
}
.avdkp-wert {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 700; color: var(--orange-dark);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.avdk-summe {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  margin-top: 10px; padding-top: 12px; border-top: 2px solid var(--orange);
  font-family: var(--sans); font-size: 0.86rem; font-weight: 600; color: var(--charcoal);
}
.avdk-summe span:last-child {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--orange-dark);
}

/* Das große Ergebnis */
.avd-gross {
  background: var(--white); border: 2px solid var(--charcoal); border-radius: var(--r);
  padding: clamp(22px, 2.6vw, 32px); margin-top: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.avdg-label {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--warm-grey);
}
.avdg-wert {
  font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 2.4vw, 2.9rem);
  font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--charcoal);
}
.avdg-balken { display: flex; height: 14px; border-radius: 100px; overflow: hidden; margin-top: 4px; }
.avdgb-dein  { background: var(--avd-dein); }
.avdgb-staat { background: var(--avd-staat); }
.avdg-legende {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  font-family: var(--sans); font-size: 0.78rem; color: var(--warm-grey);
}
.avdg-legende span { display: inline-flex; align-items: center; gap: 7px; }

.avd-quote {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  background: var(--cream); border-radius: var(--r-sm);
  padding: 16px 20px; margin-top: 12px;
}
.avdq-label { font-family: var(--sans); font-size: 0.84rem; color: #5F4E42; display: inline-flex; align-items: center; }
.avdq-wert { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--orange-dark); white-space: nowrap; }

.avd-steuerhinweis { background: var(--white); border: 1px solid rgba(90,60,35,0.12); border-radius: var(--r-sm); padding: 16px 18px; margin-top: 12px; }
.avd-steuerhinweis strong { display: block; font-family: var(--sans); font-size: 0.86rem; color: var(--charcoal); margin-bottom: 6px; }
.avd-steuerhinweis p { font-family: var(--sans); font-size: 0.82rem; color: #5F4E42; line-height: 1.68; margin: 0; }
.avd-hinweis { font-family: var(--sans); font-size: 0.8rem; color: var(--warm-grey); line-height: 1.65; margin: 12px 0 0; }
.avd-warnung {
  background: var(--peach); border-left: 3px solid var(--orange);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 14px 16px; margin-bottom: 14px;
  font-family: var(--sans); font-size: 0.86rem; color: var(--charcoal); line-height: 1.6;
}

/* =========================================================================
   HOCHRECHNUNG BIS ZUR RENTE
   ========================================================================= */

.avd-uebergang {
  font-family: var(--serif-lesbar); font-style: italic;
  font-size: clamp(1.05rem, 0.98rem + 0.6vw, 1.35rem);
  color: var(--charcoal); line-height: 1.55;
  max-width: 46ch; margin: 0 0 clamp(28px, 3vw, 44px);
  padding-left: 18px; border-left: 3px solid var(--orange);
}

.avd-warum {
  background: var(--cream); border-radius: var(--r-sm);
  padding: 0; margin: 0 0 clamp(24px, 2.6vw, 34px); max-width: 720px;
}
.avd-warum summary {
  padding: 15px 20px; cursor: pointer; list-style: none; min-height: 44px;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 600; color: var(--charcoal);
  display: flex; align-items: center; gap: 8px;
}
.avd-warum summary::-webkit-details-marker { display: none; }
.avd-warum summary::after { content: "+"; margin-left: auto; color: var(--orange); font-size: 1.2rem; }
.avd-warum[open] summary::after { content: "−"; }
.avd-warum p { font-family: var(--sans); font-size: 0.88rem; color: #5F4E42; line-height: 1.72; margin: 0 0 10px; padding: 0 20px; max-width: 70ch; }
.avd-warum p:last-child { padding-bottom: 18px; }
.avd-warum a { color: var(--orange-dark); border-bottom: 1px solid rgba(217,80,10,0.35); }

.avd-lf-drei {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}
.avd-lfk {
  border-radius: var(--r); padding: clamp(20px, 2.2vw, 28px);
  display: flex; flex-direction: column; gap: 5px;
}
.avd-lfk.ist-dein  { background: var(--avd-dein); color: var(--white); }
.avd-lfk.ist-staat { background: var(--orange); color: var(--white); }
.avd-lfk.ist-wert  { background: var(--avd-wert); color: var(--charcoal); border: 1px solid rgba(90,60,35,0.12); }

.avdlfk-label {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; opacity: 0.78;
}
.avdlfk-wert {
  font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
}
.avdlfk-sub { font-family: var(--sans); font-size: 0.78rem; opacity: 0.8; line-height: 1.5; }

.avd-lf-gross {
  background: var(--white); border: 2px solid var(--orange); border-radius: var(--r);
  padding: clamp(24px, 3vw, 40px); margin-top: clamp(12px, 1.6vw, 18px);
  display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center;
}
.avdlg-label {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-dark);
}
.avdlg-wert {
  font-family: var(--serif); font-size: clamp(2.2rem, 1.6rem + 3.2vw, 3.6rem);
  font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--charcoal);
}
.avdlg-sub { font-family: var(--sans); font-size: 0.86rem; color: var(--warm-grey); }

.avd-lf-fuss {
  font-family: var(--sans); font-size: 0.78rem; color: var(--warm-grey);
  line-height: 1.65; margin: 14px 0 0; max-width: 70ch;
}

/* ---------- Grafiken ---------- */

.avd-grafiken {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(22px, 3vw, 44px); align-items: start;
  margin-top: clamp(30px, 3.4vw, 50px);
}
.avd-grafiken h4 {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
  color: var(--charcoal); margin: 0 0 6px;
}

.avd-donutwrap { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.avd-donut { width: clamp(150px, 20vw, 200px); height: auto; display: block; margin: 0 auto; }
.avdd-bogen {
  fill: none; stroke-width: 22; transform: rotate(-90deg); transform-origin: 50% 50%;
  transition: stroke-dasharray 0.5s ease;
}
.avdd-bogen.ist-dein  { stroke: var(--avd-dein); }
.avdd-bogen.ist-staat { stroke: var(--avd-staat); }
.avdd-bogen.ist-wert  { stroke: var(--avd-wert); }

.avd-donutlegende { display: flex; flex-direction: column; gap: 2px; }
.avd-donutlegende li {
  display: grid; grid-template-columns: 14px 1fr auto auto;
  align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid rgba(90,60,35,0.08);
  font-family: var(--sans); font-size: 0.84rem; color: #5F4E42;
}
.avd-donutlegende li:last-child { border-bottom: none; }
.avddl-wert { font-weight: 600; color: var(--charcoal); white-space: nowrap; font-variant-numeric: tabular-nums; }
.avddl-proz { color: var(--warm-grey); font-size: 0.78rem; min-width: 46px; text-align: right; }

.avd-kurvenblock { min-width: 0; }
.avd-kurve { position: relative; margin-top: 14px; }
.avd-svg { width: 100%; height: auto; display: block; overflow: visible; }
.avd-fl-dein  { fill: var(--avd-dein); }
.avd-fl-staat { fill: var(--avd-staat); }
.avd-fl-wert  { fill: var(--avd-wert); }
.avd-achse { font-family: var(--sans); font-size: 10px; fill: var(--warm-grey); }
.avd-lot { stroke: rgba(90,60,35,0.34); stroke-width: 1; }

.avd-legende {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px;
  font-family: var(--sans); font-size: 0.76rem; color: var(--warm-grey);
}
.avd-legende span { display: inline-flex; align-items: center; gap: 7px; }

.avd-tooltip {
  position: absolute; bottom: 56%; transform: translateX(-50%);
  background: var(--charcoal); color: var(--white); border-radius: var(--r-sm);
  padding: 12px 15px; font-family: var(--sans); font-size: 0.76rem; line-height: 1.6;
  white-space: nowrap; pointer-events: none; display: flex; flex-direction: column; gap: 3px;
  box-shadow: 0 8px 24px rgba(58,44,34,0.24); z-index: 5;
}
.avd-tooltip[hidden] { display: none; }
.avd-tooltip.nach-links { transform: translateX(-100%) translateX(-10px); }
.avd-tooltip strong { font-size: 0.82rem; margin-bottom: 3px; }
.avd-tooltip span { display: inline-flex; align-items: center; gap: 7px; }
.avd-tooltip b { font-weight: 700; margin-left: auto; padding-left: 14px; }
.avdt-gesamt { border-top: 1px solid rgba(255,255,255,0.22); margin-top: 4px; padding-top: 6px; }

/* =========================================================================
   BILDBAND
   ========================================================================= */

.avd-bildband { background: var(--white); padding: clamp(40px, 4.5vw, 76px) 0; }
.avdbb-raster {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 56px); align-items: center;
}
.avdbb-bild img {
  display: block; width: 100%; height: clamp(240px, 30vw, 380px);
  object-fit: cover; object-position: center 30%; border-radius: var(--r);
}
.avdbb-zitat { margin: 0; }
.avdbb-zitat p {
  font-family: var(--serif-lesbar); font-style: italic;
  font-size: clamp(1.25rem, 1.05rem + 1.3vw, 1.9rem);
  line-height: 1.45; color: var(--charcoal); margin: 0 0 16px;
}
.avdbb-zitat cite {
  font-family: var(--sans); font-style: normal;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange-dark);
}

/* =========================================================================
   ANLAGE
   ========================================================================= */

/* Drei Ebenen mit klarer Rangfolge statt drei gleichwertiger Kästen:
   frei investieren → Sicherheit wählen → einfache Standardlösung.
   Die Nummern machen die Reihenfolge sichtbar, ohne sie zu erklären. */

.avd-anlage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 26px);
  align-items: stretch;
}

.avd-ebene {
  position: relative;
  background: var(--white);
  border-radius: var(--r);
  padding: clamp(24px, 2.8vw, 36px);
  min-width: 0;
}
.avd-ebene.ist-eins { border: 2px solid var(--orange); }
.avd-ebene.ist-zwei { border: 1px solid rgba(90,60,35,0.16); }
.avd-ebene.ist-drei {
  border: 1px solid rgba(90,60,35,0.16);
  margin-top: clamp(16px, 2vw, 26px);
  max-width: 700px;
  padding: clamp(20px, 2.2vw, 28px);
}

.avde-nr {
  position: absolute; top: clamp(20px, 2.4vw, 28px); right: clamp(20px, 2.4vw, 28px);
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  color: rgba(90,60,35,0.16); line-height: 1;
}
.avd-ebene.ist-eins .avde-nr { color: rgba(255,97,0,0.3); }

.avde-kopf {
  font-family: var(--serif); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 700; color: var(--charcoal);
  margin-bottom: 16px; padding-right: 40px;
  display: flex; align-items: center; gap: 10px; line-height: 1.3;
}
.avd-ebene p {
  font-family: var(--sans); font-size: 0.94rem; color: #5F4E42;
  line-height: 1.72; margin: 0 0 12px; max-width: 60ch;
}
.avd-ebene p:last-child { margin-bottom: 0; }

.avd-kacheln3 { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.avd-k3 {
  background: var(--peach); border-radius: 100px; padding: 8px 16px;
  font-family: var(--sans); font-size: 0.84rem; font-weight: 600; color: var(--orange-dark);
  display: inline-flex; align-items: center; gap: 8px;
}

.avde-punkte { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.avde-punkte li {
  font-family: var(--sans); font-size: 0.92rem; color: var(--charcoal);
  font-weight: 500; line-height: 1.6;
  padding-left: 24px; position: relative;
}
.avde-punkte li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--orange); font-weight: 700; font-size: 0.88rem;
}

/* =========================================================================
   AUSZAHLUNG UND DREI WEGE
   ========================================================================= */

.avd-wege2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 24px; }
.avd-weg { background: var(--cream); border-radius: var(--r); padding: clamp(20px, 2.4vw, 30px); }
.avdw-emoji { font-size: 1.6rem; display: block; margin-bottom: 12px; }
.avd-weg strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--charcoal); margin-bottom: 8px; }
.avd-weg p { font-family: var(--sans); font-size: 0.9rem; color: #5F4E42; line-height: 1.68; margin: 0; }
.avd-fliess { font-family: var(--sans); font-size: 0.95rem; color: #5F4E42; line-height: 1.75; max-width: 68ch; }

.avd-wege3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.avd-weg3 { background: var(--white); border-radius: var(--r); padding: clamp(22px, 2.6vw, 32px); }
.avdw3-nr { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--orange); display: block; margin-bottom: 12px; line-height: 1; }
.avd-weg3 strong { display: block; font-family: var(--serif); font-size: 1.12rem; color: var(--charcoal); margin-bottom: 10px; line-height: 1.3; }
.avd-weg3 p { font-family: var(--sans); font-size: 0.88rem; color: #5F4E42; line-height: 1.68; margin: 0; }
.avd-merksatz {
  font-family: var(--serif-lesbar); font-style: italic;
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.45rem);
  color: var(--charcoal); text-align: center;
  margin: clamp(26px, 3vw, 40px) auto 0; max-width: 44ch; line-height: 1.5;
}

/* =========================================================================
   VERGLEICHSRECHNER — zwei Modi
   ========================================================================= */

.avd-modus {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px; margin-top: clamp(22px, 2.4vw, 32px);
}
.avdm-btn {
  background: var(--white); border: 1px solid rgba(90,60,35,0.16);
  border-radius: var(--r); padding: 20px 22px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.22s ease, background 0.22s ease;
}
.avdm-btn:hover { border-color: var(--orange-light); }
.avdm-btn.ist-aktiv { border-color: var(--orange); border-width: 2px; background: var(--peach); padding: 19px 21px; }
.avdm-titel { font-family: var(--sans); font-size: 0.98rem; font-weight: 700; color: var(--charcoal); line-height: 1.35; }
.avdm-sub { font-family: var(--sans); font-size: 0.82rem; color: var(--warm-grey); line-height: 1.55; }

.avd-vgl-eingabe {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
  background: var(--cream); border-radius: var(--r);
  padding: clamp(22px, 2.6vw, 34px); margin: clamp(16px, 1.8vw, 24px) 0;
}
.avd-vgl-eingabe .rl-feld label { display: flex; align-items: center; }

.avd-optional {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(90,60,35,0.14); padding-top: 20px; margin-top: 4px;
}
.avdo-titel {
  display: block; font-family: var(--sans); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--warm-grey);
  margin-bottom: 16px;
}
.avdo-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(16px, 1.8vw, 24px); }

/* ---------- Drei Ergebnisse statt eines Siegers ---------- */

.avd-drei {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(12px, 1.6vw, 18px); margin-top: clamp(18px, 2vw, 26px);
}
.avd-drei.ist-zwei { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.avd-ergk {
  border-radius: var(--r); padding: clamp(20px, 2.2vw, 28px);
  display: flex; flex-direction: column; gap: 4px;
  background: var(--white); border: 1px solid rgba(90,60,35,0.14);
}
.avd-ergk.ist-garantie  { background: var(--cream); border-color: rgba(90,60,35,0.18); }
.avd-ergk.ist-modell-alt { background: var(--white); }
.avd-ergk.ist-modell-neu { background: var(--peach); border: 2px solid var(--orange); padding: clamp(19px, 2.1vw, 27px); }

.avdek-kopf {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--warm-grey);
}
.avd-ergk.ist-modell-neu .avdek-kopf { color: var(--orange-dark); }
.avdek-art { font-family: var(--sans); font-size: 0.86rem; font-weight: 600; color: var(--charcoal); }
.avdek-wert {
  font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem);
  font-weight: 700; color: var(--charcoal); line-height: 1.1; letter-spacing: -0.02em;
  margin: 6px 0 4px;
}
.avdek-fuss { font-family: var(--sans); font-size: 0.78rem; color: var(--warm-grey); line-height: 1.6; margin: 0; }

.avd-vertragswerte {
  background: var(--white); border: 1px solid rgba(90,60,35,0.14);
  border-radius: var(--r); padding: clamp(20px, 2.2vw, 28px); margin-top: 14px;
}
.avdvw-titel {
  display: block; font-family: var(--sans); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--warm-grey); margin-bottom: 12px;
}
.avdvw-zeile {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid rgba(90,60,35,0.08);
  font-family: var(--sans); font-size: 0.9rem; color: #5F4E42;
}
.avdvw-zeile:last-child { border-bottom: none; }
.avdvw-zeile span:last-child { font-weight: 600; color: var(--charcoal); white-space: nowrap; }
.avdvw-zeile.ist-stark span:last-child { font-family: var(--serif); font-size: 1.2rem; color: var(--orange-dark); }

.avd-fehlt {
  background: var(--cream); border-left: 3px solid var(--orange);
  border-radius: 0 var(--r) var(--r) 0; padding: clamp(20px, 2.4vw, 30px);
  margin-top: clamp(16px, 1.8vw, 24px);
}
.avd-fehlt strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--charcoal); margin-bottom: 10px; }
.avd-fehlt p { font-family: var(--sans); font-size: 0.92rem; color: #5F4E42; line-height: 1.72; margin: 0 0 10px; max-width: 68ch; }
.avd-fehlt p:last-child { margin-bottom: 0; }

.avd-vhinweis {
  background: var(--white); border: 1px solid rgba(90,60,35,0.14); border-radius: var(--r-sm);
  padding: 16px 18px; margin-top: 12px;
  font-family: var(--sans); font-size: 0.88rem; color: #5F4E42; line-height: 1.7;
}

.avd-zwischen {
  font-family: var(--serif); font-size: clamp(1.15rem, 1.05rem + 0.7vw, 1.5rem);
  font-weight: 700; color: var(--charcoal); margin: clamp(26px, 3vw, 40px) 0 0;
}

.avd-einordnung {
  background: var(--cream); border-radius: var(--r);
  padding: clamp(22px, 2.6vw, 34px); margin-top: clamp(18px, 2vw, 26px);
}
.avd-einordnung strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--charcoal); margin-bottom: 10px; }
.avd-einordnung p { font-family: var(--sans); font-size: 0.92rem; color: #5F4E42; line-height: 1.72; margin: 0 0 16px; max-width: 68ch; }

.avd-faktoren { margin: 0 0 20px; }
.avd-faktoren summary {
  cursor: pointer; list-style: none; min-height: 44px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 0.86rem; font-weight: 600; color: var(--orange-dark);
}
.avd-faktoren summary::-webkit-details-marker { display: none; }
.avd-faktoren summary::after { content: "+"; font-size: 1.1rem; }
.avd-faktoren[open] summary::after { content: "−"; }
.avd-faktoren ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 4px 20px; margin-top: 8px; }
.avd-faktoren li {
  font-family: var(--sans); font-size: 0.86rem; color: #5F4E42; line-height: 1.7;
  padding-left: 16px; position: relative;
}
.avd-faktoren li::before { content: "·"; position: absolute; left: 4px; color: var(--orange); font-weight: 700; }

/* =========================================================================
   SELBSTSTÄNDIGE
   ========================================================================= */

.avd-selbst { background: var(--white); border-radius: var(--r); padding: clamp(26px, 3.2vw, 46px); }
.avd-badge {
  display: inline-block; background: var(--orange); color: var(--white);
  border-radius: 100px; padding: 6px 14px;
  font-family: var(--sans); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px;
}
.avd-selbst h2 { font-size: clamp(1.35rem, 1.15rem + 1.1vw, 1.85rem); margin-bottom: 18px; max-width: 30ch; }
.avd-selbst-text { font-family: var(--sans); font-size: 0.95rem; color: #5F4E42; line-height: 1.75; margin: 0 0 24px; max-width: 74ch; }
.avd-selbst-abschluss { font-family: var(--sans); font-size: 0.9rem; color: var(--warm-grey); line-height: 1.7; margin: 22px 0 22px; max-width: 66ch; }
.avd-selbst .btn { margin-top: 0; }

.avd-zweiboxen { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.avd-box { border-radius: var(--r); padding: clamp(20px, 2.2vw, 28px); }
.avd-box.ist-ja   { background: var(--peach); }
.avd-box.ist-nein { background: var(--cream); border: 1px solid rgba(90,60,35,0.16); }
.avdbx-kopf {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal);
  display: flex; align-items: center; gap: 9px; margin-bottom: 14px; line-height: 1.4;
}
.avdbx-kopf span { font-size: 1.05rem; }
.avd-box ul { display: flex; flex-direction: column; gap: 10px; }
.avd-box li {
  font-family: var(--sans); font-size: 0.88rem; color: #5F4E42; line-height: 1.65;
  padding-left: 18px; position: relative;
}
.avd-box li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
}
.avd-box.ist-nein li::before { background: var(--warm-grey); }

/* =========================================================================
   FÜR WEN — Akkordeons
   ========================================================================= */

.avd-fuerwen { display: flex; flex-direction: column; gap: 8px; }
.avd-fw { background: var(--cream); border-radius: var(--r-sm); overflow: hidden; }
.avd-fw summary {
  padding: 18px 22px; cursor: pointer; list-style: none; min-height: 44px;
  font-family: var(--sans); font-size: 0.98rem; font-weight: 600; color: var(--charcoal);
  display: flex; align-items: center; gap: 12px;
}
.avd-fw summary::-webkit-details-marker { display: none; }
.avd-fw summary::after { content: "+"; margin-left: auto; color: var(--orange); font-size: 1.3rem; line-height: 1; }
.avd-fw[open] summary::after { content: "−"; }
.avdfw-inhalt { padding: 0 22px 22px; max-width: 74ch; }
.avdfw-inhalt p { font-family: var(--sans); font-size: 0.92rem; color: #5F4E42; line-height: 1.72; margin: 0 0 12px; }
.avdfw-inhalt p:last-child { margin-bottom: 0; }
.avdfw-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--sans); font-size: 0.88rem; font-weight: 600; color: var(--orange-dark);
  border-bottom: 1px solid rgba(217,80,10,0.3);
}
.avdfw-link:hover { border-bottom-color: var(--orange); }
.avdfw-link .btn-arrow { transition: transform 0.25s ease; }
.avdfw-link:hover .btn-arrow { transform: translateX(3px); }

/* =========================================================================
   ABSCHLUSS — links Text, rechts Bild
   ========================================================================= */

.avd-abschluss {
  background: linear-gradient(150deg, var(--orange) 0%, #E04E00 100%);
  color: var(--white); padding: clamp(44px, 5vw, 80px) 0;
  overflow: hidden;
}
.avda-raster {
  display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: clamp(28px, 4vw, 60px); align-items: center;
}
.avd-abschluss .eyebrow { color: rgba(255,255,255,0.9); }
.avd-abschluss .eyebrow::before { background: rgba(255,255,255,0.7); }
.avd-abschluss h2 { color: var(--white); font-size: clamp(1.35rem, 1.1rem + 1.3vw, 2rem); line-height: 1.28; margin-bottom: 16px; }
.avd-abschluss p { font-family: var(--sans); font-size: 0.98rem; color: rgba(255,255,255,0.92); line-height: 1.72; margin: 0 0 24px; max-width: 54ch; }
.avda-meta { font-size: 0.84rem !important; color: rgba(255,255,255,0.85) !important; margin: 14px 0 6px !important; }
.avda-pe { font-size: 0.86rem !important; font-weight: 600; color: var(--white) !important; margin: 0 !important; }

/* Bei 25 % stand der Kopf direkt an der Oberkante. 15 % gibt Luft
   darüber. Der gestapelte Ausschnitt ist flacher und braucht 12 %,
   siehe weiter unten. Beide Werte sind am gerenderten Ausschnitt
   geprüft. Wird die Höhe geändert, bitte neu ansehen. */
.avda-bild img {
  display: block;
  width: calc(100% + clamp(0px, 4vw, 70px));
  height: clamp(300px, 34vw, 460px);
  object-fit: cover; object-position: 50% 15%;
  border-radius: var(--r) 0 0 var(--r);
}

/* =========================================================================
   RECHTSSTAND
   ========================================================================= */

.avd-stand {
  margin: clamp(28px, 3vw, 44px) 0;
  padding-top: clamp(20px, 2.4vw, 30px);
  border-top: 1px solid rgba(90,60,35,0.12);
}
.avd-stand p { font-family: var(--sans); font-size: 0.78rem; color: var(--warm-grey); line-height: 1.75; margin: 0 0 10px; max-width: 78ch; }
.avd-stand strong { color: var(--charcoal); }
.avd-stand a { color: var(--orange-dark); border-bottom: 1px solid rgba(217,80,10,0.3); }
.avd-quellenzeile { font-size: 0.74rem !important; }

/* =========================================================================
   ALTE TOOLTIP-SCHREIBWEISE
   Bleibt für Seiten erhalten, die noch .avd-info verwenden. Die Blase
   selbst blendet css/style.css aus, sobald js/tooltip.js läuft.
   ========================================================================= */

.avd-info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.4px solid var(--warm-grey); background: none; color: var(--warm-grey);
  font-family: var(--sans); font-size: 0.6rem; font-weight: 700;
  cursor: pointer; padding: 0; margin-left: 4px; position: relative; vertical-align: middle;
}
.avd-info-text {
  position: absolute; bottom: calc(100% + 9px); left: 50%;
  transform: translateX(-50%); width: min(280px, 74vw);
  background: var(--charcoal); color: var(--white);
  font-family: var(--sans); font-size: 0.74rem; line-height: 1.6; text-align: left;
  padding: 12px 14px; border-radius: var(--r-sm);
  opacity: 0; visibility: hidden; pointer-events: none; z-index: 40;
}
.avd-info:hover .avd-info-text { opacity: 1; visibility: visible; }

/* =========================================================================
   BREITEN
   Getestet auf 1440, 1280, 1024, 768, 430 und 390 Pixeln.
   ========================================================================= */

@media (max-width: 1100px) {
  .avd-grafiken { grid-template-columns: 1fr; }
  .avd-donut { width: clamp(160px, 30vw, 210px); }
}

@media (max-width: 980px) {
  /* Hero: Bild unter den Text.
     Die Breite wird begrenzt, damit das Bild nicht extrem flach wird.
     Ein sehr breiter, niedriger Ausschnitt schneidet zwangsläufig den
     Kopf an, egal welchen Fokuspunkt man wählt. */
  .avdh-raster, .avda-raster { grid-template-columns: 1fr; }
  .avdh-bild picture, .avdh-bild img, .avda-bild img {
    width: min(100%, 560px);
    height: clamp(340px, 62vw, 480px);
    margin-inline: auto;
    border-radius: var(--r);
  }
  /* Zwei Fotos, zwei Fokuspunkte. Beim Hero liegt der Kopf tief im
     Bild, beim Abschlussfoto hoch. Ein gemeinsamer Wert würde bei
     einem der beiden den Kopf anschneiden. */
  .avdh-bild picture, .avdh-bild img { object-position: 45% 90%; }
  .avda-bild img { object-position: 50% 12%; }

  .avd-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .avdz-kachel { border-radius: 0 !important; }
  .avdz-kachel:nth-child(3) { border-left: none; }
  .avdz-kachel:nth-child(n+3) { border-top: 1px solid rgba(90,60,35,0.10); }

  .avd-kinderblock, .avd-rechner, .avd-anlage, .avdbb-raster { grid-template-columns: 1fr; }
  .avd-ebene.ist-drei { max-width: none; }
  .avdbb-raster { gap: 24px; }
}

@media (max-width: 780px) {
  /* Vorher / Nachher: Thema als Überschrift, darunter beide Spalten */
  .avd-vn-kopf { display: none; }
  .avd-vn-zeile {
    grid-template-columns: 1fr;
    border-bottom: 1px solid rgba(90,60,35,0.14);
    padding: 6px 0 12px;
  }
  .avd-vn-zeile:last-child { border-bottom: none; }
  .avd-vn-zeile > span { border-bottom: none; padding: 6px clamp(16px, 4vw, 22px); }
  .avdvn-thema { font-size: 1rem; padding-top: 14px !important; }
  .avdvn-alt::before, .avdvn-neu::before {
    display: block;
    font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--warm-grey); margin-bottom: 3px;
  }
  .avdvn-alt::before { content: "Bisher"; }
  .avdvn-neu::before { content: "Ab 2027"; color: var(--orange-dark); }
  .avdvn-neu { border-radius: var(--r-sm); margin: 4px clamp(12px, 3vw, 18px) 0; }
}

@media (max-width: 640px) {
  .avd-hero { padding-top: 110px; }
  .avd-zahlen { grid-template-columns: 1fr; }
  .avdz-kachel { border-left: none; border-top: 1px solid rgba(90,60,35,0.10); }
  .avdz-kachel:first-child { border-top: none; }
  .avd-leiste { flex-direction: column; }
  .avd-reglerzeile { flex-wrap: wrap; }
  .avd-reglerzeile input[type="range"] { flex-basis: 100%; }
  .avd-reglerfeld { width: 100%; }
  .avd-tooltip { white-space: normal; width: min(240px, 70vw); }
  .avd-donutlegende li { grid-template-columns: 14px 1fr auto; }
  .avddl-proz { display: none; }
  .avd-uebergang { padding-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .avd-vn-zeile { opacity: 1; transform: none; transition: none; }
  .avdd-bogen { transition: none; }
  .avdz-kachel.ist-link .btn-arrow, .avdfw-link .btn-arrow { transition: none; }
}

/* =========================================================================
   VERGLEICHSRECHNER — Ergänzungen der zweiten Überarbeitung
   ========================================================================= */

/* ---------- Übernommene Angaben aus dem Förderrechner ----------
   Damit niemand Geburtsjahr und Kinder zweimal eintippen muss. */

.avd-uebernommen {
  background: var(--cream);
  border-radius: var(--r);
  padding: clamp(18px, 2vw, 24px);
  margin: clamp(18px, 2vw, 26px) 0;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px clamp(18px, 2.4vw, 32px);
}
.avdu-titel {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--warm-grey);
  flex-basis: 100%;
}
.avd-uebernommen ul { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; }
.avd-uebernommen li {
  font-family: var(--sans); font-size: 0.88rem; color: #5F4E42; line-height: 1.5;
}
.avd-uebernommen b { color: var(--charcoal); font-weight: 600; }
.avdu-link {
  font-family: var(--sans); font-size: 0.84rem; font-weight: 600;
  color: var(--orange-dark); margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px;
  border-bottom: 1px solid transparent; transition: border-color 0.22s ease;
}
.avdu-link:hover { border-bottom-color: var(--orange); }

/* ---------- Eingabeblöcke ---------- */

.avd-vgl-block { margin-bottom: clamp(16px, 1.8vw, 24px); }
.avdvb-titel {
  display: block;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--charcoal);
  margin-bottom: 4px;
}
.avdvb-sub {
  font-family: var(--sans); font-size: 0.82rem; color: var(--warm-grey);
  line-height: 1.6; margin: 0 0 4px;
}
.avd-vgl-block .avd-vgl-eingabe { margin-top: 12px; }

/* MM / JJJJ */
.avd-datum { display: flex; align-items: center; gap: 8px; }
.avd-datum input {
  width: 100%; min-width: 0;
  background: var(--white);
  border: 1px solid rgba(90,60,35,0.18);
  border-radius: var(--r-sm);
  padding: 12px 14px; min-height: 46px;
  font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--charcoal);
}
.avd-datum input:focus { outline: none; border-color: var(--orange); }
.avd-datum input:first-child { flex: 0 0 34%; }
.avd-datum span { color: var(--warm-grey); font-weight: 600; flex: none; }

/* Hinweis zur gewählten Vertragsart */
.avd-arthinweis {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--peach); border-radius: var(--r-sm);
  padding: 15px 17px; margin-top: 14px;
}
.avd-arthinweis span { font-size: 1rem; line-height: 1.5; flex: none; }
.avd-arthinweis p {
  font-family: var(--sans); font-size: 0.86rem; color: #5F4E42;
  line-height: 1.68; margin: 0; max-width: 70ch;
}

/* Kästchen mit Beschriftung, ausreichend groß zum Antippen */
.avd-kasten {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  min-height: 44px; padding: 6px 0; cursor: pointer;
  font-family: var(--sans); font-size: 0.88rem; color: #5F4E42; line-height: 1.5;
}
.avd-kasten input[type="checkbox"] { accent-color: var(--orange); flex: none; width: 17px; height: 17px; }

.avd-kinderzulage {
  background: var(--white); border-radius: var(--r-sm);
  padding: 16px 18px; margin-top: 14px;
}
.avdkz-titel {
  display: block;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  color: var(--charcoal); margin-bottom: 6px;
}
.avdkz-wert {
  font-family: var(--sans); font-size: 0.76rem; color: var(--warm-grey);
  margin-left: auto; white-space: nowrap;
}
.avdkz-fuss {
  font-family: var(--sans); font-size: 0.76rem; color: var(--warm-grey);
  line-height: 1.6; margin: 10px 0 0;
}

/* ---------- Ampel ---------- */

.avd-ampel {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: var(--r); padding: clamp(18px, 2vw, 24px);
  margin: clamp(18px, 2vw, 26px) 0 clamp(14px, 1.6vw, 20px);
  border-left: 4px solid transparent;
}
.avd-ampel.ist-gruen { background: #EFF6EE; border-left-color: #4C8B4A; }
.avd-ampel.ist-gelb  { background: #FDF4E3; border-left-color: #D9A00A; }
.avd-ampel.ist-rot   { background: var(--cream); border-left-color: var(--orange); }
.avda-symbol { font-size: 1.15rem; line-height: 1.4; flex: none; }
.avd-ampel strong {
  display: block; font-family: var(--sans); font-size: 0.94rem;
  font-weight: 700; color: var(--charcoal); margin-bottom: 4px;
}
.avd-ampel p {
  font-family: var(--sans); font-size: 0.88rem; color: #5F4E42;
  line-height: 1.68; margin: 0; max-width: 74ch;
}

/* ---------- Was ohne Unterlagen feststeht ---------- */

.avd-bekannt {
  background: var(--white); border: 1px solid rgba(90,60,35,0.14);
  border-radius: var(--r); padding: clamp(18px, 2vw, 26px);
  margin-top: clamp(14px, 1.6vw, 20px);
}
.avdbk-zeile {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 12px 0;
  border-bottom: 1px solid rgba(90,60,35,0.08);
}
.avdbk-zeile:last-child { border-bottom: none; }
.avdbk-text {
  font-family: var(--sans); font-size: 0.92rem; color: var(--charcoal);
  display: flex; flex-direction: column; gap: 2px;
}
.avdbk-text small { font-size: 0.76rem; color: var(--warm-grey); font-weight: 400; }
.avdbk-wert {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 700;
  color: var(--charcoal); white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* ---------- Förderung alt gegen neu ---------- */

.avd-foerdervgl {
  background: var(--white); border: 1px solid rgba(90,60,35,0.14);
  border-radius: var(--r); padding: clamp(20px, 2.4vw, 30px);
  margin-top: clamp(16px, 1.8vw, 24px);
}
.avdfv-titel {
  display: block;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--warm-grey);
  margin-bottom: 16px;
}
.avdfv-paar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}
.avdfv-seite { border-radius: var(--r-sm); padding: 18px 20px; }
.avdfv-seite.ist-alt { background: var(--cream); }
.avdfv-seite.ist-neu { background: var(--peach); border: 1px solid rgba(255,97,0,0.26); }
.avdfv-kopf {
  display: block;
  font-family: var(--sans); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--warm-grey);
  margin-bottom: 12px;
}
.avdfv-seite.ist-neu .avdfv-kopf { color: var(--orange-dark); }
.avdfv-zeile {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; padding: 7px 0;
  font-family: var(--sans); font-size: 0.88rem; color: #5F4E42;
  border-bottom: 1px solid rgba(90,60,35,0.08);
}
.avdfv-zeile span:last-child { font-weight: 600; color: var(--charcoal); white-space: nowrap; }
.avdfv-summe {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 10px; padding-top: 12px; border-top: 2px solid var(--orange);
  font-family: var(--sans); font-size: 0.84rem; font-weight: 600; color: var(--charcoal);
}
.avdfv-summe span:last-child {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--orange-dark);
}
.avdfv-warnung, .avdfv-hinweis {
  font-family: var(--sans); font-size: 0.78rem; line-height: 1.6; margin: 10px 0 0;
}
.avdfv-warnung { color: var(--orange-dark); }
.avdfv-hinweis { color: var(--warm-grey); }
.avdfv-fuss {
  font-family: var(--sans); font-size: 0.78rem; color: var(--warm-grey);
  line-height: 1.65; margin: 16px 0 0; max-width: 74ch;
}

/* ---------- Ergebniskästen: Prognose des Anbieters ---------- */

.avd-ergk.ist-anbieter {
  background: var(--white);
  border: 1px dashed rgba(90,60,35,0.32);
}
.avd-ergk.ist-anbieter .avdek-kopf { color: var(--warm-grey); }

.avdvw-fuss {
  font-family: var(--sans); font-size: 0.78rem; color: var(--warm-grey);
  line-height: 1.65; margin: 12px 0 0;
}

/* ---------- Haftungshinweis ----------
   Steht unter jedem Ergebnis, in jeder Datenstufe. Bewusst nicht als
   graue Fußnote versteckt, sondern lesbar. */

.avd-haftung {
  font-family: var(--sans); font-size: 0.8rem; color: #5F4E42;
  line-height: 1.7; margin: clamp(16px, 1.8vw, 22px) 0 0;
  padding: 14px 16px; max-width: 82ch;
  background: rgba(90,60,35,0.045);
  border-radius: var(--r-sm);
}

/* =========================================================================
   FAQ — Verweis in den Wissensbereich
   ========================================================================= */

.avd-faq-mehr {
  background: var(--cream); border-radius: var(--r);
  padding: clamp(22px, 2.6vw, 32px);
  margin-top: clamp(26px, 3vw, 40px);
  text-align: center;
}
.avd-faq-mehr strong {
  display: block; font-family: var(--serif); font-size: 1.2rem;
  color: var(--charcoal); margin-bottom: 8px;
}
.avd-faq-mehr p {
  font-family: var(--sans); font-size: 0.92rem; color: #5F4E42;
  line-height: 1.7; margin: 0 auto 14px; max-width: 52ch;
}
.avd-faq-mehr .avdfw-link { justify-content: center; }

.faq-grundlage {
  font-family: var(--sans) !important;
  font-size: 0.76rem !important; color: var(--warm-grey) !important;
  margin-top: 10px !important;
}

/* ---------- Wechselkosten in Karte 03 ---------- */

.avdw3-kosten {
  font-size: 0.82rem !important; color: var(--warm-grey) !important;
  margin-top: 10px !important; display: flex; align-items: flex-start;
}

/* =========================================================================
   BREITEN — Ergänzungen
   ========================================================================= */

@media (max-width: 640px) {
  .avd-uebernommen { flex-direction: column; align-items: flex-start; }
  .avdu-link { margin-left: 0; }
  .avdbk-zeile { flex-direction: column; align-items: flex-start; gap: 4px; }
  .avdfv-paar { grid-template-columns: 1fr; }
  .avdkz-wert { margin-left: 0; flex-basis: 100%; }
  .avdh-fakten { gap: 4px 0; }
  .avdh-fakten li { flex-basis: 100%; white-space: normal; }
  .avdh-fakten li + li::before { display: none; }
}
