/* =============================================================================
   showoff.css – Komponenten, die nur die Startseite braucht
   (Hero mit Freigabe-Szene, Show-off „Wo drückt's?", Leistungen, Ablauf in
   drei Schritten, Fairfinanz-Karte).
   styles.css bleibt das Designsystem aller Seiten; Tokens kommen von dort.
   Bewegung nach dem Motion-Regelwerk: nur transform und opacity,
   Kurve cubic-bezier(.25, 1, .5, 1), höchstens .4s.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. Hero: Knöpfe
   ----------------------------------------------------------------------------- */
.hero__actions { align-items: flex-start; }
/* Hauptknopf und seine Zeile gehören zusammen; am Handy steht der Zweitknopf darunter */
.hero__primary { display: grid; gap: var(--space-xs); justify-items: start; }
.hero__note { font-size: var(--fs-small); color: var(--text-muted); text-wrap: balance; }
.hero__content > .hero__call { margin-top: var(--space-xs); padding-inline: 0; }
/* Staffel des Hero-Auftakts nach Klasse statt nach Position: styles.css zählt per nth-child (3 und 4).
   hero-wechsel.js steht als Kind 3 zwischen h1 und Lead und würde diese Zählung um eins verschieben.
   Die Unterseiten laden showoff.css nicht, für sie bleibt die Zählung aus styles.css. */
.hero__content > .hero__lead { animation-delay: .12s; }
.hero__content > .hero__actions { animation-delay: .18s; }
/* Wechselnde Überschrift: unsichtbar, aber im Layout, bis hero-wechsel.js den Satz gesetzt hat.
   Sonst zeigt Chrome bei langsam eintreffendem HTML kurz Satz 1. Nur wo Skripte laufen (ohne JS
   bleibt Satz 1 stehen). Notausgang nach 1,5 s, falls das Skript fehlt; !important, weil styles.css
   die Animation der h1 abschaltet und die reduced-motion-Regel Dauer und Verzögerung kürzt. */
@media (scripting: enabled) {
  .hero__title:not([data-satz]) { visibility: hidden; animation: titel-frei 0s 1.5s forwards !important; }
}
@keyframes titel-frei { to { visibility: visible; } }
.btn:hover .btn__icon--down { transform: translateY(2px); }

@media (max-width: 639px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__primary { justify-items: stretch; }
  .hero__actions .btn { width: 100%; }
}
/* Textspalte etwas breiter als in styles.css (1.05fr). Eingeführt für die frühere Überschrift
   „Feierabend ohne Schreibtisch.“; die Wechselsätze passen bei 1280 px mit mindestens 34 px Luft. */
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.12fr 0.88fr; }
}
/* Wechselnde Überschrift: die breiteste Zeile („Gewissen hat frei.“, rund 7,9 em) muss in die
   Textspalte passen, sonst steht bei Satz 3 „wirklich.“ allein in der letzten Zeile und Satz 5
   bricht dreizeilig. Spalte unter 600 px: 100vw minus 48 px; von 768 bis 1023 px: (100vw minus
   144 px) mal 0,525. */
@media (max-width: 599px) { .hero__title { font-size: min(var(--fs-display), calc((100vw - 48px) / 7.9)); } }
@media (min-width: 768px) and (max-width: 1023px) { .hero__title { font-size: calc((100vw - 144px) * 0.0665); } }

/* -----------------------------------------------------------------------------
   2. Hero-Handy: Foto, Angebot, Freigabe
   Ein Entwurf hat zwei Zustände auf derselben <li>: ohne .is-freigegeben wartet
   er (gestrichelter Rand, Knopf „Freigeben"), mit .is-freigegeben ist er raus.
   Beide Zustände liegen in denselben Zellen, die Höhe ändert sich nicht.
   ----------------------------------------------------------------------------- */
.chat-msg__bubble p { margin: 0; }
/* Kopf im Handy einzeilig: Tag und Kanal brachen bei 390 px je auf zwei Zeilen um */
.chat-demo__head > span { white-space: nowrap; }

