/* Hallmark · genre: editorial · macrostructure: Split Studio
 * H2 hero knobs: ratio=7/5, right=portrait, divider=negative-space
 * nav: N6 Newspaper masthead · footer: Ft6 Letter close
 * section heads: S2 Hanging · features: F3 Tabular + F4 Step sequence
 * CTA: C1 Outlined chip + C3 Typographic link
 * theme: custom · vibe: "warme Creme, organische Linie, ruhig, magisch"
 * paper: oklch(97% 0.011 68) · accent: oklch(45% 0.165 20)
 * display: Fraunces · body: IBM Plex Sans · axes: light / roman-serif / warm
 * enrichment: Tier B handgesetztes SVG (Neurografik)
 * pre-emit critique: P5 H4 E5 S5 R4 V5
 * contrast: pass (40-41) · slop: pass (42-45) · honest: pass (46)
 * chrome: pass (47) · tokens: pass (48) · responsive: pass (49)
 * mobile: pass (34, 49, 50-57) · studied: no
 *
 * Wandelslinie — Seitenstile.
 * Alle Farben und Schriften kommen ausschließlich über Tokens aus tokens.css. */

@import url('/assets/css/tokens.Tm-sDVU3P_.css');
@import url('/assets/fonts/fonts.lJsBo3zVte.css');

/* ==================================================================
   Basis
   ================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.62;
  font-variant-numeric: oldstyle-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Die Seite liegt als undurchsichtige Fläche über der Fußzeile. Am Ende des
   Dokuments gibt sie genau die Fußzeilenhöhe frei — die Fußzeile rollt beim
   Scrollen darunter hervor. Ohne JavaScript steht sie normal am Seitenende. */
.page {
  position: relative;
  z-index: var(--z-raised);
  background: var(--color-paper);
}
.js-reveal .page {
  /* Um den Radius weniger Abstand, damit die Seite die Oberkante der Fußzeile
     leicht überlappt. Sonst läge der ausgerundete Eckbereich über dem
     Seitenhintergrund statt über dem dunklen Band — die Rundung wäre am
     Seitenende unsichtbar. */
  margin-bottom: calc(var(--foot-h, 0px) - var(--radius-xl));
  border-end-start-radius: var(--radius-xl);
  border-end-end-radius: var(--radius-xl);
  overflow: clip;
}

/* Sehr feines Korn — gibt dem Creme Papiercharakter statt Bildschirmweiß.
   Liegt über allem, damit auch die Fußzeile dieselbe Oberfläche bekommt. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-variation-settings: 'SOFT' 30, 'WONK' 1, 'opsz' 60;
  line-height: 1.12;
  letter-spacing: -0.018em;
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
p + p { margin-top: 0.9em; }

strong { font-weight: 600; }

::selection {
  background: var(--color-accent-soft);
  color: var(--color-ink);
}

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip {
  position: absolute;
  left: var(--space-md);
  top: var(--space-md);
  z-index: var(--z-modal);
  transform: translateY(-200%);
  background: var(--color-ink);
  color: var(--color-paper);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
}
.skip:focus-visible { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* ==================================================================
   Raster
   ================================================================== */

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.wrap--narrow { max-width: 58rem; }

.prose {
  max-width: var(--measure);
  color: var(--color-ink-2);
}

.lede {
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--color-ink-2);
  max-width: 54ch;
}

.muted { color: var(--color-muted); }

.small {
  font-size: var(--text-sm);
  line-height: 1.55;
}

/* Kleine Auszeichnung — Kapitälchen-Ersatz, nie als Section-Eyebrow. */
.caps {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-muted);
}

/* ==================================================================
   Links und Aktionen
   ================================================================== */

a { color: inherit; }

.link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  white-space: nowrap;
  position: relative;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  padding-bottom: var(--space-3xs);
  transition: color var(--dur-micro) var(--ease-out);
}
/* Die Unterstreichung wächst über transform — kein Animieren von Layout. */
.link::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: var(--rule-mid);
  background: currentColor;
  transform: scaleY(0.5);
  transform-origin: bottom;
  transition: transform var(--dur-short) var(--ease-out);
}
.link:active { color: var(--color-ink); }
.link .arrow {
  transition: transform var(--dur-short) var(--ease-out);
}

