/* styles.css – Layout & Komponenten. Nutzt Tokens aus tokens.css. */

/* ---------------------------------------------------------------------------
   Layout-Raster: drei Breiten statt einer Mittelspalte.

   Ein rein zentrierender Container macht die schmale Mittelspalte zum
   Standardweg und lässt links und rechts alles ungenutzt. Mit diesem Raster
   ist die Fläche zu nutzen eine Klasse statt eines Layout-Umbaus.

   Anwendung: .layout auf den Sektions-Container, die Kinder wählen ihre Breite:

     (ohne Klasse)   lesbare Textbreite  – Fließtext, Überschriften
     .breakout       breiter             – Bildreihen, Karten, Galerien, Zahlen
     .full           randlos             – Bildbänder, Hero, farbige Sektionen

   Randlose Sektion mit lesbarem Text darin: dem .full-Element selbst wieder
   .layout geben, dann greifen die drei Breiten innerhalb erneut.

   Achtung: .full wirkt nur auf KINDER eines .layout-Containers
   (.layout > .full). Auf dem .layout-Element selbst ist die Klasse wirkungslos
   – eine Sektion ist als Blockelement ohnehin schon fensterbreit. Randlos
   *wirkt* sie erst, wenn sie eine eigene Fläche trägt (Hintergrundfarbe oder
   -bild); sonst sieht man nur den Text in der Mitte.
--------------------------------------------------------------------------- */
.layout {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [breakout-start] minmax(0, var(--breakout-extra))
    [content-start] min(100% - var(--gutter) * 2, var(--maxw-content)) [content-end]
    minmax(0, var(--breakout-extra)) [breakout-end]
    minmax(var(--gutter), 1fr) [full-end];
}

.layout > *         { grid-column: content; }
.layout > .breakout { grid-column: breakout; }
.layout > .full     { grid-column: full; }

/* ===========================================================================
   Alles unterhalb des Heros: Kopfleiste, Sektionen 2–9, Funnel, Footer.
   Keine Regel trifft den Hero (.hero, [data-hero]); Komponenten sind auf
   .kopf, .sektion und .fuss begrenzt. Jeder Wert aus tokens.css.
=========================================================================== */

/* ---------- Typografie in den Sektionen ---------- */
.sektion h2 {
  font-size: var(--step-2);
  font-weight: var(--weight-display);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-display);
  color: var(--color-text);
  text-wrap: balance;
  margin-block-end: var(--space-s);
}
.sektion h3 {
  font-size: var(--step-1);
  font-weight: var(--weight-display);
  line-height: var(--lh-heading);
}
.sektion p,
.fuss p { text-wrap: pretty; }

.sektion .lead {
  font-size: var(--step-1);
  line-height: 1.45;
}

/* Kicker: Versal-Etikett über jeder H2. */
.sektion .kicker {
  font-size: var(--step--1);
  font-weight: var(--weight-strong);
  text-transform: uppercase;
  letter-spacing: var(--tracking-kicker);
  color: var(--color-primary);
  margin-block-end: var(--space-xs);
}

/* Kreide: Textmarker-Strich hinter einem Wort, wie auf Jörgs Bögen.
   Mit Bewegung wächst er beim Einblenden von links (Klasse ist-gezogen). */
.sektion .kreide {
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.42em;
  padding-inline: 0.08em;
  margin-inline: -0.04em;
  border-radius: 0.2em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size 600ms var(--ease-out);
}
.bewegung .sektion .kreide { background-size: 0% 0.42em; }
.bewegung .sektion .kreide.ist-gezogen { background-size: 100% 0.42em; }

/* ---------- Knöpfe (nur Kopfleiste, Sektionen, Footer) ---------- */
:where(.kopf, .sektion, .fuss, .einwilligung) .knopfreihe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-s) var(--space-m);
  margin-block-start: var(--space-m);
}
:where(.kopf, .sektion, .fuss, .einwilligung) .knopfreihe--mitte { justify-content: center; }

:where(.kopf, .sektion, .fuss, .einwilligung) .knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75em 1.6em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: var(--weight-strong);
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform var(--dur-normal) var(--ease-out),
    box-shadow var(--dur-normal) var(--ease-out),
    background-color var(--dur-schnell) ease,
    color var(--dur-schnell) ease,
    border-color var(--dur-schnell) ease;
}
:where(.kopf, .sektion, .fuss, .einwilligung) .knopf--klein {
  min-height: 44px;
  padding: 0.5em 1.2em;
  font-size: var(--step--1);
}
:where(.kopf, .sektion, .fuss, .einwilligung) .knopf--primaer {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  box-shadow: var(--shadow-knopf);
}
:where(.kopf, .sektion, .fuss, .einwilligung) .knopf--sekundaer {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
:where(.kopf, .sektion, .fuss, .einwilligung) .knopf--zurueck {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

/* base.css dimmt beim Hover auf 0.72 – Knöpfe bekommen einen echten Zustand. */
@media (hover: hover) {
  :where(.kopf, .sektion, .fuss, .einwilligung) .knopf:hover { opacity: 1; transform: translateY(-3px); }
  :where(.kopf, .sektion, .fuss, .einwilligung) .knopf--primaer:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-l);
  }
  :where(.kopf, .sektion, .fuss, .einwilligung) .knopf--sekundaer:hover {
    background: var(--color-primary);
    color: var(--color-text-on-dark);
    box-shadow: var(--shadow-m);
  }
  :where(.kopf, .sektion, .fuss, .einwilligung) .knopf--zurueck:hover {
    border-color: var(--color-text-muted);
    background: var(--color-hover);
  }
}
:where(.kopf, .sektion, .fuss, .einwilligung) .knopf:active { opacity: 1; transform: translateY(0); box-shadow: none; }

/* Textlink: Kreide-Gelb-Marker wächst bei Hover von links hinter das Wort. */
:where(.sektion, .fuss, .einwilligung) .textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-primary);
  font-weight: var(--weight-strong);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--color-primary-bright);
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-position: 0 72%;
  background-size: 0% 0.45em;
  transition: background-size var(--dur-normal) var(--ease-out);
}
:where(.sektion, .fuss, .einwilligung) .textlink--fliess {
  display: inline;
  min-height: 0;
  font-weight: var(--weight-body);
}
@media (hover: hover) {
  :where(.sektion, .fuss, .einwilligung) .textlink:hover {
    opacity: 1;
    color: var(--color-text);
    background-size: 100% 0.45em;
  }
}

/* ---------- Kopfleiste: erscheint ab dem Scrollen ---------- */
.kopf {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--space-m);
  height: var(--header-h);
  padding-inline: clamp(var(--space-m), 4vw, var(--space-l));
  background: color-mix(in oklch, var(--color-bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-s);
  transition: transform var(--dur-normal) var(--ease-out);
}
/* Mit JS: oben im Hero versteckt, beim Runterscrollen weg, beim Hochscrollen
   zurück. Fokus in der Leiste holt sie immer zurück. */
.js .kopf:not(.ist-sichtbar):not(:focus-within) {
  transform: translateY(calc(-100% - 2px));
  box-shadow: none;
}
.kopf__marke {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-inline-end: auto;
}
.kopf__logo { width: 52px; height: auto; }
.kopf__name {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: calc(var(--step-1) * 1.15);
  line-height: 1;
  color: var(--color-text);
}
@media (hover: hover) {
  .kopf__marke:hover { opacity: 1; }
  .kopf__marke:hover .kopf__name { color: var(--color-primary); }
}
.kopf__nav { display: flex; gap: var(--space-m); }
.kopf__nav a {
  position: relative;
  font-size: var(--step--1);
  font-weight: var(--weight-strong);
  color: var(--color-text);
}
.kopf__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 3px;
  border-radius: 3px;
  background: var(--color-primary-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-normal) var(--ease-out);
}
.kopf__nav a.ist-aktiv { color: var(--color-primary); }
.kopf__nav a.ist-aktiv::after { transform: scaleX(1); }
@media (hover: hover) {
  .kopf__nav a:hover { opacity: 1; color: var(--color-primary); }
  .kopf__nav a:hover::after { transform: scaleX(1); }
}

/* ---------- Sektionsgrund und Abstände ----------
   Nur EINE Seite polstert: jede Sektion oben, die letzte zusätzlich unten.
   Panels und dunkle Flächen sind eingerückt und gerundet. */
.sektion { padding-block-start: var(--space-xl); }

/* Eine linke Textkante für alle Sektionen = Hero-Linie: Das Raster
   bekommt den Hero-Mindestabstand als Rand; eingerückte Panels ziehen ihren
   Einzug davon ab, damit der Text an derselben Stelle beginnt. */
.sektion { --gutter: var(--kante-min); }

