/* =================================================================
   GOLDKAUTION.DE — Unterseiten (seiten.css)
   Baut auf start.css auf (Tokens, Flächen, Abschnittsmarke, Abschluss
   und Footer). Hier liegen nur die Bausteine, die es auf der Startseite
   nicht gibt: Kopf der Unterseiten, Kacheln, Schrittfolge, Werkzeug-
   karte mit Reglern, Hinweise, Unterlagen.

   Jede Unterseite erzählt eine Geschichte aus Sicht ihrer Leser:
   Ausgangslage, die eigene Zahl, die Wege, was man wissen muss, wie es
   geht, Fragen, Abschluss. Flächen wechseln wie auf der Startseite
   zwischen Weiß und Himmelblau.
   ================================================================= */

/* -----------------------------------------------------------------
   1. KOPF DER UNTERSEITEN: dunkle Karte im Rahmen wie der Hero der
   Startseite, ruhiger. Text links, rechts ein Gegenstand zur Seite.
   Verlauf, Höhe und Überschrift (zwei Zeilen) sind am Rechner dieselben
   wie auf der Startseite, damit beim Seitenwechsel nichts springt.
   ----------------------------------------------------------------- */
.page-hero {
  padding: calc(var(--header-h) + var(--band-inset)) 0 0;
}

.page-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
  width: min(var(--frame-max), 100% - 2 * var(--frame-pad));
  min-height: clamp(520px, 38vw, 660px);
  margin-inline: auto;
  padding: clamp(48px, 5vw, 80px);
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--hero-gradient);
  color: var(--on-navy-muted);
  isolation: isolate;
}

@media (min-width: 1280px) {
  .page-hero-card {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    height: var(--hero-height);
    min-height: 0;
    padding-block: clamp(40px, 4vw, 64px);
  }

  /* Brotkrumen oben in der Karte, damit der Text wie auf der Startseite mittig steht */
  .page-hero .crumbs {
    position: absolute;
    top: clamp(24px, 2.4vw, 36px);
    left: clamp(48px, 5vw, 80px);
    margin: 0;
  }

  /* Maße der Überschrift wie im Hero der Startseite. Die längere Kette hebt die Regel über die Grundregel weiter unten. */
  .start .page-hero .page-hero-card h1 {
    max-width: none;
    font-size: clamp(3.25rem, 4.4vw, 4.75rem);
    line-height: 1.02;
  }

  .page-hero .stage-h1-lead,
  .page-hero .stage-h1-tail {
    white-space: nowrap;
  }

  .page-hero-object {
    --hero-object-scale: 0.86;
    min-height: 0;
  }
}

@media (min-width: 1600px) {
  .page-hero-object {
    --hero-object-scale: 1;
  }
}

.page-hero-body {
  display: grid;
  justify-items: start;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--on-navy-muted);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 10px;
  opacity: 0.5;
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 28px;
  color: var(--on-navy-muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--on-navy);
}

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

.crumbs [aria-current] {
  color: var(--on-navy);
}

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