.prose a:not(.link):not(.cta) {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

/* C1 · Outlined chip — die eine laute Aktion pro Seite. */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  white-space: nowrap;
  min-height: var(--control-h);
  padding: var(--space-sm) var(--space-lg);
  border: var(--rule-hair) solid var(--color-accent);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out),
              color var(--dur-short) var(--ease-out),
              transform var(--dur-micro) var(--ease-out);
}
.cta .arrow { transition: transform var(--dur-short) var(--ease-out); }
.cta:active { transform: translateY(1px); }
.cta[disabled],
.cta[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.cta--solid {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

/* WhatsApp in der Markenfarbe — hier ist Wiedererkennung wichtiger als die
   sonstige Zurückhaltung der Seite. Schrift und Zeichen bleiben dunkel. */
.cta--wa {
  background: var(--color-whatsapp);
  border-color: var(--color-whatsapp);
  color: var(--color-ink);
}
.cta__wa-mark {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .link:hover::after { transform: scaleY(1); }
  .link:hover .arrow { transform: translateX(3px); }
  .cta:not([disabled]):hover {
    background: var(--color-accent);
    color: var(--color-accent-ink);
  }
  .cta:not([disabled]):hover .arrow { transform: translateX(3px); }
  .cta--solid:not([disabled]):hover { background: var(--color-ink); }
  .cta--wa:not([disabled]):hover {
    background: var(--color-ink);
    border-color: var(--color-ink);
    color: var(--color-whatsapp);
  }
}

@media (pointer: coarse) {
  .cta, .link { min-height: var(--control-h); }
}

/* ==================================================================
   N6 · Kopfleiste — liegend, bleibt beim Scrollen oben
   ================================================================== */

/* Klebt am oberen Rand, statt fest darauf zu liegen: so nimmt sie im Fluss
   ihren Platz ein und der Inhalt braucht keinen ausgleichenden Abstand. */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--color-paper);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md) var(--space-lg);
  padding-block: var(--space-sm);
}

/* ---- Wort-Bild-Marke ------------------------------------------------------
   Ein einziges PNG (760×636, Zeichen oben, Schriftzug unten) wird zweimal
   eingebunden und je Feld beschnitten — dadurch liegt die Marke waagerecht,
   ohne dass ein zweites Bild gepflegt werden muss.

   Die Ausschnitte in Quellpixeln:
     Zeichen    x 0…760,  y 0…556
     Schriftzug x 55…713, y 570…631

   Beide Felder arbeiten nach demselben Muster: Das Feld bekommt das
   Seitenverhältnis des Ausschnitts, das Bild wird auf die Breite skaliert,
   die den Ausschnitt füllt, und mit negativen Rändern in Position geschoben.
   Prozentangaben in `margin` beziehen sich auf die Breite des Feldes —
   deshalb stimmen waagerechte und senkrechte Verschiebung mit derselben
   Bezugsgröße. */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex: none;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.brand__mark,
.brand__word {
  display: block;
  overflow: hidden;
}
.brand__mark img,
.brand__word img {
  display: block;
  height: auto;
}

.brand__mark {
  height: 3.25rem;
  aspect-ratio: 760 / 556;
}
.brand__mark img { width: 100%; }

.brand__word {
  width: 11.5rem;
  aspect-ratio: 658 / 61;
}
.brand__word img {
  width: calc(100% * 760 / 658);
  margin-inline-start: calc(-100% * 55 / 658);
  margin-block-start: calc(-100% * 570 / 658);
}

.brand__lines {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.brand__claim {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xs);
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ---- Navigation ---------------------------------------------------------- */

.topbar__nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2xs) var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}
.topbar__nav a {
  display: inline-block;
  white-space: nowrap;
  padding-block: var(--space-2xs);
  /* Zwischen --text-sm und --text-base: etwas kräftiger als vorher, ohne die
     Kopfleiste zu sprengen. */
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-ink-2);
  border-bottom: var(--rule-mid) solid transparent;
  transition: color var(--dur-micro) var(--ease-out),
              border-bottom-color var(--dur-micro) var(--ease-out);
}
.topbar__nav a[aria-current='page'] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.topbar__nav a:active { color: var(--color-ink); }
@media (hover: hover) and (pointer: fine) {
  .topbar__nav a:hover { color: var(--color-accent); }
}

