/* Orkestr nach der Fusion: Richtung D2 „Wirkung“, abgenommen von Janik am 17.11.2026 (Farben, Logo, alle Elemente).
   Quelle für /en/ /de/ /es/, Impressum, 404 und die Startadresse; HTML nur über tools/bauen.mjs.
   Gleiche Welt wie D (Nebel, Glas, Licht), neue Geschichte:
   erst der volle Tisch, dann die Ordnung, dann die Rechnung, am Ende der Rechner mit Anfrage.
   Kühles Licht = die Vorarbeit der KI, warmes Licht = Mensch und Entscheidung (Ring, Hauptknopf, Schieberegler).
   Text steht frei im Raum wie ein Filmtitel; nur der Rechner ist ein Werkzeug und bekommt eine eigene Glasfläche. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-normal-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-normal-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --nacht: #07120f;       /* Grund: tiefes Nachtgrün */
  --moor: #0f241f;
  --text: #eef1ec;
  --text-leise: #aebcb5;
  --warm: #ffb46a;        /* der Mensch: Ring, Hauptknopf, Fokus, Regler */
  --warm-hell: #ffd7a8;
  --kuehl: #b9d6e8;       /* die KI: Glaskanten, Vorarbeit */
  --fehler: #ffb4a8;
  --linie: rgba(238, 241, 236, 0.16);
  --glas: rgba(9, 22, 19, 0.8);
  /* Glasplatte (17.11.): wie die Kacheln der Welt, kühle Lichtkante oben, kein Schatten, kleiner Radius */
  --platte: linear-gradient(180deg, rgba(185, 214, 232, 0.075), rgba(185, 214, 232, 0.015) 55%), rgba(8, 20, 17, 0.64);
  --platte-rand: rgba(238, 241, 236, 0.1);
  --platte-kante: rgba(185, 214, 232, 0.3);
  --breit: 125%;
  --rand: clamp(18px, 5vw, 72px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; background: var(--nacht); }
body {
  margin: 0; color: var(--text); background: var(--nacht);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.6; font-stretch: 100%;
  font-variant-numeric: tabular-nums; text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; border-radius: 2px; }

