/* =================================================================
   GOLDKAUTION.DE — Startseite (start.css)
   Baut auf main.css, components.css und story.css auf. Header, Hero,
   Rechner-Grundmodul, Fragen und Footer kommen von dort.

   Geschichte aus Sicht des Mieters, der gerade umzieht:
   Ausgangslage · drei Wege im Vergleich · Sicherheit · eigener
   Rechner · einrichten mit Vorlage für den Vermieter · Fragen ·
   Abschluss.

   Gestaltungsregeln (Grammatik nach dem Brand Guide von moovnao,
   eigene Farben):
   - Weiß ist der Grund. Abschnitte trennen sich durch runde Flächen:
     Himmelblau (freundlich, hell), einmal Dunkelblau (Sicherheit).
     Nie zwei gleiche Flächen hintereinander.
   - Die Achse wechselt: mittig, links, mittig, geteilt, geteilt.
   - Text steht frei, Karten nur für Werkzeuge und Gegenstände.
   - Gold nie als Schrift auf hellem Grund: Buttons, Linien, Punkte,
     Goldpunkte. Keine Markierung in Überschriften. Auf Dunkelblau darf
     Gold kleine Schrift sein.
   - Ohne Skript steht alles sichtbar da.
   ================================================================= */

.start {
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Abstände: --rhythm zwischen zwei Abschnitten, --band-pad innen in Flächen.
     Innen etwas weniger als außen, damit Flächen nicht doppelt so luftig wirken wie weiße Abschnitte. */
  --rhythm: clamp(136px, 9.5vw, 184px);
  --band-pad: clamp(96px, 7vw, 128px);
  --band-inset: 24px;
  /* Abstand zwischen den Bausteinen eines Abschnitts (Reglerfeld, Karten, Kennzahlen, Details) */
  --stack: clamp(48px, 4.5vw, 72px);
  /* Grauer Nebentext aus main.css (#6B7280) hat auf Himmelblau nur 4,3:1. Dunkler: 5,4:1. */
  --text-secondary: #5B6472;
  /* Seitenrahmen wie bei derpkvmakler: Header und Hero laufen mit 80 px Rand (5rem) über
     die ganze Breite. Logo, Hero, Flächen und Inhalte stehen auf denselben Kanten.
     Erst ab 1920 px Fensterbreite wächst der Rahmen nicht weiter. */
  --frame-pad: 80px;
  --frame-max: 1760px;
  --card-radius: 36px;
  --head-measure: 880px;

  /* Gold der Startseite: die hellen Töne der Barren aus dem Hero-Foto. Ersetzt das mattere
     #D4AF37 aus main.css überall auf dieser Seite, auch im Logo. Gold bleibt Akzent:
     Linien, Punkte, Ziffern, Schriftzug auf Dunkel, nie Schrift auf Weiß. */
  --gold-hero-top: #F6DDA3;
  --gold-hero: #E9C77E;
  --gold-hero-deep: #D8B466;
  --gold-metal: linear-gradient(180deg, var(--gold-hero-top) 0%, var(--gold-hero) 55%, var(--gold-hero-deep) 100%);
  --gold-primary: var(--gold-hero);
  --gold-accent: var(--gold-hero);
  --gold-light: #F7E8C4;

  /* Himmelblau: aus dem Dunkelblau des Logos aufgehellt */
  --sky: #EDF3FB;
  --sky-deep: #D9E6F6;
  --sky-line: #C3D4EC;

  /* Dunkelblau als Fläche, mit weichem Lichtfeld oben rechts */
  --navy: var(--text-primary);
  --navy-glow: #22385C;
  --on-navy: #F4F6FA;
  --on-navy-muted: #B4BFD1;
  --on-navy-line: rgba(244, 246, 250, 0.16);

  --shadow-card: 0 30px 70px rgba(15, 26, 46, 0.10);
  --shadow-lift: 0 40px 90px rgba(5, 10, 20, 0.45);
  --drift-drop: 120px;
}

@media (max-width: 1024px) {
  .start {
    --frame-pad: 48px;
  }
}

@media (max-width: 640px) {
  .start {
    --rhythm: 96px;
    --band-pad: 72px;
    --band-inset: 12px;
    --frame-pad: 12px;
    --card-radius: 24px;
    --drift-drop: 96px;
  }
}

/* Kanten bündig: Hero und Abschnitte teilen am Handy denselben Rand */
@media (max-width: 480px) {
  .start .container {
    padding-inline: 24px;
  }
}

/* main.css gibt jedem section einen Innenabstand, hier regelt jeder Abschnitt seinen eigenen.
   Abschnitte auf Weiß halten Abstand nach oben, Flächen bringen ihren Abstand selbst mit. */
.routes,
.tool {
  padding-block: 0;
  scroll-margin-top: var(--header-h);
}

.drift,
.vault,
.setup,
.faq-split {
  padding-block: var(--rhythm) 0;
  scroll-margin-top: var(--header-h);
}

.closing {
  padding-block: 0;
  scroll-margin-top: var(--header-h);
}


/* -----------------------------------------------------------------
   1. HEADER- UND HERO-ZUSÄTZE (Maße bleiben wie in components.css)
   ----------------------------------------------------------------- */
.start .mobile-nav .mobile-nav-cta {
  margin-top: 1rem;
  text-align: center;
}

.start .btn-secondary:hover {
  color: var(--ink);
  border-color: var(--gold-primary);
}

.start .btn:active {
  transform: scale(0.98);
}

/* Hauptbuttons der Startseite in Dunkelblau statt Gold (Header, Vorlage, Abschluss) */
.start .btn-primary {
  border-color: var(--navy);
  background-color: var(--navy);
  color: var(--on-navy);
}

.start .btn-primary:hover {
  border-color: var(--navy-glow);
  background-color: var(--navy-glow);
  color: var(--on-navy);
  box-shadow: none;
}

.start .btn-primary:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.start .btn-large {
  height: 56px;
  border-radius: 100px;
  font-size: 1rem;
}

/* Hero: das Foto als Bildkarte so breit wie die Flächen darunter.
   Ab 1280 px steht der Text links im Blau, die Barren rechts. Darunter steht der
   Text oben auf Dunkelblau und das Foto läuft darunter weich aus. */
.start .stage {
  --photo-dark: #08131A;
  padding: calc(var(--header-h) + var(--band-inset)) 0 0;
}

.stage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(var(--frame-max), 100% - 2 * var(--frame-pad));
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--photo-dark);
  isolation: isolate;
}

.stage-body {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  color: var(--on-navy-muted);
}

.stage .lead-in {
  margin-bottom: 20px;
  color: var(--on-navy-muted);
}

.start .stage h1 {
  max-width: 11ch;
  font-family: 'Satoshi Variable', var(--font-display);
  font-size: clamp(2.5rem, 10.5vw, 3rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--on-navy);
}

.stage-h1-lead,
.stage-h1-tail {
  display: block;
}