.chat-foto {
  display: block;
  width: 100%; height: auto;
  margin-bottom: var(--space-xs);
  border-radius: 8px;
}

.chat-msg--entwurf .chat-msg__bubble {
  border: 1.5px dashed var(--color-amber);
  background: #FFF8EF;
}
.chat-msg--entwurf.is-freigegeben .chat-msg__bubble {
  border-style: solid;
  border-color: var(--color-white);
  background: var(--color-white);
}

/* Absenderzeile: solange der Entwurf wartet in Bernstein, danach neutral.
   Der Text bleibt gleich, damit die Zeile beim Umschalten nicht umbricht. */
.chat-msg--entwurf .chat-msg__sender { color: var(--color-amber); }
.chat-msg--entwurf.is-freigegeben .chat-msg__sender { color: var(--text-on-dark-muted); }

/* Termin als kompakte Systemzeile statt Karte: hält das Handy in iPhone-Proportion */
.chat-demo__result {
  display: flex; align-items: center; gap: 6px;
  width: fit-content;
  margin: var(--space-sm) auto 0;
  padding: 5px 12px;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08);
  color: var(--text-on-dark);
  font-size: 0.8125rem; font-weight: 600;
}
.chat-demo__result svg { width: 15px; height: 15px; flex: none; color: var(--color-amber); }

/* Angehängtes Angebot */
.chat-doc {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--color-cream-200);
  border: 1px solid var(--border-subtle);
}
.chat-doc svg { width: 22px; height: 22px; flex: none; color: var(--state-error); }
.chat-doc > span { display: grid; font-size: 0.8125rem; line-height: 1.35; color: var(--text-muted); }
.chat-doc b { color: var(--text-strong); font-weight: 600; }

/* Freigabe-Zeile: Knopf und Vermerk in derselben Zelle */
.chat-freigabe { display: grid; margin-top: 10px; }
.chat-freigabe > * { grid-area: 1 / 1; justify-self: end; align-self: center; }
.chat-freigabe__knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-amber); color: var(--text-on-amber);
  font-weight: 600; font-size: 0.875rem; line-height: 1;
  box-shadow: var(--shadow-xs);
  /* visibility mit in der Transition: schaltet erst nach dem Ausblenden um */
  transition: transform .1s cubic-bezier(.25, 1, .5, 1), opacity .2s cubic-bezier(.25, 1, .5, 1), visibility .2s;
}
/* R2: Druck sofort, scale .97 */
.chat-freigabe__knopf.is-pressed { transform: scale(.97); }
.chat-freigabe__erledigt {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; font-weight: 600; color: var(--state-success);
  transition: opacity .3s cubic-bezier(.25, 1, .5, 1), visibility .3s;
}
.chat-freigabe__erledigt svg { width: 14px; height: 14px; flex: none; }
.chat-msg--entwurf .chat-freigabe__erledigt { opacity: 0; visibility: hidden; }
.chat-msg--entwurf.is-freigegeben .chat-freigabe__knopf { opacity: 0; visibility: hidden; }
.chat-msg--entwurf.is-freigegeben .chat-freigabe__erledigt { opacity: 1; visibility: visible; }
.chat-demo__badge { display: block; width: fit-content; margin-inline: auto; }

/* -----------------------------------------------------------------------------
   3. Show-off „Wo drückt's?": Raster, Kacheln, Zähler
   Handy: Kopf, Kacheln, Spur, Heft untereinander (= Lese- und Fokusfolge).
   Ab 1024 px steht die Steuerung links und bleibt stehen; Spur und Heft laufen
   rechts. Nur die Steuerung ist sticky: Kopf, Kacheln und Heft zusammen passen
   in kein 800 px hohes Fenster.
   Farbwechsel der Kacheln springen (keine Farb-Transition), bewegt wird nur der
   Haken und der Druck.
   ----------------------------------------------------------------------------- */
