/* Firnora – Website.
   Token-Namen wie in der App (servicestimme/intake/app/globals.css),
   damit Website und App dieselbe Marke zeigen. */

/* Manrope, variable Schrift, nur der latin-Schnitt (deckt Deutsch ab).
   Quelle: @fontsource-variable/manrope 5.3.0, Lizenz: fonts/OFL.txt. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #F6F5F1;
  --surface: #ffffff;
  --surface-sunken: #EEEDE8;
  --border: #E2E0D9;
  --border-strong: #96928A;
  --text: #15171C;
  --text-muted: #5B616B;
  --accent: #05164D;
  --accent-hover: #020A2B;
  --accent-ink: #ffffff;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-card: 20px;
  --radius-pill: 999px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  /* Höhe der festen Kopfleiste: 72px min-height + 1px Linie */
  scroll-padding-top: 73px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* ---------- Wortmarke (wie App, globals.css:187–219) ---------- */

.wortmarke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.wortmarke-zeichen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--surface);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.wortmarke-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ---------- Knopf ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--accent-hover);
  }
}

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

.kopfleiste {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.kopfleiste-innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  min-height: 72px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.kopfleiste-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.kopfleiste-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.kopfleiste-nav a:hover {
  color: var(--text);
}

.kopfleiste-rechts {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.sprachwahl {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.sprachwahl a {
  text-decoration: none;
}

.sprachwahl a:hover {
  color: var(--text);
}

.sprachwahl-aktiv {
  font-weight: 700;
  color: var(--text);
}

/* Schmal: keine Anker in der Kopfleiste, nur Wortmarke, Sprachwahl, Knopf.
   Unabhängig davon zeichnet site.js die Linien ab 900px. */
@media (max-width: 1023.98px) {
  .kopfleiste-rechts {
    margin-left: auto;
    gap: 1rem;
  }

  .kopfleiste-nav {
    display: none;
  }
}

/* Sehr schmal: Sprachwahl nur noch im Footer („English“). */
@media (max-width: 479.98px) {
  .kopfleiste .sprachwahl {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(5rem, 14vw, 10rem) 0 clamp(2rem, 6vw, 4rem);
}

.hero-einordnung {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero h1 {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  max-width: 14em;
  font-size: clamp(2.75rem, 7vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-unterzeile {
  margin: 0 0 2.5rem;
  max-width: 36em;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */

.fuss {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Unter 900px untereinander, ab 900px Marke links, Links rechts. */
.fuss-innen {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fuss-marke .wortmarke {
  margin-bottom: 0.75rem;
}

.fuss-marke p {
  margin: 0;
  line-height: 1.5;
}

.fuss-rechts,
.fuss nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.fuss a {
  text-decoration: none;
}

.fuss a:hover {
  color: var(--text);
  text-decoration: underline;
}

.fuss .wortmarke:hover {
  text-decoration: none;
}

@media (min-width: 900px) {
  .fuss-innen {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* ---------- Faden: Linien über die ganze Seite ---------- */

main {
  position: relative;
}

/* Inhalte liegen über den Linien. */
main > section {
  position: relative;
  z-index: 1;
}

/* Höhe setzt site.js auf die Höhe von main. */
.faden {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 0;
  pointer-events: none;
}

.faden-linie {
  fill: none;
  stroke: var(--border-strong);
  stroke-opacity: 0.45;
  stroke-width: 1;
}

.faden-puls {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}

/* Die Linie nach der Sammelstelle (Handy): blau, voll. */
/* ---------- Schleier hinter Text ---------- */

/* Weicher Fleck in Seitenfarbe hinter Text: die Linien aus .faden blenden
   dort aus. Kein sichtbarer Rand, keine Farbe außer --bg. */
.schleier {
  position: relative;
}

/* Weicher Fleck ohne filter: ein radialer Verlauf in --bg, in der Mitte
   deckend, zum Rand transparent. Größerer Rand als früher, weil der
   Verlauf schon innerhalb der Fläche ausläuft (wie vorher die Unschärfe
   über sie hinaus). */
.schleier::before {
  content: "";
  position: absolute;
  inset: -2.5rem -3.5rem;
  z-index: -1;
  /* Auslaufen in --bg mit Deckkraft 0, nicht in „transparent“ (= Schwarz
     mit Deckkraft 0): kein Grauschleier in Browsern, die nicht
     vormultipliziert mischen. Erste Zeile als Rückfall ohne color-mix. */
  background: radial-gradient(farthest-side, var(--bg) 55%, rgba(246, 245, 241, 0) 100%);
  background: radial-gradient(farthest-side, var(--bg) 55%, color-mix(in srgb, var(--bg) 0%, transparent) 100%);
  opacity: 0.85;
  pointer-events: none;
}

/* ---------- Abschnitt „enden“ ---------- */

.enden {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 10vw, 8rem);
}

.enden-kopf h2 {
  margin: 0;
  max-width: 12em;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.enden-kopf p {
  margin: 1.5rem 0 0;
  max-width: 30em;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.enden-kopf .enden-hinweis {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Kartenfeld: Reihen (Tage), darin die Karten. Die Linien kommen aus
   .faden in main, eine je Fall (data-faelle an den Karten). */
.enden-feld {
  position: relative;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.enden-reihen {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Unter 900px Überschrift der Reihe; darüber steht der Tag nur auf den
   Karten. */
.reihe-tag {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

/* position: relative, damit offsetLeft/offsetTop der Karten sich auf die
   Liste beziehen (site.js). */
.reihe-karten {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.karte {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(32, 28, 18, 0.04),
              0 1px 3px rgba(32, 28, 18, 0.06);
}

.karte-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.karte-etikett {
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-muted);
}

.karte-tag {
  flex: 0 0 auto;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Unter 900px steht der Tag schon als .reihe-tag über der Reihe.
   Ausnahme: Karten, deren Tag vom Reihennamen abweicht und etwas erzählt
   (etwa „Monate später“). */
@media (max-width: 899.98px) {
  .karte-tag {
    display: none;
  }

  .karte--tag-sichtbar .karte-tag {
    display: inline;
  }
}

/* overflow-wrap: Dateinamen ohne Leerzeichen brechen sonst nicht um. */
.karte-zeile {
  margin: 0.9rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  overflow-wrap: anywhere;
}

@media (min-width: 480px) {
  .reihe-karten {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .enden-kopf {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: end;
  }

  .enden-kopf p {
    margin-top: 0;
  }

  .enden-kopf-text {
    justify-self: end;
  }

  /* padding-top: Platz für die Kurven von oben. */
  .enden-feld {
    padding-top: 4rem;
  }

  /* Abstand zur vorigen Reihe je Reihe über --abstand (style im HTML). */
  .enden-reihen {
    gap: 0;
  }

  .reihe {
    margin-top: var(--abstand, 0);
  }

  .reihe-tag {
    display: none;
  }

  /* 12 Spalten. Lage und senkrechter Versatz je Karte über --von, --bis
     und --tief (style im HTML). margin-top statt transform: so stimmen
     offsetTop und die Linienendpunkte in site.js. Karten nicht mehr
     gleich hoch. */
  .reihe-karten {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    align-items: start;
  }

  .karte {
    grid-column: var(--von) / var(--bis);
    grid-row: 1;
    margin-top: var(--tief, 0);
  }
}

/* Ausblend-Zustände nur mit JavaScript (Klasse .js aus site.js).
   --i setzt site.js in Dokumentreihenfolge: Reihe für Reihe, in der Reihe
   von links nach rechts. */
.js .karte {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease-out,
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js .enden-feld.sichtbar .karte {
  opacity: 1;
  transform: none;
}

/* --laenge setzt site.js per getTotalLength. */
.js .faden-linie {
  stroke-dasharray: var(--laenge);
  stroke-dashoffset: var(--laenge);
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .faden.gezeichnet .faden-linie {
  stroke-dashoffset: 0;
}

/* ---------- Abschnitt „zusammen“ ---------- */

.zusammen,
.anders,
.systeme,
.rechner,
.preise,
.faq {
  padding: clamp(4rem, 8vw, 7rem) 0;
  text-align: center;
}

.zusammen h2,
.anders h2,
.systeme h2,
.rechner h2,
.faq h2 {
  margin: 0 auto;
  max-width: 16em;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.zusammen-text,
.anders-text,
.systeme-text,
.rechner-text {
  margin: 1.5rem auto 0;
  max-width: 36em;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
}

/* Rahmen ums Handy: im Scroll-Modus sticky (statt des Handys), ohne
   overflow, damit die Linienstücke darüber und darunter sichtbar sind. */
.handy-rahmen {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

/* Linienstücke am Handy: wandern mit; schließen zu Beginn bzw. am Ende
   an die SVG-Linien an (site.js: STUMMEL, SPREIZUNG). */
.handy-stummel {
  display: none;
  position: absolute;
  left: 50%;
  height: 48px;
  overflow: visible;
  transform: translateX(-50%);
}

.handy-stummel--oben {
  bottom: 100%;
  width: 160px;
}

/* Grau wie .faden-linie, oben und unten. */
.handy-stummel path {
  fill: none;
  stroke: var(--border-strong);
  stroke-opacity: 0.45;
  stroke-width: 1;
}

.handy-stummel--unten {
  top: 100%;
  width: 4px;
}

@media (min-width: 900px) {
  .js .handy-stummel {
    display: block;
  }
}

/* Bühne: Sammelstelle der Linien (data-faden-sammel, site.js); die Linien
   messen die Bühne, nie das Handy. Mit JavaScript ist sie hoch, das Handy
   bleibt darin stehen, während die Phasen erscheinen. */
.buehne {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.handy {
  position: relative;
  display: flex;
  flex-direction: column;
  width: clamp(200px, 60vw, 260px);
  /* Ohne Scroll-Modus wächst das Handy mit dem Inhalt, mindestens in
     Handy-Proportion; im Scroll-Modus feste Höhe (siehe unten). */
  min-height: calc(clamp(200px, 60vw, 260px) * 19.5 / 9);
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface);
  border: 10px solid var(--text);
  border-radius: 44px;
  box-shadow: 0 2px 4px rgba(32, 28, 18, 0.06),
              0 8px 24px rgba(32, 28, 18, 0.10);
  /* Änderungen im Handy bleiben im Handy: kein Neuberechnen der Seite. */
  contain: layout paint;
}

.handy-bildschirm {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem;
  background: var(--surface-sunken);
  text-align: left;
}

.bildschirm-kopf {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

/* Wie das Zeichen der Wortmarke, in 24px. */
.bildschirm-zeichen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--surface);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

/* Stapel im Handy. Ohne Scroll-Modus: alle Ansichten groß untereinander.
   Im Scroll-Modus: erledigte Schritte als Zeilen oben, der aktive als
   ganzer Bildschirm darunter (siehe unten). */
.stapel {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text);
}

/* :where hält die Spezifität bei null, Klassenregeln gewinnen. */
:where(.stapel) p,
:where(.stapel) ul,
:where(.stapel) ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Erledigte Schritte: feste Höhe, nur im Scroll-Modus sichtbar. */
.erledigt-liste {
  display: none;
}

.zeile {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  height: 20px;
  margin-bottom: 4px;
  overflow: hidden;
  font-size: 0.75rem;
  line-height: 20px;
  color: var(--text-muted);
  white-space: nowrap;
}

.zeile-haken {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.ansichten {
  display: grid;
  gap: 1.5rem;
}

.ansicht {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Station: Nummer und Wort, Illustration, ein Satz. */
.station-nummer {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  color: var(--text-muted);
}

.station-wort {
  margin-top: 0.125rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.station-satz {
  font-size: 0.9375rem;
  line-height: 1.45;
}

.ansicht-mitte {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Satz über der Rundung des Handys: innen 34px Radius (44px − 10px Rand).
   16 + 28 = 44px Abstand zur Unterkante, unter 900px 12 + 20 = 32px. */
.ansicht-unten {
  padding-bottom: 1.75rem;
}

/* Illustration: volle Breite, im Scroll-Modus höchstens die Höhe der
   Mitte; preserveAspectRatio (Standard) hält die Proportionen. */
.illu {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Transformationen beziehen sich auf das eigene Element. */
.illu :where([class]) {
  transform-box: fill-box;
  transform-origin: center;
}

.i-flaeche {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 1;
}

.i-balken {
  fill: var(--border-strong);
}

.i-balken-hell,
.i-logo {
  fill: var(--border);
}

.i-akzent {
  fill: var(--accent);
}

.i-loch {
  fill: var(--surface);
}

.i-start {
  fill: var(--border-strong);
}

.i-linie {
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.i-linie-hell {
  stroke: var(--border);
  stroke-width: 1.5;
}

/* Zuläufe in Station 01: gezeichnet über stroke-dashoffset. */
.i-zulauf {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.i-feldzeile {
  transform-origin: 0% 50%;
}

.i-punkt,
.i-kasten {
  fill: var(--surface);
  stroke: var(--border-strong);
  stroke-width: 1.5;
}

.i-haken,
.i-haken-hell {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i-haken-hell {
  stroke: var(--surface);
}

/* Route: gestrichelt; gezeichnet wird über die Maske (dashoffset). */
.i-route {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 6 7;
}

/* Maskenpfad: weiß heißt sichtbar; technischer Wert, keine Farbe. */
.i-route-maske {
  fill: none;
  stroke: #fff;
  stroke-width: 10;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.i-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0;
}

/* Endzustand: Welle oben, flach und blass; die drei Belegbalken voll.
   Die Fäden enden an der Unterkante dieser Balken (y = 112 + Höhe / 4). */
.i-welle {
  transform: scaleY(0.5);
}

.i-wellen-balken {
  opacity: 0.35;
}

.i-wellen-balken--beleg {
  opacity: 1;
}

.i-textzeile {
  transform-origin: 0% 50%;
}

.i-beleg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* Schmal: engerer Bildschirmrand, weniger Abstand unter dem Satz. */
@media (max-width: 899.98px) {
  .handy-bildschirm {
    padding: 0.75rem;
  }

  .ansicht-unten {
    padding-bottom: 1.25rem;
  }
}

/* Bewegungen: nur opacity und transform, bei Linien stroke-dashoffset. */
@keyframes ansicht-rein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@keyframes ansicht-raus {
  from { opacity: 1; visibility: visible; }
  to   { opacity: 0; visibility: hidden; }
}

@keyframes zeile-rein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes von-rechts {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes auftauchen {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: none; }
}

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

@keyframes fallen {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}

@keyframes ring-puls {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 0;   transform: scale(1.6); }
}

@keyframes balken {
  from { transform: scaleY(1); }
  to   { transform: scaleY(0.55); }
}

/* Welle: erst voll, ab ~1.6s flach (Endzustand scaleY 0.5). */
@keyframes welle-klein {
  0%, 75% { transform: none; }
  100%    { transform: scaleY(0.5); }
}

@keyframes blass {
  0%, 75% { opacity: 1; }
  100%    { opacity: 0.35; }
}

@keyframes voll {
  from { opacity: 0.35; }
  to   { opacity: 1; }
}

@keyframes dok-rein {
  from { opacity: 0; transform: translateX(var(--von, 0px)) scale(0.92); }
  to   { opacity: 1; transform: none; }
}

@keyframes wachsen {
  from { transform: scaleX(0); }
  to   { transform: none; }
}

/* Scroll-Bühne nur mit JavaScript und ohne reduzierte Bewegung; site.js
   setzt .kommt / .aktiv / .erledigt an den Schritten. Sonst: normale
   Höhe, alle Schritte groß untereinander, keine Animationen. */
@media (prefers-reduced-motion: no-preference) {
  .js .buehne {
    height: calc(100vh + 4 * 90vh);
  }

  /* Höhe statt Breite: das stehende Handy passt immer unter die
     Kopfleiste ins Fenster; die Breite folgt aus aspect-ratio.
     100vh als Rückfall für Browser ohne svh. */
  .js .handy-rahmen {
    position: sticky;
    top: calc(73px + 2rem);
  }

  .js .handy {
    width: auto;
    aspect-ratio: 9 / 19.5;
    min-height: 0;
    height: min(calc(clamp(200px, 60vw, 260px) * 19.5 / 9), calc(100vh - 73px - 4rem));
    height: min(calc(clamp(200px, 60vw, 260px) * 19.5 / 9), calc(100svh - 73px - 4rem));
  }

  /* Stapel: erledigte Zeilen oben, darunter die Fläche, in der alle
     Ansichten übereinander liegen. Nur opacity und transform werden
     animiert. Zustände .kommt / .aktiv / .erledigt setzt site.js. */
  .js .handy-bildschirm {
    display: flex;
    flex-direction: column;
  }

  .js .stapel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  .js .erledigt-liste {
    display: block;
    margin-bottom: 0.5rem;
  }

  .js .zeile {
    display: none;
  }

  .js .zeile.erledigt {
    display: flex;
    animation: zeile-rein 0.3s ease-out both;
  }

  .js .ansichten {
    position: relative;
    display: block;
    flex: 1 1 auto;
    min-height: 0;
  }

  .js .ansicht {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
  }

  .js .ansicht.aktiv {
    z-index: 1;
    visibility: visible;
    opacity: 1;
    animation: ansicht-rein 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .js .ansicht.erledigt {
    animation: ansicht-raus 0.3s ease-out both;
  }

  .js .ansicht-mitte {
    flex: 1 1 auto;
    min-height: 0;
  }

  /* Wiederholen: die Illustration blendet kurz aus, startet unsichtbar
     neu und blendet wieder ein (site.js). */
  .js .ansicht-mitte {
    transition: opacity 0.3s ease;
  }

  .js .ansicht-mitte.ausblenden {
    opacity: 0;
  }

  /* Innere Abläufe hängen an .spielt (site.js setzt die Klasse beim
     Aktivwerden und bei jeder Wiederholung neu); ohne .spielt steht der
     Endzustand. Nur der endlose Puls-Ring hängt an .aktiv. */

  /* 01 Annehmen: Zuläufe, dann Feldzeilen, zuletzt zwei Punkte */
  .js .ansicht.aktiv.spielt .i-zulauf {
    animation: zeichnen 0.6s ease-out 0.2s both;
  }

  .js .ansicht.aktiv.spielt .i-zulauf--2 {
    animation-delay: 0.6s;
  }

  .js .ansicht.aktiv.spielt .i-zulauf--3 {
    animation-delay: 1s;
  }

  .js .ansicht.aktiv.spielt .i-feldzeile {
    animation: wachsen 0.4s ease-out both;
    animation-delay: calc(1.4s + var(--z) * 150ms);
  }

  .js .ansicht.aktiv.spielt .i-treffer {
    animation: auftauchen 0.4s ease-out 2.1s both;
  }

  .js .ansicht.aktiv.spielt .i-treffer--2 {
    animation-delay: 2.5s;
  }

  /* 02 Einsetzen */
  .js .ansicht.aktiv.spielt .i-route-maske {
    animation: zeichnen 1.2s ease-in-out 0.2s both;
  }

  .js .ansicht.aktiv.spielt .i-pin {
    animation: fallen 0.4s ease-out 1.3s both;
  }

  .js .ansicht.aktiv.spielt .i-haken {
    animation: auftauchen 0.3s ease-out 1.7s both;
  }

  .js .ansicht.aktiv.spielt .i-haken--2 {
    animation-delay: 2s;
  }

  .js .ansicht.aktiv.spielt .i-haken--3 {
    animation-delay: 2.3s;
  }

  /* 03 Abschließen: a) Aufnahme, b) ab 1.6s wird die Welle flach und
     blass, die Dokumente fächern auf, c) Fäden zu drei Balken der Welle,
     die dabei wieder voll werden. */
  .js .ansicht.aktiv .i-ring {
    animation: ring-puls 1.6s ease-out infinite;
  }

  .js .ansicht.aktiv.spielt .i-welle {
    animation: welle-klein 2.1s ease-in both;
  }

  .js .ansicht.aktiv.spielt .i-wellen-balken {
    animation: balken 0.4s ease-in-out 4 alternate,
               blass 2.1s ease-in both;
  }

  /* „voll“ ohne backwards: vor seinem Start gilt „blass“. */
  .js .ansicht.aktiv.spielt .i-wellen-balken--beleg-1 {
    animation: balken 0.4s ease-in-out 4 alternate,
               blass 2.1s ease-in both,
               voll 0.3s ease-out 2.9s forwards;
  }

  .js .ansicht.aktiv.spielt .i-wellen-balken--beleg-2 {
    animation: balken 0.4s ease-in-out 4 alternate,
               blass 2.1s ease-in both,
               voll 0.3s ease-out 3.2s forwards;
  }

  .js .ansicht.aktiv.spielt .i-wellen-balken--beleg-3 {
    animation: balken 0.4s ease-in-out 4 alternate,
               blass 2.1s ease-in both,
               voll 0.3s ease-out 3.5s forwards;
  }

  .js .ansicht.aktiv.spielt .i-dok {
    animation: dok-rein 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.6s both;
  }

  .js .ansicht.aktiv.spielt .i-dok--links {
    --von: 18px;
  }

  .js .ansicht.aktiv.spielt .i-dok--rechts {
    --von: -18px;
  }

  .js .ansicht.aktiv.spielt .i-textzeile {
    animation: wachsen 0.4s ease-out both;
    animation-delay: calc(1.8s + var(--z) * 80ms);
  }

  .js .ansicht.aktiv.spielt .i-beleg {
    animation: zeichnen 0.5s ease-out 2.6s both;
  }

  .js .ansicht.aktiv.spielt .i-beleg--2 {
    animation-delay: 2.9s;
  }

  .js .ansicht.aktiv.spielt .i-beleg--3 {
    animation-delay: 3.2s;
  }

  .js .ansicht.aktiv.spielt .i-beleg-punkt {
    animation: auftauchen 0.3s ease-out 3s both;
  }

  .js .ansicht.aktiv.spielt .i-beleg-punkt--2 {
    animation-delay: 3.3s;
  }

  .js .ansicht.aktiv.spielt .i-beleg-punkt--3 {
    animation-delay: 3.6s;
  }

  /* 04 Nachfassen: Zeilen gleiten nacheinander herein, je danach ihr
     Häkchen, zuletzt der Knopf */
  .js .ansicht.aktiv.spielt .i-aufgabe {
    animation: von-rechts 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(0.2s + var(--k) * 350ms);
  }

  .js .ansicht.aktiv.spielt .i-aufgabe-haken {
    animation: auftauchen 0.3s ease-out both;
    animation-delay: calc(0.6s + var(--k) * 350ms);
  }

  .js .ansicht.aktiv.spielt .i-knopf {
    animation: auftauchen 0.4s ease-out 2s both;
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .js .handy {
    height: min(calc(clamp(260px, 26vw, 320px) * 19.5 / 9), calc(100vh - 73px - 4rem));
    height: min(calc(clamp(260px, 26vw, 320px) * 19.5 / 9), calc(100svh - 73px - 4rem));
  }
}

/* ---------- Abschnitt „anders“ ---------- */

/* Verlauf: Gruppen-Etiketten auf der Linie, Karten abwechselnd links und
   rechts. Die Linie selbst kommt ab 900px aus .faden (blau, site.js);
   die Mitte des Rasters (50 %) ist die Mitte von .wrap wie die Bühne. */
.anders-verlauf {
  position: relative;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  text-align: left;
}

.anders-gruppe {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 3rem auto 1.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--accent);
}

.anders-gruppe:first-child {
  margin-top: 0;
}

.anders-liste {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Eintrag: Raster aus Heute-Teil (Zeile 1) und Antwort (Zeile 2). Punkt
   und Verbinder hängen an Zeile 2, liegen also auf der Trennkante, egal
   wie hoch der Heute-Teil ist. */
.anders-eintrag {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
}

/* Schatten der ganzen Karte. */
.anders-eintrag::before {
  content: "";
  position: absolute;
  inset: 0;
  grid-row: 1 / -1;
  z-index: -1;
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(32, 28, 18, 0.04),
              0 1px 3px rgba(32, 28, 18, 0.06);
}

.anders-heute {
  grid-row: 1;
  padding: 1rem 1.5rem;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.anders-heute-marke {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
  color: var(--text-muted);
}

.anders-heute-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.anders-antwort {
  grid-row: 2;
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.anders-symbol {
  display: block;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.anders-antwort h3 {
  margin: 0.625rem 0 0.375rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.anders-antwort p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Erledigte Arbeitsschritte: Häkchen, Schritt durchgestrichen, ggf. Pille. */
.anders-erledigt {
  display: grid;
  gap: 0.375rem;
  margin: 0.75rem 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.anders-erledigt li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}

.anders-erledigt-haken {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.anders-erledigt-schritt {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Punkt auf der Linie (10px Akzent, 3px Rand in --bg) und Verbinder zur
   Karte, beide fest auf Höhe der Zeile „Heute“: 1px Rand + 1rem
   Innenabstand + halbe Zeile (0.5rem) = 25px unter der Kartenoberkante.
   Mit dem Versatz der rechten Karten liegen die Punkte damit immer
   mindestens 3rem auseinander. */
.anders-punkt,
.anders-verbinder {
  position: absolute;
  grid-row: 1;
  grid-column: 1;
}

.anders-punkt {
  top: calc(1px + 1rem + 0.5rem - 8px);
  width: 16px;
  height: 16px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
}

.anders-verbinder {
  top: calc(1px + 1rem + 0.5rem - 0.5px);
  height: 1px;
  background: var(--accent);
}

.anders-schluss,
.systeme-schluss {
  max-width: 22em;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Unter 900px: Linie links (CSS), Etiketten und Karten rechts daneben. */
@media (max-width: 899.98px) {
  .anders-verlauf {
    padding-left: 2rem;
  }

  .anders-verlauf::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 1px;
    background: var(--border-strong);
    opacity: 0.45;
  }

  .anders-gruppe {
    margin-left: 0;
  }

  /* Linie bei 7.5px; Karte beginnt bei 2rem. */
  .anders-punkt {
    left: calc(-2rem - 0.5px);
  }

  .anders-verbinder {
    left: calc(-2rem + 8px);
    width: calc(2rem - 8px);
    transform-origin: 0 50%;
  }

  .anders-schluss,
  .systeme-schluss,
  .systeme-ohne {
    margin-left: 0;
    text-align: left;
  }
}

/* Ab 900px: zwei Spalten zu je 44 %, Mitte frei für die Linie; rechte
   Karten 3rem tiefer. Abstand Kartenrand–Mitte: 6 % der Breite
   = 6/44 = 13.6364 % der Kartenbreite. */
@media (min-width: 900px) {
  .anders-liste {
    grid-template-columns: 44% 44%;
    justify-content: space-between;
    row-gap: 1.5rem;
  }

  .anders-eintrag:nth-child(even) {
    margin-top: 3rem;
  }

  .anders-eintrag:nth-child(odd) .anders-punkt {
    right: calc(-13.6364% - 8px);
  }

  .anders-eintrag:nth-child(even) .anders-punkt {
    left: calc(-13.6364% - 8px);
  }

  .anders-verbinder {
    width: 13.6364%;
  }

  .anders-eintrag:nth-child(odd) .anders-verbinder {
    right: -13.6364%;
    transform-origin: 100% 50%;
  }

  .anders-eintrag:nth-child(even) .anders-verbinder {
    left: -13.6364%;
    transform-origin: 0 50%;
  }

  /* Ohne JavaScript gibt es keine blaue Linie aus .faden: eine CSS-Linie
     in der Mitte trägt Punkte und Etiketten. */
  html:not(.js) .anders-verlauf::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--border-strong);
    opacity: 0.45;
  }
}

/* Einblenden je Eintrag (site.js setzt .sichtbar): Punkt, Verbinder,
   dann die Karte. Nur opacity und transform. */
@media (prefers-reduced-motion: no-preference) {
  .js .anders-punkt {
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  }

  .js .anders-verbinder {
    transform: scaleX(0);
    transition: transform 0.3s ease-out 0.15s;
  }

  .js .anders-heute,
  .js .anders-antwort,
  .js .anders-eintrag::before {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out 0.3s,
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
  }

  .js .anders-eintrag.sichtbar .anders-punkt,
  .js .anders-eintrag.sichtbar .anders-verbinder,
  .js .anders-eintrag.sichtbar .anders-heute,
  .js .anders-eintrag.sichtbar .anders-antwort,
  .js .anders-eintrag.sichtbar::before {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Abschnitt „systeme“ ---------- */

/* Grafik: Teiler, zwei Ringe, Vereiniger in einem SVG (viewBox 1000 × 520,
   Ringe bei x 32 % / 68 %, Radius 15 % der Breite). Texte und die
   Außenseiten liegen als HTML darüber. Die Pulse auf Teiler, Ring und
   Vereiniger kommen aus .faden (site.js, data-weg). */
.kreise {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.kreise-linien {
  display: none;
}

.kreise-linie {
  fill: none;
  stroke: var(--border-strong);
  stroke-opacity: 0.45;
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* Gestrichelte Zuläufe der Systeme. */
.kreise-strich {
  fill: none;
  stroke: var(--border-strong);
  stroke-opacity: 0.45;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

/* Die vier Stationen auf dem Ring. */
.kreise-punkt,
.kreis-ring-punkt {
  fill: var(--surface);
  stroke: var(--border-strong);
  stroke-width: 1.5;
}

/* Zulauf-Pulse: nur im Scroll-Modus (unten), sonst unsichtbar. Muster
   „Stück, dann Lücke länger als der Weg“: der Puls erscheint ganz und
   läuft ganz hinaus (dashoffset von Stücklänge bis −1, siehe Keyframes). */
.kreise-strich-puls {
  display: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}

.kreise-strich-puls {
  stroke-dasharray: 0.2 1;
}

/* Schmal: zwei Kreise untereinander, je mit eigenem Ring. */
.kreis-flaeche {
  position: relative;
  width: min(16rem, 85%);
  aspect-ratio: 1;
  margin: 0 auto;
}

.kreis-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.kreis-mitte {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76%;
  transform: translate(-50%, -50%);
}

.kreis-mitte h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

/* Englisch: „Without integration“ ist zu lang für eine Zeile im Kreis. */
:lang(en) .kreis-mitte h3 {
  white-space: normal;
}

.kreis-mitte p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Außenseite unter dem Kreis: eine Zeile. */
.kreis-aussen {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.375rem 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.kreis-aussen li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.kreis-aussen svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.kreis + .kreis {
  margin-top: 2rem;
}

/* Ab 900px: Ringe aus dem Abschnitts-SVG, HTML in Prozent darüber.
   Kreis-Box = Bounding-Box des Rings: Breite 300/1000, oben 100/520,
   links 170/1000 bzw. 530/1000. Außenseiten relativ zur Kreis-Box. */
@media (min-width: 900px) {
  .kreise {
    position: relative;
    aspect-ratio: 1000 / 520;
  }

  .kreise-linien {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .kreis {
    position: absolute;
    top: calc(100% * 100 / 520);
    width: 30%;
    aspect-ratio: 1;
  }

  .kreis--ohne {
    left: 17%;
  }

  .kreis--mit {
    left: 53%;
  }

  .kreis + .kreis {
    margin-top: 0;
  }

  .kreis-flaeche {
    position: absolute;
    inset: 0;
    width: auto;
    margin: 0;
  }

  .kreis-ring {
    display: none;
  }

  /* Außenseiten: je drei Zeilen bei 20 % / 50 % / 80 % der Kreis-Box,
     30/300 außerhalb des Rings; links gespiegelt (Symbol am Ring). */
  .kreis-aussen {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
  }

  .kreis-aussen li {
    position: absolute;
    transform: translateY(-50%);
  }

  .kreis-aussen li:nth-child(1) {
    top: 20%;
  }

  .kreis-aussen li:nth-child(2) {
    top: 50%;
  }

  .kreis-aussen li:nth-child(3) {
    top: 80%;
  }

  .kreis-aussen--rechts li {
    left: 110%;
    white-space: nowrap;
  }

  .kreis-aussen--links li {
    right: 110%;
    flex-direction: row-reverse;
    text-align: right;
  }

  /* „Ersatzteilkatalog“ und „Berichtsvorlage“ brechen an der weichen
     Trennstelle um, die übrigen Wörter bleiben einzeilig (bei 900px sonst
     außerhalb von .wrap). */
  .kreis-aussen--links span {
    width: min-content;
    line-height: 1.3;
  }
}

/* Absatz unter dem Schlusssatz: Einstieg dunkel. */
.systeme-text strong {
  font-weight: 600;
  color: var(--text);
}

/* Einzeichnen beim Hereinscrollen (site.js setzt .sichtbar an .kreise):
   Ringe und Linien zeichnen sich ein, Striche und Punkte blenden danach
   ein, dann laufen die Zulauf-Pulse. Nur unter .js und no-preference;
   sonst gezeichnet und ohne Pulse. */
@media (prefers-reduced-motion: no-preference) {
  .js .kreise-linie {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1s ease-out;
  }

  .js .kreise-linie--spaet {
    transition-delay: 0.6s;
  }

  .js .kreise-strich,
  .js .kreise-punkt,
  .js .kreis-ring-punkt {
    opacity: 0;
    transition: opacity 0.5s ease-out 1s;
  }

  .js .kreise.sichtbar .kreise-linie {
    stroke-dashoffset: 0;
  }

  .js .kreise.sichtbar .kreise-strich,
  .js .kreise.sichtbar .kreise-punkt,
  .js .kreise.sichtbar .kreis-ring-punkt {
    opacity: 1;
  }

  /* Zuläufe, versetzt: links 1.8 / 2.6 / 3.4s, rechts 2.2 / 3.0 / 3.8s. */
  .js .kreise.sichtbar .kreise-strich-puls {
    display: inline;
    animation: zulauf-puls 2.4s linear 1.8s infinite both;
  }

  .js .kreise.sichtbar .kreise-strich-puls--2 {
    animation-delay: 2.6s;
  }

  .js .kreise.sichtbar .kreise-strich-puls--3 {
    animation-delay: 3.4s;
  }

  .js .kreise.sichtbar .kreise-strich-puls--4 {
    animation-delay: 2.2s;
  }

  .js .kreise.sichtbar .kreise-strich-puls--5 {
    animation-delay: 3s;
  }

  .js .kreise.sichtbar .kreise-strich-puls--6 {
    animation-delay: 3.8s;
  }
}

/* Zulauf: im ersten Drittel bis in den Ring, danach Ruhe. */
@keyframes zulauf-puls {
  0%        { stroke-dashoffset: 0.2; }
  33%, 100% { stroke-dashoffset: -1; }
}

/* ---------- Abschnitt „rechner“ ---------- */

/* Karte mit einem Satz, in dem die Zahlen als Felder stehen; Summe,
   Balken und Legende rechnet site.js live. Die Seitenlinie läuft
   verdeckt dahinter. */
.rechner-karte {
  max-width: 46rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(32, 28, 18, 0.04),
              0 1px 3px rgba(32, 28, 18, 0.06);
  text-align: left;
}

.rechner-satz {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 500;
  line-height: 1.7;
}

/* Feld und Einheit („€“, „-mal“) brechen nicht auseinander. */
.rechner-am-stueck {
  white-space: nowrap;
}

/* Zahl im Satz: nur eine gestrichelte Linie unten. Breite setzt site.js
   nach Länge (min. 2ch); ohne JS Platz für vier Ziffern. */
.rechner-zahl {
  width: 4.5ch;
  margin: 0 0.1em;
  padding: 0;
  border: 0;
  border-bottom: 1.5px dashed var(--accent);
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}

.rechner-zahl::-webkit-inner-spin-button,
.rechner-zahl::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Fokus: Linie durchgezogen, dazu der Fokusring (:focus-visible). */
.rechner-zahl:focus {
  border-bottom-style: solid;
}

.rechner-summe {
  margin: 1.75rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.rechner-summe-betrag {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Balken: drei Segmente nach Anteil (site.js). [hidden] ausdrücklich,
   sonst gilt display: flex. */
.rechner-balken {
  display: flex;
  height: 12px;
  margin-top: 1.25rem;
  overflow: hidden;
  border-radius: var(--radius-pill);
}

.rechner-balken[hidden] {
  display: none;
}

.rechner-balken-teil,
.rechner-punkt {
  background: var(--accent);
}

.rechner-balken-teil {
  width: 0;
}

.rechner-balken-teil--2,
.rechner-punkt--2 {
  opacity: 0.6;
}

.rechner-balken-teil--3,
.rechner-punkt--3 {
  opacity: 0.3;
}

@media (prefers-reduced-motion: no-preference) {
  .rechner-balken-teil {
    transition: width 0.3s ease-out;
  }
}

/* Legende: Punkt, Name, darunter der Betrag; ab 600px drei Spalten. */
.rechner-legende {
  display: grid;
  gap: 0.75rem 1.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .rechner-legende {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rechner-legende li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.rechner-punkt {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.rechner-legende-betrag {
  grid-column: 2;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.rechner-ohne-js,
.rechner-folge {
  margin: 1.25rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.rechner-folge + .btn-primary {
  margin-top: 1.25rem;
}

.rechner-klein {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.js .rechner-ohne-js {
  display: none;
}

/* ---------- Abschnitt „preise“ ---------- */

/* Ganz aus mit .ist-aus am Abschnitt, samt Anker in der Kopfleiste.
   Zwei Regeln: ohne :has fiele sonst auch die erste weg. */
.preise.ist-aus {
  display: none;
}

body:has(#preise.ist-aus) .kopfleiste-nav a[href="#preise"] {
  display: none;
}

/* Platzhalter und Hinweis in derselben Rasterzelle übereinander. */
.preise-feld {
  display: grid;
}

.preise-platzhalter,
.preise-hinweis {
  grid-area: 1 / 1;
}

/* Karten voll deckend (die Seitenlinie läuft dahinter), blass sind nur
   die Balken. */
.preise-platzhalter {
  display: grid;
  gap: 1.5rem;
}

.preis-karte {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

/* Unter 900px nur eine Platzhalterkarte, ab 900px drei nebeneinander. */
@media (max-width: 899.98px) {
  .preis-karte + .preis-karte {
    display: none;
  }
}

@media (min-width: 900px) {
  .preise-platzhalter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.preis-balken {
  height: 0.625rem;
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  opacity: 0.7;
}

.preis-balken--titel {
  width: 40%;
  height: 0.875rem;
  background: var(--border);
}

.preis-balken--betrag {
  width: 60%;
  height: 2.25rem;
  margin: 0.5rem 0 1rem;
  border-radius: var(--radius-sm);
  background: var(--border);
}

.preis-balken--kurz {
  width: 70%;
}

.preis-balken--knopf {
  height: 48px;
  margin-top: 1.25rem;
}

/* Etwas schmaler als eine Platzhalterkarte, damit sie darunter sichtbar
   bleiben. Eigene Ebene über den Platzhaltern. */
.preise-hinweis {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: min(calc(100% - 2rem), 28rem);
  padding: 2rem clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 4px rgba(32, 28, 18, 0.06),
              0 16px 40px rgba(32, 28, 18, 0.1);
}

.preise-hinweis h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
}

.preise-hinweis p {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- Abschnitt „faq“ ---------- */

.faq-liste {
  display: grid;
  gap: 0.75rem;
  max-width: 46rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  text-align: left;
}

.faq-eintrag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(32, 28, 18, 0.04),
              0 1px 3px rgba(32, 28, 18, 0.06);
}

/* Radius auch hier: der Fokusring folgt der Karte. */
.faq-eintrag summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  border-radius: var(--radius-card);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq-eintrag summary::-webkit-details-marker {
  display: none;
}

/* Plus aus zwei Balken; offen bleibt nur der waagrechte (Minus). */
.faq-eintrag summary::after {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
}

.faq-eintrag[open] summary::after {
  background-size: 14px 1.5px, 1.5px 0;
}

.faq-eintrag p {
  margin: 0;
  padding: 0 1.5rem 1.375rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- Abschnitt „kontakt“ ---------- */

/* Oben knapp: der FAQ-Abschnitt endet schon mit Weißraum. */
.kontakt {
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(4rem, 8vw, 7rem);
}

.kontakt-karte {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-card);
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
}

.kontakt-zeichen {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--accent);
  font-size: 34px;
}

.kontakt-karte h2 {
  margin: 1.5rem auto 0;
  max-width: 16em;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.kontakt-karte p {
  margin: 1rem auto 2rem;
  max-width: 30em;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  opacity: 0.8;
}

/* Fokusring auf --accent sonst unsichtbar. */
.kontakt-karte :focus-visible {
  outline-color: var(--accent-ink);
}

.btn-primary.btn-hell {
  background: var(--surface);
  color: var(--accent);
}

@media (hover: hover) {
  .btn-primary.btn-hell:hover {
    background: var(--bg);
  }
}

/* Einblenden beim Hereinscrollen (site.js setzt .sichtbar): Karten der
   Abschnitte rechner bis kontakt. Nur unter .js und no-preference. */
@media (prefers-reduced-motion: no-preference) {
  .js .einblenden {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out,
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .js .einblenden.sichtbar {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  .js .karte {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .faden-linie {
    stroke-dashoffset: 0;
    transition: none;
  }

  .faden-puls {
    display: none;
  }
}