/* Die Wörter „Mietkaution“ und „Gold“ in Gold aus dem Foto: helle Töne der Barren
   (#F6DDA3 oben, #D8B466 unten), als Verlauf wie Metall. Nur auf dem dunklen Hero,
   dort liegt der Kontrast über 9:1. */
.gold-word {
  background: var(--gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media (forced-colors: active) {
  .gold-word {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: currentColor;
  }
}

.stage-sub {
  max-width: 34ch;
  margin-top: 20px;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--on-navy-muted);
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

/* Handy und Tablet: reduziert auf Überschrift, Barren und Einleitung, darunter ein Button.
   Die Barren stehen klein oben rechts neben der Überschrift und dürfen leicht unter sie
   laufen, links und unten blendet das Foto weich aus. Die Vertrauenszeile entfällt hier,
   am Handy auch der zweite Button: „Kaution durchrechnen“ liegt dort als fester Button unten. */
.stage-card {
  background: var(--hero-gradient);
}

.stage-img {
  position: absolute;
  top: calc(var(--header-h) + 32px);
  right: -6%;
  z-index: 0;
  display: block;
  width: 54%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 70% 55%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 45%), linear-gradient(to bottom, transparent 0, #000 22%, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 45%), linear-gradient(to bottom, transparent 0, #000 22%, #000 62%, transparent 100%);
  mask-composite: intersect;
}

.stage-body {
  padding: 72px 24px 48px;
}

@media (max-width: 1279px) {
  .stage .stage-facts {
    display: none;
  }
}

@media (max-width: 639px) {
  .stage-actions {
    justify-self: stretch;
  }

  .stage-actions .cta {
    justify-content: center;
    width: 100%;
  }

  .stage-actions .cta.is-ghost {
    display: none;
  }
}

@media (min-width: 640px) and (max-width: 1279px) {
  .stage-body {
    padding: 72px 56px 64px;
  }

  .stage-img {
    top: 24px;
    right: 0;
    width: 50%;
  }

  .start .stage h1 {
    max-width: 13ch;
    font-size: clamp(3rem, 6.4vw, 4.25rem);
  }
}

/* Desktop: Text links, groß und kräftig, Barren rechts und kleiner.
   Das Foto füllt die Karte nicht, sondern sitzt mit 74 % der Kartenhöhe unten rechts.
   Seine linke und obere Kante laufen weich aus, darunter liegt ein Hintergrund, der die
   Farben der linken Fotokante fortsetzt (oben fast schwarz, unten Blau). So stehen die
   Barren kleiner und näher am Rand, und die Schrift bekommt mehr Raum. */
@media (min-width: 1280px) {
  .stage-card {
    justify-content: center;
    height: var(--hero-height);
    background: var(--hero-gradient);
  }

  .stage-img {
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    z-index: 0;
    object-fit: cover;
    object-position: 50% 50%;
    width: auto;
    max-width: none;
    height: 74%;
    aspect-ratio: 2050 / 822;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32%), linear-gradient(to bottom, transparent 0, #000 22%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 32%), linear-gradient(to bottom, transparent 0, #000 22%);
    mask-composite: intersect;
  }

  .stage-body {
    width: 56%;
    padding: 0 0 0 clamp(48px, 5vw, 80px);
  }

  .start .stage h1 {
    max-width: none;
    font-size: clamp(3.25rem, 4.4vw, 4.75rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.04em;
  }

  .stage-h1-lead {
    white-space: nowrap;
  }
}


/* Buttons im Hero: Pillen wie bei moovnao. Weiß für die Hauptaktion, umrandet für die zweite.
   Gold ist Akzentfarbe, nie Buttonfläche: Als große Fläche wirkt es neben den echten Barren stumpf.
   Ruhig: keine Schatten, kein Glanz. Beim Überfahren hebt sich die Pille leicht, der Pfeil rückt nach. */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border: 1.5px solid var(--bg-primary);
  border-radius: 100px;
  background: var(--bg-primary);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease);
}

.cta-arrow {
  display: inline-flex;
  transition: transform 0.3s var(--ease);
}

.cta.is-ghost {
  border-color: rgba(244, 246, 250, 0.32);
  background: transparent;
  color: var(--on-navy);
}

@media (hover: hover) and (pointer: fine) {
  .cta:hover {
    border-color: var(--sky);
    background: var(--sky);
    transform: translateY(-1px);
  }

  .cta:hover .cta-arrow {
    transform: translateX(3px);
  }

  .cta.is-ghost:hover {
    border-color: var(--on-navy);
    background: rgba(244, 246, 250, 0.08);
  }
}

.cta:active {
  transform: scale(0.98);
  transition-duration: 0.16s;
}

.cta:focus-visible {
  outline: 2px solid var(--on-navy);
  outline-offset: 3px;
}

/* Vertrauenszeile: drei kurze Fakten, Gold nur als Punkt */
.stage-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--on-navy);
}

.stage-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stage-facts li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-metal);
}

/* Lichtschimmer: läuft nach dem Laden einmal über die Barren, nur am Desktop */
.stage-sheen {
  display: none;
}

@media (min-width: 1280px) {
  .stage-img {
    z-index: 0;
  }

  .stage-body {
    z-index: 2;
  }

  .stage-sheen {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: block;
    width: 56%;
    overflow: hidden;
    pointer-events: none;
    mix-blend-mode: screen;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 25%, #000 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 25%, #000 85%, transparent 100%);
  }

  .stage-sheen::after {
    content: "";
    position: absolute;
    inset: -10% auto -10% 0;
    width: 40%;
    background: linear-gradient(105deg, transparent 20%, rgba(255, 236, 190, 0.32) 50%, transparent 80%);
    transform: translateX(-120%);
    animation: stageSheen 2.4s cubic-bezier(0.45, 0, 0.2, 1) forwards 1.1s;
  }
}

@keyframes stageSheen {
  to { transform: translateX(320%); }
}

/* Einstieg: Text steigt auf, das Foto setzt sich. Nur Bewegung, keine Ausblendung. */
.stage-body > * {
  transform: translateY(24px);
  animation: startRise 0.8s var(--ease) forwards;
}

.stage-body > :nth-child(2) { animation-delay: 0.08s; }
.stage-body > :nth-child(3) { animation-delay: 0.16s; }
.stage-body > :nth-child(4) { animation-delay: 0.24s; }
.stage-body > :nth-child(5) { animation-delay: 0.32s; }

.stage-img {
  transform: scale(1.04);
  animation: startRise 1.4s var(--ease) forwards;
}

@keyframes startRise {
  to { transform: none; }
}


/* -----------------------------------------------------------------
   2. GEMEINSAME BAUSTEINE
   ----------------------------------------------------------------- */

/* Fläche: runde Karte mit Abstand zum Rand, innen derselbe Rhythmus wie zwischen Abschnitten */
.band {
  width: min(var(--frame-max), 100% - 2 * var(--frame-pad));
  margin: var(--rhythm) auto 0;
  padding-block: var(--band-pad);
  border-radius: var(--card-radius);
  background: var(--sky);
}