/* minmax(0, …): Eine automatische Spur wüchse mit dem breitesten Inhalt mit, etwa der
   Angebotstabelle der Mail-Demo, und zöge die Seite auf dem Handy in die Breite. */
.showoff__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
.showoff__kopf { margin-bottom: var(--space-lg); }

.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
@media (min-width: 640px) and (max-width: 1023px) {
  .kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.kachel {
  position: relative;
  display: flex; align-items: center; gap: var(--space-xs);
  min-height: 60px;
  padding: var(--space-sm) 26px var(--space-sm) var(--space-sm);
  border: 1.5px solid rgba(169, 184, 198, .35);
  border-radius: var(--radius-sm);
  color: var(--text-on-dark);
  text-align: left;
  font-weight: 600; font-size: var(--fs-small); line-height: 1.25;
  -webkit-tap-highlight-color: transparent;
  transition: transform .1s cubic-bezier(.25, 1, .5, 1);
}
.kachel:hover { border-color: rgba(169, 184, 198, .7); }
/* R2: Druck auf pointer-down (iOS braucht dafür den touchstart-Listener in showoff.js) */
.kachel:active { transform: scale(.97); }
.kachel__icon { width: 20px; height: 20px; flex: none; color: var(--color-amber); }
.kachel__text { min-width: 0; overflow-wrap: break-word; }
.kachel__haken {
  position: absolute; top: 7px; right: 7px;
  width: 16px; height: 16px;
  color: var(--color-amber-text);
  opacity: 0; transform: scale(.6);
  transition: opacity .2s cubic-bezier(.25, 1, .5, 1), transform .2s cubic-bezier(.25, 1, .5, 1);
}
.kachel[aria-pressed="true"] {
  background: var(--color-amber-100);
  border-color: var(--color-amber-600);
  color: var(--text-strong);
}
.kachel[aria-pressed="true"] .kachel__icon { color: var(--color-amber-text); }
.kachel[aria-pressed="true"] .kachel__haken { opacity: 1; transform: none; }
/* Fokusring: Bernstein (aus .section--navy) auf der hellen gedrückten Kachel zu schwach */
.kachel[aria-pressed="true"]:focus-visible { outline-color: var(--color-white); }
/* Schmale Handys: Bei 360 px blieben 84 px Textbreite, „Nachfassen“ braucht 92.
   Knappere Polster statt kleinerer Schrift (16 px bleibt Untergrenze, s. styles.css).
   Unter 358 px reicht auch das nicht: eine Spalte statt Silbentrennung. */
@media (max-width: 389px) {
  .kachel { gap: 6px; padding: var(--space-sm) 24px var(--space-sm) var(--space-xs); }
  .kachel__icon { width: 18px; height: 18px; }
  .kachel__haken { top: 6px; right: 6px; }
}
@media (max-width: 357px) {
  .kacheln { grid-template-columns: minmax(0, 1fr); }
}

.showoff__zaehler { margin-top: var(--space-sm); }
.showoff__zaehler a {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px;
  font-weight: 600; font-size: var(--fs-small);
  color: var(--color-amber);
}
.showoff__zaehler a:hover { text-decoration: underline; }
.showoff__zaehler svg { width: 16px; height: 16px; flex: none; }
/* Mini-Heft am Zähler: wächst mit wie das Heft am Ende der Spur. Am Handy ist es
   die sichtbare Antwort auf den Tipp, weil die Seite dort nicht springt. */
.zaehler__heft { position: relative; flex: none; width: 18px; height: 24px; margin-right: 14px; isolation: isolate; }
.zaehler__kante, .zaehler__blatt { position: absolute; inset: 0; border-radius: 2px; }
.zaehler__kante { display: block; background: var(--color-navy-700); border: 1px solid rgba(242, 244, 243, .75); }
.zaehler__kante[hidden] { display: none; }
.zaehler__kante:nth-child(1) { transform: translate(2px, 2px); z-index: 6; }
.zaehler__kante:nth-child(2) { transform: translate(4px, 4px); z-index: 5; }
.zaehler__kante:nth-child(3) { transform: translate(6px, 6px); z-index: 4; }
.zaehler__kante:nth-child(4) { transform: translate(8px, 8px); z-index: 3; }
.zaehler__kante:nth-child(5) { transform: translate(10px, 10px); z-index: 2; }
.zaehler__kante:nth-child(6) { transform: translate(12px, 12px); z-index: 1; }
.zaehler__blatt { z-index: 7; background: var(--color-white); box-shadow: inset 0 -3px 0 var(--color-amber); }

/* Ohne JS: Sprungliste statt Kacheln */
.showoff__sprung { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.showoff__sprung a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid rgba(169, 184, 198, .35); border-radius: var(--radius-pill);
  font-weight: 600; font-size: var(--fs-small); color: var(--text-on-dark);
}

.showoff__fuss {
  max-width: var(--container-narrow);
  margin: var(--space-2xl) auto 0;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
}

@media (min-width: 1024px) {
  .showoff__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-3xl);
    align-items: start;
  }
  .showoff__steuer { position: sticky; top: calc(var(--header-h) + var(--space-lg)); }
  .showoff__kopf { text-align: left; margin-inline: 0; }
}

