/* =============================================================================
   seite.css — Layout der Landingpage
   Farben und Schriftrollen kommen aus marke.css. Hier steht nur Anordnung.
   ============================================================================= */

/* --- Kopfzeile ------------------------------------------------------------ */
.kopf {
  position: sticky; top: 0; z-index: 40;
  background: var(--tanne);
  border-bottom: 1px solid var(--linie-dunkel);
}
.kopf-innen { display: flex; align-items: center; justify-content: space-between; height: 58px; }

.wortmarke {
  font-family: var(--serif); font-size: 19px;
  font-variation-settings: 'opsz' 20, 'wght' 560;
  color: var(--kreide); text-decoration: none; letter-spacing: -0.01em;
}
.kopf-link {
  font-size: 14px; font-variation-settings: 'wght' 500;
  color: var(--kreide-matt); text-decoration: none;
}
.kopf-link:hover { color: var(--kreide); }

/* =============================================================================
   01 HERO — auf Grün. Jochen steht als Blatt darauf.
   ============================================================================= */
.hero { padding-block: clamp(36px, 5vw, 76px) 0; overflow: hidden; }

.hero-raster {
  max-width: var(--container); margin-inline: auto;
  padding-inline: 24px;
  display: grid; grid-template-columns: minmax(0,1fr); gap: 30px;
}
.hero-text { max-width: 34rem; padding-bottom: 10px; }
.hero-text h1 { margin-bottom: 20px; }
.hero-text .lead { margin-bottom: 26px; color: var(--kreide-matt); }

/* Mobil steht das Bild im Raster. Randlos erst ab 900px — auf dem Handy ragte
   der negative Außenabstand sonst über den Viewport und schob die Seite. */
.hero-bild img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 68% 26%;
}

.autorzeile { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--linie-dunkel); }
.autorzeile p { margin-bottom: 3px; color: var(--kreide-matt); }
.autorzeile strong { color: var(--kreide); }
.autorzeile a { color: var(--kreide-matt); }

@media (min-width: 900px) {
  .hero-raster {
    grid-template-columns: 7fr 4fr;
    align-items: center; gap: 56px;
  }
  .hero-text { padding-block: 32px 76px; }

  /* KEIN randloses Auslaufen mehr. Das Bild lief vorher bis zur Viewportkante
     und wuchs damit mit jeder zusätzlichen Fensterbreite mit — auf 1920px war
     es rund 800px breit und der Kopf füllte den halben Bildschirm.
     Jetzt: feste Obergrenze, das Bild bleibt bei jeder Auflösung gleich groß. */
  .hero-bild { display: flex; justify-content: flex-end; }
  .hero-bild img {
    aspect-ratio: 4/5;
    width: 100%; max-width: 340px; height: auto;
    object-fit: cover; object-position: 62% 22%;
  }
}

@media (min-width: 1300px) {
  .hero-bild img { max-width: 380px; }
}

/* =============================================================================
   02 AUSGANGSLAGE — erstes Blatt auf dem Grün
   ============================================================================= */
.blatt-sektion { padding-block: clamp(48px, 6vw, 84px); }

/* --- 03b Hinweis auf die Risikoanalyse (30.09.2026) -----------------------
   Soll GROSS wirken: rote Kante oben über die ganze Breite, Überschrift eine
   Stufe größer als die übrigen h2, der einzige rote Knopf der Seite. Steht
   zwischen zwei dunklen Flächen (Rechenbeispiel auf Tiefe, davor) — die rote
   Kante trennt, wo Tanne gegen Tiefe allein zu schwach wäre. */
.analyse-hinweis { border-top: 6px solid var(--zinnober); padding-block: clamp(60px, 8vw, 112px); }
.analyse-hinweis .pos { color: var(--zinnober-hell); }
.analyse-hinweis h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; max-width: 20ch; margin-top: 14px; }
.analyse-hinweis h2 em { color: var(--zinnober-hell); font-style: normal; }
.analyse-hinweis .lead { max-width: 52ch; margin-top: 24px; color: var(--kreide); }
.analyse-hinweis p:not(.pos):not(.lead) { max-width: 56ch; margin-top: 14px; }
.analyse-verweis { margin-top: 28px; padding: 16px 0 0; border-top: 1px solid var(--linie-dunkel); font-size: 15px; line-height: 1.55; color: var(--kreide-matt); }
.analyse-verweis a { color: var(--zinnober-hell); font-variation-settings: 'wght' 600; text-underline-offset: 3px; white-space: nowrap; }
.cta-rot { background: var(--zinnober); color: var(--kreide); margin-top: 30px; font-size: 17px; padding: 18px 34px; }
.cta-rot:hover { background: color-mix(in srgb, var(--zinnober) 80%, var(--tinte)); color: var(--kreide); }