/* Inhalt auf Weiß steht auf den Kanten des Rahmens, Inhalt in Flächen hat eigenen Innenabstand */
.start main > section > .container {
  max-width: calc(var(--frame-max) + 2 * var(--frame-pad));
  padding-inline: max(var(--frame-pad), 24px);
}

.start .band > .container {
  max-width: none;
  padding-inline: clamp(24px, 5vw, 80px);
}

/* Header: am Rechner 88 px hoch, damit Logo und Knopf oben Luft haben (24 px statt 16 px).
   Mit dem Menüknopf (bis 1024 px) bleibt es bei 72 px. Alle Abstände, die sich nach dem
   Header richten, hängen an --header-h. */
.start {
  --header-h: 88px;
  /* Grund aller dunklen Heros: oben fast schwarz, unten Blau, aus der linken Kante des Barrenfotos.
     Höhe am Rechner auf allen Seiten gleich, damit beim Wechsel nichts springt. */
  --hero-gradient: linear-gradient(180deg, #081113 0%, #08121A 42%, #142331 72%, #2B4157 100%);
  --hero-height: clamp(560px, 40vw, 720px);
  /* Abschluss und Footer bilden eine Karte und teilen sich den Verlauf: oben der dunkle Teil,
     im Footer läuft er ins Blau aus. Die Nahtfarbe ist in beiden dieselbe. */
  --hero-seam: #142331;
  --closing-gradient: linear-gradient(180deg, #081113 0%, #08121A 58%, var(--hero-seam) 100%);
  --footer-gradient: linear-gradient(180deg, var(--hero-seam) 0%, #2B4157 100%);
}

@media (max-width: 1024px) {
  .start {
    --header-h: 72px;
  }
}

.start .site-header {
  height: var(--header-h);
}

/* main.js setzt nach einem Sprunglink den Fokus auf das Sprungziel, damit Vorlesegeräte dort
   weiterlesen. Das Ziel ist nicht bedienbar, deshalb ohne Fokusrahmen (sonst Striche quer über
   die Seite). Der Rahmen kommt in main.css als box-shadow (--focus-ring), nicht als outline,
   deshalb beides abschalten. Links und Knöpfe behalten ihren Rahmen. */
.start section[tabindex="-1"]:focus,
.start [id][tabindex="-1"]:focus {
  outline: none;
  box-shadow: none;
}

/* Sprungziele und per Tastatur angesteuerte Elemente landen nicht unter dem festen Header */
html:has(body.start) {
  scroll-padding-top: calc(var(--header-h, 88px) + 16px);
}

/* Header auf denselben Rahmen */
@media (min-width: 641px) {
  .start .header-inner {
    max-width: calc(var(--frame-max) + 2 * var(--frame-pad));
    padding-inline: var(--frame-pad);
  }
}

.band.is-navy {
  background: var(--closing-gradient);
  color: var(--on-navy-muted);
}

/* Abschnittsmarke: normal geschrieben, kurzer goldener Strich davor */
.lead-in {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--ink-body);
}

.lead-in::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-primary);
}

.is-navy .lead-in {
  color: var(--on-navy-muted);
}

/* Überschriften der Abschnitte: Aussage, dann Nachsatz. Keine Markierung, die Überschrift steht für sich. */
.start main h2 {
  font-family: 'Satoshi Variable', var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--ink);
}

.start main .is-navy h2 {
  color: var(--on-navy);
}

/* Auf Dunkelblau trägt der Nachsatz dasselbe Gold wie die Wörter im Hero */
.is-navy .answer {
  background: var(--gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media (forced-colors: active) {
  .is-navy .answer {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: currentColor;
  }
}

.start main h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.text-link {
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Aufsteigen beim Hineinscrollen: nur Bewegung, Inhalte sind nie unsichtbar */
.is-live [data-rise] {
  transform: translateY(28px);
  transition: transform 1s var(--ease);
}

.is-live [data-rise].is-in {
  transform: none;
}

/* Kopf mit Überschrift links und Begleitung rechts */
.tool-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px 80px;
  margin-bottom: 72px;
}

@media (max-width: 900px) {
  .tool-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

/* Wendepunkt im Kopf des Rechners: Überschrift über die ganze Breite, der Text darunter.
   „Pflicht“ wird mit dem Scrollstand golden durchgestrichen und tritt zurück, darunter tritt die
   Berichtigung hervor (--p von 0 bis 1, setzt start.js). Ohne Skript und bei reduzierter Bewegung
   steht der Endzustand da. */
.tool-head.is-turn {
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 0;
}

.tool-head.is-turn .tool-lead {
  max-width: 62ch;
  margin-top: 32px;
}

[data-turn] {
  --p: 1;
  --strike: clamp(0, calc(var(--p) / 0.55), 1);
  --answer: clamp(0, calc((var(--p) - 0.45) / 0.55), 1);
}

.swap-out {
  position: relative;
  white-space: nowrap;
}

.swap-out > span {
  opacity: calc(1 - 0.5 * var(--strike));
}

.swap-out::after {
  content: "";
  position: absolute;
  inset: 55% -0.06em auto;
  height: 0.1em;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--gold-hero-deep), var(--gold-hero) 55%, var(--gold-hero-top));
  transform: scaleX(var(--strike));
  transform-origin: 0 50%;
}

.swap-in {
  display: inline-block;
  opacity: var(--answer);
  transform: translateY(calc((1 - var(--answer)) * 0.18em));
}

/* Der Scrollstand kommt in Schritten: kurze Übergänge glätten ihn, ohne nachzuhängen */
.is-live .swap-out > span,
.is-live .swap-in {
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.is-live .swap-out::after {
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}


/* -----------------------------------------------------------------
   3. AUSGANGSLAGE (Weiß, mittig, direkt unter dem dunklen Hero)
   Ein Blickpunkt: eine Linie, die vom eingezahlten Betrag zur
   Kaufkraft nach der Mietdauer fällt. Sie ist dunkel, weil sie das
   Konto zeigt.
   ----------------------------------------------------------------- */
.drift-head {
  max-width: var(--head-measure);
  margin-inline: auto;
  text-align: center;
}

/* Die Zeichnung bleibt schmal und mittig: Sie soll den Gedanken zeigen, nicht die Seite füllen */
.drift-stage {
  --p: 1;
  max-width: 880px;
  margin: 80px auto 0;
}

.drift-fig {
  display: grid;
  gap: 8px;
  max-width: none;
}

.drift-fig.is-end {
  justify-items: end;
  text-align: right;
}

.drift-num {
  font-family: 'Satoshi Variable', var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}

.drift-cap {
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--ink-body);
}

/* Die Zeichnung: gepunktete Höhe des Einzugs, darunter die fallende Linie.
   Beide Bilder dehnen sich auf die Breite, die Strichstärke bleibt fest. */
.drift-chart {
  position: relative;
  height: var(--drift-drop);
  margin-block: 20px;
  container-type: size;
}

.drift-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.drift-level line {
  stroke: var(--text-secondary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 0.1 10;
  vector-effect: non-scaling-stroke;
}

/* Fläche und Linie erscheinen von links, so weit der Abschnitt gescrollt ist (--p aus start.js) */
.drift-drawn {
  clip-path: inset(-12px calc((1 - var(--p)) * 100%) -12px -12px);
}

.drift-gap {
  fill: var(--sky);
}

.drift-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.drift-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 5px var(--bg-primary);
  /* Lage in Anteilen der Zeichnung: --x und --y setzt start.js, ohne Skript steht der Punkt am Ende */
  transform: translate(calc(var(--x, 1) * 100cqw - 50%), calc(var(--y, 0.8824) * 100cqh - 50%));
}

.drift-dot.is-start {
  --x: 0;
  --y: 0.1294;
  width: 12px;
  height: 12px;
  background: var(--bg-primary);
  box-shadow: inset 0 0 0 2.5px var(--ink), 0 0 0 4px var(--bg-primary);
}

.drift-note {
  max-width: 62ch;
  margin: 48px auto 0;
  text-align: center;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--ink-body);
}