.sprung { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--warm); color: var(--nacht); padding: 10px 14px; text-decoration: none; }
.sprung:focus { top: 12px; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Die Welt liegt fest hinter allem; ohne WebGL übernimmt der Schleier einen ruhigen Verlauf */
/* Höhe 100lvh: Auf dem Handy bleibt die Leinwand gleich groß, wenn die Adressleiste ein- und ausfährt (sonst rechnet die Welt bei jedem Scrollen neu) */
.welt { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; display: block; z-index: 0; }
.schleier { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.ohne-webgl .welt { display: none; }
.ohne-webgl .schleier {
  background:
    radial-gradient(60vw 50vh at 72% 42%, rgba(255, 180, 106, 0.16), transparent 70%),
    radial-gradient(70vw 60vh at 18% 12%, rgba(185, 214, 232, 0.10), transparent 70%),
    linear-gradient(180deg, #0c201b, var(--nacht) 70%);
}

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: clamp(12px, 2vw, 30px);
  padding: 14px var(--rand);
  background: linear-gradient(180deg, rgba(7, 18, 15, 0.82), rgba(7, 18, 15, 0.35));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.marke { display: flex; align-items: center; text-decoration: none; position: relative; font-stretch: var(--breit); font-weight: 760; font-size: 1.26rem; letter-spacing: -0.01em; }
.marke-ring { position: absolute; left: -9px; top: 50%; width: 38px; height: 31px; transform: translateY(-52%); fill: none; stroke: var(--warm); stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 180, 106, 0.6)); }
.marke span { position: relative; }
.wege { display: flex; gap: clamp(14px, 1.6vw, 24px); margin-left: auto; }
.wege a, .sprachen a { text-decoration: none; font-size: 0.94rem; color: var(--text-leise); }
.sprachen [aria-current] { color: var(--text); }
.sprachen { display: flex; gap: 10px; font-weight: 600; }
.sprachen [aria-current] { text-decoration: underline; text-decoration-color: var(--warm); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.anhalten {
  font: inherit; font-size: 0.86rem; color: var(--text-leise); background: transparent;
  border: 1px solid var(--linie); border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.anhalten[aria-pressed="true"] { color: var(--nacht); background: var(--kuehl); border-color: var(--kuehl); }
.anhalten-klein { display: none; width: 40px; height: 40px; place-items: center; padding: 0; color: var(--text); background: transparent; border: 1px solid var(--linie); border-radius: 50%; cursor: pointer; }
.anhalten-klein svg { width: 18px; height: 18px; fill: currentColor; }
.anhalten-klein .i-weiter, .anhalten-klein[aria-pressed="true"] .i-pause { display: none; }
.anhalten-klein[aria-pressed="true"] .i-weiter { display: inline; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px;
  font: inherit; font-weight: 680; font-stretch: 108%; text-decoration: none; text-align: center; text-wrap: balance;
  border-radius: 999px; border: 0; cursor: pointer;
}
.knopf-licht { background: var(--warm); color: var(--nacht); box-shadow: 0 0 0 1px rgba(255, 215, 168, 0.4), 0 10px 40px -8px rgba(255, 180, 106, 0.55); }
.knopf-rand { background: rgba(238, 241, 236, 0.04); color: var(--text); border: 1px solid rgba(238, 241, 236, 0.32); }
.knopf-rand[aria-pressed="true"] { background: var(--kuehl); color: var(--nacht); border-color: var(--kuehl); }
.knopf.gross { min-height: 56px; padding: 15px 30px; font-size: 1.08rem; }
.kopf-knopf { min-height: 42px; padding: 9px 18px; font-size: 0.94rem; white-space: nowrap; }

/* ---------- Kapitel: Text steht frei im Raum ---------- */
/* overflow-x: clip (kein Scrollbehälter, sticky bleibt): Lese-Schatten hinter dem Text ragen nie über den Rand, kein Querscrollen */
main { position: relative; z-index: 1; overflow-x: clip; }
.kapitel { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 96px var(--rand); }
.kapitel-kurz { min-height: auto; padding-block: clamp(96px, 14vw, 180px); }
.tafel { max-width: 35rem; text-shadow: 0 1px 22px rgba(7, 18, 15, 0.9); position: relative; isolation: isolate; }
/* Ein weicher Schatten hinter dem Text: die Welt bleibt sichtbar, der Text bleibt lesbar */
.tafel::before { content: ""; position: absolute; inset: -90px -140px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(7, 18, 15, 0.62), rgba(7, 18, 15, 0.3) 62%, transparent); }
.tafel-breit::before { display: none; }
.tafel-mitte::before { inset: -60px -40px; }
.tafel-links { margin-right: auto; }
.tafel-rechts { margin-left: auto; }
.tafel-breit { max-width: 1120px; margin: 0 auto; width: 100%; }
.tafel-mitte { margin: 0 auto; text-align: center; max-width: 46rem; }

.kapitel-held h1 {
  font-stretch: var(--breit); font-weight: 760;
  font-size: clamp(2.6rem, 5.2vw, 5rem); line-height: 0.98; letter-spacing: -0.025em;
}
.kapitel-held .tafel { max-width: 38rem; }
.lead { margin-top: 1.1em; font-size: clamp(1.06rem, 1.3vw, 1.24rem); color: var(--text); max-width: 31em; }
.handlung { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.handlung-mitte { justify-content: center; }
.klein { margin-top: 12px; font-size: 0.9rem; color: var(--text-leise); }
.scroll-hinweis { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: 0.86rem; color: var(--text-leise); }
.kapitel-held { position: relative; }

.kapitel h2 {
  font-stretch: var(--breit); font-weight: 740;
  font-size: clamp(1.95rem, 3.4vw, 3.2rem); line-height: 1.03; letter-spacing: -0.018em; margin-bottom: 18px;
}
.tafel > p { color: var(--text); }
.tafel > p + p { margin-top: 12px; }
.quelle { font-size: 0.84rem; color: var(--text-leise); }

/* Glasplatten und Leuchtzeichen (Janik 17.11.: Textblöcke weniger trocken). Jede Platte ist ein Stück Arbeit wie die Kacheln
   der Welt; kühles Zeichen = Vorarbeit, warmes = Mensch und Team. Nicht jeder Block wird Platte: Team und Kreislauf bleiben frei. */
.schmerz div, .bereiche div, .paketliste div, .fragenliste details, .frage-offen, .mehr-platte {
  background: var(--platte); border: 1px solid var(--platte-rand); border-radius: 12px; box-shadow: inset 0 1px 0 var(--platte-kante);
}
.zeichen {
  width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  color: var(--kuehl); filter: drop-shadow(0 0 6px rgba(185, 214, 232, 0.55));
}

/* Wo es hakt: vier Platten, je ein Zeichen */
.schmerz { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.schmerz div { padding: 16px 16px 15px; }
.schmerz dt { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-stretch: 112%; font-weight: 700; font-size: 1.04rem; line-height: 1.25; }
.schmerz dd { margin-top: 6px; color: var(--text-leise); font-size: 0.92rem; line-height: 1.5; }

/* Sechs Bereiche */
.tafel-ordnung { max-width: 44rem; }
.bereiche { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bereiche div { position: relative; padding: 15px 16px 15px 58px; }
.bereiche dt { font-weight: 700; font-stretch: 110%; }
.bereiche dt .zeichen { position: absolute; left: 17px; top: 16px; }
.bereiche dd { margin-top: 2px; color: var(--text-leise); font-size: 0.95rem; line-height: 1.5; }

/* Rechnung: lang, der Text bleibt stehen, während die Welt rechnet */
.kapitel-lang { min-height: 200vh; align-items: flex-start; }
.kapitel-lang .tafel { position: sticky; top: max(96px, calc(50vh - 250px)); }
.gleichung { margin-top: 8px; display: grid; gap: 10px; font-size: clamp(1.08rem, 1.4vw, 1.3rem); }
.gleichung li { line-height: 1.35; }
.gleichung .zahl { font-stretch: var(--breit); font-weight: 760; color: var(--text); }
.gleichung-ende {
  margin-top: 6px; padding-top: 14px; border-top: 2px solid rgba(238, 241, 236, 0.55);
  transition: color 500ms ease, text-shadow 500ms ease;
}
.gleichung-ende .gross { display: inline-block; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; color: var(--warm-hell); }
.gleichung-ende.da .gross { color: var(--warm); text-shadow: 0 0 32px rgba(255, 180, 106, 0.55); }
.jahr { margin-top: 10px; color: var(--warm-hell); font-weight: 650; }
.tafel-rechnung .knopf { margin-top: 22px; }

.kreislauf { color: var(--warm-hell); }
/* Kreislauf: ein echter Ablauf, Punkte auf einer Linie; „Sie geben frei“ warm; am Ende zurück zu den Inhalten */
.kreis { margin-top: 14px; }
.kreis li { position: relative; padding: 7px 0 7px 30px; font-weight: 620; line-height: 1.35; }
.kreis li::before { content: ""; position: absolute; left: 5px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--kuehl); box-shadow: 0 0 10px rgba(185, 214, 232, 0.7); }
.kreis li::after { content: ""; position: absolute; left: 9.5px; top: 25px; bottom: -10px; width: 1px; background: rgba(185, 214, 232, 0.35); }
.kreis li.warm { color: var(--warm-hell); }
.kreis li.warm::before { background: var(--warm); box-shadow: 0 0 12px rgba(255, 180, 106, 0.8); }
.kreis li.kreis-zurueck { color: var(--text-leise); font-weight: 500; }
.kreis li.kreis-zurueck::before, .kreis li.kreis-zurueck::after { display: none; }
.kreis-zurueck .zeichen { position: absolute; left: 0; top: 6px; width: 20px; height: 20px; }
.tafel > .mehr-platte { margin-top: 18px; padding: 14px 16px; font-size: 0.97rem; }

/* Team: ein Arbeitstag an einem Platz, heute und mit Orkestr; die Linie markiert den Feierabend */
.tafel-team { max-width: 33rem; }
.tag-balken { margin: 22px 0 0; }
.tag-balken figcaption { font-size: 0.86rem; color: var(--text-leise); margin-bottom: 10px; }
.balken-zeile { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 10px; }
.balken-name { font-weight: 650; font-size: 0.94rem; }
.balken { position: relative; display: flex; gap: 2px; height: 34px; }
.balken::after { content: ""; position: absolute; left: 86.9%; top: -7px; bottom: -7px; width: 2px; border-radius: 1px; background: rgba(238, 241, 236, 0.8); }
.balken-zeile:first-of-type .balken::before { content: attr(data-feierabend); position: absolute; left: 86.9%; bottom: calc(100% + 8px); transform: translateX(-50%); font-size: 0.74rem; color: var(--text-leise); white-space: nowrap; text-shadow: none; }
.teil { display: flex; align-items: center; padding: 0 10px; overflow: hidden; white-space: nowrap; font-size: 0.8rem; font-weight: 650; text-shadow: none; }
.teil:first-child { border-radius: 8px 0 0 8px; }
.teil-vor { flex: 60 1 0; background: rgba(185, 214, 232, 0.6); color: var(--nacht); }
.teil-kunden { flex: 40 1 0; background: var(--warm); color: var(--nacht); }
.teil-ueber { flex: 15 1 0; border-radius: 0 8px 8px 0; background: repeating-linear-gradient(135deg, rgba(255, 180, 106, 0.85) 0 4px, rgba(255, 180, 106, 0.15) 4px 9px); }
.teil-pruefen { flex: 6 1 0; background: var(--warm-hell); padding: 0; }
.teil-luft { flex: 54 1 0; border: 1.5px dashed rgba(238, 241, 236, 0.55); border-radius: 0 8px 8px 0; color: var(--text); justify-content: center; }
.teil-leer { flex: 15 1 0; padding: 0; }
/* Der Balken „Mit Orkestr“ zeichnet sich beim Scrollen von links ein; Name und Wörter sind dabei immer voll lesbar (kein Verblassen).
   Die Spur zeigt vorher, wo er hinkommt. Weniger Bewegung: steht sofort da (seite.js setzt .da beim Laden). */
.js .balken-nachher .balken { clip-path: inset(-12px 100% -12px -12px); transition: clip-path 900ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .tag-balken.da .balken-nachher .balken { clip-path: inset(-12px -12px -12px -12px); }
.js .balken-nachher { background: linear-gradient(90deg, transparent 0 calc(6.5rem + 12px), rgba(238, 241, 236, 0.07) calc(6.5rem + 12px)) no-repeat center / 100% 34px; border-radius: 8px; }
.legende { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.8rem; color: var(--text-leise); }
.legende li { display: flex; align-items: center; gap: 7px; }
.legende li::before { content: ""; width: 14px; height: 10px; border-radius: 3px; }
.l-vor::before { background: rgba(185, 214, 232, 0.6); }
.l-kunden::before { background: var(--warm); }
.l-pruefen::before { background: var(--warm-hell); }
.l-luft::before { border: 1.5px dashed rgba(238, 241, 236, 0.6); }
.l-ueber::before { background: repeating-linear-gradient(135deg, rgba(255, 180, 106, 0.85) 0 3px, rgba(255, 180, 106, 0.15) 3px 6px); }
.team-punkte { margin-top: 22px; display: grid; gap: 12px; }
.team-punkte div { position: relative; padding-left: 40px; }
.team-punkte dt { font-weight: 700; font-stretch: 110%; }
.team-punkte dt .zeichen { position: absolute; left: 0; top: 0; width: 24px; height: 24px; color: var(--warm); filter: drop-shadow(0 0 6px rgba(255, 180, 106, 0.5)); }
.team-punkte dd { color: var(--text-leise); font-size: 0.95rem; }

/* Freigabe zum Ausprobieren */
.tafel-freigabe { max-width: 31rem; }
.stand { margin-top: 18px; font-weight: 650; }
.stand span { font-stretch: var(--breit); font-weight: 760; color: var(--warm); }
.warteschlange { margin-top: 10px; }
.warteschlange li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "art knopf" "titel knopf";
  column-gap: 16px; padding: 11px 0; border-top: 1px solid var(--linie);
  transition: opacity 400ms ease;
}
.warteschlange .art { grid-area: art; font-size: 0.8rem; color: var(--text-leise); }
.warteschlange .art b { font-weight: 650; color: var(--kuehl); }
.warteschlange .titel { grid-area: titel; font-weight: 600; line-height: 1.3; }
.freigeben {
  grid-area: knopf; align-self: center; min-height: 44px; padding: 8px 18px;
  font: inherit; font-weight: 680; font-size: 0.94rem; color: var(--warm);
  background: transparent; border: 1.5px solid var(--warm); border-radius: 999px; cursor: pointer;
}
.warteschlange li.ok { opacity: 0.55; }
.warteschlange li.ok .freigeben { border-color: transparent; color: var(--warm-hell); cursor: default; }
.neu { margin-top: 10px; font: inherit; font-size: 0.9rem; color: var(--warm); background: none; border: 0; padding: 6px 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.reiter { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.reiter [role="tab"] { min-height: 44px; padding: 9px 15px; font: inherit; font-weight: 620; font-size: 0.92rem; color: var(--text); background: rgba(238, 241, 236, 0.04); border: 1px solid var(--linie); border-radius: 999px; cursor: pointer; }
.reiter [role="tab"][aria-selected="true"] { background: var(--kuehl); color: var(--nacht); border-color: var(--kuehl); }
.kontrolle { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(238, 241, 236, 0.4); }
.kontrolle .knopf { margin-top: 14px; }

/* Ruhiger Grund hinter längeren Abschnitten, damit Text gut lesbar bleibt */
.kapitel-kurz { background: linear-gradient(180deg, transparent, rgba(7, 18, 15, 0.7) 18%, rgba(7, 18, 15, 0.7) 82%, transparent); }

.paketliste { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.paketliste div { padding: 20px 18px; }
.paketliste dt { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font-stretch: var(--breit); font-weight: 760; font-size: 1.3rem; line-height: 1.1; }
.paketliste dd { margin-top: 10px; color: var(--text-leise); font-size: 0.95rem; line-height: 1.55; }
/* Umfang: wächst von Stufe zu Stufe; Individuell gestrichelt (nach Absprache) */
.umfang { display: flex; gap: 4px; }
.umfang i { width: 22px; height: 6px; border-radius: 3px; background: rgba(238, 241, 236, 0.14); }
.umfang[data-stufe="1"] i:first-child, .umfang[data-stufe="2"] i:nth-child(-n+2), .umfang[data-stufe="3"] i { background: var(--kuehl); box-shadow: 0 0 8px rgba(185, 214, 232, 0.5); }
.umfang[data-stufe="x"] i { background: transparent; border: 1px dashed rgba(185, 214, 232, 0.65); }
@media (max-width: 1099px) { .paketliste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Rechner, Fragen, Anfrage: ein Werkzeug auf einer Glasfläche ---------- */
.tafel-rechner { max-width: 40rem; width: 100%; }
.hinweis { margin-top: 16px; color: var(--warm-hell); }
.anfrage {
  margin-top: 26px; padding: clamp(20px, 3vw, 34px); text-shadow: none;
  background: var(--glas); border: 1px solid var(--linie); border-radius: 24px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}
.anfrage-kopf { display: flex; align-items: center; gap: 14px; min-height: 32px; }
.schritt-stand { margin-left: auto; font-size: 0.86rem; color: var(--text-leise); }
.zurueck { font: inherit; font-size: 0.92rem; font-weight: 620; color: var(--text); background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--linie); text-underline-offset: 5px; min-height: 32px; }
.fortschritt { margin: 10px 0 22px; height: 3px; border-radius: 2px; background: rgba(238, 241, 236, 0.12); overflow: hidden; }
.fortschritt span { display: block; height: 100%; width: calc(100% / 7); background: var(--warm); border-radius: 2px; transition: width 400ms ease; }

.schritt { border: 0; margin: 0; padding: 0; min-width: 0; }
.schritt legend, .schritt-fertig h3, .schritt-abschluss h3 {
  padding: 0; margin-bottom: 18px; font-stretch: 116%; font-weight: 720; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.15;
}
.schritt legend:focus { outline: none; }
.schritt legend:focus-visible { outline: 2px solid var(--warm); }

.regler { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 16px; padding: 14px 0; border-top: 1px solid var(--linie); }
.regler label { font-weight: 620; }
.regler output { font-stretch: var(--breit); font-weight: 760; font-size: 1.35rem; color: var(--text); }
.regler-zeile { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.hilfe { grid-column: 1 / -1; font-size: 0.84rem; color: var(--text-leise); line-height: 1.5; }
.stufe {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font: inherit; font-size: 1.2rem; line-height: 1; color: var(--text); background: rgba(238, 241, 236, 0.05);
  border: 1px solid var(--linie); cursor: pointer;
}

input[type="range"] {
  --fuell: 50%;
  flex: 1; min-width: 0; height: 44px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--kuehl) var(--fuell), rgba(238, 241, 236, 0.16) var(--fuell)); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%;
  background: var(--warm); border: 0; box-shadow: 0 0 0 5px rgba(255, 180, 106, 0.18), 0 0 18px rgba(255, 180, 106, 0.55);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(238, 241, 236, 0.16); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--kuehl); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 5px rgba(255, 180, 106, 0.18); }
input[type="range"]:focus-visible { outline: 2px solid var(--warm); outline-offset: 4px; border-radius: 6px; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--warm-hell); outline-offset: 3px; }
input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--warm-hell); outline-offset: 3px; }

.ergebnis { margin: 8px 0 22px; padding-top: 16px; border-top: 2px solid rgba(238, 241, 236, 0.55); }
.ergebnis-plaetze { font-weight: 620; }
.ergebnis-plaetze span { font-stretch: var(--breit); font-weight: 760; }
.ergebnis-summe { margin-top: 2px; font-size: 1.1rem; }
.ergebnis-summe span { font-stretch: var(--breit); font-weight: 780; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--warm); }
.ergebnis-rest { margin-top: 4px; color: var(--warm-hell); }

.wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 10px; }
.wahl button {
  min-height: 58px; padding: 14px 18px; text-align: left; font: inherit; font-weight: 640; font-size: 1.02rem; color: var(--text);
  background: rgba(238, 241, 236, 0.04); border: 1px solid rgba(238, 241, 236, 0.22); border-radius: 16px; cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.wahl button[aria-pressed="true"] { border-color: var(--warm); background: rgba(255, 180, 106, 0.12); }

.felder { display: grid; gap: 14px; }
.feld label { display: block; margin-bottom: 6px; font-weight: 620; font-size: 0.96rem; }
.feld input {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(238, 241, 236, 0.05); border: 1px solid rgba(238, 241, 236, 0.28); border-radius: 12px;
}
.feld input:focus-visible { outline: 2px solid var(--warm); outline-offset: 1px; border-color: transparent; }
.feld input[aria-invalid="true"] { border-color: var(--fehler); }
.feld-fehler, .fehler { margin-top: 6px; font-size: 0.9rem; color: var(--fehler); }
.feld-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.schritt [data-senden] { margin-top: 22px; }
.schritt [data-senden] + .klein a { color: var(--text); }

.schritt-fertig:focus, .schritt-abschluss:focus { outline: none; }
/* Zwischenlösung (17.11.): Ende mit der Rechnung, Erstgespräch oder E-Mail */
.schritt-abschluss [data-zusammenfassung] { margin-bottom: 10px; color: var(--warm-hell); font-weight: 620; }
.schritt-abschluss .handlung { margin-top: 20px; }
.schritt-abschluss .klein { margin-top: 14px; }
.danach { margin: 10px 0 22px; counter-reset: danach; display: grid; gap: 8px; }
.danach li { counter-increment: danach; display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-items: baseline; }
.danach li::before { content: counter(danach); font-stretch: var(--breit); font-weight: 760; color: var(--warm); }
.vorschau { color: var(--warm-hell); }

.fragen-kopf h2 { margin-bottom: 0; }
@media (min-width: 980px) { .fragen-kopf h2 { font-size: clamp(1.95rem, 2.5vw, 2.5rem); } }
.frage-offen { margin-top: 24px; padding: 18px 18px 20px; }
.frage-offen-titel { font-weight: 700; font-stretch: 110%; font-size: 1.08rem; }
.frage-offen p + p { margin-top: 4px; color: var(--text-leise); }
.frage-offen .knopf { margin-top: 16px; }
.fragenliste { margin-top: 26px; display: grid; gap: 8px; }
.fragenliste details { padding: 0 18px; }
@media (min-width: 980px) {
  #fragen .tafel-breit { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 0 56px; align-items: start; }
  .fragen-kopf { position: sticky; top: 110px; }
  .fragenliste { margin-top: 0; }
}
.fragenliste summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; font-weight: 650; font-size: 1.04rem; }
.fragenliste summary::-webkit-details-marker { display: none; }
.fragenliste summary::after { content: "+"; font-stretch: var(--breit); font-size: 1.35rem; line-height: 1; color: var(--warm); }
.fragenliste details[open] summary::after { content: "–"; }
.fragenliste details p { padding: 0 0 18px; color: var(--text-leise); max-width: 44em; }