/* -----------------------------------------------------------------------------
   4. Spur: Karten und Übergaben
   Die Übergabe-Zeile hängt oben an jeder Karte außer der ersten sichtbaren.
   Linie und Punkt laufen auf der Höhe der Kartensymbole von Karte zu Karte.
   ----------------------------------------------------------------------------- */
.showoff { --spur-x: 43px; }
.uebergabe {
  position: relative;
  padding: var(--space-md) 0 var(--space-md) calc(var(--spur-x) + 22px);
  font-size: var(--fs-small);
  color: var(--text-on-dark);
}
.uebergabe::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: calc(var(--spur-x) - 1px);
  border-left: 2px dashed rgba(225, 134, 27, .55);
}
.uebergabe::after {
  content: "";
  position: absolute; top: 50%; left: calc(var(--spur-x) - 5px);
  width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%;
  background: var(--color-amber);
}

.karte { scroll-margin-top: calc(var(--header-h) + var(--space-md)); scroll-margin-bottom: var(--space-lg); }
.karte__box, .heft__box {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  color: var(--text-body);
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) {
  .karte__box, .heft__box { padding: var(--space-xl); }
  .showoff { --spur-x: 51px; }
}
/* Auf Weiß trägt der Bernstein-Fokusring aus .section--navy nicht (2,6:1) */
.karte__box :focus-visible, .heft__box :focus-visible { outline-color: var(--color-navy); }

.karte__kopf { display: flex; align-items: center; gap: var(--space-sm); }
.karte__icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-amber-100);
  color: var(--color-amber-text);
}
.karte__icon svg { width: 22px; height: 22px; }
.karte__titel { font-size: var(--fs-h3); }
.karte__zitat {
  margin-top: var(--space-md);
  font-family: var(--font-headline);
  font-size: 1.125rem; font-weight: 600; line-height: 1.35;
  color: var(--text-strong);
  text-wrap: pretty;
}
@media (min-width: 768px) { .karte__zitat { font-size: 1.1875rem; } }
.karte__tut { margin-top: var(--space-sm); }

/* Beispiel: eingelassene Fläche, darin Zeilen, Blasen oder Belege. Bildschirm-Attrappe
   wie das Hero-Handy, deshalb 14 px statt der 16-px-Untergrenze für Fließtext
   (sonst wird jede Karte am Handy über 800 px hoch); Metazeilen 13 px. */
.beispiel {
  margin-top: var(--space-md);
  padding: var(--space-sm);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-cream-200);
  font-size: .875rem;
  line-height: 1.45;
}
@media (min-width: 768px) { .beispiel { padding: var(--space-md); } }
.beispiel__kopf {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 2px var(--space-sm);
  margin-bottom: var(--space-xs);
}
.beispiel__kopf b { color: var(--text-strong); font-weight: 600; }
.beispiel__kopf span { font-size: .8125rem; color: var(--text-muted); }
.beispiel__kopf--mitte { margin-top: var(--space-md); }
.beispiel__unterzeile { margin: -2px 0 var(--space-xs); color: var(--text-muted); }
.beispiel__fuss { margin-top: var(--space-xs); font-size: .8125rem; color: var(--text-muted); }