.sektion--panel,
.sektion--getoent,
.sektion--dunkel {
  --gutter: calc(var(--kante-min) - var(--panel-inset));
  margin: var(--space-xl) var(--panel-inset) 0;
  padding-block: var(--space-xl);
  border-radius: var(--radius-l);
}
/* Anfrage und Footer sind eine dunkle Fläche, getrennt durch eine Linie. */
.sektion--dunkel:last-child { border-end-start-radius: 0; border-end-end-radius: 0; }
.sektion--panel { background: var(--color-surface); }
.sektion--getoent { background: var(--color-primary-soft); padding-block: var(--space-l); }
.sektion--dunkel {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}
.sektion--dunkel h2 { color: var(--color-text-on-dark); }
.sektion--dunkel .kicker { color: var(--color-primary-on-dark); }
.sektion--dunkel .lead { color: var(--color-text-muted-on-dark); }
.sektion--dunkel :focus-visible,
.kapitel :focus-visible,
.fuss :focus-visible { outline-color: var(--color-focus-on-dark); }
/* Nach einem Panel beginnt die helle Sektion ohne eigenes Polster oben
   doppelt: das Panel hat Außenabstand, die Sektion danach polstert. */
.sektion--stimmen { padding-block-end: 0; }

/* ---------- Foto ---------- */
.sektion .foto {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-m);
}
.sektion .foto img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 2 · Das 1:1 ---------- */
.eins {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-l);
  align-items: center;
}
.eins__text > p:not(.kicker) { max-width: 54ch; }
.eins__text > p:not(.kicker) + p { margin-block-start: var(--space-s); }
.eins__text .lead { margin-block-end: var(--space-s); }
/* Hochformat (Jörg zeichnet live, 1200×1600). 4:5 statt 3:4, damit das Bild
   auf Laptophöhen nicht höher als der Text wird; der Schnitt nimmt oben und
   unten Wand und Boden weg, nicht Gesicht und Bogen. */
.eins__bild { aspect-ratio: 4 / 5; width: min(100%, calc(min(76vh, 46rem) * 0.8)); justify-self: end; }
.eins__bild img { object-position: 50% 40%; }
/* Breite Fenster: Der Text endet bei 54ch, das 7/5-Raster ließ zwischen
   Text und Foto über 300 px Leerraum (1920). Zwei gleiche Spalten, das Foto
   steht am Anfang seiner Spalte, also eine Spaltenlücke neben dem Text. */
@media (min-width: 1600px) {
  .eins { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-l); }
  .eins__bild { justify-self: start; width: min(100%, calc(min(80vh, 54rem) * 0.8)); }
}

/* ---------- Marker-Striche (SVG, Pfade erzeugt main.js) ---------- */
.sektion .marker-wort {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.sektion .strich {
  position: absolute;
  overflow: visible;
  pointer-events: none;
  fill: none;
}
.sektion .strich path {
  fill: none;
  stroke: var(--color-marker-bright);
  stroke-width: var(--stroke-marker);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;            /* Endzustand = gezeichnet */
}
.bewegung .sektion .strich path { stroke-dashoffset: 1; }
.sektion .strich--unterstrich { left: 0; top: 88%; width: 100%; height: 0.42em; }
/* max-width: none hebt base.css (svg { max-width: 100% }) auf: Sonst bleibt
   der Rahmen so breit wie das Blatt, steht aber 14 px links davon, und
   rechts läuft der Strich durch das Bild. */
.sektion .strich--rahmen { left: -14px; top: -14px; width: calc(100% + 28px); max-width: none; height: calc(100% + 28px); }
.sektion .strich--kringel,
.sektion .strich--pfeil { left: 0; top: 0; width: 100%; height: 100%; }

/* ---------- 3 · Gepinntes Kapitel ---------- */
.kapitel {
  margin-block-start: var(--space-xl);
  padding: 0;
  border-radius: var(--radius-l);
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}
.kapitel__flaeche {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  gap: var(--space-l);
  align-items: center;
  padding: var(--space-xl) var(--kante-text);
}
.kapitel .strich path { stroke: var(--color-primary-on-dark); }
.kapitel .strich--kringel path { stroke: var(--color-accent); }
/* Zweizeilig: „Vom Sonntags-Flipchart / zum Live-Bild". */
.kapitel .kapitel__titel {
  color: var(--color-text-on-dark);
  max-width: 22ch;
}
.kapitel .kein-umbruch { white-space: nowrap; }
.kapitel__einleitung {
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--color-text-muted-on-dark);
  max-width: 34ch;
}
.kapitel__schritte {
  list-style: none;
  display: flex;
  gap: var(--space-m);
  margin-block: var(--space-m);
  font-size: var(--step--1);
  font-weight: var(--weight-strong);
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
}
.kapitel__schritte li {
  padding-bottom: 0.25rem;
  border-bottom: 3px solid transparent;
  color: var(--color-text-muted-on-dark);
  transition: color var(--dur-normal) ease, border-color var(--dur-normal) ease;
}
.kapitel__schritte .ist-aktiv {
  color: var(--color-text-on-dark);
  border-color: var(--color-primary-on-dark);
}
.stufe + .stufe { margin-top: var(--space-l); }
.kapitel .stufe__titel { font-size: var(--step-2); margin-bottom: var(--space-s); }
.stufe p { max-width: 44ch; color: var(--color-text-muted-on-dark); }
.orte {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s) var(--space-m);
  margin-top: var(--space-s);
  font-size: var(--step-1);
  font-weight: var(--weight-strong);
}
.ort { position: relative; display: inline-block; padding: 0.25rem 0.75rem; }

.kapitel__buehne {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(3rem, 4.5vw, 6rem);
}
.blatt { position: relative; margin: 0; }
.blatt__halter { position: relative; }
/* A und B hochkant, gleich groß: A vorbereitet, B live in einer Mediation
   entstanden (1100×1502, Seitenverhältnis wie A). Beide schneiden mit
   object-fit gleich, damit die Bögen nebeneinander gleich hoch stehen. */
.blatt--a,
.blatt--b { width: 43%; flex: none; }
.blatt__papier { aspect-ratio: 1100 / 1500; }
.blatt__papier img { height: 100%; object-fit: cover; object-position: top; }
.blatt__papier {
  border-radius: var(--radius-s);
  overflow: hidden;
  box-shadow: var(--shadow-l);
}
.blatt--a .blatt__papier { transform: rotate(-3deg); }
.blatt--b .blatt__papier { transform: rotate(1.5deg); }
.blatt__papier img { width: 100%; height: auto; }

/* Mit Bewegung: eine Bildschirmhöhe, Stufen liegen übereinander. Ohne
   Bewegung steht alles untereinander und ist fertig. */
.bewegung .kapitel { height: 100vh; }
.bewegung .kapitel__flaeche {
  height: 100%;
  padding-block: var(--space-l);
}
.bewegung .kapitel__ablauf { display: grid; }
.bewegung .kapitel__schritte { grid-row: 1; }
.bewegung .stufe { grid-row: 2; grid-column: 1; }
.bewegung .stufe + .stufe { margin-top: 0; }
.bewegung .kapitel__buehne { height: 100%; max-height: 82vh; }
/* Breite statt Höhenkappe: Beide Bögen bleiben ganz sichtbar (64vh hoch). */
.bewegung .blatt--a,
.bewegung .blatt--b { width: min(43%, 47vh); }

/* ---------- 4 · Ablauf ---------- */
.ablauf__kopf { max-width: 60ch; margin-block-end: var(--space-m); }
/* Stationen als Weg statt Kachelreihe: eine Marker-Linie verbindet die
   Ziffern, keine Kästen. Alle vier Stationen gleich groß (Onboarding
   09.11.2026: unterschiedliche Größen waren nicht beabsichtigt); nur das
   Ziel trägt den Gold-Akzent.
   Die Linie (SVG, Pfad aus main.js) liegt hinter den Ziffern; die Ziffern
   tragen den Panelgrund und decken sie ab. Ohne Bewegung ist sie gezeichnet. */
.weg { position: relative; }
.stationen {
  position: relative;
  z-index: 1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-l);
  align-items: start;
}
.station { position: relative; }
.station__nr {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  margin-block-end: var(--space-m);
  border-radius: 50%;
  border: var(--stroke-marker) solid var(--color-primary-bright);
  background: var(--color-surface);
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--step-1);
  line-height: 1;
  color: var(--color-text);
  transition:
    scale var(--dur-normal) var(--ease-out),
    rotate var(--dur-normal) var(--ease-out),
    background-color var(--dur-schnell) ease,
    border-color var(--dur-schnell) ease,
    color var(--dur-schnell) ease;
}
.station--ziel .station__nr {
  background: var(--color-accent);
  border-color: var(--color-text);
}
.station h3 { margin-block-end: var(--space-xs); transition: color var(--dur-schnell) ease; }
.station p { color: var(--color-text); font-size: var(--step-0); line-height: 1.55; max-width: 34ch; }
/* Hover nur nach echter Mausbewegung. Läuft beim Scrollen eine Station unter
   den ruhenden Zeiger, setzt der Browser :hover, ohne dass jemand gezeigt hat
   (gemessen 10.11.2026: Station 2 bei ruhendem Zeiger 6 von 30 Raststufen
   blau). main.js setzt html.zeiger-ruht beim Scrollen und nimmt es erst bei
   einer Mausbewegung mit neuen Koordinaten wieder weg. */
@media (hover: hover) {
  /* scale/rotate statt transform: GSAP setzt transform inline beim Einblenden */
  html:not(.zeiger-ruht) .station:hover .station__nr {
    scale: 1.08;
    rotate: -4deg;
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-on-dark);
  }
  html:not(.zeiger-ruht) .station:hover h3 { color: var(--color-primary); }
}
.sektion .strich--weg { left: 0; top: 0; width: 100%; height: 100%; z-index: 0; }
.ablauf .knopfreihe { margin-block-start: var(--space-m); }