/* ---- Burger-Schalter ------------------------------------------------------
   Klasse statt <details>: Chromiums natives Zuklapp-Verhalten für <details>
   setzt bei geschlossenem Zustand Size-Containment auf den Inhalt — auch
   wenn man display/content-visibility zurücksetzt, bleibt die Breite 0.
   Ein <button> mit einer von site.js umgeschalteten Klasse umgeht das
   und bleibt auf breiten Fenstern unabhängig vom Zustand sichtbar. */
.nav-toggle {
  display: none;
}

.nav-toggle__box {
  position: relative;
  width: 22px;
  height: 16px;
}
.nav-toggle__bar {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--color-ink);
  transition: top var(--dur-short) var(--ease-out),
              transform var(--dur-short) var(--ease-out),
              opacity var(--dur-micro) var(--ease-out);
}
.nav-toggle__bar:nth-child(1) { top: 0; }
.nav-toggle__bar:nth-child(2) { top: 7px; }
.nav-toggle__bar:nth-child(3) { top: 14px; }
.nav-drawer.is-open .nav-toggle__bar:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-drawer.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-drawer.is-open .nav-toggle__bar:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Auf mittleren Fenstern trägt der Schriftzug die Marke allein — die Zeile
   unter ihm wäre sonst das Erste, was mit der Navigation kollidiert. */
@media (max-width: 60rem) {
  .brand__claim { display: none; }
}

/* Unter dem Breakpoint klappt die Navigation hinter das Icon: geschlossen
   per Default (keine `is-open`-Klasse), als Fläche unter der Leiste
   geöffnet, sobald site.js sie beim Klick auf den Schalter setzt. */
@media (max-width: 47.9375rem) {
  .topbar__inner { position: relative; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-inline-end: calc(var(--space-xs) * -1);
    border: none;
    background: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
  .nav-toggle:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
  }

  .topbar__nav { display: none; }
  .nav-drawer.is-open .topbar__nav {
    display: block;
    position: absolute;
    inset-inline: calc(var(--page-gutter) * -1);
    top: 100%;
    background: var(--color-paper);
    border-bottom: var(--rule-hair) solid var(--color-rule);
    box-shadow: 0 16px 28px -16px rgb(0 0 0 / 0.2);
    padding: var(--space-sm) var(--space-xl) var(--space-lg);
  }
  .nav-drawer.is-open .topbar__nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-drawer.is-open .topbar__nav li {
    border-bottom: var(--rule-hair) solid var(--color-rule-2);
  }
  .nav-drawer.is-open .topbar__nav li:last-child { border-bottom: none; }
  .nav-drawer.is-open .topbar__nav a {
    display: block;
    padding-block: var(--space-md);
    font-size: var(--text-base);
    letter-spacing: 0.04em;
  }
}

/* Auf schmalen Fenstern enger setzen, damit die Kopfleiste kompakt bleibt. */
@media (max-width: 30rem) {
  .topbar__inner { gap: var(--space-sm); }
  .brand__mark { height: 2.5rem; }
  .brand__word { width: 8.5rem; }
}

/* Sprungziele nicht unter die Kopfleiste rutschen lassen. */
main [id] {
  scroll-margin-top: 6.5rem;
}

/* ==================================================================
   Abschnitte, S2 · Hanging heads
   ================================================================== */

.section { padding-block: var(--space-3xl); }
.section--tight { padding-block: var(--space-2xl); }
.section--tinted { background: var(--color-paper-2); }
.section--close { padding-block: var(--space-2xl) var(--space-3xl); }

/* Achtung: `ch` bezieht sich auf die Schrift des Elements, auf dem es steht.
   Auf dem Container gälte hier die Body-Schrift — die Überschrift bräche
   dann viel zu früh um. Deshalb Breiten in rem, Fließtext in ch. */
.head {
  max-width: 42rem;
  margin-bottom: var(--space-xl);
}

/* Abschluss-Bänder: Überschrift links, Aktion rechts. Vorher stand beides
   linksbündig untereinander und rechts blieb die halbe Seite leer. */