/* -----------------------------------------------------------------
   4. DREI WEGE MIT RECHNER (Himmelblau): oben der Kopf, darunter das
   Reglerfeld (Kaution, Mietdauer, Goldpreis), darunter drei gleich
   große Karten über die ganze Breite, die Goldkaution in der Mitte.
   Erst der Rechner (links Regler, rechts nur die Goldkaution), dann der
   Vergleich der drei Wege, der mit denselben Reglern rechnet.
   Die Stile der Regler selbst stehen bei 6. RECHNER.
   ----------------------------------------------------------------- */
/* Rechnerkarte: weiße Karte, links die drei Regler untereinander, rechts das Ergebnis der
   Goldkaution auf Dunkelblau. Am Laptop steht beides in einem Bild. */
.start .calc.calc-panel {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "form result";
  align-items: stretch;
  gap: 32px clamp(32px, 4vw, 64px);
  padding: clamp(20px, 3vw, 40px);
}

.calc-panel .calc-form {
  align-self: center;
}

/* Alle drei Felder gleich gebaut: Zeile mit Name links und Wert rechts, darunter der Regler */
.calc-panel .calc-label-row {
  align-items: center;
  min-height: 44px;
}

/* Kaution: kleines Zahlenfeld rechts in der Zeile, zum Eintippen */
.calc-panel .calc-amount {
  flex: 0 0 auto;
  align-items: center;
  width: 9.5ch;
  height: 40px;
  margin-top: 0;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
}

.calc-panel .calc-amount input {
  height: 100%;
  min-height: 0;
  font-family: inherit;
  letter-spacing: 0;
  text-align: right;
}

.calc-panel .calc-presets {
  margin-top: 10px;
}

/* Vorgaben für den Goldpreis: kleine Pillen unter dem Regler, die Gegenproben gestrichelt */
.calc-panel .calc-history {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

/* Helles Gold zeigt: Hier lässt sich etwas einstellen. Die gewählte Pille ist dunkelblau. */
.calc-panel .calc-history-item {
  justify-content: center;
  min-height: 44px;
  border-color: var(--gold-hero);
  background: var(--gold-light);
  color: var(--ink);
}

.calc-panel .calc-history-item[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--on-navy);
}

@media (hover: hover) and (pointer: fine) {
  .calc-panel .calc-history-item:not([aria-pressed="true"]):hover {
    border-color: var(--gold-hero-deep);
    background: var(--gold-hero-top);
  }
}

.calc-history-item.is-scenario:not([aria-pressed="true"]) {
  border-style: dashed;
}

/* Ergebnis der Goldkaution: eine große Zahl, darunter drei Zeilen */
.calc-gold {
  container-type: inline-size;
  grid-area: result;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 24px;
  background: var(--hero-gradient);
  color: var(--on-navy-muted);
}

.calc-gold-title {
  max-width: none;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--on-navy);
}

.calc-gold-figure {
  width: fit-content;
  max-width: none;
  margin-top: 16px;
  font-family: 'Satoshi Variable', var(--font-display);
  font-size: clamp(2.5rem, 15cqw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background: var(--gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media (forced-colors: active) {
  .calc-gold-figure {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: currentColor;
  }
}

.calc-gold-note,
.calc-gold-risk {
  max-width: none;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.calc-gold-note {
  margin-top: 12px;
}

.calc-gold-rows {
  margin: 28px 0 0;
}

.calc-gold-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 16px;
  border-top: 1px solid var(--on-navy-line);
}

.calc-gold-rows dt {
  font-size: 1rem;
  line-height: 1.4;
}

.calc-gold-rows dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--on-navy);
}

/* Erklärung unter einer Zeile: eigene Zeile über die volle Breite, leiser als der Wert */
.calc-gold-rows > div:has(.calc-gold-hint) {
  flex-wrap: wrap;
}

.calc-gold-rows dd.calc-gold-hint {
  flex-basis: 100%;
  margin-top: -8px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  white-space: normal;
  color: var(--on-navy-muted);
}

.calc-gold-risk {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--on-navy-line);
}

/* Schmal: erst das Ergebnis, dann die Regler, damit die Zahl über den Reglern steht */
@media (max-width: 900px) {
  .start .calc.calc-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "result"
      "form";
  }
}

/* Handy: Name über dem Wert, damit die Zeilen nicht umbrechen */
@media (max-width: 560px) {
  .calc-gold {
    padding: 20px;
    border-radius: 18px;
  }

  .calc-gold-rows {
    margin-top: 20px;
  }

  .calc-gold-rows > div {
    flex-direction: column;
    gap: 2px;
    padding-block: 12px;
  }

  .calc-gold-rows dt {
    font-size: 0.9375rem;
  }

  /* Untereinander: flex-basis würde hier die Höhe setzen */
  .calc-gold-rows dd.calc-gold-hint {
    flex-basis: auto;
    margin-top: 4px;
  }

  .calc-gold-risk {
    padding-top: 14px;
  }
}

/* Beispiele unter der Kaution: zwei kleine Schalter, die den Betrag setzen */
.calc-presets {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: none;
}

.calc-presets legend {
  float: left;
  margin-right: 10px;
  padding: 0;
  font-size: 0.875rem;
  color: var(--ink-body);
}

.calc-presets label {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--ink);
}

.calc-presets input:checked + label {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--on-navy);
}

/* Rechtlicher Hinweis zur Rechnung, unter den aufklappbaren Details */
.routes .calc-disclaimer {
  max-width: none;
  margin-top: 28px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-body);
}

/* Kopf des Vergleichs: kleine Überschrift und eine Zeile, mittig über den Karten */
.ways-head {
  display: grid;
  justify-items: center;
  gap: 20px;
  margin-top: var(--rhythm);
  text-align: center;
}

.start main .ways-head h3 {
  max-width: 24ch;
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.ways-head p {
  max-width: 52ch;
  color: var(--ink-body);
}

/* Unterschied zum Konto: eine Zeile mittig unter den Karten */
.calc-diff {
  width: fit-content;
  max-width: 100%;
  margin: 28px auto 0;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-body);
}