.start .page-hero h1 {
  max-width: 15ch;
  margin-top: 0;
  font-family: 'Satoshi Variable', var(--font-display);
  font-size: clamp(2.5rem, 4.2vw, 4.25rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
  color: var(--on-navy);
}

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

.page-hero .stage-facts {
  margin-top: 28px;
}

/* Gegenstand im Kopf: dieselben Karten wie im Abschnitt „Einrichten“ der Startseite */
.page-hero-object {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
}

.page-hero-object .setup-object {
  transform: scale(var(--hero-object-scale, 1));
}

/* Einstieg wie auf der Startseite: Text steigt auf, nur Bewegung */
.page-hero-body > *,
.page-hero-object {
  transform: translateY(24px);
  animation: startRise 0.8s var(--ease) forwards;
}

.page-hero-body > :nth-child(2) { animation-delay: 0.06s; }
.page-hero-body > :nth-child(3) { animation-delay: 0.12s; }
.page-hero-body > :nth-child(4) { animation-delay: 0.18s; }
.page-hero-body > :nth-child(5) { animation-delay: 0.24s; }
.page-hero-object { animation-delay: 0.2s; }

@media (max-width: 1100px) {
  .page-hero-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .page-hero-object {
    --hero-object-scale: 0.8;
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .page-hero-card {
    padding: 48px 24px 32px;
  }

  .page-hero .stage-actions {
    justify-self: stretch;
  }

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

  /* Am Handy reduziert: Überschrift, Satz, Button. Der Gegenstand entfällt. */
  .page-hero-object {
    display: none;
  }

  .start .page-hero h1 {
    font-size: clamp(2.125rem, 9vw, 2.5rem);
    hyphens: manual;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-body > *,
  .page-hero-object {
    animation: none;
    transform: none;
  }
}

/* Der Gegenstand spielt beim Laden einmal ab: Unterschriften, Depot, Siegel.
   Reines CSS mit verzögerten Animationen, der Ausgangszustand steht schon beim ersten Bild.
   Bei reduzierter Bewegung steht sofort der Endzustand da. */
@media (prefers-reduced-motion: no-preference) {
  .is-intro .doc-sign path {
    animation: introSign 0.8s ease-out 0.5s both;
  }

  .is-intro .doc-sign + .doc-sign path {
    animation-delay: 1.1s;
  }

  .is-intro .doc-contract {
    animation: introTilt 0.7s var(--doc-ease) 1.7s both;
  }

  .is-intro .doc-depot {
    animation: introDepot 0.7s var(--doc-ease) 1.7s both;
  }

  .is-intro .doc-gold-fill {
    animation: introFill 1.1s var(--doc-ease) 1.95s both;
  }

  .is-intro .doc-seal {
    animation: introSeal 0.45s var(--doc-ease) 2.7s both;
  }
}

@keyframes introSign {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes introTilt {
  from { transform: none; }
  to { transform: translate(-8px, -8px) rotate(-3deg); }
}

@keyframes introDepot {
  from { opacity: 0; transform: translateY(48px); }
  to { opacity: 1; transform: none; }
}

@keyframes introFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes introSeal {
  from { opacity: 0; transform: scale(1.35) rotate(-24deg); }
  to { opacity: 1; transform: rotate(-10deg); }
}


/* -----------------------------------------------------------------
   ROTER FADEN: Jede Unterseite folgt den Fragen ihrer Leser, in der
   Reihenfolge, in der sie aufkommen. Jeder Abschnitt trägt Nummer und
   Frage als Marke, die Überschrift darunter gibt die Antwort.
   ----------------------------------------------------------------- */
/* Nummer des Fadens: dunkle Ziffer auf hellem Gold (Gold nie als Schrift auf Weiß) */
.q-num {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-light);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}

/* Abschnittsmarke als Frage: Nummer statt Goldstrich, Frage in dunkler Schrift */
.lead-in.is-q {
  gap: 10px;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.lead-in.is-q::before {
  display: none;
}

/* Branchen bei Gewerbe: vier Karten, jede mit sieben Feldern für sieben Monatsmieten.
   Kräftiges Gold bis zum unteren Wert der Spanne, helles Gold bis zum oberen. Der Strich
   nach dem dritten Feld zeigt die Grenze bei Wohnraum, alles rechts davon gibt es nur bei Gewerbe. */
.months {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.month-card {
  display: grid;
  align-content: start;
  padding: 32px 28px 28px;
  border-radius: 28px;
  background: var(--sky);
}

.start main .month-card h3 {
  font-size: 1.375rem;
}

.month-bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 28px;
}

/* Strich zwischen drittem und viertem Feld */
.month-bar::after {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: calc(3 * (100% + 6px) / 7 - 4px);
  width: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.month-block {
  position: relative;
  height: 56px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-primary);
}

.month-block::after {
  content: "";
  position: absolute;
  inset: 0;
}

.month-block.is-base::after {
  background: var(--gold-metal);
}

.month-block.is-range::after {
  background: var(--gold-light);
}

/* Mit Bewegung füllen sich die Felder von links nach rechts, sobald die Karten im Bild sind.
   Ohne Skript und bei reduzierter Bewegung stehen sie sofort gefüllt da. */
.is-live .months .month-block::after {
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
  transition-delay: calc(var(--i) * 90ms + 200ms);
}

.is-live .months.is-in .month-block::after {
  transform: none;
}

.month-figure {
  max-width: none;
  margin-top: 28px;
  font-family: 'Satoshi Variable', var(--font-display);
  font-size: clamp(2.25rem, 3vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.month-figure span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}

.month-note {
  max-width: none;
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-body);
}

.months-legend {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 72ch;
  margin: 32px auto 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-body);
}

.months-key.is-line {
  flex: none;
  width: 2px;
  height: 22px;
  margin-top: 1px;
  border-radius: 2px;
  background: var(--ink);
}

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

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

  .month-block {
    height: 44px;
  }
}

/* -----------------------------------------------------------------
   DER WEG: Schritte als Stationen auf einer Linie, die im Siegel endet.
   Größer als die einfache Schrittfolge: große Ziffern, jede Station
   eine Karte. Die Linie füllt sich beim Scrollen (seiten.js), die
   Stationen schalten nacheinander ein, zuletzt setzt sich das Siegel.
   Unter 1100 px stehen die Stationen untereinander.
   ----------------------------------------------------------------- */
.steps-row.is-path {
  --chip: 60px;
  gap: 20px;
  padding-top: 40px;
}

.steps-row.is-path:has(.steps-goal) {
  grid-template-columns: repeat(4, minmax(0, 1fr)) 132px;
}

.steps-row.is-path::before,
.steps-row.is-path::after {
  top: calc(40px + var(--chip) / 2 - 2px);
  left: calc(var(--chip) / 2);
  right: calc((100% - 3 * 20px) / 4 - var(--chip) / 2);
  height: 4px;
}

.steps-row.is-path:has(.steps-goal)::before,
.steps-row.is-path:has(.steps-goal)::after {
  right: 66px;
}

.steps-row.is-path li {
  gap: 0;
}

.steps-row.is-path li::before {
  width: var(--chip);
  height: var(--chip);
  margin-bottom: 24px;
  font-family: 'Satoshi Variable', var(--font-display);
  font-size: 1.5rem;
}

/* Die Station, an der die Linie gerade steht, trägt einen hellen Goldring */
.steps-row.is-path.is-scroll li.is-on:not(:has(~ li.is-on))::before {
  box-shadow: 0 0 0 8px var(--gold-light);
}

.step-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 28px;
  border-radius: 24px;
  background: var(--sky);
}

.steps-row.is-path li {
  grid-template-rows: auto minmax(0, 1fr);
}

.start main .steps-row.is-path h3 {
  font-size: 1.5rem;
}

.steps-row.is-path p {
  max-width: none;
  font-size: 1.0625rem;
  color: var(--text-body);
}

/* Ziel: das Siegel am Ende der Linie */
.steps-row.is-path .steps-goal {
  counter-increment: none;
  justify-items: center;
}

.steps-row.is-path .steps-goal::before {
  display: none;
}

.goal-seal {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  max-width: none;
  margin-top: calc(var(--chip) / 2 - 66px);
  padding: 22px;
  border-radius: 50%;
  background: var(--gold-metal);
  box-shadow: 0 0 0 8px var(--bg-primary), 0 18px 36px rgba(15, 26, 46, 0.16);
  transform: rotate(-8deg);
}

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

.steps-row.is-path .goal-seal span {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  color: var(--ink);
}

/* Das Siegel setzt sich erst, wenn die Linie angekommen ist */
.steps-row.is-path.is-scroll .steps-goal > * {
  transition: transform 0.45s var(--ease), opacity 0.25s ease;
}

.steps-row.is-path.is-scroll .steps-goal:not(.is-on) > * {
  opacity: 0;
  transform: scale(1.3) rotate(-24deg);
}

@media (max-width: 1100px) {
  .steps-row.is-path,
  .steps-row.is-path:has(.steps-goal) {
    --chip: 48px;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 0;
  }

  .steps-row.is-path::before,
  .steps-row.is-path::after,
  .steps-row.is-path:has(.steps-goal)::before,
  .steps-row.is-path:has(.steps-goal)::after {
    top: 24px;
    bottom: 66px;
    left: 22px;
    right: auto;
    width: 4px;
    height: auto;
  }

  .steps-row.is-path:not(:has(.steps-goal))::before,
  .steps-row.is-path:not(:has(.steps-goal))::after {
    bottom: 24px;
  }

  .steps-row.is-path::after {
    transform: scaleY(var(--p, 1));
  }

  .steps-row.is-path li {
    padding-left: 72px;
  }

  .steps-row.is-path li::before {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    font-size: 1.25rem;
  }

  .steps-row.is-path .steps-goal {
    justify-items: start;
    padding-left: 0;
  }

  .goal-seal {
    width: 104px;
    height: 104px;
    margin: 4px 0 0;
    padding: 16px;
  }

  .steps-row.is-path .goal-seal span {
    font-size: 0.8125rem;
  }
}

/* Schmale Handys: weniger Einzug, lange Unterlagen-Namen dürfen umbrechen */
@media (max-width: 480px) {
  .steps-row.is-path li {
    padding-left: 60px;
  }

  .step-card {
    padding: 20px;
  }

  .step-card .setup-link {
    max-width: 100%;
    flex-wrap: wrap;
    white-space: normal;
  }
}

/* Knopf am Ende der Kaufschritte */
.buy-action {
  max-width: none;
  margin-top: 36px;
}

/* -----------------------------------------------------------------
   2. ABSCHNITTSKÖPFE
   ----------------------------------------------------------------- */
.sec {
  padding-block: var(--rhythm) 0;
  scroll-margin-top: var(--header-h);
}

.sec.is-band {
  padding-block: 0;
}

.sec-head {
  max-width: var(--head-measure);
  /* Abstand Kopf zu Inhalt wie auf der Startseite */
  margin: 0 auto 88px;
  text-align: center;
}

@media (max-width: 900px) {
  .sec-head {
    margin-bottom: 48px;
  }

  .split {
    gap: 48px;
  }
}

.sec-head.is-left {
  margin-inline: 0;
  text-align: start;
}

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

.sec-head.is-left .sec-lead {
  margin-inline: 0;
}

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

/* Geteilt: Überschrift links (läuft mit), Inhalt rechts */
/* Kopf über einem Kartenfeld: links ausgerichtet, steht still. Früher lief er links mit,
   bei der kurzen Strecke brachte das nur Unruhe. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 72px;
}

.split-side {
  max-width: 760px;
}

.split-side .sec-lead {
  margin-inline: 0;
}


/* -----------------------------------------------------------------
   3. KACHELN: kurze Fakten mit großer Zahl oder Aussage
   ----------------------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(var(--tile-cols, 4), minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tiles.is-three {
  --tile-cols: 3;
}

.tile {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--bg-primary);
}

.band .tile {
  border-color: transparent;
}

.tile-figure {
  font-family: 'Satoshi Variable', var(--font-display);
  font-size: clamp(2.25rem, 3.2vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.tile-unit {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}

.start main .tile h3 {
  margin-top: 14px;
  font-size: 1.25rem;
}

.tile p {
  max-width: none;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-body);
}

/* Kachel mit Goldpunkt statt Zahl */
.tile-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-metal);
}