/* ---------- 5 · Arbeitsproben: horizontale Spur ---------- */
.spur__innen {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}
.spur__kopf {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-l);
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw-content)) / 2 - var(--breakout-extra)));
}
/* „Flipcharts aus meinen Trainings und einer Mediation": höchstens zwei
   Zeilen, auf 1440/1920 brach sie mit 22ch dreizeilig. */
.spur__kopf h2 { max-width: 32ch; }
.spur__zaehler {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--step-2);
  line-height: 1;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.spur__zaehler [data-spur-nr] { color: var(--color-primary); }
.spur__band {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-l) var(--space-m);
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw-content)) / 2 - var(--breakout-extra)));
}
.bogenkarte figure { margin: 0; }
.bogenkarte__blatt {
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: var(--shadow-m);
  transform: rotate(-1.5deg);
  transition:
    transform var(--dur-normal) var(--ease-out),
    box-shadow var(--dur-normal) var(--ease-out);
}
.bogenkarte:nth-child(even) .bogenkarte__blatt { transform: rotate(1.5deg); }
.bogenkarte__blatt img { width: 100%; height: auto; }
/* Das live entstandene Blatt: Marke in Kreide-Gelb über der Unterschrift,
   wie ein Textmarker auf Jörgs Bögen. */
.bogenkarte--live figcaption { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.bogenkarte__marke {
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-text);
  font-size: var(--step--1);
  font-weight: var(--weight-strong);
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
}
.bogenkarte figcaption {
  margin-block-start: var(--space-s);
  font-weight: var(--weight-strong);
  font-size: var(--step--1);
  color: var(--color-text);
  text-align: center;
}
@media (hover: hover) {
  .bogenkarte:hover .bogenkarte__blatt,
  .bogenkarte:nth-child(even):hover .bogenkarte__blatt {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: var(--shadow-l);
  }
}
/* Ohne Bewegung: Raster aus 3 × 3, kein Zähler. Mit Bewegung: Spur. */
html:not(.bewegung) .spur__zaehler { display: none; }
.bewegung .spur {
  height: 100vh;
  padding-block: calc(var(--header-h) + var(--space-s)) var(--space-m);
  overflow: hidden;
}
.bewegung .spur__innen { height: 100%; gap: var(--space-m); }
.bewegung .spur__fenster { flex: 1; min-height: 0; }
.bewegung .spur__band {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  gap: clamp(var(--space-m), 3vw, var(--space-l));
}
.bewegung .bogenkarte { height: 100%; display: flex; align-items: center; }
.bewegung .bogenkarte figure { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.bewegung .bogenkarte--live .bogenkarte__blatt { height: calc(100% - 5rem); }
.bewegung .bogenkarte__blatt { height: calc(100% - 3rem); aspect-ratio: 1100 / 1500; }
.bewegung .bogenkarte__blatt img { height: 100%; width: 100%; object-fit: cover; }

/* ---------- 6 · Über mich + Buchregal ---------- */
.ich {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-l);
  align-items: center;
}
.ich__text > p:not(.kicker) { max-width: 54ch; }
.ich__text > p:not(.kicker) + p { margin-block-start: var(--space-s); }
.regal {
  list-style: none;
  display: grid;
  gap: var(--space-s);
}
/* Cover im Hochformat: schmalere Spalte als beim alten Quadrat, damit die
   Sektion nicht höher wird als die Nachbarn (Rhythmus, layout-check). */
.regal__haupt {
  display: grid;
  grid-template-columns: minmax(10rem, 1.3fr) minmax(0, 3fr);
  gap: var(--space-m);
  align-items: center;
  padding: var(--space-m);
  margin-block-end: var(--space-s);
  background: var(--color-surface);
  border-radius: var(--radius-l);
}
/* Cover im Hochformat (800×1129). Feine Innenkante, weil der helle
   Coverrand sonst auf der hellen Fläche ausläuft. */
.regal__cover {
  width: 100%;
  height: auto;
  border-radius: var(--radius-s);
  outline: 1px solid color-mix(in oklch, var(--color-text) 14%, transparent);
  outline-offset: -1px;
  box-shadow: var(--shadow-l);
  transition: transform var(--dur-normal) var(--ease-out);
}
@media (hover: hover) {
  .regal__haupt:hover .regal__cover { transform: translateY(-4px); }
}
.regal__haupt .regal__titel {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--step-2);
  line-height: var(--lh-heading);
  text-wrap: balance;
}
.regal__haupt .regal__zeile { color: var(--color-text-muted); margin-block: var(--space-xs) var(--space-xs); }
.regal__eintrag {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  min-height: 72px;
  padding: var(--space-s) var(--space-m);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition:
    transform var(--dur-normal) var(--ease-out),
    box-shadow var(--dur-normal) var(--ease-out),
    border-color var(--dur-schnell) ease;
}
@media (hover: hover) {
  .regal__eintrag:hover {
    opacity: 1;
    transform: translateY(-3px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-m);
  }
}
/* Mini-Cover rechts, damit die Textkante aller Einträge gleich bleibt
   (nur die FlipBox hat ein Cover) */
.regal__mini { order: 1; margin-inline-start: auto; width: 56px; height: 56px; border-radius: var(--radius-s); object-fit: cover; flex: none; }
.regal__eintragtext { display: flex; flex-direction: column; }
.regal__eintrag .regal__titel { font-weight: var(--weight-strong); line-height: 1.35; }
.regal__eintrag .regal__zeile { font-size: var(--step--1); color: var(--color-text-muted); }

/* ---------- 7 · Weitere Angebote ----------
   Kompaktes Verzeichnis statt Karten: Kopf links, vier Zeilen rechts,
   getrennt durch Haarlinien. Die Inhouse-Zeile trägt als einzige einen Knopf
   und liegt auf hellem Grund, die drei Verweise sind Textlinks. */
.angebote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  align-items: center;
  gap: var(--space-l);
}
/* Auf Laptopbreiten bekommt das Verzeichnis mehr Platz, sonst bricht der
   Zeilentext neben der Aktionsspalte vierzeilig um. */
@media (max-width: 1500px) {
  .angebote { grid-template-columns: minmax(0, 0.75fr) minmax(0, 2fr); gap: var(--space-m); }
}
.angebote__lead { max-width: 40ch; margin-block-start: var(--space-s); color: var(--color-text-muted); }
/* Alle Zeilen teilen eine Aktionsspalte (subgrid), damit Text- und
   Linkkante untereinander gleich stehen. */
.angebote__liste {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.angebot {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-areas: "titel aktion" "text aktion";
  column-gap: var(--space-m);
  row-gap: 0.25rem;
  align-items: center;
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius);
  transition: background-color var(--dur-normal) var(--ease-out);
}
/* Haarlinie zwischen den Zeilen, eingerückt wie der Text */
.angebot + .angebot::after {
  content: "";
  position: absolute;
  inset: 0 var(--space-m) auto;
  border-top: 1px solid var(--color-border);
}
.angebot--haupt { background: var(--color-bg); margin-block-end: var(--space-xs); }
.angebot--haupt + .angebot::after { display: none; }
/* Marker links: wächst bei Hover, auf der Inhouse-Zeile steht er schon */
.angebot::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 50%;
  width: 0.35rem;
  height: 0;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  translate: 0 -50%;
  transition: height var(--dur-normal) var(--ease-out);
}
.angebot--haupt::before { height: 2.5rem; }
.angebot__titel {
  grid-area: titel;
  font-size: var(--step-1);
  line-height: 1.2;
}
.angebot__text {
  grid-area: text;
  max-width: 58ch;
  font-size: var(--step--1);
  color: var(--color-text-muted);
}
.angebot__aktion { grid-area: aktion; justify-self: start; }
.angebot__aktion--zwei { display: flex; flex-direction: column; align-items: flex-start; }
.angebot__aktion--zwei .textlink { min-height: 36px; }
@media (hover: hover) {
  .angebot:hover { background: var(--color-bg); }
  .angebot:hover::before { height: 2.5rem; }
}
.angebot:focus-within { background: var(--color-bg); }

/* ---------- 7a · Termine ----------
   Eigene Sektion nach dem Angebots-Panel (Entscheidung 11.11.2026). Kopf links wie
   bei den Angeboten, rechts ein Kalender in zeitlicher Reihenfolge: Jahr als
   Zwischenzeile, je Termin eine Zeile, die ganze Zeile ist der Link zur
   Anmeldung. Die Marke trägt das Training (Basis hell, Aufbau blau,
   Kombination Kreide-Gelb); kombinierbare Tage stehen in einer Klammer. */
.termine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  align-items: start;
  gap: var(--space-l);
}
@media (max-width: 1500px) {
  .termine { grid-template-columns: minmax(0, 0.75fr) minmax(0, 2fr); gap: var(--space-m); }
}
.termine__kopf { position: sticky; top: calc(var(--space-l) + 2rem); }
.termine__lead { max-width: 40ch; margin-block-start: var(--space-s); color: var(--color-text-muted); }

.kalender { min-width: 0; }
.kalender__jahr + .kalender__jahr { margin-block-start: var(--space-m); }
.kalender__jahreszahl {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  font-size: var(--step-1);
  color: var(--color-primary);
  margin-block-end: var(--space-xs);
}
.kalender__jahreszahl::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--color-border);
}
.kalender__liste { list-style: none; display: grid; }