.calc-diff strong {
  font-weight: 600;
  white-space: nowrap;
  color: var(--success-text);
}

.calc-diff strong.is-minus {
  color: var(--danger);
}

/* Drei gleich große Karten nebeneinander, die Zeilen stehen über alle Karten auf gleicher
   Höhe (subgrid). Die Goldkaution steht in der Mitte, dunkel und leicht angehoben. */
.ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto repeat(4, auto);
  gap: 0 16px;
  padding-top: 24px;
}

/* Unter dem Kopf des Vergleichs: voller Bausteinabstand bis zur angehobenen Goldkarte (16 px höher) */
.ways-head + .ways {
  padding-top: calc(var(--stack) + 16px);
}

.way-card {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--bg-primary);
}

.start main .way-card h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.way-card dl {
  display: contents;
}

.way-card dl > div {
  display: grid;
  align-content: start;
  gap: 2px;
  padding-block: 12px;
  border-top: 1px solid var(--border);
}

.way-card dt {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-body);
}

.way-card dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}

.way-card.is-gold {
  border-color: transparent;
  background: var(--hero-gradient);
  box-shadow: 0 24px 60px rgba(15, 26, 46, 0.22);
  translate: 0 -16px;
}

.start main .way-card.is-gold h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-navy);
}

.way-card.is-gold h3::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-metal);
}

.way-card.is-gold dl > div {
  border-top-color: var(--on-navy-line);
}

.way-card.is-gold dt {
  color: var(--on-navy-muted);
}

.way-card.is-gold dd {
  color: var(--on-navy);
}

/* Preis des Wegs: eigenes Feld oben in jeder Karte, große Zahl, auf der dunklen Karte in Gold.
   Gilt auf der Startseite und auf den Unterseiten, damit der Vergleich überall gleich aussieht. */
.way-price {
  container-type: inline-size;
  display: grid;
  align-content: start;
  gap: 6px;
  margin: 8px 0 12px;
  padding: 20px;
  border-radius: 18px;
  background: var(--sky);
}

.way-price-label {
  max-width: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

.way-price-figure {
  max-width: none;
  font-family: 'Satoshi Variable', var(--font-display);
  /* richtet sich nach der Breite des Felds: schmale Karten (Startseite) und breite (Unterseiten) aus einem Guss */
  font-size: clamp(1.75rem, 12cqw, 3.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* Anteil an der Kaution: Balken im Verhältnis zum teureren Weg, daneben die Prozentzahl */
.way-price-share {
  display: grid;
  gap: 8px;
  max-width: none;
  margin-block: 6px 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.way-price-share.is-empty {
  font-weight: 400;
  color: var(--ink-body);
}

.way-bar {
  position: relative;
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--bg-primary);
}

.way-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ink);
  transform: scaleX(var(--share, 1));
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease);
}

.way-card.is-gold .way-price-share {
  color: var(--on-navy);
}

.way-card.is-gold .way-bar {
  background: rgba(244, 246, 250, 0.14);
}

.way-card.is-gold .way-bar::before {
  background: var(--gold-metal);
}

/* Die Balken wachsen, wenn der Vergleich ins Bild kommt */
.is-live .ways:not(.is-in) .way-bar::before {
  transform: scaleX(0);
}

.way-price-note {
  max-width: none;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-body);
}

.way-card.is-gold .way-price {
  background: rgba(244, 246, 250, 0.07);
}

.way-card.is-gold .way-price-label {
  color: var(--on-navy);
}

.way-card.is-gold .way-price-share.is-empty,
.way-card.is-gold .way-price-note {
  color: var(--on-navy-muted);
}

.way-card.is-gold .way-price-figure {
  width: fit-content;
  background: var(--gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media (forced-colors: active) {
  .way-card.is-gold .way-price-figure {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: currentColor;
  }
}

/* Unter 900 px: Karten untereinander, sonst wird das Preisfeld zu schmal für die große Zahl */
@media (max-width: 900px) {
  .ways {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 16px;
    padding-top: 0;
  }

  .ways-head + .ways {
    padding-top: var(--stack);
  }

  .way-card {
    grid-row: auto;
    grid-template-rows: none;
  }

  .way-card.is-gold {
    translate: none;
  }
}

/* Für wen es passt */
.fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 80px;
  margin-top: var(--stack);
}

.fit-col h3 {
  margin-bottom: 20px;
}

.fit-list {
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
}

.fit-list li {
  position: relative;
  max-width: 52ch;
  padding-left: 36px;
  line-height: 1.6;
  color: var(--ink-body);
}

.fit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

/* Haken auf Gold: passt */
.fit-list.is-yes li::before {
  background: var(--gold-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='%23262626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

/* Strich auf Weiß: eher nicht (der Abschnitt liegt auf Himmelblau) */
.fit-list.is-no li::before {
  background: var(--bg-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 11h8' fill='none' stroke='%23575757' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

@media (max-width: 760px) {
  .fit {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* -----------------------------------------------------------------
   5. SICHERHEIT (Weiß, ohne Rahmen, geteilt)
   Links der Text, rechts genau ein Gegenstand: das Depot als dunkle
   Karte, gerade und an der Rahmenkante. Die Karte trägt auch die drei
   Beteiligten, damit nichts Drittes daneben steht. Der Abschnitt
   wechselt sich mit „Einrichten“ ab, dort steht das Bild links.
   ----------------------------------------------------------------- */
.vault-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px 96px;
}

/* Karte links, Text rechts. Im Markup steht der Text zuerst, damit Vorleser und Handy mit ihm beginnen */
.depot {
  order: -1;
  justify-self: start;
  width: min(100%, 540px);
  margin: 0;
  padding: 36px;
  container: depot / inline-size;
  border-radius: var(--card-radius);
  background: var(--hero-gradient);
  color: var(--on-navy-muted);
  box-shadow: 0 32px 72px rgba(15, 26, 46, 0.22);
}

.depot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--on-navy-line);
}

.depot-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Satoshi Variable', var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--on-navy);
}

.depot-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-metal);
}

.depot-tag {
  padding: 4px 12px;
  border: 1px solid var(--on-navy-line);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-navy-muted);
}

.depot-rows {
  display: grid;
  margin: 0;
}

.depot-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--on-navy-line);
}

.depot-rows dt {
  font-size: 0.9375rem;
  color: var(--on-navy-muted);
}

.depot-rows dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
  color: var(--on-navy);
}

.depot-state {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: none;
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: var(--gold-light);
  font-weight: 500;
  color: var(--ink);
}

/* Schloss als einfache Form aus Bügel und Körper */
.depot-lock {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 12px;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--ink);
}

.depot-lock::before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 100%;
  width: 10px;
  height: 8px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.vault-lead {
  max-width: 48ch;
  margin-top: 20px;
  color: var(--ink-body);
}

.start main .keys-title {
  margin-top: 48px;
}

.keys-note {
  max-width: 48ch;
  margin-top: 12px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-body);
}