.liste { list-style: none; padding: 0; display: grid; gap: var(--space-xs); }
.liste__zeile {
  display: grid; gap: 2px;
  padding: 8px var(--space-sm);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--color-white);
}
.liste__wer { font-weight: 600; color: var(--text-strong); }
.ergebnis { font-size: .8125rem; font-weight: 600; color: var(--color-amber-text); }
.ergebnis::before { content: "→ "; }
.ergebnis--ablage { color: var(--text-muted); }

.posten {
  list-style: none; padding: 4px var(--space-sm);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  counter-reset: posten;
}
.posten li { counter-increment: posten; display: flex; gap: var(--space-xs); padding: 5px 0; color: var(--text-strong); }
.posten li + li { border-top: 1px dashed var(--border-subtle); }
.posten li::before { content: counter(posten); min-width: 1.25em; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.punkte { list-style: none; padding: 0; display: grid; gap: 6px; }
.punkte li { position: relative; padding-left: 16px; color: var(--text-strong); }
.punkte li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--color-amber);
}

/* Blasen: eingehend weiß links, Entwurf im Entwurfs-Look des Hero (gestrichelt) rechts */
.blase {
  max-width: 92%;
  padding: 10px var(--space-sm);
  border: 1px solid var(--border-subtle);
  border-radius: 14px 14px 14px 4px;
  background: var(--color-white);
  color: var(--text-strong);
}
.blase + .blase, .liste + .blase { margin-top: var(--space-sm); }
.blase--entwurf {
  margin-left: auto;
  border: 1.5px dashed var(--color-amber);
  border-radius: 14px 14px 4px 14px;
  background: #FFF8EF;
}
.blase__von {
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 2px;
  font-size: .8125rem; font-weight: 600;
  color: var(--text-muted);
}
.blase--entwurf .blase__von { color: var(--color-amber-text); }
.blase__von svg { width: 14px; height: 14px; flex: none; }

.karte__leitplanke {
  margin-top: var(--space-md);
  padding-left: var(--space-sm);
  border-left: 3px solid var(--color-navy);
  font-size: .875rem; font-weight: 600; line-height: 1.5;
  color: var(--text-strong);
}

/* Zustand: wartet auf Freigabe — dieselbe Sprache wie der Entwurf im Hero-Handy */
.zustand {
  display: flex; align-items: center; gap: 8px;
  width: fit-content;
  margin-top: var(--space-md);
  padding: 5px 12px;
  border: 1.5px dashed var(--color-amber);
  border-radius: var(--radius-pill);
  background: #FFF8EF;
  font-size: .8125rem; font-weight: 600; line-height: 1.35;
  color: var(--color-amber-text);
}
.zustand::before {
  content: ""; flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-amber);
}

/* -----------------------------------------------------------------------------
   5. Mail-Demo in Karte 1 (Formular und IDs aus agents-demo.js)
   ----------------------------------------------------------------------------- */
.testen { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--border-subtle); }
.testen__einstieg { margin-bottom: var(--space-sm); font-size: var(--fs-small); }
.testen__einstieg b { color: var(--text-strong); }
.testen__knopf { list-style: none; width: fit-content; }
.testen__knopf::-webkit-details-marker { display: none; }
.testen__klappe .testen__pfeil { transition: transform .2s cubic-bezier(.25, 1, .5, 1); }
.testen__klappe[open] .testen__pfeil { transform: rotate(180deg); }
/* Pfeil zeigt nach unten und rückt nicht seitlich wie bei den übrigen Knöpfen */
.testen__knopf:hover .testen__pfeil { transform: none; }
.testen__klappe[open] .testen__knopf:hover .testen__pfeil { transform: rotate(180deg); }
.testen__inhalt { margin-top: var(--space-lg); }
.testen__wahrheit { margin-bottom: var(--space-md); font-size: var(--fs-small); }
@media (max-width: 639px) {
  .testen__knopf, .heft__knopf { width: 100%; }
}