.band {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}
.band .head { margin-bottom: 0; }
.band__action {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  align-items: center;
}
.head h2 {
  font-size: var(--text-2xl);
}
.head p {
  margin-top: var(--space-sm);
  color: var(--color-muted);
  max-width: 48ch;
}

/* ==================================================================
   H2 · Hero-Diptychon
   ================================================================== */

/* Oben großzügiger, als es sonst nötig wäre: Die Kopfleiste sitzt direkt
   darüber, und die Neurografik-Linien ragen über das Porträt hinaus —
   ohne Luft stoßen beide an die Leiste. */
.hero {
  position: relative;
  padding-block: var(--space-2xl) var(--space-3xl);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

.hero__title {
  font-size: var(--text-display);
  max-width: 17ch;
}

.hero__lede { margin-top: var(--space-md); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  align-items: center;
  margin-top: var(--space-md);
}

.hero__figure {
  position: relative;
  margin: 0;
  min-width: 0;
}

.hero__figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 46% 46% 42% 42% / 34% 34% 12% 12%;
  filter: saturate(0.96) contrast(1.02);
}

/* Neurografik-Linien, von Hand gesetzt — dieselbe Sprache wie das Logo:
   lange freie Züge, an den Kreuzungen gerundet, Knoten als kleine Scheiben. */
.hero__lines {
  position: absolute;
  inset: -14% -20% -10% -16%;
  width: auto;
  height: auto;
  pointer-events: none;
}
/* Das Bild liegt vor den Linien — ohne negativen z-index, der sonst hinter
   der Hintergrundfläche der Seiten-Ebene verschwinden würde. */
.hero__figure picture {
  position: relative;
  display: block;
}

.neuro path,
.neuro circle {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.neuro .n-warm { stroke: var(--color-accent-warm); stroke-width: 1.4; opacity: 0.5; }
.neuro .n-deep { stroke: var(--color-accent); stroke-width: 1.6; opacity: 0.45; }
.neuro .n-fine { stroke: var(--color-accent-warm); stroke-width: 1; opacity: 0.32; }
.neuro .n-fillet { stroke: var(--color-accent); stroke-width: 1.1; opacity: 0.3; }
.neuro .n-node { fill: var(--color-accent); stroke: none; opacity: 0.5; }

/* Dieselbe Zeichnung, diesmal als eigenständiges Bild statt als Umfeld. */
.duo__art {
  min-width: 0;
  margin: 0;
}
.duo__art .neuro {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  aspect-ratio: 560 / 720;
}
.duo__art .neuro .n-warm { opacity: 0.75; }
.duo__art .neuro .n-deep { opacity: 0.7; }
.duo__art .neuro .n-fine { opacity: 0.45; }
.duo__art .neuro .n-node { opacity: 0.8; }
.duo__art .neuro .n-fillet { opacity: 0.55; }
.duo__art figcaption {
  max-width: 22rem;
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-muted);
}

/* Auftakt ohne Bild — damit Unterseiten nicht wie die Startseite aussehen. */
.hero--plain {
  padding-block: var(--space-2xl);
}
.hero--plain .hero__title {
  max-width: 20ch;
}
.hero--plain .lede {
  margin-top: var(--space-lg);
}

/* ==================================================================
   Split Studio · Diptychon-Reihen
   ================================================================== */

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: start;
  padding-block: var(--space-xl);
}

/* Trennung zwischen den Blöcken: derselbe geschwungene Zug, nur liegend. */
.duo + .duo::before {
  content: '';
  grid-column: 1 / -1;
  height: 18px;
  margin-bottom: var(--space-md);
  background: var(--color-rule);
  -webkit-mask: var(--thread-mask-h) repeat-x left center / 120px 18px;
  mask: var(--thread-mask-h) repeat-x left center / 120px 18px;
}

.duo__title {
  font-size: var(--text-xl);
}

.duo__body { margin-top: var(--space-sm); }

/* Die Nebenspalte ist kein Kleingedrucktes — sie trägt die konkreten
   Anliegen und muss neben dem Fließtext bestehen können. */