.zitat {
  margin: 34px 0; padding-left: 42px; position: relative; border: none;
}
.zitat::before {
  content: '\201E'; position: absolute; left: -2px; top: 2px;
  font-family: var(--serif); font-size: 5rem; line-height: 0;
  color: var(--zinnober); opacity: .42;
}
.zitat p {
  font-family: var(--serif); font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.42; font-variation-settings: 'opsz' 24, 'wght' 400;
  color: var(--tanne); margin-bottom: 9px; max-width: 30ch;
}
.zitat cite { font-style: normal; font-size: 13px; color: var(--tinte-matt); }

/* Marginalie: schmale Randspalte mit einer Kennzahl. Füllt Fläche mit
   Information statt mit Dekoration. */
.marginalie {
  border-left: 2px solid var(--zinnober);
  padding-left: 16px;
}
.marginalie .zahl { display: block; font-size: 34px; line-height: 1.05; color: var(--tanne); }
.marginalie .klein { margin-top: 6px; }

/* =============================================================================
   03 MECHANISMUS — Kontozeilen statt Kacheln
   ============================================================================= */
.ablauf-zeilen { margin: 32px 0 26px; }

.ablauf-zeile {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 18px 0; border-bottom: 1px solid var(--linie-hell);
  align-items: start;
}
.ablauf-zeile:first-child { border-top: 1px solid var(--linie-hell); }
.ablauf-kto {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .13em;
  font-variation-settings: 'wght' 500; font-variant-numeric: tabular-nums;
  color: var(--tinte-matt); padding-top: 4px; min-width: 4ch;
}
.ablauf-zeile h3 { margin-bottom: 4px; color: var(--tanne); }

/* =============================================================================
   04 DAS T-KONTO — das Signature-Element

   Die zentrale Rechnung als echtes Kontoblatt: Soll links, Haben rechts,
   getrennt durch die Achse. Ein Geschäftsführer liest das ohne Legende.
   ============================================================================= */
.tkonto {
  margin: 34px 0 30px;
  border-top: 2px solid var(--kreide-matt);
}
.tkonto-kopf {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-bottom: 1px solid var(--linie-dunkel);
}
.tkonto-seite { padding: 16px 0 14px; }
.tkonto-seite .pos { margin-bottom: 0; }

.tkonto-koerper { display: grid; grid-template-columns: 1fr; }

.tkonto-buchung { padding: 22px 0; }
.tkonto-buchung + .tkonto-buchung { border-top: 1px solid var(--linie-dunkel); }

.tkonto-betrag {
  font-family: var(--serif);
  font-size: clamp(38px, 5.5vw, 62px);
  line-height: 1; letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 48, 'wght' 520;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--kreide); display: block; margin-bottom: 8px;
}
.tkonto-betrag i { font-style: normal; font-family: inherit; }
.tkonto-euro { font-size: .52em; vertical-align: .1em; margin-left: .1em; font-variation-settings: 'wght' 400; }

.tkonto-label { font-size: 14.5px; color: var(--kreide-matt); max-width: 30ch; }

/* Der Prüfvermerk: die Differenz, rot angestrichen wie im Abschluss. */
.tkonto-vermerk .tkonto-betrag { color: var(--zinnober-hell); }
.tkonto-vermerk { position: relative; }

@media (min-width: 820px) {
  .tkonto-kopf, .tkonto-koerper { grid-template-columns: 1fr 1fr; }
  .tkonto-kopf > * + *, .tkonto-koerper > * + * {
    border-left: 1px solid var(--linie-dunkel); padding-left: 42px;
  }
  .tkonto-kopf > :first-child, .tkonto-koerper > :first-child { padding-right: 42px; }
  .tkonto-buchung + .tkonto-buchung { border-top: none; }
  /* In der rechten Spalte stehen zwei Buchungen untereinander — die brauchen
     ihre eigene Trennlinie wieder. */
  .tkonto-haben .tkonto-buchung + .tkonto-buchung { border-top: 1px solid var(--linie-dunkel); }
}