.termin {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-m);
  min-height: 44px;
  padding: var(--space-s) var(--space-s);
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  color: var(--color-text);
  transition: background-color var(--dur-normal) var(--ease-out);
}
.termin__datum { display: flex; flex-direction: column; line-height: 1; }
.termin__tag {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: calc(var(--step-2) * 0.8);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.termin__monat {
  margin-block-start: 0.3rem;
  font-size: var(--step--1);
  font-weight: var(--weight-strong);
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.termin__inhalt { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.termin__training { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
.termin__titel { font-weight: var(--weight-strong); }
.termin__ort { font-size: var(--step--1); color: var(--color-text-muted); }
.termin__pfeil {
  font-size: var(--step-1);
  color: var(--color-primary);
  transition: translate var(--dur-normal) var(--ease-out);
}
.marke {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.7rem;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-pill);
  font-size: var(--step--1);
  font-weight: var(--weight-strong);
  white-space: nowrap;
}
.marke--basis { background: var(--color-bg); color: var(--color-primary); }
.marke--aufbau { background: var(--color-primary); color: var(--color-bg); }
.marke--kombi { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-text); }
@media (hover: hover) {
  .termin:hover { opacity: 1; background: var(--color-hover); }
  .termin:hover .termin__pfeil { translate: 0.3rem 0; }
}
.termin:focus-visible { background: var(--color-hover); }

/* Die beiden Düsseldorfer Tage im November: Klammer in Kreide-Gelb links,
   darüber die Erklärung. */
.kalender__paar {
  margin-block: var(--space-xs);
  padding: var(--space-xs) 0 var(--space-xs) var(--space-s);
  border-inline-start: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--color-primary-soft);
}
.kalender__klammer {
  padding-inline: var(--space-s);
  font-size: var(--step--1);
  font-weight: var(--weight-strong);
  color: var(--color-text);
}
.kalender__paar .termin:last-child { border-bottom: 0; }

/* Sprungmarken der Altseite (#angebot, #ueberuns, #kontakt) als leere
   Ziele am Sektionsanfang: keine Höhe, kein Inhalt. */
.anker-alias { display: block; height: 0; }

/* Nur für Vorlesesoftware, sichtbar ausgeblendet. */
.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 7b · Gratismaterial ----------
   Randloses Foto links (Hand zeichnet am Flipchart), rechts Text und die
   Anmeldung. Das Foto läuft an die Fensterkante, der Text endet auf der
   rechten Textkante aller Sektionen (--kante-text). Heller Grund zwischen
   getöntem Angebote-Panel und dem Stimmen-Band. */
.gratis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}
.gratis__bild {
  margin: 0;
  align-self: stretch;
  min-height: 26rem;
  border-radius: 0 var(--radius-l) var(--radius-l) 0;
  overflow: hidden;
}
.gratis__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
/* Rechte Kante = --kante-text wie alle Sektionen (1920: 1790). Ohne
   Breitenkappe: --kante-text wächst mit dem Fenster, die Spalte bleibt so
   auch auf sehr breiten Fenstern begrenzt. */
.gratis__inhalt {
  padding-inline-end: var(--kante-text);
}
.gratis__liste {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  max-width: 52ch;
  font-size: var(--step-1);
  line-height: 1.4;
}
.gratis__liste li { position: relative; padding-inline-start: 1.6rem; }
/* Spiegelstrich als kurzer Markerstrich in Kreide-Gelb */
.gratis__liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.95rem;
  height: 0.32em;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}
.gratis__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-s) var(--space-m);
  align-items: start;
  margin-block-start: var(--space-m);
  padding: var(--space-m);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-l);
  background: var(--color-surface);
}
.gratis__hinweis {
  grid-column: 1 / -1;
  font-size: var(--step--1);
  color: var(--color-text-muted);
}
.gratis__form .knopf { grid-column: 1 / -1; justify-self: start; }
/* Erfolgsmeldung: nur auf der Staging-Adresse (main.js), ersetzt das
   Formular an derselben Stelle. */
.gratis__danke {
  margin-block-start: var(--space-m);
  padding: var(--space-m);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-l);
  background: var(--color-surface);
  font-weight: var(--weight-strong);
}
.gratis__danke:focus { outline: none; }
:where(.sektion) .knopf:disabled { cursor: not-allowed; opacity: 0.55; transform: none; box-shadow: none; }

/* Schmale Fenster: untereinander. Die mobile Fassung folgt in P3,
   bis dahin bricht hier nichts. */
@media (max-width: 860px) {
  .gratis { grid-template-columns: minmax(0, 1fr); gap: var(--space-l); }
  .gratis__bild { min-height: 16rem; border-radius: 0; }
  .gratis__inhalt { padding-inline: var(--gutter); max-width: none; }
  .gratis__form { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 8 · Stimmen ----------
   Kopf (H2 links, Google-Kopf rechts auf der Grundlinie), darunter das
   Google-Laufband randlos auf --color-surface. Die LinkedIn-Zeile darunter
   ist seit dem Onboarding 09.11.2026 entfernt (optischer Bruch). */
.svg-vorrat { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }
/* G-Zeichen und Sterne: Googles Farben aus tokens.css, nie für Text. */
.g-gelb { fill: var(--color-google-gelb); }
.g-rot { fill: var(--color-google-rot); }
.g-gruen { fill: var(--color-google-gruen); }
.g-blau { fill: var(--color-google-blau); }
#g-stern path { fill: var(--color-google-gelb); }

.stimmen__kopf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-m) var(--space-l);
}
.stimmen__titel { min-inline-size: 0; }
.stimmen__titel h2 { margin-block-end: 0; }

/* Google-Kopf: ein Link, G-Zeichen + fünf Sterne + Linktext. Keine Zahl
   (5,0 · 54 steht einmal je Seite, im Hero). */
.gkopf {
  display: inline-flex;
  align-items: center;
  gap: var(--space-s);
  min-block-size: 44px;
  padding: var(--space-xs) var(--space-m) var(--space-xs) var(--space-s);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  box-shadow: var(--shadow-s);
  font-size: var(--step--1);
  font-weight: var(--weight-strong);
  color: var(--color-text);
  text-decoration: none;
  transition: box-shadow var(--dur-normal) var(--ease-out), border-color var(--dur-normal) var(--ease-out), transform var(--dur-schnell) var(--ease-out);
}
.gkopf__g { inline-size: 1.75rem; block-size: 1.75rem; flex: none; }
.gkopf__sterne { display: inline-flex; gap: 2px; }
.gkopf__sterne svg { inline-size: 1.25rem; block-size: 1.25rem; }
.gkopf__text {
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-position: 0 85%;
  background-size: 0% 0.45em;
  transition: background-size var(--dur-normal) var(--ease-out);
}
@media (hover: hover) {
  .gkopf:hover { opacity: 1; box-shadow: var(--shadow-m); border-color: var(--color-text-muted); }
  .gkopf:hover .gkopf__text { background-size: 100% 0.45em; }
}
.gkopf:active { transform: translateY(1px); box-shadow: var(--shadow-s); }

/* Band-Fläche: randlos, Panel-Grau. */
.stimmen__band {
  margin-block-start: var(--space-l);
  padding-block: var(--space-l);
  background: var(--color-surface);
}

/* Grundzustand (ohne JS, bei prefers-reduced-motion): kein Lauf, die Karten
   stehen umbrechend im Raster auf Breakout-Breite. */
.laufband { border-radius: var(--radius); }
.laufband__spur {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
}
.laufband:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }

/* Im Lauf (Klasse von js/laufband.js): randlos, eine Reihe, Kanten blenden
   weich aus (die Maske wertet nur Deckkraft, die Farbe ist egal). */
.laufband.ist-aktiv {
  grid-column: full;
  overflow: hidden;
  border-radius: 0;
  padding-block: var(--space-s);
  margin-block: calc(var(--space-s) * -1);
  -webkit-mask-image: linear-gradient(to right, transparent, var(--color-text) var(--space-xl), var(--color-text) calc(100% - var(--space-xl)), transparent);
  mask-image: linear-gradient(to right, transparent, var(--color-text) var(--space-xl), var(--color-text) calc(100% - var(--space-xl)), transparent);
}
.laufband.ist-aktiv:focus-visible { outline-offset: -4px; }
.laufband.ist-aktiv .laufband__spur {
  display: flex;
  inline-size: max-content;
  will-change: transform;
}
.laufband.ist-aktiv .gkarte { flex: 0 0 var(--laufband-karte); }