@media (max-width: 1100px) {
  .tiles {
    --tile-cols: 2;
  }

  .tiles.is-three {
    --tile-cols: 3;
  }
}

@media (max-width: 760px) {
  .tiles,
  .tiles.is-three {
    --tile-cols: 1;
  }
}


/* -----------------------------------------------------------------
   4. WERKZEUGKARTE: Regler links, Ergebnis rechts (wie der Rechner)
   ----------------------------------------------------------------- */
.gk-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 64px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--card-radius);
  background: var(--bg-primary);
  box-shadow: var(--shadow-card);
}

.gk-fields {
  display: grid;
  align-content: start;
  gap: 28px;
}

.gk-field label,
.gk-field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

.gk-field output {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gk-field-hint {
  max-width: none;
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-body);
}

/* Schieberegler: 44 px Trefferfläche, 6 px sichtbare Spur, gefüllt bis zum Wert */
.gk-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 44px;
  margin: 4px 0 0;
  background: linear-gradient(90deg, var(--ink) 0 var(--fill, 50%), var(--sky-deep) var(--fill, 50%) 100%) center / 100% 6px no-repeat;
  border-radius: 100px;
  cursor: pointer;
}

.gk-range::-webkit-slider-runnable-track {
  height: 44px;
  background: transparent;
}