.tkonto-haben { display: grid; align-content: start; }

/* Balkenband unter dem T-Konto: zeigt das Verhältnis, ohne es zu behaupten. */
.band { margin-top: 26px; }
.band-schiene { display: flex; height: 8px; background: var(--linie-dunkel); }
.band-teil { height: 100%; width: 0; transition: width 900ms var(--kurve); }
.band.laeuft .band-teil { width: var(--ziel); }
.band-netto  { --ziel: 58%; background: var(--kreide-matt); }
.band-steuer { --ziel: 42%; background: var(--zinnober); transition-delay: 260ms; }
.band-legende { display: flex; justify-content: space-between; margin-top: 9px; }

@media (prefers-reduced-motion: reduce) {
  .band-teil { transition: none; width: var(--ziel); }
}

.rechnung-fuss { display: grid; gap: 20px; justify-items: start; margin-top: 30px; }

/* =============================================================================
   05 PERSON
   ============================================================================= */
.person-raster { display: grid; gap: 32px; }
.person-bild img { width: 100%; max-width: 400px; }

@media (min-width: 900px) {
  .person-raster { grid-template-columns: 5fr 7fr; gap: 52px; align-items: start; }
}

.klarstellung { list-style: none; padding: 0; margin: 26px 0 0; }
.klarstellung li {
  padding: 15px 0; border-top: 1px solid var(--linie-hell);
  max-width: var(--measure); font-size: 15.5px; line-height: 1.58;
}
.klarstellung li:last-child { border-bottom: 1px solid var(--linie-hell); }

/* =============================================================================
   06 LEITFADEN — Inhaltsverzeichnis mit Führungspunkten
   ============================================================================= */
.leitfaden { list-style: none; counter-reset: lf; padding: 0; margin: 30px 0 0; }
.leitfaden li {
  counter-increment: lf;
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px;
  align-items: baseline;
  padding: 15px 0; border-bottom: 1px solid var(--linie-hell);
}
.leitfaden li:first-child { border-top: 1px solid var(--linie-hell); }
.leitfaden li::before {
  content: counter(lf, decimal-leading-zero);
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .13em;
  font-variant-numeric: tabular-nums; color: var(--tinte-matt);
}
.leitfaden h3 { color: var(--tanne); }
.leitfaden .seite {
  font-family: var(--serif); font-variant-numeric: tabular-nums;
  color: var(--tinte-matt); font-size: 15px;
}
.leitfaden .klein { grid-column: 2 / -1; margin-top: 3px; }

/* =============================================================================
   07 FORMULAR
   ============================================================================= */
.formular-spalte { max-width: 540px; }
.formular-spalte h2 { margin-bottom: 9px; }
.formular-spalte .lead { margin-bottom: 24px; }

.karte {
  background: var(--blatt);
  border: 1px solid var(--linie-ui);
  padding: clamp(20px, 4vw, 30px);
}

.fortschritt { margin-bottom: 24px; }
.fortschritt-zeile {
  display: flex; justify-content: space-between;
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--tinte-matt); margin-bottom: 7px;
}
.fortschritt-bahn { height: 2px; background: var(--linie-hell); }
.fortschritt-balken { height: 100%; background: var(--tanne); transition: width 340ms var(--kurve); }

.step { display: none; }
.step.active { display: block; }
.step h3 { margin-bottom: 5px; color: var(--tanne); }
.step > .klein { margin-bottom: 18px; }

.wahl-liste { display: grid; gap: 8px; }
.wahl {
  display: block; width: 100%; text-align: left;
  background: transparent;
  border: 1px solid var(--linie-ui);
  padding: 14px 16px;
  font-family: var(--sans); font-size: 16px;
  font-variation-settings: 'wght' 500;
  color: var(--tinte); cursor: pointer;
  transition: border-color 150ms var(--kurve), background 150ms var(--kurve);
}
.wahl:hover { border-color: var(--tanne); }
.wahl.gewaehlt {
  border-color: var(--tanne); background: var(--blatt-tief);
  box-shadow: inset 3px 0 0 var(--zinnober);
}