.kapitel-schluss h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); margin-bottom: 30px; }
.kapitel-schluss .klein { margin-top: 16px; }

.fuss { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 28px var(--rand) 40px; font-size: 0.88rem; color: var(--text-leise); background: rgba(7, 18, 15, 0.86); }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.fuss a { color: var(--text-leise); text-underline-offset: 3px; }
.fuss .sprachen { display: flex; }
.fuss .sprachen [aria-current] { color: var(--text); }
.fuss-hinweis { margin-left: auto; }

/* ---------- Impressum, 404, Startadresse: gleicher Grund, ohne Welt ---------- */
body.recht {
  min-height: 100vh;
  background:
    radial-gradient(60vw 50vh at 78% 12%, rgba(255, 180, 106, 0.13), transparent 70%),
    radial-gradient(70vw 60vh at 10% 6%, rgba(185, 214, 232, 0.09), transparent 70%),
    linear-gradient(180deg, #0c201b, var(--nacht) 640px);
}
.rechtstext { position: relative; z-index: 1; max-width: 46rem; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--rand) 96px; }
.rechtstext h1 { font-stretch: var(--breit); font-weight: 760; font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 26px; }
.rechtstext h2 { font-stretch: 112%; font-weight: 700; font-size: 1.2rem; margin: 30px 0 8px; }
.rechtstext p + p { margin-top: 10px; }
.rechtstext a:not(.knopf) { color: var(--warm-hell); text-underline-offset: 3px; }
.hinweis-sprache { color: var(--text-leise); margin-bottom: 8px; }
.fehler-sprache { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--linie); }
.fehler-sprache h2 { margin-top: 0; font-size: 1.35rem; }
.sprachwahl { display: grid; gap: 12px; margin-top: 8px; }
.sprachwahl a { display: block; padding: 18px 22px; border: 1px solid rgba(238, 241, 236, 0.22); border-radius: 18px; text-decoration: none; color: var(--text); background: rgba(238, 241, 236, 0.03); }
.sprachwahl b { display: block; font-stretch: var(--breit); font-weight: 740; font-size: 1.3rem; }
.sprachwahl span { color: var(--text-leise); }