.karte .agent-chip { min-height: 44px; padding: 10px 16px; }
/* In der Karte ist kein Platz für Angebot und Formular nebeneinander */
.karte .agent-mail__grid.is-offen { grid-template-columns: minmax(0, 1fr); }
.karte .agent-angebot { max-width: none; margin: var(--space-md) 0 0; box-shadow: none; padding: var(--space-md); }
.karte__nojs { margin-top: var(--space-md); font-size: var(--fs-small); }
.karte__nojs a, .heft__nojs a { color: inherit; font-weight: 600; text-decoration: underline; }

/* -----------------------------------------------------------------------------
   6. Heft = Ratgeber
   Je zugeschaltetem Thema eine Seitenkante hinter dem Deckblatt (Deckblatt wie
   das PDF: Navy, weißer Geist, Bernstein-Linie unten).
   ----------------------------------------------------------------------------- */
.uebergabe--heft { margin-top: 0; }
.heft__kopf { display: flex; align-items: center; gap: var(--space-lg); }
.heft__cover { position: relative; flex: none; width: 76px; height: 106px; margin: 0 18px 18px 0; isolation: isolate; }
.heft__kante, .heft__blatt { position: absolute; inset: 0; border-radius: 4px; }
.heft__kante { display: block; background: var(--color-white); border: 1px solid var(--border-strong); }
.heft__kante[hidden] { display: none; }
.heft__kante:nth-child(1) { transform: translate(3px, 3px); z-index: 6; }
.heft__kante:nth-child(2) { transform: translate(6px, 6px); z-index: 5; }
.heft__kante:nth-child(3) { transform: translate(9px, 9px); z-index: 4; }
.heft__kante:nth-child(4) { transform: translate(12px, 12px); z-index: 3; }
.heft__kante:nth-child(5) { transform: translate(15px, 15px); z-index: 2; }
.heft__kante:nth-child(6) { transform: translate(18px, 18px); z-index: 1; }
.heft__blatt {
  z-index: 7;
  display: flex; flex-direction: column; gap: 5px;
  padding: 12px 10px 0;
  overflow: hidden;
  background: var(--color-navy);
  box-shadow: var(--shadow-sm);
}
.heft__geist { width: 24px; height: 24px; margin-bottom: 4px; }
.heft__zeile { display: block; height: 5px; border-radius: 2px; background: rgba(255, 255, 255, .85); }
.heft__zeile--kurz { width: 62%; background: rgba(255, 255, 255, .5); }
.heft__strich { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--color-amber); }

.heft__titel { font-size: var(--fs-h3); }
.heft__meta { margin-top: 2px; font-size: var(--fs-small); color: var(--text-muted); }

.heft__kapitel { list-style: none; padding: 0; margin-top: var(--space-md); counter-reset: kapitel; }
.heft__kapitel li {
  counter-increment: kapitel;
  display: flex; gap: var(--space-sm); align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-small); line-height: 1.45;
  color: var(--text-strong);
}
.heft__kapitel li[hidden] { display: none; }
.heft__kapitel li::before {
  content: counter(kapitel);
  flex: none; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-amber-100); color: var(--color-amber-text);
  font-size: var(--fs-overline); font-weight: 700; line-height: 1;
  transform: translateY(-1px);
}
.heft__leer { margin-top: var(--space-md); font-size: var(--fs-small); color: var(--text-muted); }