.duo__aside {
  min-width: 0;
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--color-ink-2);
}
/* Statt einer Leiter aus geraden Linien: ein durchlaufender, leicht
   geschwungener Faden mit einem Knoten je Eintrag — dieselbe Formsprache
   wie im Logo. Der Faden ist eine Maske, die Farbe kommt aus den Tokens. */
.duo__aside ul {
  margin: 0;
  padding: 0 0 0 var(--space-xl);
  list-style: none;
}
.duo__aside li {
  position: relative;
  padding-block: var(--space-sm);
  /* Höhe des Knotens über der Oberkante des Eintrags: Innenabstand plus die
     halbe Zeilenhöhe (line-height 1.45). Punkt und Faden hängen beide daran,
     darum sitzt der Punkt optisch mittig zur ersten Textzeile. */
  --knot: calc(var(--space-sm) + 0.725em);
}
/* Der Faden läuft nicht durch, sondern von Knoten zu Knoten: ein Zug je
   Eintrag, der oben und unten exakt auf der Mittelachse (x=9) ansetzt und
   dazwischen ausschwingt. Dadurch trifft die Linie jeden Punkt mittig,
   unabhängig davon, wie hoch der Eintrag ist. */
.duo__aside li::after {
  content: '';
  position: absolute;
  inset-inline-start: calc(var(--space-xl) * -1);
  top: var(--knot);
  bottom: calc(var(--knot) * -1);
  width: 18px;
  background: var(--color-accent-warm);
  opacity: 0.6;
  -webkit-mask: var(--thread-run) no-repeat left top / 18px 100%;
  mask: var(--thread-run) no-repeat left top / 18px 100%;
}
.duo__aside li:last-child::after { content: none; }
.duo__aside li::before {
  content: '';
  position: absolute;
  /* Mitte des Punktes liegt exakt auf der Mittelachse des Fadens (9px). */
  inset-inline-start: calc(var(--space-xl) * -1 + 4px);
  top: calc(var(--knot) - 5px);
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
}

.duo__cta {
  margin-top: var(--space-lg);
  font-weight: 500;
  color: var(--color-ink);
}
.duo__cta .link { margin-inline-start: 0.4em; }

.duo__note {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-inline-start: var(--rule-mid) solid var(--color-accent-warm);
  background: var(--color-paper-2);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

/* Erzählabschnitt: Porträt kleiner, links, schlichtes Rechteck — bewusst
   anders als der gerundete Bogen im Hero der Startseite. */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
}
.story__figure {
  margin: 0;
  min-width: 0;
}
.story__figure img {
  display: block;
  width: 100%;
  max-width: 21rem;
  height: auto;
  border-radius: var(--radius-md);
  filter: saturate(0.96) contrast(1.02);
}
.story__figure figcaption {
  max-width: 21rem;
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-muted);
}

/* ==================================================================
   F3 · Qualifikationstabelle
   ================================================================== */

.specs {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-variant-numeric: tabular-nums;
}
.specs caption {
  text-align: start;
  padding-bottom: var(--space-md);
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.specs th,
.specs td {
  padding: var(--space-md) var(--space-md) var(--space-md) 0;
  border-top: var(--rule-hair) solid var(--color-rule);
  vertical-align: baseline;
  text-align: start;
  font-weight: 400;
}
.specs tr:last-child th,
.specs tr:last-child td {
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.specs th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  width: 46%;
  color: var(--color-ink);
}
.specs td {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ==================================================================
   F4 · Ablauf als Folge
   ================================================================== */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-xl);
}
/* Ziffer steht ÜBER der Überschrift, nicht daneben — eine Marke links neben
   dem Titel ist das verlässlichste Muster für schablonenhafte Seiten. */
.steps li {
  position: relative;
  padding-inline-start: var(--space-lg);
  max-width: 52ch;
}
.steps li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: var(--space-2xs);
  bottom: calc(var(--space-xl) * -1);
  width: var(--rule-hair);
  background: var(--color-rule);
}
.steps li:last-child::before { bottom: var(--space-md); }

.steps__no {
  display: block;
  margin-bottom: var(--space-2xs);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  color: var(--color-accent);
  font-variant-numeric: lining-nums;
}
.steps h3 { font-size: var(--text-md); }
.steps p { margin-top: var(--space-2xs); color: var(--color-ink-2); }