/* Karte im Google-Look: Kürzel-Kreis, Name, G-Zeichen, Sterne, Text. */
.gkarte {
  display: flex;
  padding: var(--space-m);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  transition: transform var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal) var(--ease-out);
}
.gkarte figure { margin: 0; display: flex; flex-direction: column; gap: var(--space-xs); inline-size: 100%; }
.gkarte__kopf { display: flex; align-items: center; gap: var(--space-s); }
.gkarte__bild {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border-radius: 50%;
  background: var(--color-primary);
}
.gkarte__bild::before {
  content: attr(data-kuerzel);
  font-size: var(--step-0);
  font-weight: var(--weight-strong);
  color: var(--color-text-on-dark);
}
.gkarte__bild--2 { background: var(--color-bg-dark); }
.gkarte__bild--3 { background: var(--color-primary-hover); }
.gkarte__bild--4 { background: var(--color-text-muted); }
.gkarte__name { font-weight: var(--weight-strong); color: var(--color-text); }
.gkarte__g { inline-size: 1.25rem; block-size: 1.25rem; margin-inline-start: auto; flex: none; }
.gkarte__sterne { inline-size: 6rem; block-size: 1.2rem; }
.gkarte blockquote p { font-size: var(--step-0); line-height: 1.55; color: var(--color-text); }
@media (hover: hover) {
  .gkarte:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
}


/* ---------- 9 · Anfrage ---------- */
.anfrage {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-l) var(--space-xl);
  align-items: center;
}
.anfrage__absender .lead { max-width: 40ch; margin-block-start: var(--space-s); }
/* Absender: Foto groß genug, um Jörg zu erkennen (Onboarding 09.11.2026),
   als Unterschrift unter dem Text. Ring in Markenblau, davor ein Spalt in
   Sektionsfarbe, damit das Foto nicht am Ring klebt. Name in der
   Überschriftenschrift, darunter der Satz. */
.absender {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  margin-block-start: var(--space-l);
  padding-block-start: var(--space-m);
  border-top: 1px solid color-mix(in oklch, var(--color-text-muted-on-dark) 35%, transparent);
}
.absender__bild {
  flex: none;
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  border: 5px solid var(--color-bg-dark);
  outline: 3px solid var(--color-primary-on-dark);
  outline-offset: 0;
}
.absender__text { display: flex; flex-direction: column; gap: 0.25rem; color: var(--color-text-muted-on-dark); max-width: 28ch; }
.absender__name {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: calc(var(--step-2) * 0.6);
  line-height: 1.1;
  color: var(--color-text-on-dark);
}

/* Der Kasten: hell auf dunkel, gerahmt, als Formular erkennbar. */
.funnel {
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  padding: var(--space-l);
  overflow: hidden;
}
.funnel :focus-visible { outline-color: var(--color-focus); }
.funnel fieldset { border: 0; min-width: 0; }
.funnel__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-m);
  padding-block-end: var(--space-m);
  border-bottom: 1px solid var(--color-border);
}
.umschalter__legende,
.feld__label {
  font-size: var(--step--1);
  font-weight: var(--weight-strong);
  color: var(--color-text);
  margin-block-end: var(--space-xs);
}
.umschalter__optionen {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.umschalter__option {
  position: relative;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: var(--weight-strong);
  color: var(--color-text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-schnell) ease, color var(--dur-schnell) ease;
}
/* Tablet quer bis kleiner Laptop: Das Formular ist hier am schmalsten
   (gemessen 320 px Inhalt auf 1024). Weniger Polster, damit beide Pillen
   einzeilig nebeneinander passen; die Fortschrittsleiste steht dann in
   eigener Zeile und läuft über die ganze Formularbreite. */
@media (min-width: 900px) and (max-width: 1279.98px) {
  .umschalter__option { padding-inline: 0.75rem; }
  .fortschritt { max-width: none; }
}
.umschalter__option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.umschalter__option:has(input:checked) {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  box-shadow: var(--shadow-s);
}
.umschalter__option:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (hover: hover) {
  .umschalter__option:hover { opacity: 1; color: var(--color-text); background: var(--color-hover); }
  .umschalter__option:has(input:checked):hover { color: var(--color-text-on-dark); background: var(--color-primary-hover); }
}
.fortschritt { min-width: 12rem; flex: 1 1 12rem; max-width: 18rem; }
.fortschritt__text {
  font-size: var(--step--1);
  font-weight: var(--weight-strong);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  margin-block-end: var(--space-xs);
}
.fortschritt__spur {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  overflow: hidden;
}
.fortschritt__balken {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--color-primary);
  transform-origin: left;
  transform: scaleX(0.333);
  transition: transform 350ms var(--ease-out);
}
.funnel__schritte { padding-block: var(--space-m); min-height: 19rem; }
.schritt__frage {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--step-2);
  line-height: var(--lh-heading);
  margin-block-end: var(--space-m);
}
.pflicht { color: var(--color-primary); }
.schritt__frage .pflicht {
  font-family: var(--font-body);
  font-size: var(--step-1);
  vertical-align: super;
}
.wahl {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
}
.wahl__option {
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.5rem 1.2rem 0.5rem 0.9rem;
  border: 2px solid var(--color-text-muted);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  font-weight: var(--weight-strong);
  cursor: pointer;
  transition:
    transform var(--dur-normal) var(--ease-out),
    border-color var(--dur-schnell) ease,
    background-color var(--dur-schnell) ease,
    box-shadow var(--dur-normal) var(--ease-out);
}
.wahl__option input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.wahl__option:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}
/* Fokus am ganzen Knopf, nicht nur am kleinen Kreis darin. */
.wahl__option:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.wahl__option input:focus-visible { outline: none; }
@media (hover: hover) {
  .wahl__option:hover {
    opacity: 1;
    transform: translateY(-2px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-s);
  }
}
.wahl--klein .wahl__option { min-height: 44px; font-size: var(--step--1); }
/* Funnel-Fragen: Antworten in gleich breiten Spalten, damit die Knöpfe
   bündig stehen statt nach Textlänge zu springen (Onboarding 09.11.2026,
   „Eher mit Folien in PowerPoint"). Zwei Spalten, wo der Kasten breit genug
   ist, sonst eine. */
.schritt .wahl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
}
.schritt .wahl__option { line-height: 1.3; }
.felder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-s) var(--space-m);
}
.feld { display: flex; flex-direction: column; }
.feld--breit { grid-column: 1 / -1; }
.feld__label { min-height: 0; }
.feld__eingabe {
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 0.95rem;
  border: 2px solid var(--color-text-muted);
  border-radius: var(--radius-s);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--dur-schnell) ease, box-shadow var(--dur-schnell) ease;
}
textarea.feld__eingabe { resize: vertical; min-height: 6rem; }
.feld__eingabe::placeholder { color: var(--color-text-muted); }
@media (hover: hover) {
  .feld__eingabe:hover { border-color: var(--color-primary); }
}
.feld__eingabe:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
  border-color: var(--color-primary);
}
.feld__eingabe[aria-invalid="true"] { border-color: var(--color-fehler); }
.feld__check {
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--step--1);
  line-height: 1.5;
  cursor: pointer;
  padding-block: 0.4rem;
}
.feld__check input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  accent-color: var(--color-primary);
}
.feld__fehler {
  margin-block-start: var(--space-xs);
  font-size: var(--step--1);
  font-weight: var(--weight-strong);
  color: var(--color-fehler);
}
.funnel__fuss {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding-block-start: var(--space-m);
  border-top: 1px solid var(--color-border);
}
.funnel__pflicht { font-size: var(--step--1); color: var(--color-text-muted); }
.funnel__pflicht { margin-inline-end: auto; }
.funnel__knoepfe { display: flex; gap: var(--space-s); }

/* Honeypot: für Menschen unsichtbar, nicht display:none (Bots lassen
   versteckte Felder sonst eher aus). */