.gk-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: 10px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--bg-primary);
}

.gk-range::-moz-range-track {
  background: transparent;
}

.gk-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--bg-primary);
}

.gk-range:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}

.gk-result {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 28px;
  background: var(--sky);
}

.gk-result-label {
  max-width: none;
  font-size: 0.9375rem;
  color: var(--ink-body);
}

.gk-result-figure {
  font-family: 'Satoshi Variable', var(--font-display);
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.gk-rows {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--sky-line);
}

.gk-rows div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sky-line);
}

.gk-rows dt {
  font-size: 0.9375rem;
  color: var(--ink-body);
}

/* Summenzeile: das Ergebnis je Weg, kräftiger als die Posten davor */
.gk-rows .is-sum dt {
  font-weight: 500;
  color: var(--ink);
}

.gk-rows .is-sum dd {
  font-size: 1.1875rem;
}

.gk-rows dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}

.gk-note {
  max-width: none;
  margin-top: 14px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-body);
}

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


/* -----------------------------------------------------------------
   5. SCHRITTFOLGE: Ziffern an einer Linie, Unterlagen als Pillen
   ----------------------------------------------------------------- */
.steps-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--step-cols, 4), minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps-row.is-three {
  --step-cols: 3;
}

/* Linie von der ersten zur letzten Ziffer: hinten hellblau, davor Gold, das sich beim Scrollen füllt */
.steps-row::before,
.steps-row::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 22px;
  /* endet an der letzten Ziffer: eine Spaltenbreite minus halbe Ziffer vor dem rechten Rand */
  right: calc((100% - (var(--step-cols, 4) - 1) * 32px) / var(--step-cols, 4) - 22px);
  height: 2px;
  border-radius: 2px;
}

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