@media (max-width: 900px) {
  .vault-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .depot {
    order: 0;
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .depot {
    padding: 24px;
  }
}

/* Schmale Karte: Rolle über dem Namen, damit lange Firmennamen nicht umbrechen */
@container depot (max-width: 440px) {
  .depot-rows > div {
    flex-direction: column;
    gap: 2px;
    padding-block: 12px;
  }

  .depot-rows dd {
    text-align: left;
  }
}


/* -----------------------------------------------------------------
   6. RECHNER: Stile der Regler und ihres Zubehörs. Der Rechner ist Teil des
   Abschnitts „Drei Wege“ (siehe 4.), das Ergebnis steht in den Karten.
   ----------------------------------------------------------------- */
.tool-lead {
  max-width: 48ch;
  color: var(--ink-body);
}

.start .calc {
  --tool-bg: var(--bg-primary);
  --tool-text: var(--ink-body);
  --tool-line: var(--border-strong);
  --focus-ring: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--ink);
  margin-top: 0;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  grid-template-areas:
    "form   result"
    "hint   hint"
    "disc   disc";
}

@media (max-width: 900px) {
  .start .calc {
    grid-template-areas:
      "form"
      "result"
      "hint"
      "disc";
  }
}

.start .calc-field label,
.start .calc-label-row,
.start .calc output,
.start .calc-amount {
  color: var(--ink);
}

.start .calc-amount {
  background: var(--sky);
  border-color: var(--sky-line);
}

.start .calc-amount:focus-within {
  border-color: var(--ink);
}

.start .calc-amount input[aria-invalid="true"],
.start .calc-error {
  color: var(--danger);
}

.start .calc input[type="range"] {
  background: linear-gradient(90deg,
      var(--ink) 0 var(--fill, 50%),
      var(--sky-deep) var(--fill, 50%) 100%)
    center / 100% 6px no-repeat;
}

.start .calc input[type="range"]::-webkit-slider-thumb {
  border-color: var(--ink);
}

.start .calc input[type="range"]::-moz-range-thumb {
  border-color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .start .calc-share .chip:hover {
    border-color: var(--ink);
  }
}

.start .calc-share .chip {
  border-color: var(--border-strong);
  background: var(--bg-primary);
  color: var(--ink);
}

.start .calc-share .chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #FFFFFF;
}

/* Hinweis unter dem Regler: woher die vorbelegte Wertentwicklung kommt */
.calc-rate-note {
  max-width: none;
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-body);
}

/* Steuerschalter fürs Konto */
.calc-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
}

.calc-check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--navy);
}

.calc-tax-note {
  max-width: none;
  margin-top: 8px;
  padding-left: 32px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-body);
}

/* Rückblick als schmale Zeile kleiner Pillen zum Antippen */
.calc-history {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.calc-history-title {
  margin-right: 4px;
  font-size: var(--fs-small);
  color: var(--ink-body);
}

.calc-history-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: var(--bg-primary);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: nowrap;
  color: var(--ink-body);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.16s ease-out;
}

.calc-history-item strong {
  font-weight: 600;
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .calc-history-item:hover {
    border-color: var(--navy);
  }
}

.calc-history-item:active {
  transform: scale(0.98);
}

.calc-history-item[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--on-navy);
}

.calc-history-item[aria-pressed="true"] strong {
  color: var(--on-navy);
}

.calc-history-item:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.calc-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 28px;
}

.calc-share[hidden] {
  display: none;
}

.calc-share-status,
.letter-status {
  font-size: 0.875rem;
  line-height: 1.4;
}

.calc-share-status {
  color: var(--ink-body);
}

.tool-folds {
  margin-top: var(--stack);
}

.start .fold {
  margin-top: 16px;
  scroll-margin-top: 88px;
}


/* -----------------------------------------------------------------
   7. EINRICHTEN (Weiß): ein Gegenstand, drei Zustände. Links ein
   Objekt, das beim Scrollen stehen bleibt, rechts direkt daneben die Schritte:
   1 Vereinbarung, zwei Unterschriften zeichnen sich
   2 das Depot auf Ihren Namen legt sich davor, Gold füllt sich
   3 das Siegel der Verpfändung setzt sich darauf
   Gesteuert über data-step am Rahmen (0 bis 3, ohne Skript 3).
   Darunter die Vorlage: links Erklärung und Knöpfe, rechts der Brief.
   ----------------------------------------------------------------- */
.setup {
  --stage-height: 560px;
  --object-scale: 1;
  --doc-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

.setup-head {
  max-width: var(--head-measure);
  margin: 0 auto 88px;
  text-align: center;
}

.setup-lead {
  max-width: 52ch;
  margin: 20px auto 0;
  color: var(--ink-body);
}

.setup-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
}

/* Bühne: himmelblaue Fläche, bleibt beim Scrollen mittig im Fenster stehen */
.setup-stage {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: max(calc(var(--header-h) + 24px), calc(50vh - var(--stage-height) / 2));
  display: grid;
  /* Feste Spur: Das Objekt behält seine Zeichenmaße und wird nur skaliert, es soll trotzdem mittig sitzen */
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  height: var(--stage-height);
  overflow: hidden;
  align-self: start;
  border-radius: var(--card-radius);
  background: var(--sky);
}

/* Das Objekt ist in festen Maßen gezeichnet und wird als Ganzes skaliert */
.setup-object {
  position: relative;
  width: 400px;
  height: 440px;
  flex: none;
  transform: scale(var(--object-scale));
}

.doc {
  position: absolute;
  border-radius: 20px;
  background: var(--bg-primary);
  box-shadow: 0 1px 0 var(--sky-line), 0 24px 48px rgba(15, 26, 46, 0.10);
  transition: transform 0.7s var(--doc-ease), opacity 0.5s var(--doc-ease);
}

.doc-kicker {
  max-width: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-body);
}

/* 1 Vereinbarung */
.doc-contract {
  top: 0;
  left: 0;
  width: 320px;
  height: 380px;
  padding: 32px 28px;
}

.doc-contract .doc-kicker {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sky-line);
}

.doc-line {
  display: block;
  height: 8px;
  margin-top: 12px;
  border-radius: 4px;
  background: var(--sky-deep);
}

.doc-line.is-short {
  width: 62%;
}

.doc-signs {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.doc-sign svg {
  display: block;
  width: 100%;
  height: 40px;
  border-bottom: 1px solid var(--ink);
}

.doc-sign path {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.doc-sign span {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--ink-body);
}

/* 2 Depot auf Ihren Namen */
.doc-depot {
  top: 120px;
  left: 64px;
  width: 320px;
  padding: 28px;
}

.doc-owner {
  max-width: none;
  margin-top: 4px;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
}

.doc-amount {
  max-width: none;
  margin-top: 20px;
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.doc-gold {
  display: block;
  height: 14px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--sky);
}

.doc-gold-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-hero-deep), var(--gold-hero) 55%, var(--gold-hero-top));
  transform-origin: 0 50%;
  transition: transform 1.1s var(--doc-ease) 0.25s;
}