.falle {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.funnel__form { position: relative; }
/* Fehler beim Versand: ehrliche Meldung mit Telefonnummer, über dem Fuß. */
.funnel__meldung {
  margin-block-start: var(--space-s);
  padding: var(--space-s) var(--space-m);
  border-left: 4px solid var(--color-fehler);
  border-radius: var(--radius-s);
  background: var(--color-surface);
  font-weight: var(--weight-strong);
  color: var(--color-text);
}
.funnel__form[aria-busy="true"] [data-senden] { cursor: progress; opacity: 0.7; }

/* Danke-Screen */
.funnel__danke { display: grid; gap: var(--space-s); justify-items: start; }
.danke__haken { width: 56px; height: 56px; }
.danke__haken path {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: var(--stroke-marker);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}
.funnel .danke__titel {
  font-size: var(--step-2);
  font-weight: var(--weight-display);
  color: var(--color-text);
}
.danke__titel:focus { outline: none; }
.zusatz {
  justify-self: stretch;
  display: grid;
  gap: var(--space-s);
  margin-block-start: var(--space-s);
  padding: var(--space-m);
  border-radius: var(--radius);
  background: var(--color-surface);
}
.zusatz__zeile { font-weight: var(--weight-strong); }
.zusatz .knopf { justify-self: start; }
.zusatz__danke { font-weight: var(--weight-strong); color: var(--color-primary); }
.zusatz__danke:focus { outline: none; }

/* ---------- Footer: dunkel, eingerückt, setzt die Anfrage fort ----------
   Bündig an die Anfrage, oben ohne Radius, getrennt durch eine feine Linie.
   Text auf der Seitenkante. */
.fuss {
  margin: 0 var(--panel-inset) var(--panel-inset);
  padding: var(--space-l) calc(var(--kante-text) - var(--panel-inset));
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  border-top: 1px solid color-mix(in oklch, var(--color-text-muted-on-dark) 35%, transparent);
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}
/* Schriftgröße an den Kindern, nicht an .fuss: --kante-text rechnet mit ch,
   und das soll die Grundschrift sein wie im Hero und in den Sektionen. */
.fuss > * { font-size: var(--step--1); }
.fuss__oben {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--space-l);
  align-items: center;
  padding-block-end: var(--space-m);
  border-bottom: 1px solid color-mix(in oklch, var(--color-text-muted-on-dark) 35%, transparent);
}
.fuss__marke { display: flex; align-items: center; gap: var(--space-s); }
.fuss__logo { width: 72px; height: auto; }
.fuss__name {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--step-1);
  line-height: 1.1;
}
.fuss__kontakt {
  font-style: normal;
  display: flex;
  flex-direction: column;
  color: var(--color-text-muted-on-dark);
}
.fuss a { color: var(--color-text-muted-on-dark); transition: color var(--dur-schnell) ease; }
@media (hover: hover) {
  .fuss a:hover { opacity: 1; color: var(--color-text-on-dark); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
}
.fuss__profile { display: flex; flex-wrap: wrap; gap: 0 var(--space-m); }
.fuss__unten {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding-block-start: var(--space-s);
}
.fuss__links { display: flex; align-items: center; gap: var(--space-m); }
.fuss__recht { display: flex; gap: var(--space-m); }
.fuss__copy { color: var(--color-text-muted-on-dark); }
/* Agenturnennung: gleiche Größe und Farbe wie die Zeile, kein eigener Auftritt. */
.fuss__credit { color: inherit; text-decoration: none; opacity: 1; }
.fuss__credit:hover,
.fuss__credit:focus-visible { text-decoration: underline; text-underline-offset: 0.2em; }
/* Cookie-Einstellungen im Fuß: sieht aus wie die Links daneben */
.fuss__einwilligung {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--color-text-muted-on-dark);
  cursor: pointer;
  text-align: start;
}
@media (hover: hover) {
  .fuss__einwilligung:hover { color: var(--color-text-on-dark); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
}

/* Cookie-Banner (js/einwilligung.js): unten rechts über dem Foto, damit
   Text und Knöpfe des Heros frei bleiben. Ablehnen und Zustimmen gleich
   groß und gleich gestaltet. */
.einwilligung {
  position: fixed;
  z-index: 60;
  inset-inline-end: var(--space-s);
  inset-block-end: var(--space-s);
  max-inline-size: min(26rem, calc(100vw - 2 * var(--space-s)));
  padding: var(--space-s);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  box-shadow: var(--shadow-m);
  font-size: var(--step--1);
  color: var(--color-text);
}
.einwilligung[hidden] { display: none; }
.einwilligung__knoepfe { display: flex; gap: var(--space-xs); margin-block-start: var(--space-s); }
.einwilligung__knoepfe .knopf { flex: 1 1 0; justify-content: center; }
@media (max-width: 599.98px) {
  .einwilligung {
    inset-inline: 0;
    inset-block-end: 0;
    max-inline-size: none;
    border-radius: var(--radius) var(--radius) 0 0;
    padding-block-end: calc(var(--space-s) + env(safe-area-inset-bottom));
  }
}

/* Sprungziele ohne eigenes Bedienelement bekommen den Fokus nur als
   Startpunkt für die Tastatur, ohne Rahmen um die ganze Sektion. */
[data-anker-ziel]:focus:not(.ist-ziel) { outline: none; }

/* ---------- Unterseiten (Impressum, Datenschutz, Danke) ----------
   Kopfleiste steht fest (kein frueh.js, keine Klasse .js), Inhalt auf
   Lesebreite, darunter derselbe Fuß wie auf der Startseite. */
.unterseite { padding-block: calc(var(--header-h) + var(--space-l)) var(--space-xl); }
.unterseite h1 {
  font-size: var(--step-3);
  font-weight: var(--weight-display);
  line-height: var(--lh-heading);
  color: var(--color-text);
  text-wrap: balance;
  margin-block-end: var(--space-s);
}
/* Rechtstexte (Impressum, Datenschutz): Lesebreite, ruhige Abstände */
.rechtstext { max-inline-size: 70ch; }
.rechtstext h2 {
  font-size: var(--step-1);
  line-height: 1.25;
  margin-block: var(--space-m) var(--space-xs);
}
.rechtstext p + p { margin-block-start: var(--space-xs); }
.rechtstext a { text-decoration: underline; text-underline-offset: 0.2em; }
.rechtstext__stand { color: var(--color-text-muted); font-size: var(--step--1); }
.rechtstext__tabelle { overflow-x: auto; margin-block: var(--space-s); }
.rechtstext table { border-collapse: collapse; font-size: var(--step--1); min-inline-size: 36rem; }
.rechtstext th, .rechtstext td { text-align: start; vertical-align: top; padding: 0.5rem 0.75rem; border-block-end: 1px solid var(--color-border); }
.rechtstext th { font-weight: var(--weight-strong); }
.rechtstext code { font-size: 0.95em; }
.unterseite .knopfreihe { margin-block-start: var(--space-m); }
.seite-unter .fuss { border-radius: var(--radius-l); border-top: 0; }

/* ---------- 404: eine Fläche, ein Weg zurück, ein Weg weiter ---------- */
.nichtgefunden {
  min-height: 100vh;
  align-content: center;
  padding-block: var(--space-xl);
}
.nichtgefunden__marke { display: inline-block; margin-block-end: var(--space-l); }
.nichtgefunden__logo { width: 120px; height: auto; }
.nichtgefunden__titel {
  font-size: var(--step-3);
  font-weight: var(--weight-display);
  color: var(--color-text);
  text-wrap: balance;
  margin-block-end: var(--space-s);
}

/* ---------- Lenis (aus lenis.css 1.3.27, nur was gebraucht wird) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Reduzierte Bewegung: Hover bleibt Zustand, ohne Weg ---------- */
@media (prefers-reduced-motion: reduce) {
  :where(.kopf, .sektion, .fuss, .einwilligung) .knopf:hover,
  .regal__eintrag:hover, .gkarte:hover, .gkopf:active,
  .wahl__option:hover { transform: none; }
  html:not(.zeiger-ruht) .station:hover .station__nr { scale: none; rotate: none; }
}

/* ===========================================================================
   MOBILE FASSUNG (P3): Kopfleiste mit Mobilmenü, Sektionen 2–9, Funnel,
   Fuß und Unterseiten. Den Hero fasst nichts hier an (hero-a.css).
   Drei Stufen, Desktop ab 1024 px bleibt unberührt:
     bis 1023 px  Kopfleiste mit Menüknopf; Kapitel 3 und Arbeitsproben
                  ohne Pin (main.js schaltet dieselbe Grenze)
     bis  899 px  Sektionen einspaltig, eine Textkante = Hero-Kante
     bis  560 px  Telefon: Regal, Funnel, Google-Kopf, Termine
=========================================================================== */

/* Menüknopf gibt es nur schmal und nur mit JS (html.menue-bereit). */
.kopf__menue { display: none; }

/* Laufband: Finger hält es an und schiebt es waagerecht (laufband.js),
   senkrechtes Wischen bleibt Seiten-Scrollen. Mausbedienung unverändert. */
.laufband.ist-aktiv { touch-action: pan-y; }

@media (max-width: 1023.98px) {
  :root { --header-h: var(--header-h-mobil); }

  /* ---------- Kopfleiste ---------- */
  .kopf {
    gap: var(--space-s);
    padding-inline: var(--kante-mobil) calc(var(--kante-mobil) - 0.625rem);
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  /* Grund und Unschärfe auf ::before: backdrop-filter am Kopf selbst macht
     ihn zum Containing Block, das fixierte Menü würde nur so hoch wie die
     Leiste (Containing-Block-Falle). */
  .kopf::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: color-mix(in oklch, var(--color-bg) 92%, transparent);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    backdrop-filter: saturate(1.2) blur(10px);
    transition: opacity var(--dur-normal) var(--ease-out);
  }
  .kopf__marke { min-height: 44px; }
  .kopf__logo { width: 44px; }
  .kopf .knopf--klein { padding-inline: 1em; }

  html.menue-bereit .kopf__menue {
    display: inline-grid;
    place-content: center;
    gap: 5px;
    flex: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--color-text);
    transition: background-color var(--dur-schnell) ease, box-shadow var(--dur-normal) var(--ease-out);
  }
  .kopf__menue-strich {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform var(--dur-normal) var(--ease-out), opacity var(--dur-schnell) ease;
  }
  .kopf.ist-offen .kopf__menue-strich:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .kopf.ist-offen .kopf__menue-strich:nth-child(2) { opacity: 0; }
  .kopf.ist-offen .kopf__menue-strich:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  @media (hover: hover) {
    html.menue-bereit .kopf__menue:hover { opacity: 1; background: var(--color-hover); }
  }
  html.menue-bereit .kopf__menue:active { opacity: 1; background: var(--color-hover); }

  /* Das Menü: Fläche unter der Leiste bis zum unteren Rand. Geschlossen
     unsichtbar und nicht fokussierbar (visibility). */
  html.menue-bereit .kopf__nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: var(--space-s) var(--kante-mobil) calc(var(--space-l) + env(safe-area-inset-bottom, 0px));
    background: var(--color-bg);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    translate: 0 -0.5rem;
    transition:
      opacity var(--dur-normal) var(--ease-out),
      translate var(--dur-normal) var(--ease-out),
      visibility 0s linear var(--dur-normal);
  }
  html.menue-bereit .kopf.ist-offen .kopf__nav {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
    /* Beim Öffnen kein Übergang auf visibility: Auch bei reduzierter
       Bewegung (Dauer 0,01 ms) muss der erste Eintrag sofort fokussierbar
       sein. Verzögert wird nur das Ausblenden. */
    transition:
      opacity var(--dur-normal) var(--ease-out),
      translate var(--dur-normal) var(--ease-out);
  }
  html.menue-bereit .kopf__nav a {
    flex: none;
    min-height: 3.5rem;
    padding-block: var(--space-xs);
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    font-size: var(--step-2);
    line-height: 1.1;
  }
  html.menue-bereit .kopf__nav a::after { right: auto; width: 2.5rem; bottom: 0.55rem; }

  /* Ohne JS (kein Menüknopf): Navigation als waagerecht wischbare Zeile. */
  html:not(.menue-bereit) .kopf { flex-wrap: wrap; height: auto; min-height: var(--header-h); row-gap: 0; }
  html:not(.menue-bereit) .kopf__nav { order: 3; flex-basis: 100%; overflow-x: auto; gap: var(--space-s); }
  html:not(.menue-bereit) .kopf__nav a { flex: none; }

  /* Startseite, oben im Hero: nur der Menüknopf schwebt, die Leiste
     erscheint wie auf dem Desktop beim Hochscrollen (main.js: ist-oben). */
  .js .kopf.ist-oben:not(.ist-sichtbar):not(.ist-offen) {
    transform: none;
    border-bottom-color: transparent;
    box-shadow: none;
    pointer-events: none;
  }
  .js .kopf.ist-oben:not(.ist-sichtbar):not(.ist-offen)::before { opacity: 0; }
  .js .kopf.ist-oben:not(.ist-sichtbar):not(.ist-offen) > :not(.kopf__menue) { visibility: hidden; }
  .js .kopf.ist-oben:not(.ist-sichtbar):not(.ist-offen) .kopf__menue {
    pointer-events: auto;
    background: color-mix(in oklch, var(--color-bg) 92%, transparent);
    box-shadow: var(--shadow-m);
  }

  /* ---------- 3 · Kapitel ohne Pin ----------
     Einspaltig: Titel, Einleitung, die beiden Bögen nebeneinander (der
     Vergleich bleibt im Bild), dann die drei Stufen untereinander. Die
     Schrittleiste gehört zum Pin und entfällt. */
  .kapitel,
  .bewegung .kapitel { height: auto; }
  .kapitel__flaeche,
  .bewegung .kapitel__flaeche {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    padding-block: var(--space-l);
    row-gap: var(--space-s);
  }
  .kapitel__text { display: contents; }
  .kapitel__buehne { order: 3; }
  .kapitel__ablauf { order: 4; }
  .kapitel__schritte { display: none; }
  .bewegung .kapitel__ablauf { display: block; }
  .stufe + .stufe,
  .bewegung .stufe + .stufe { margin-top: var(--space-m); }
  .kapitel__buehne,
  .bewegung .kapitel__buehne {
    width: 100%;
    max-width: 36rem;
    height: auto;
    max-height: none;
    margin-block: var(--space-m);
    gap: clamp(2.5rem, 12vw, 4.5rem);
  }
  .blatt--a,
  .blatt--b,
  .bewegung .blatt--a,
  .bewegung .blatt--b { width: 41%; }

  /* ---------- 5 · Arbeitsproben: Wischen statt Pin ----------
     Waagerechtes Band mit Einrasten, der Zähler folgt dem Wischen
     (main.js). Gilt auch bei reduzierter Bewegung: Wischen ist Bedienung,
     keine Animation. */
  .bewegung .spur {
    height: auto;
    padding-block: var(--space-xl) 0;
    overflow: visible;
  }
  .spur__innen,
  .bewegung .spur__innen { height: auto; gap: var(--space-m); }
  html:not(.bewegung) .spur .spur__zaehler { display: block; }
  /* .sektion p setzt text-wrap: pretty, das hebt nowrap auf */
  .sektion .spur__zaehler { font-size: var(--step-1); text-wrap: nowrap; }
  .spur__fenster,
  .bewegung .spur__fenster {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw-content)) / 2 - var(--breakout-extra)));
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .spur__fenster::-webkit-scrollbar { display: none; }
  .spur__fenster:focus-visible { outline-offset: -4px; }
  .spur__band,
  .bewegung .spur__band {
    display: flex;
    align-items: flex-start;
    width: max-content;
    height: auto;
    gap: var(--space-m);
    padding-block: var(--space-s) var(--space-m);
  }
  .bogenkarte,
  .bewegung .bogenkarte {
    flex: 0 0 min(72vw, 20rem);
    height: auto;
    display: block;
    scroll-snap-align: start;
  }
  .bewegung .bogenkarte figure { height: auto; display: block; }
  .bogenkarte__blatt,
  .bewegung .bogenkarte__blatt,
  .bewegung .bogenkarte--live .bogenkarte__blatt { height: auto; aspect-ratio: 1100 / 1500; }
  .bogenkarte__blatt img { height: 100%; object-fit: cover; }
}