.heft__form { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--border-subtle); }
.heft__neu { margin-bottom: var(--space-sm); font-size: var(--fs-small); font-weight: 600; color: var(--color-amber-text); }
/* Echter Formulartext, kein Mockup: dieselbe Größe wie im Kontaktformular (Handy 16 px) */
.heft__hinweis { margin-top: var(--space-sm); font-size: var(--fs-small); color: var(--text-muted); }
.heft__erfolg { margin-top: var(--space-lg); padding: var(--space-md); border-radius: var(--radius-sm); background: var(--state-success-bg); color: var(--text-strong); }
.heft__erfolg b { color: var(--state-success); }
.heft__erfolg:focus { outline: none; }
.heft__nojs { margin-top: var(--space-md); font-size: var(--fs-small); color: var(--text-on-dark-muted); }

/* -----------------------------------------------------------------------------
   7. Leistungen: sechs ruhige Blöcke
   Bewusst keine Karten wie .bento-card: die hebt sich beim Überfahren und wirkt
   klickbar, die Blöcke sind es nicht. Eine Linie oben trennt, das reicht.
   ----------------------------------------------------------------------------- */
.leistungen {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl) var(--space-2xl);
}
.leistung { padding-top: var(--space-lg); border-top: 1px solid var(--border-subtle); }
.leistung__icon { display: block; width: 28px; height: 28px; color: var(--text-strong); }
.leistung__titel { margin-top: var(--space-sm); font-size: var(--fs-h3); line-height: 1.3; text-wrap: balance; }
.leistung__text { margin-top: var(--space-xs); color: var(--text-body); }
@media (min-width: 640px) { .leistungen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .leistungen { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* -----------------------------------------------------------------------------
   8. Ablauf in drei Schritten: .steps--drei steht in styles.css, weil die
   Unterseiten dieselben drei Schritte zeigen und showoff.css nicht laden.
   ----------------------------------------------------------------------------- */

/* -----------------------------------------------------------------------------
   9. Team: Fairfinanz-Karte
   Klein unter den beiden Personen, damit sie kein dritter Höhepunkt wird. Am
   Handy steht das Bildschirmfoto rechts und der Text fließt darum; ab 640 px
   steht es als eigene Spalte links. Die Augenbraue steht vor dem Bildschirmfoto
   über der ganzen Breite: Neben dem Foto blieben bei 390 px 188 px, die
   Augenbraue braucht 200 px und rutschte samt Text unter das Foto.
   ----------------------------------------------------------------------------- */
.fairfinanz {
  display: flow-root;
  max-width: 820px; margin: var(--space-2xl) auto 0;
  padding: var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.fairfinanz__handy {
  float: right; width: 88px; margin: 0 0 var(--space-sm) var(--space-md);
  padding: 4px; border-radius: 16px; background: #0B1420;
}
.fairfinanz__handy img {
  display: block; width: 100%; height: auto; aspect-ratio: 390 / 772;
  object-fit: cover; object-position: top center; border-radius: 12px;
}
.fairfinanz .eyebrow { display: block; margin-bottom: var(--space-sm); }
.fairfinanz__titel { font-size: var(--fs-h3); }
.fairfinanz__text { margin-top: var(--space-sm); font-size: var(--fs-small); color: var(--text-body); }
.fairfinanz__link { margin-top: var(--space-sm); }
/* Tippfläche 44 px wie bei .usp__cta, ohne die Abstände zu verschieben */
.team__phone .text-cta, .fairfinanz__link .text-cta { padding-block: 9px; margin-block: -9px; }
@media (min-width: 640px) {
  .fairfinanz {
    display: grid; grid-template-columns: 112px minmax(0, 1fr);
    grid-template-areas: "handy augenbraue" "handy inhalt";
    grid-template-rows: auto 1fr;
    column-gap: var(--space-xl); align-items: start;
    padding: var(--space-xl);
  }
  .fairfinanz .eyebrow { grid-area: augenbraue; }
  .fairfinanz__handy { grid-area: handy; float: none; width: auto; margin: 0; }
  .fairfinanz__inhalt { grid-area: inhalt; }
}

/* -----------------------------------------------------------------------------
   10. Kontakt
   Unter 480 px fällt der Kartenrahmen weg und das Formular steht mit voller
   Breite auf dem weißen Abschnitt. Mit Rahmen blieben dem Knopf bei 390 px
   220 px für „Kostenlosen Workshop anfragen“ (252 px), bei 360 px noch weniger.
   ----------------------------------------------------------------------------- */
@media (max-width: 479px) {
  .contact__card { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
}
.form__reassure { text-wrap: balance; }

/* -----------------------------------------------------------------------------
   11. Workshop und Formular (#kontakt)
   Wer auf „Workshop anfragen“ tippt, landet hier und liest zuerst, was der Workshop
   ist. Aufteilung und Formular-Karte wie auf der Brief-Seite (.brief-workshop*): am
   Handy untereinander, ab 1024 px nebeneinander.
   Der negative scroll-margin spart beim Sprung den Innenabstand über der Überschrift:
   Sie liegt trotzdem frei unter dem festen Kopf. Am Handy bleiben von der Erklärung nur
   die drei Titel, damit nach dem Tipp auf den Knopf schon das erste Feld im Bild steht.
   ----------------------------------------------------------------------------- */
.workshop { scroll-margin-top: calc(-1 * var(--space-2xl)); }
.workshop__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
.workshop .section__head { max-width: none; margin-inline: 0; margin-bottom: var(--space-md); text-align: left; }
.workshop__zwischentitel { font-size: var(--fs-h3); margin-bottom: var(--space-sm); }
.workshop__punkte { list-style: none; padding: 0; }
.workshop__punkt { padding-block: var(--space-sm); border-top: 1px solid var(--border-subtle); }
.workshop__punkt:last-child { padding-bottom: 0; }
.workshop__punkt-kopf { display: flex; align-items: center; gap: var(--space-sm); }
.workshop__punkt-titel { font-size: var(--fs-body); line-height: 1.3; letter-spacing: 0; }
.workshop__punkt-text { margin-top: var(--space-2xs); font-size: var(--fs-small); color: var(--text-body); }
@media (max-width: 479px) {
  .workshop__punkt-text { display: none; }
  /* Nur unsichtbar, nicht weg: Für Screenreader bleibt die Reihenfolge der Überschriften erhalten. */
  .workshop__zwischentitel { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.workshop__formular { width: 100%; max-width: 560px; margin-inline: auto; }
.workshop__kartenkopf { margin-bottom: var(--space-lg); }
.workshop__kartentitel { font-size: var(--fs-h3); }
.workshop__kartentext { margin-top: var(--space-2xs); font-size: var(--fs-small); color: var(--text-body); text-wrap: balance; }

.workshop__wege { margin-top: var(--space-lg); display: grid; justify-items: center; gap: var(--space-2xs); }
.workshop__wege .contact__whatsapp { width: 100%; margin: 0; }
.workshop__wege .btn--whatsapp { width: 100%; }
.workshop__kontaktseite { font-size: var(--fs-small); color: var(--text-muted); text-align: center; }
/* Tippfläche 44 px, ohne dass die Zeile höher wird */
.workshop__kontaktseite a { display: inline-block; padding-block: 11px; margin-block: -11px; color: var(--color-amber-text); font-weight: 600; text-decoration: underline; }
/* Nach dem Absenden steht die Nummer schon in der Erfolgsmeldung. */
.workshop__formular:has(.form-success.is-visible) .hero__call { display: none; }

@media (min-width: 1024px) {
  .workshop__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3xl); align-items: start; }
  .workshop .section__head { margin-bottom: var(--space-xl); }
  .workshop__formular { max-width: none; }
  .workshop__punkt { padding-block: var(--space-md); }
  .workshop__punkt-text { font-size: var(--fs-body); }
}
/* Das Formular ist höher als die Erklärung: So bleibt sie beim Ausfüllen daneben stehen (wie .brief-workshop__text).
   Auf niedrigen Fenstern nicht, dort käme man sonst nicht an ihr Ende. */
@media (min-width: 1024px) and (min-height: 724px) {
  .workshop__text { position: sticky; top: calc(var(--header-h) + var(--space-lg)); }
}