/* ---------- Zeigen und Tippen ---------- */
@media (hover: hover) {
  .wege a:hover, .sprachen a:hover { color: var(--text); }
  .knopf-licht:hover { background: var(--warm-hell); }
  .knopf-rand:hover { border-color: var(--text); }
  .freigeben:hover { background: rgba(255, 180, 106, 0.1); }
  .zurueck:hover { text-decoration-color: var(--text); }
  .stufe:hover { border-color: var(--text-leise); }
  .wahl button:hover { border-color: var(--kuehl); background: rgba(185, 214, 232, 0.08); }
  .sprachwahl a:hover { border-color: var(--warm); }
  .fuss a:hover { color: var(--text); }
}
/* Auf dem Handy: kein grauer Blitz beim Tippen, kein Doppeltipp-Zoom, kein Markieren beim langen Drücken; dafür eine kurze Rückmeldung */
a, button, summary, input, label { -webkit-tap-highlight-color: transparent; }
button, .knopf, summary, input[type="range"] { touch-action: manipulation; }
button, .knopf, summary { -webkit-user-select: none; user-select: none; }
.knopf:active, .freigeben:active, .wahl button:active, .stufe:active, .reiter [role="tab"]:active, .anhalten-klein:active { transform: scale(0.97); }

/* ---------- Schmal ---------- */
@media (max-width: 1239px) { .wege { display: none; } .kopf .sprachen { margin-left: auto; } }
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .kopf { gap: 10px; padding-block: 10px; }
  .anhalten { display: none; }
  .anhalten-klein { display: grid; }
  .kopf .sprachen { display: none; }
  .marke { margin-right: auto; }
  .kopf-knopf { padding: 8px 14px; font-size: 0.86rem; min-height: 40px; }
  /* Auf dem Handy steht der Text unten, die Welt zeigt sich oben */
  .kapitel { align-items: flex-end; padding-top: 46vh; padding-top: 46svh; padding-bottom: 64px; }
  .kapitel-held { padding-top: 34vh; padding-top: 34svh; }
  .kapitel-kurz { padding-top: 96px; }
  .kapitel-freigabe { padding-top: 30vh; padding-top: 30svh; }
  .kapitel-rechner { padding-top: 26vh; padding-top: 26svh; }
  .tafel::before { display: none; }
  .tafel {
    max-width: none; margin-inline: calc(-1 * var(--rand)); padding: 56px var(--rand) 22px;
    background: linear-gradient(180deg, rgba(7, 18, 15, 0) 0, rgba(7, 18, 15, 0.8) 56px, rgba(7, 18, 15, 0.8) calc(100% - 24px), rgba(7, 18, 15, 0) 100%);
  }
  .kapitel-held h1 { font-size: 2.7rem; }
  /* Pakete, Fragen und Rechner: so breit wie die anderen Textblöcke (width: 100% hob den Randausgleich auf; beim Rechner
     endete der Kasten rechts zu früh, Janiks Foto vom 17.11.) */
  .tafel-breit, .tafel-rechner { width: auto; }
  .schmerz { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .schmerz div { padding: 14px 14px 14px 54px; position: relative; }
  .schmerz dt { display: block; }
  .schmerz dt .zeichen { position: absolute; left: 15px; top: 15px; width: 24px; height: 24px; }
  .schmerz dd { margin-top: 2px; }
  .bereiche { grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--platte); border: 1px solid var(--platte-rand); border-radius: 14px; box-shadow: inset 0 1px 0 var(--platte-kante); }
  .bereiche div { background: none; border: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--linie); padding: 14px 14px 14px 54px; }
  .bereiche div:first-child { border-top: 0; }
  .bereiche dt .zeichen { left: 15px; top: 15px; width: 24px; height: 24px; }
  .paketliste { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .paketliste div { padding: 18px 16px; }
  .scroll-hinweis { display: none; }
  /* Rechnung: der Text bleibt unten stehen, oben rechnet die Welt */
  .kapitel-lang { align-items: flex-end; padding-top: 0; }
  .kapitel-lang .tafel { position: sticky; top: auto; bottom: 0; }
  .gleichung { font-size: 1.04rem; gap: 6px; }
  .kapitel-lang .tafel { padding-top: 40px; }
  .kapitel-lang h2 { font-size: 1.8rem; }
  /* Team: auf dem Handy wie die anderen Kapitel (oben die Welt, darunter der ganze Text mit allen drei Punkten). Klebend wäre der
     Text höher als der Bildschirm, und die Welt verschwände dahinter. */
  .kapitel-team { min-height: auto; padding-top: 46vh; padding-top: 46svh; }
  .kapitel-team .tafel { position: relative; }
  .balken-zeile { grid-template-columns: 5.6rem minmax(0, 1fr); gap: 10px; }
  .balken-zeile:first-of-type .balken::before { left: auto; right: calc(13.1% + 6px); transform: none; }
  .js .balken-nachher { background-image: linear-gradient(90deg, transparent 0 calc(5.6rem + 10px), rgba(238, 241, 236, 0.07) calc(5.6rem + 10px)); }
  .legende { gap: 4px 12px; font-size: 0.76rem; }
  /* Ohne Unschärfe dahinter: über der laufenden Welt müsste das Handy sie in jedem Bild neu rechnen; fast deckend sieht es gleich aus */
  .anfrage { margin-inline: -4px; padding: 18px 16px 22px; border-radius: 20px; background: rgba(9, 22, 19, 0.92); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .wahl { grid-template-columns: minmax(0, 1fr); }
  .fuss-hinweis { margin-left: 0; }
}

@media (max-width: 374px) {
  .kopf { gap: 8px; padding-inline: 14px; }
  .kopf-knopf { padding-inline: 12px; }
}
/* Sehr schmale Handys: Überschriften etwas kleiner, damit lange Wörter („Geschäftsführer“) ohne Trennung in die Zeile passen */
@media (max-width: 359px) { .kapitel h2 { font-size: 1.7rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .warteschlange li, .fortschritt span, .gleichung-ende, .wahl button, .js .balken-nachher .balken { transition: none; }
}