.steps-row::after {
  background: var(--gold-hero);
  transform: scaleX(var(--p, 1));
  transform-origin: 0 0;
}

.steps-row li {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
  counter-increment: step;
}

.steps-row li::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--gold-metal);
  box-shadow: 0 0 0 8px var(--bg-primary);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

.band .steps-row li::before {
  box-shadow: 0 0 0 8px var(--sky);
}

.start main .steps-row h3 {
  font-size: 1.25rem;
}

.steps-row p {
  max-width: 30ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-body);
}

.steps-row .setup-link {
  margin-top: 4px;
}

/* Mit Bewegung (Klasse is-scroll setzt seiten.js): Schritte, die die Linie noch nicht erreicht hat,
   treten zurück, ihre Ziffer ist noch ohne Gold. Nicht blasser als 0.66, sonst leidet die Lesbarkeit. */
.steps-row.is-scroll li > * {
  transition: opacity 0.4s ease;
}

.steps-row.is-scroll li::before {
  transition: background-color 0.4s ease;
}

.steps-row.is-scroll li:not(.is-on) > * {
  opacity: 0.66;
}

.steps-row.is-scroll li:not(.is-on)::before {
  background: var(--sky);
  background-clip: padding-box;
  border: 1px solid var(--sky-line);
}

.band .steps-row.is-scroll li:not(.is-on)::before {
  background: var(--bg-primary);
}

@media (max-width: 900px) {
  .steps-row,
  .steps-row.is-three {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .steps-row::before,
  .steps-row::after {
    top: 22px;
    bottom: 22px;
    left: 21px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .steps-row::after {
    transform: scaleY(var(--p, 1));
  }

  .steps-row li {
    padding-left: 68px;
  }

  .steps-row li::before {
    position: absolute;
    top: -8px;
    left: 0;
    margin: 0;
  }
}


/* -----------------------------------------------------------------
   6. GUT ZU WISSEN: ehrliche Hinweise in zwei Spalten
   ----------------------------------------------------------------- */
.notes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Jeder Hinweis eine Karte: Stichwort, Aussage, ein kurzer Absatz */
.notes li {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
  padding: 28px;
  border-radius: 24px;
  background: var(--sky);
}

.band .notes li {
  background: var(--bg-primary);
}

/* Ohne Stichwort steht ein Goldpunkt oben in der Karte */
.notes li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--gold-metal);
}

.notes li:has(.note-tag)::before {
  display: none;
}

/* Stichwort: dunkle Schrift auf hellem Gold */
.note-tag {
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--gold-light);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.start main .notes h3 {
  font-size: 1.375rem;
  line-height: 1.3;
}

.notes p {
  max-width: none;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-body);
}

/* Große Aussage der Karte: Zahl oder zwei Worte, darunter klein, worauf sie sich bezieht.
   Sie darf die Überschrift der Karte sein (h3) oder über einer eigenen Überschrift stehen (p). */
.start main .notes .note-figure {
  max-width: none;
  font-family: 'Satoshi Variable', var(--font-display);
  font-size: clamp(1.625rem, 2.2vw, 2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.start main .notes .note-figure > span:last-child {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--ink-body);
}

.notes li:has(.note-figure) h3:not(.note-figure) {
  margin-top: 12px;
}

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

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


/* -----------------------------------------------------------------
   7. UNTERLAGEN: Karten zum Herunterladen
   ----------------------------------------------------------------- */
.docs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 4px 16px;
  min-height: 0;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg-primary);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.3s var(--ease);
}