@media (max-width: 899.98px) {
  /* Eine Textkante für alle Sektionen = Hero-Kante; Panels randlos. */
  .sektion,
  .fuss {
    --kante-min: var(--kante-mobil);
    --kante-text: var(--kante-mobil);
    --panel-inset: var(--panel-inset-mobil);
  }
  .sektion { padding-block-start: var(--space-l); }
  .sektion--panel,
  .sektion--dunkel {
    margin-block-start: var(--space-l);
    padding-block: var(--space-l);
    border-radius: var(--radius);
  }
  .sektion--getoent {
    margin-block-start: var(--space-l);
    padding-block: var(--space-m);
    border-radius: var(--radius);
  }
  .kapitel { margin-block-start: var(--space-l); border-radius: var(--radius); }
  .bewegung .spur { padding-block-start: var(--space-l); }

  /* ---------- 2 · Das 1:1 ---------- */
  .eins { grid-template-columns: minmax(0, 1fr); gap: var(--space-m); }
  .eins__bild { justify-self: start; width: min(100%, 30rem); }

  /* ---------- 4 · Ablauf: senkrechter Weg ----------
     Ziffer links, Text rechts; die Marker-Linie läuft senkrecht durch die
     Ziffern (main.js rechnet den Weg aus der Lage der Ziffern). */
  .ablauf__kopf { margin-block-end: var(--space-m); }
  .stationen { grid-template-columns: minmax(0, 1fr); gap: var(--space-m); }
  .station {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    column-gap: var(--space-s);
    align-items: start;
  }
  .station__nr {
    grid-row: 1 / span 2;
    width: 3rem;
    height: 3rem;
    margin: 0;
  }
  .station h3 {
    grid-column: 2;
    display: flex;
    align-items: center;
    min-height: 3rem;
    margin: 0;
  }
  .station p { grid-column: 2; }

  /* ---------- 6 · Über mich ---------- */
  .ich { grid-template-columns: minmax(0, 1fr); gap: var(--space-m); }
  .regal__eintragtext { min-width: 0; }

  /* ---------- 7 · Weitere Angebote und Termine ---------- */
  .angebote { grid-template-columns: minmax(0, 1fr); gap: var(--space-m); }
  .angebote__liste { grid-template-columns: minmax(0, 1fr); }
  .angebot {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "titel" "text" "aktion";
    row-gap: var(--space-xs);
    padding: var(--space-s) var(--space-s) var(--space-s) var(--space-m);
  }
  .angebot + .angebot::after { inset: 0 var(--space-s) auto var(--space-m); }
  .angebot--haupt::before,
  .angebot::before { top: var(--space-s); translate: none; }
  .termine { grid-template-columns: minmax(0, 1fr); gap: var(--space-m); }
  .termine__kopf { position: static; }
  .termin { grid-template-columns: 5.5rem minmax(0, 1fr) auto; column-gap: var(--space-s); padding-inline: 0.5rem; }

  /* ---------- 7b · Gratismaterial ---------- */
  .gratis { grid-template-columns: minmax(0, 1fr); gap: var(--space-m); }
  .gratis__bild { min-height: 0; aspect-ratio: 3 / 2; border-radius: 0; }
  .gratis__inhalt { padding-inline: var(--gutter); max-width: none; }
  .gratis__form { grid-template-columns: minmax(0, 1fr); padding: var(--space-m) var(--space-s); }
  .gratis__danke { padding: var(--space-m) var(--space-s); }

  /* Beschriftung über dem Feld: auf Touch-Geräten 44 px hoch, Text auf der
     Grundlinie zum Feld. Ein Tipp darauf setzt den Cursor ins Feld. */
  .feld__label {
    display: flex;
    align-items: flex-end;
    min-height: 44px;
    margin-block-end: 0.25rem;
  }

  /* ---------- 8 · Stimmen ---------- */
  .stimmen__kopf { grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--space-s); }
  .gkopf { justify-self: start; }
  .stimmen__band { margin-block-start: var(--space-m); padding-block: var(--space-m); }
  .laufband__spur { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .laufband.ist-aktiv {
    -webkit-mask-image: linear-gradient(to right, transparent, var(--color-text) var(--space-m), var(--color-text) calc(100% - var(--space-m)), transparent);
    mask-image: linear-gradient(to right, transparent, var(--color-text) var(--space-m), var(--color-text) calc(100% - var(--space-m)), transparent);
  }
  .laufband.ist-aktiv .gkarte { flex-basis: min(var(--laufband-karte), 78vw); }

  /* ---------- 9 · Anfrage ---------- */
  .anfrage { grid-template-columns: minmax(0, 1fr); gap: var(--space-m); }
  .absender { margin-block-start: var(--space-m); }
  .funnel { padding: var(--space-m); }
  .schritt .wahl { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); }
  .fortschritt { max-width: none; }

  /* ---------- Fuß: zweispaltig, kurz ---------- */
  .fuss { padding-block: var(--space-m) calc(var(--space-m) + env(safe-area-inset-bottom, 0px)); border-radius: 0 0 var(--radius) var(--radius); }
  .fuss__oben {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-s) var(--space-m);
    align-items: start;
    padding-block-end: var(--space-s);
  }
  .fuss__marke,
  .fuss__kontakt,
  .fuss__weiter { grid-column: 1 / -1; }
  .fuss__logo { width: 56px; }
  .fuss__kontakt a { overflow-wrap: anywhere; }
  .fuss__profile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--space-m);
  }
  .fuss__unten { flex-direction: column; align-items: stretch; gap: 0; }
  .fuss__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--space-m);
  }
  .fuss__recht { display: contents; }
  .fuss__copy { padding-block-start: var(--space-xs); }
  .fuss__credit { display: inline-block; min-block-size: 44px; line-height: 44px; }
  .seite-unter .fuss { border-radius: var(--radius) var(--radius) 0 0; }

  /* ---------- Unterseiten und 404 ---------- */
  .unterseite { padding-block: calc(var(--header-h) + var(--space-m)) var(--space-l); }
  .nichtgefunden { min-height: 100svh; padding-block: var(--space-l); }
  .nichtgefunden__logo { width: 96px; }
}