.doc-note {
  max-width: none;
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--ink-body);
}

/* 3 Siegel der Verpfändung: Gold als Fläche, Schrift dunkel */
.doc-seal {
  position: absolute;
  right: -4px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  padding: 22px;
  border-radius: 50%;
  background: var(--gold-metal);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.7), 0 18px 36px rgba(15, 26, 46, 0.18);
  transform: rotate(-10deg);
  transition: transform 0.45s var(--doc-ease), opacity 0.25s ease;
}

.doc-seal::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(15, 26, 46, 0.35);
  border-radius: 50%;
}

.doc-seal span {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
}

/* Zustände (nur mit Bewegung; ohne steht der Endzustand da) */
.is-live .setup-story:not([data-step="3"]) .doc-seal {
  opacity: 0;
  transform: scale(1.35) rotate(-24deg);
}

.is-live .setup-story[data-step="0"] .doc-depot,
.is-live .setup-story[data-step="1"] .doc-depot {
  opacity: 0;
  transform: translateY(48px);
}

.is-live .setup-story[data-step="0"] .doc-gold-fill,
.is-live .setup-story[data-step="1"] .doc-gold-fill {
  transform: scaleX(0);
}

/* Liegt das Depot davor, tritt die Vereinbarung leicht zurück */
.is-live .setup-story[data-step="2"] .doc-contract,
.is-live .setup-story[data-step="3"] .doc-contract {
  transform: translate(-8px, -8px) rotate(-3deg);
}

.is-live .setup-story[data-step="0"] .doc-sign path {
  stroke-dashoffset: 1;
}

.is-live .doc-sign path {
  transition: stroke-dashoffset 0.8s ease-out;
}

.is-live .doc-sign + .doc-sign path {
  transition-delay: 0.6s;
}

/* Schritte rechts neben der Bühne: Ziffer, senkrechte Linie zur nächsten Ziffer */
.setup-steps {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-steps li {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  row-gap: 12px;
  min-height: 52vh;
  padding-left: 76px;
  transition: opacity 0.4s ease;
}

/* Der letzte Schritt hält die Bühne noch eine Weile, damit das Siegel zu sehen ist */
.setup-steps li:last-child {
  min-height: calc(var(--stage-height) * 0.85);
}

/* Linie von dieser Ziffer zur nächsten: hinten hellblau, Gold füllt sich, wenn der Schritt erledigt ist */
.setup-steps li:not(:last-child)::before,
.setup-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 56px;
  bottom: 8px;
  left: 21px;
  width: 2px;
  border-radius: 2px;
}

.setup-steps li::before {
  background: var(--sky-line);
}

.setup-steps li::after {
  background: var(--gold-hero);
  transform-origin: 50% 0;
  transition: transform 0.6s var(--doc-ease);
}

.setup-num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-metal);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Der Text muss neben der großen Bühne bestehen: große Überschrift, dunkle Schrift, kurze Zeilen */
.start main .setup-steps h3 {
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.setup-steps p {
  max-width: 34ch;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink);
}

/* Mit Bewegung: Nur der aktive Schritt steht voll da, die anderen treten zurück, die kommende
   Ziffer ist noch ohne Gold. So bleibt ein Lesepunkt neben dem Bild. Nicht blasser als 0.66:
   Darunter fällt die dunkle Schrift auf Weiß unter 4,5:1 und ist für viele nicht mehr lesbar. */
.is-live .setup-steps li {
  opacity: 0.66;
}

.is-live .setup-steps li.is-active {
  opacity: 1;
}

.is-live .setup-steps li:not(.is-done)::after {
  transform: scaleY(0);
}

.is-live .setup-steps li:not(.is-done):not(.is-active) .setup-num {
  background: var(--sky);
  box-shadow: inset 0 0 0 1px var(--sky-line);
}

.is-live .setup-steps li.is-active .setup-num {
  box-shadow: 0 0 0 6px var(--gold-light);
}

/* Unterlage als kleine Pille: Name plus Art */
.setup-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.setup-link span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .setup-link:hover {
    border-color: var(--navy);
    background: var(--sky);
  }
}

.setup-link:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* Vorlage: links Erklärung und Knöpfe, rechts der Brief als weißes Blatt */
.letter {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 56px;
  margin-top: 96px;
  /* Innenabstand wie in den Flächen, damit der Inhalt auf denselben Kanten steht */
  padding: 72px clamp(24px, 5vw, 80px);
  border-radius: var(--card-radius);
  background: var(--sky);
}

.start main .letter-side h3 {
  font-size: 1.75rem;
  line-height: 1.2;
}

.letter-side p {
  max-width: 40ch;
  margin-top: 14px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-body);
}

.letter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.letter-actions [hidden] {
  display: none;
}

.letter-status {
  flex-basis: 100%;
  color: var(--ink-body);
}

.letter-status:empty {
  display: none;
}

.letter-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-block: 8px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.letter-pdf span {
  font-size: 0.8125rem;
  color: var(--ink-body);
  text-decoration: none;
}

.letter-sheet {
  position: relative;
  margin: 0;
  padding: 40px 44px;
  border-radius: 20px;
  background: var(--bg-primary);
  box-shadow: 0 1px 0 var(--sky-line), 0 24px 48px rgba(15, 26, 46, 0.08);
}

/* Kurze Goldlinie oben wie bei den Abschnittsmarken */
.letter-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 44px;
  width: 40px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--gold-metal);
}

.letter-subject {
  max-width: none;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sky-line);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-body);
}

.letter-body p {
  max-width: none;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-body);
  overflow-wrap: anywhere;
}

.letter-body p + p {
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .setup {
    --stage-height: 500px;
    --object-scale: 0.88;
  }

  .setup-story {
    gap: 48px;
  }

  .letter {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 48px;
  }
}

/* Handy und Tablet hochkant: Die Bühne steht oben unter dem Header still, die Schritte laufen darunter durch */
@media (max-width: 900px) {
  .setup {
    --stage-height: 290px;
    --object-scale: 0.6;
  }

  .setup-head {
    margin-bottom: 48px;
  }

  .setup-story {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .setup-stage {
    top: 84px;
    z-index: 2;
    /* Weißer Rand bis unter den Header, unten weich auslaufend: Die Schritte verschwinden darunter */
    box-shadow: 0 -16px 0 8px var(--bg-primary), 0 16px 24px -8px var(--bg-primary);
  }

  .setup-steps {
    grid-column: 1;
    grid-row: 2;
    padding-top: 48px;
  }

  .setup-steps li,
  .setup-steps li:first-child,
  .setup-steps li:last-child {
    min-height: 0;
    padding-bottom: 56px;
    padding-left: 64px;
  }

  .is-live .setup-steps li {
    min-height: 46vh;
  }

  /* Letzter Schritt nur so hoch, dass das Siegel kurz stehen bleibt */
  .is-live .setup-steps li:last-child {
    min-height: 28vh;
  }

  .start main .setup-steps h3 {
    font-size: 1.5rem;
  }

  .setup-steps p {
    font-size: 1.0625rem;
  }
}

@media (max-width: 640px) {
  .letter {
    margin-top: 72px;
    padding: 28px 20px 20px;
  }

  .start main .letter-side h3 {
    font-size: 1.5rem;
  }

  /* Beide Knöpfe gleich breit untereinander statt ungleich umbrochen */
  .letter-actions .btn {
    flex: 1 1 100%;
  }

  .letter-sheet {
    padding: 32px 24px 24px;
  }

  .letter-sheet::before {
    left: 24px;
  }
}


/* -----------------------------------------------------------------
   8. FRAGEN (Weiß, geteilt): Überschrift läuft links mit
   ----------------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  align-items: start;
  gap: 48px 96px;
}

.faq-side {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.faq-contact {
  max-width: 36ch;
  margin-top: 24px;
  color: var(--ink-body);
}

.faq-contact a[href^="tel:"] {
  white-space: nowrap;
}

/* Antworten: etwas größer, dunkler und kürzere Zeilen als im gemeinsamen Baustein, damit sie gelesen werden */
.faq-grid .qa-item p {
  max-width: 64ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-body);
}