/* ==================================================================
   Trennlinie im Logo-Duktus
   ================================================================== */

.thread {
  display: block;
  width: 100%;
  height: 40px;
  overflow: visible;
  color: var(--color-accent-warm);
}
.thread path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.55;
}

/* ==================================================================
   Hinweisband (rechtlicher Rahmen, Krisenhilfe)
   ================================================================== */

.notice {
  border-top: var(--rule-hair) solid var(--color-rule);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  padding-block: var(--space-lg);
  background: var(--color-paper-2);
}
.notice__grid {
  display: grid;
  gap: var(--space-lg);
}
/* Im Raster regelt `gap` die Abstände — kein zusätzlicher Absatzabstand,
   der die zweite Spalte tiefer setzen würde. */
.notice__grid > p + p { margin-top: 0; }
.notice p {
  max-width: 62ch;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-ink-2);
}
.notice strong { color: var(--color-ink); }

/* Platzhalter im Entwurf — im Livegang restlos ersetzen. */
.ph {
  display: inline;
  padding: var(--space-3xs) var(--space-2xs);
  border-radius: var(--radius-sm);
  background: var(--color-paper-3);
  box-shadow: inset 0 0 0 1px var(--color-rule);
  color: var(--color-ink-2);
  font-family: var(--font-body);
  font-size: 0.92em;
  font-weight: 500;
  white-space: normal;
}

/* ==================================================================
   Kontaktformular
   ================================================================== */

.form {
  display: grid;
  gap: var(--space-lg);
  max-width: 34rem;
}

.field { display: grid; gap: var(--space-2xs); }

.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
}
.field .req { color: var(--color-accent); }

.field input,
.field textarea {
  width: 100%;
  min-height: var(--control-h);
  padding: var(--space-sm) var(--space-md);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  outline: 2px solid transparent;
  outline-offset: 1px;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  transition: background-color var(--dur-short) var(--ease-out),
              border-color var(--dur-short) var(--ease-out);
}
.field textarea { min-height: 9.5rem; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: var(--color-muted); }

@media (hover: hover) and (pointer: fine) {
  .field input:hover,
  .field textarea:hover { background: var(--color-paper-2); }
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--color-focus);
  border-color: var(--color-ink-2);
}

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] { border-color: var(--color-error); }

.field input:disabled,
.field textarea:disabled { opacity: 0.55; cursor: not-allowed; }

.field .hint {
  min-height: 1.4lh;
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.field .hint[data-state='error'] { color: var(--color-error); font-weight: 500; }

.check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: start;
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}
.check input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin-top: var(--space-3xs);
  accent-color: var(--color-accent);
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.form__status {
  font-size: var(--text-sm);
  line-height: 1.55;
  max-width: 44ch;
}
.form__status[data-state='error'] { color: var(--color-error); }
.form__status[data-state='ok'] { color: var(--color-accent); font-weight: 500; }

.turnstile-slot { min-height: 0; }
.turnstile-slot:not(:empty) { margin-block: var(--space-2xs); }

/* Direkte Wege — E-Mail, WhatsApp, Telefon. */
.ways {
  display: grid;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
}
.ways > div {
  padding-block: var(--space-sm);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.ways dt {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-muted);
}
.ways dd {
  margin: var(--space-2xs) 0 0;
  font-size: var(--text-md);
  font-family: var(--font-display);
  font-weight: 700;
}
.ways dd a { text-decoration: none; border-bottom: var(--rule-hair) solid var(--color-rule); }
@media (hover: hover) and (pointer: fine) {
  .ways dd a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }
}

.ways__note {
  max-width: 52ch;
  margin-top: var(--space-lg);
}
.ways__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-md);
}

/* ==================================================================
   Fußzeile — dunkles Band, wird beim Scrollen freigelegt
   ================================================================== */

.foot {
  position: relative;
  z-index: var(--z-base);
  background: var(--color-foot-bg);
  color: var(--color-foot-ink);
  padding-block: var(--space-2xl) var(--space-md);
}
.js-reveal .foot {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
}

/* Schaltflächen behalten ihre eigene Textfarbe — sonst wird heller Knopf
   auf hellem Grund unsichtbar. */