.doc-link-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--sky);
}

.doc-link-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doc-link-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.doc-link-meta {
  font-size: 0.8125rem;
  color: var(--ink-body);
}

@media (hover: hover) and (pointer: fine) {
  .doc-link:hover {
    border-color: var(--navy);
    transform: translateY(-2px);
  }
}

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


/* -----------------------------------------------------------------
   8. KLEINE BAUSTEINE
   ----------------------------------------------------------------- */
/* Hinweis in einer hellen Karte, z. B. Partnerhinweis oder Rat */
.aside-note {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 24px 28px;
  border-radius: 24px;
  background: var(--sky);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-body);
}

.band .aside-note {
  background: var(--bg-primary);
}

.aside-note strong {
  color: var(--ink);
  font-weight: 500;
}

/* Wege-Karten der Startseite auf Weiß: Rahmen statt Fläche */
.sec:not(.is-band) .ways .way-card:not(.is-gold) {
  background: var(--bg-primary);
}

/* Kopf der Fragen-Spalte: Kontaktsatz */
.faq-side .sec-lead {
  margin-inline: 0;
}


/* -----------------------------------------------------------------
   9. VERMIETER: Deckung bei Schwankung. Eine Spur zeigt den Depotwert,
   die Linie markiert die Kaution, darunter die drei Regeln.
   ----------------------------------------------------------------- */
.meter {
  --depot: 0.6667;
  position: relative;
  height: 18px;
  margin: 28px 0 10px;
  border-radius: 9px;
  background: var(--sky-deep);
}

.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-hero-deep), var(--gold-hero) 60%, var(--gold-hero-top));
  transform: scaleX(var(--depot));
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}

/* Markierung der Kaution bei zwei Dritteln der Spur */
.meter-mark {
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 66.667%;
  width: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.meter-legend {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
  font-size: 0.8125rem;
  color: var(--ink-body);
}

.meter-legend span:last-child {
  text-align: right;
}

.rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.rule {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  border-radius: 24px;
  background: var(--bg-primary);
}

.rule-tag {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-metal);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.start main .rule h3 {
  font-size: 1.125rem;
}

.rule p {
  max-width: none;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-body);
}

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


/* -----------------------------------------------------------------
   10. ONLINESHOP: Gegenstand im Kopf (drei Produktkarten), zwei Wege
   statt drei, Bild mit Schritten, Herstellerleiste
   ----------------------------------------------------------------- */
.shop-object {
  position: relative;
  width: 400px;
  height: 440px;
  flex: none;
  transform: scale(var(--hero-object-scale, 1));
}

.shop-card {
  position: absolute;
  width: 280px;
  padding: 24px 26px;
}

.shop-card:nth-child(1) {
  top: 0;
  left: 0;
  transform: rotate(-4deg);
}

.shop-card:nth-child(2) {
  top: calc(var(--header-h) + 32px);
  left: 70px;
  transform: rotate(2deg);
}

.shop-card:nth-child(3) {
  top: 286px;
  left: 20px;
  transform: rotate(-1deg);
}

.shop-card .doc-owner {
  font-size: 1.25rem;
}

.shop-card .doc-gold {
  margin-top: 14px;
}

.ways.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  margin-inline: auto;
}

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

@media (max-width: 760px) {
  .ways.is-two {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* Bild links, Inhalt rechts */
.media-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px 96px;
}

.media-split img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-inline: auto;
}

.media-split .steps-row {
  --step-cols: 1;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.media-split .steps-row::before,
.media-split .steps-row::after {
  top: 22px;
  bottom: 22px;
  left: 21px;
  right: auto;
  width: 2px;
  height: auto;
}

.media-split .steps-row::after {
  transform: scaleY(var(--p, 1));
}

.media-split .steps-row li {
  padding-left: 68px;
}

.media-split .steps-row li::before {
  position: absolute;
  top: -8px;
  left: 0;
  margin: 0;
}

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

/* Herstellerleiste: Logos in Grau, ruhig in einer Reihe */
.makers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.makers li {
  display: grid;
  place-items: center;
  height: 112px;
  padding: 20px 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg-primary);
}

.makers img {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
  filter: grayscale(1);
  opacity: 0.75;
}

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

  .makers li {
    height: 88px;
  }
}