@media (max-width: 640px) {
  .kopf__name { display: none; }
}

/* Das 1:1 auf dem Tablet hochkant: Foto über die volle Spaltenbreite im
   Querformat statt halbbreit links. Der Ausschnitt hält Kopf, Brille und
   die zeichnende Hand. */
@media (min-width: 600px) and (max-width: 899.98px) {
  .eins__bild { justify-self: stretch; width: 100%; aspect-ratio: 3 / 2; }
  .eins__bild img { object-position: 50% 15%; }
}

/* Kapitel auf dem Telefon: Nebeneinander wären beide Bögen nur 120–150 px
   breit und der Live-Bogen nicht lesbar. Untereinander: Bogen A kleiner
   und schräg links, der Pfeil läuft rechts daneben nach unten, Bogen B in
   voller Spaltenbreite. main.js zeichnet den Pfeil dann senkrecht. */
@media (max-width: 599.98px) {
  .kapitel__buehne,
  .bewegung .kapitel__buehne {
    flex-direction: column;
    align-items: stretch;
    max-width: none;
    gap: var(--space-m);
  }
  .blatt--a,
  .bewegung .blatt--a { width: 52%; align-self: flex-start; }
  .blatt--b,
  .bewegung .blatt--b { width: 100%; }
}

@media (max-width: 560px) {
  /* Buchregal: Cover über dem Text statt daneben (Überlauf auf 360/390). */
  .regal__haupt {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-s);
    padding: var(--space-s);
  }
  .regal__cover { width: min(9rem, 45%); }
  .regal__haupt .regal__titel { font-size: calc(var(--step-2) * 0.78); }
  .regal__eintrag { gap: var(--space-s); padding: var(--space-s); }

  /* Google-Kopf: Zeichen und Sterne, darunter der Linktext */
  .gkopf { flex-wrap: wrap; row-gap: 0.25rem; border-radius: var(--radius); }

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

  /* Termine: Datumsspalte schmaler, der Pfeil entfällt (die Zeile ist
     ohnehin der Link) */
  .termin { grid-template-columns: 5.25rem minmax(0, 1fr); }
  .termin__tag { font-size: calc(var(--step-2) * 0.7); }
  .termin__monat { font-size: var(--step--1); letter-spacing: 0; text-transform: none; }
  .termin__pfeil { display: none; }
  .kalender__paar { padding-inline-start: 0.25rem; }
  .marke { white-space: normal; }

  /* Funnel */
  .funnel { padding: var(--space-m) var(--kante-mobil); }
  .absender__bild { width: 6rem; height: 6rem; border-width: 4px; }
  .umschalter { inline-size: 100%; }
  .umschalter__optionen { display: flex; inline-size: 100%; }
  .umschalter__option {
    flex: 1 1 0;
    justify-content: center;
    padding-inline: 0.5rem;
    text-align: center;
  }
  .felder { grid-template-columns: minmax(0, 1fr); }
  .funnel__fuss { flex-wrap: wrap; }
  .funnel__pflicht { flex-basis: 100%; }
  .funnel__knoepfe { flex: 1 1 auto; }
  .funnel__knoepfe .knopf { flex: 1 1 auto; }
  .funnel__fuss .knopf--zurueck { padding-inline: 1.1em; }
  .zusatz { padding: var(--space-s); }
}

@media (max-width: 400px) {
  .kopf .knopf--klein { padding-inline: 0.85em; }
  .umschalter__option { font-size: var(--step--1); }
}

/* Touch-Ziele im Formular (bis 899 px): Das Eingabeelement liegt unsichtbar
   über der ganzen Antwort, Kreis und Kästchen zeichnet CSS. So ist die ganze
   Zeile das Ziel, auch für Messung und Hilfstechnik (wie beim Umschalter). */
@media (max-width: 899.98px) {
  .wahl__option,
  .feld__check { position: relative; }
  .wahl__option input,
  .feld__check input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
  }
  .wahl__option::before,
  .feld__check::before {
    content: "";
    flex: none;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--color-text-muted);
    border-radius: 50%;
    background: var(--color-bg);
    transition: border-color var(--dur-schnell) ease, background-color var(--dur-schnell) ease;
  }
  .wahl__option:has(input:checked)::before {
    border-color: var(--color-primary);
    background: radial-gradient(circle, var(--color-primary) 0 38%, var(--color-bg) 44%);
  }
  .feld__check::before {
    width: 1.3rem;
    height: 1.3rem;
    margin-top: 0.1rem;
    border-radius: calc(var(--radius-s) / 2);
  }
  .feld__check:has(input:checked)::before {
    border-color: var(--color-primary);
    background: var(--color-primary);
  }
  .feld__check:has(input:checked)::after {
    content: "";
    position: absolute;
    left: 0.48rem;
    top: 0.68rem;
    width: 0.38rem;
    height: 0.7rem;
    border: solid var(--color-text-on-dark);
    border-width: 0 2px 2px 0;
    rotate: 45deg;
    pointer-events: none;
  }
  .feld__check:has(input:focus-visible)::before { outline: 2px solid var(--color-focus); outline-offset: 2px; }
  .feld__check:has(input[aria-invalid="true"])::before { border-color: var(--color-fehler); }
  /* Der Link im Einverständnis bleibt über dem Kästchen klickbar. */
  .feld__check a { position: relative; z-index: 1; }

  /* Honeypot: aus dem Bild und ohne Fläche, damit es auch als Touch-Ziel
     nicht zählt (für Menschen war es nie erreichbar). */
  .falle input { width: 0; height: 0; padding: 0; border: 0; min-height: 0; }

  /* Kurs-Links untereinander: volle 44 px. */
  .angebot__aktion--zwei .textlink { min-height: 44px; }

  /* Kapitel: Rahmenstrich von Bogen A bleibt im Fenster */
  .kapitel__buehne,
  .bewegung .kapitel__buehne { padding-inline: var(--space-s); }
}

/* ---------- Werkstatt (werkstatt/index.php) ----------
   Wegweiser hinter dem Seitenpasswort: drei Kacheln mit Jörgs Zeichnungen,
   wie auf der alten Seite. Passwortfeld schmal, ein Knopf. */
.werkstatt__gruss { font-size: var(--step-1); color: var(--color-text-muted); margin-block-end: 0; }
.werkstatt__form { max-inline-size: 24rem; margin-block-start: var(--space-m); }
.werkstatt__kacheln {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-m);
  margin: var(--space-l) 0 0;
  padding: 0;
  list-style: none;
}
.werkstatt__kachel {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  color: var(--color-primary);
  text-decoration: none;
}
.werkstatt__titel {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--weight-display);
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.werkstatt__kachel img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: contain;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-m);
  transition: transform var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal) var(--ease-out);
}
@media (hover: hover) {
  .werkstatt__kachel:hover { opacity: 1; }
  .werkstatt__kachel:hover img { transform: translateY(-4px); box-shadow: var(--shadow-l); }
}
.werkstatt__kachel:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: var(--radius); }
@media (prefers-reduced-motion: reduce) {
  .werkstatt__kachel:hover img { transform: none; }
}
@media (max-width: 767.98px) {
  .werkstatt__kacheln { grid-template-columns: minmax(0, 1fr); gap: var(--space-l); max-inline-size: 24rem; }
}