.foot a:not(.cta) { color: inherit; }

.foot__top {
  display: grid;
  gap: var(--space-xl);
}

.foot__label {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-foot-muted);
}

.foot__statement {
  max-width: 16ch;
  margin-top: var(--space-xs);
  font-size: var(--text-xl);
  color: var(--color-foot-ink);
}

.foot__sub {
  max-width: 46ch;
  margin-top: var(--space-sm);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-foot-muted);
}

.foot__lead .cta { margin-top: var(--space-md); }

.cta--light {
  background: var(--color-foot-ink);
  border-color: var(--color-foot-ink);
  color: var(--color-ink);
}

.foot__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  align-content: start;
}
.foot__nav ul {
  margin: var(--space-sm) 0 0;
  padding: 0;
  list-style: none;
}
.foot__nav li + li { margin-top: var(--space-xs); }
.foot__nav a {
  display: inline-block;
  white-space: nowrap;
  padding-block: var(--space-3xs);
  font-size: var(--text-base);
  text-decoration: none;
  border-bottom: var(--rule-hair) solid transparent;
}

.foot__ways {
  display: grid;
  gap: var(--space-md);
  margin: var(--space-xl) 0 0;
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-foot-rule);
}
.foot__ways dt {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-foot-muted);
}
.foot__ways dd {
  margin: var(--space-2xs) 0 0;
  font-size: var(--text-md);
  font-family: var(--font-display);
  font-weight: 700;
}
.foot__ways dd a {
  white-space: nowrap;
  text-decoration: none;
  border-bottom: var(--rule-hair) solid var(--color-foot-rule);
}

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-foot-rule);
  font-size: var(--text-sm);
  color: var(--color-foot-muted);
}
.foot__logo { line-height: 0; }
.foot__logo img { width: 6.5rem; height: auto; }
.foot__credit a {
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

@media (hover: hover) and (pointer: fine) {
  .foot__nav a:hover { border-bottom-color: var(--color-foot-ink); }
  .foot__ways dd a:hover { border-bottom-color: var(--color-foot-ink); }
  .foot__credit a:hover { color: var(--color-foot-ink); }
  .cta--light:not([disabled]):hover {
    background: var(--color-accent-warm);
    border-color: var(--color-accent-warm);
    color: var(--color-ink);
  }
}

.foot :focus-visible {
  outline: 2px solid var(--color-foot-ink);
  outline-offset: 3px;
}

/* ==================================================================
   Rechtstexte
   ================================================================== */

.legal { max-width: var(--measure); }
.legal h2 {
  font-size: var(--text-lg);
  margin-top: var(--space-xl);
}
.legal h2:first-of-type { margin-top: var(--space-lg); }
.legal p { margin-top: var(--space-sm); color: var(--color-ink-2); }
.legal ul { margin-top: var(--space-sm); color: var(--color-ink-2); padding-inline-start: var(--space-lg); }
.legal li { margin-top: var(--space-2xs); }

/* ==================================================================
   Ein orchestrierter Auftritt beim Laden
   ================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal var(--dur-long) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

/* Die Linie zeichnet sich einmal — wie ein Stift, der ansetzt. */
.draw path {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
  animation: draw 2.2s var(--ease-out) forwards;
  animation-delay: 180ms;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .draw path { stroke-dashoffset: 0; }
}

/* ==================================================================
   Breakpoints — inhaltsgetrieben
   ================================================================== */

@media (min-width: 40rem) {
  .duo {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--space-2xl);
    padding-block: var(--space-2xl);
  }
  .duo--flip > :first-child { order: 2; }
  .ways { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
  .story {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: var(--space-2xl);
  }
  .foot__ways { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 48rem) {
  .band {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2xl);
  }
  .notice__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2xl);
  }
}

@media (min-width: 60rem) {
  .foot { padding-block: var(--space-3xl) var(--space-lg); }
  .foot__top {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: var(--space-3xl);
  }
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-3xl);
  }
  .hero { padding-block: var(--space-3xl) var(--space-4xl); }
  .head h2 { font-size: var(--text-3xl); }
  .steps { gap: var(--space-2xl); }
  .split-legal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: var(--space-2xl);
  }
}