@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-side {
    position: static;
  }
}


/* -----------------------------------------------------------------
   9. ABSCHLUSS UND FOOTER: eine dunkelblaue Karte im Rahmen, wie auf
   moovnao.de und xpatinsurance.de. Oben der Abschluss (rund nur oben),
   darunter ohne Lücke der Footer (rund nur unten), eine feine Linie
   trennt beide. Das Lichtfeld liegt oben rechts im Abschluss.
   ----------------------------------------------------------------- */
.closing {
  text-align: center;
}

.start main > .closing > .band {
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.start main .closing h2 {
  max-width: 17ch;
  margin-inline: auto;
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.closing .btn-primary {
  border-color: var(--bg-primary);
  background-color: var(--bg-primary);
  color: var(--navy);
}

.closing .btn-primary:hover {
  border-color: var(--sky);
  background-color: var(--sky);
  color: var(--navy);
}

.closing .btn-primary:focus-visible {
  outline-color: var(--on-navy);
}

.closing .close-link {
  color: var(--on-navy);
}

.closing .close-link:focus-visible {
  outline: 2px solid var(--on-navy);
  outline-offset: 4px;
}

.closing .close-actions {
  justify-content: center;
}


/* Logo im Header: Icon und Schriftzug als ein freigestelltes Bild (goldkaution-wortmarke.png,
   erzeugt aus goldkaution-icon.png und Satoshi 500), ohne weißen Kasten hinter dem Icon. */
.start .logo-mark {
  display: block;
  width: 175px;
  height: 40px;
}

/* Footer: Aufbau wie auf den Schwesterseiten (Marke mit Kontakt, vier Spalten, Zeile der
   Schwesterseiten mit Registerangabe, Rechtliches mit Abspann), Farben der Goldkaution */
.start .site-footer {
  padding: 0 0 var(--band-inset);
  background: none;
  color: var(--on-navy-muted);
}

.foot-card {
  width: min(var(--frame-max), 100% - 2 * var(--frame-pad));
  margin: 0 auto;
  overflow: hidden;
  border-top: 1px solid var(--on-navy-line);
  border-radius: 0 0 var(--card-radius) var(--card-radius);
  background: var(--footer-gradient);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.foot-pad {
  padding-inline: clamp(24px, 5vw, 80px);
}

/* Absätze im Footer übernehmen Größe und Farbe der Karte statt der Fließtext-Vorgaben */
.foot-card p {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.foot-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 40px;
  padding-block: 64px 48px;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  text-decoration: none;
}

/* Icon als weiße, abgerundete Kachel wie bei moovnao */
.foot-brand i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-primary);
}

.foot-brand img {
  width: 34px;
  height: 34px;
}

.foot-brand span {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--on-navy);
}

.foot-brand .foot-gold {
  color: var(--gold-hero);
}

.foot-about p {
  max-width: 34ch;
}

.foot-contact {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}

.foot-col h3 {
  margin-bottom: 16px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold-hero);
}

.foot-col ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Ziel 28 px hoch statt der globalen 44 px: reicht für WCAG 2.5.8 (24 px) und hält die Listen ruhig */
.foot-col li a,
.foot-contact a,
.foot-family a,
.foot-legal a {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 28px;
}

.foot-col ul {
  gap: 4px;
}

.foot-contact {
  gap: 0;
}

.foot-card a {
  color: var(--on-navy-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .foot-card a:hover {
    color: var(--on-navy);
  }
}

.foot-card a:focus-visible {
  outline: 2px solid var(--on-navy);
  outline-offset: 3px;
  border-radius: 4px;
}

.foot-family {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-block: 22px;
  border-top: 1px solid var(--on-navy-line);
  font-size: 0.875rem;
}

.foot-family > span {
  font-weight: 500;
  color: var(--gold-hero);
}

/* Registerzeile neben den Schwesterseiten, mit Strich abgesetzt; bricht sie um, steht sie ohne Strich darunter */
.foot-family .foot-register {
  flex: 1 1 auto;
  max-width: none;
  margin-left: auto;
  padding-left: 28px;
  border-left: 1px solid var(--on-navy-line);
  font-size: 0.84375rem;
  text-align: right;
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 22px 30px;
  border-top: 1px solid var(--on-navy-line);
  font-size: 0.84375rem;
}

.foot-legal p {
  max-width: none;
}

.foot-legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* Abspann der Agentur: Logo ist weiß, per Filter im gedämpften Ton des Footers */
.foot-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.foot-credit a {
  display: inline-block;
  line-height: 0;
}

.foot-credit img {
  width: auto;
  height: 16px;
  filter: brightness(0.7);
  transition: filter 0.2s ease;
}

.foot-credit a:hover img,
.foot-credit a:focus-visible img {
  filter: brightness(1);
}

@media (max-width: 1100px) {
  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .foot-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-block: 48px 40px;
  }

  .foot-family .foot-register {
    flex-basis: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    text-align: left;
  }

  .foot-legal {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* -----------------------------------------------------------------
   10. HANDY: fester Button nach der Ausgangslage
   ----------------------------------------------------------------- */
.dock-cta {
  display: none;
}

@media (max-width: 768px) {
  .is-live .dock-cta {
    position: fixed;
    z-index: 90;
    left: 50%;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 26px;
    border-radius: 100px;
    background: var(--navy);
    color: var(--on-navy);
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 12px 32px rgba(15, 26, 46, 0.28);
    transform: translate(-50%, calc(100% + 32px));
    /* Ausgeblendet auch für Tastatur und Vorlesegeräte nicht erreichbar */
    visibility: hidden;
    transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
  }

  .is-live .dock-cta.on {
    transform: translate(-50%, 0);
    visibility: visible;
    transition: transform 0.5s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-sheen {
    display: none;
  }

  .stage-body > *,
  .stage-img {
    animation: none;
    transform: none;
  }

}