.feld { margin-bottom: 16px; }
.feld label { display: block; font-size: 14.5px; margin-bottom: 5px; font-variation-settings: 'wght' 500; }
.feld .optional { color: var(--tinte-matt); font-variation-settings: 'wght' 400; }
.feld input {
  width: 100%; background: #fff;
  border: 1px solid var(--linie-ui); padding: 12px 13px;
  font-family: var(--sans);
  /* 16px ist harte Untergrenze: Darunter zoomt iOS Safari beim Fokussieren
     ins Feld. Bei Meta-Traffic im In-App-Browser ein verlorener Lead. */
  font-size: 16px; color: var(--tinte);
}
.feld input:focus { border-color: var(--tanne); }

.haken { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; margin-bottom: 16px; }
.haken input { width: 19px; height: 19px; margin-top: 2px; flex: none; accent-color: var(--zinnober); }
.haken span { font-size: 14.5px; line-height: 1.5; }
.haken-optional { padding-top: 14px; border-top: 1px solid var(--linie-hell); }

.navigation { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.navigation #btn-next, .navigation #btn-submit { margin-left: auto; }

.formular-fuss { margin-top: 12px; text-align: center; }

/* =============================================================================
   08 FOOTER — ERGO-Zulassungszone, reines Weiß.
   Das ERGO-Logo darf niemals auf die grüne Fläche: ERGO führt Rot, Rot auf
   #2D3D3C ist ein Komplementärknall.
   ============================================================================= */
.fuss { background: #fff; color: var(--tinte-matt); padding-block: 28px; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 13px 0; }
.fuss-links a { font-size: 13.5px; color: var(--tinte-matt); text-decoration: none; }
.fuss-links a:hover { color: var(--tanne); text-decoration: underline; }
.fuss-copy { margin-top: 11px; }

/* --- 06 Einwände ----------------------------------------------------------
   Auf dunklem Grund, direkt vor dem Formular: dort steht der letzte
   Widerstand, und dort entscheidet sich der Absprung. */
.einwaende { margin-top: 30px; }
.einwand { padding: 22px 0; border-top: 1px solid var(--linie-dunkel); }
.einwand:last-child { border-bottom: 1px solid var(--linie-dunkel); }
.einwand h3 {
  color: var(--kreide); margin-bottom: 8px;
  font-variation-settings: 'opsz' 20, 'wght' 500;
  font-style: italic;
}
.einwand p { max-width: 58ch; }

/* =============================================================================
   EINSTIEGSZITAT (01.10.2026, Raoul) — Hero der GGF-Seite
   Diese Seite lädt website.css nicht; deshalb dieselbe Regel hier, linksbündig
   in der Textspalte des Hero. Quellen stehen nur in lib/zitate.php.
   ============================================================================= */
.einstieg-zitat {
  margin: 0 0 clamp(22px, 3vw, 32px);
  padding-left: clamp(16px, 2vw, 24px);
  border-left: 3px solid var(--zinnober-hell);
}
.einstieg-zitat blockquote { margin: 0 0 12px; padding: 0; }
.einstieg-zitat blockquote p {
  max-width: none;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 0.95rem + 1.1vw, 1.5rem);
  line-height: 1.3;
  font-style: italic;
  font-variation-settings: 'opsz' 32, 'wght' 400;
  color: var(--kreide);
  overflow-wrap: break-word;
}
.einstieg-zitat figcaption {
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  hyphens: none;
  -webkit-hyphens: none;
  font-variation-settings: 'wght' 500;
  color: var(--kreide-matt);
}

/* =============================================================================
   KOMPLETTPRÜFUNG 01.10.2026
   ============================================================================= */
/* K11: „.fl-tanne .klein" (marke.css) färbt Kleintext hell für die dunkle
   Fläche — und griff dabei in die HELLE Formularkarte hinein (1,90:1). In der
   Karte gilt wieder die dunkle Kleintext-Farbe. */
.fl-tanne .karte .klein { color: var(--tinte-matt); }

/* K10: Meldung, wenn senden.php die Angaben abgewiesen hat. */
.formular-fehler {
  margin: 18px 0 0; padding: 14px 16px;
  background: var(--karte, #FBFAF6); color: var(--tinte, #1E2A28);
  border-left: 4px solid var(--rost, #8F4B2A);
  font-size: 15px; line-height: 1.55;
}
.formular-fehler a { color: inherit; font-weight: 600; }
