/*
 * Werkbank-Tokens für wunderdoc.de.
 * Quelle: WunderdocCore/Sources/AppFeatures/WerkbankPalette.swift (App-Repo, Stand main 07baa42, 03.12.2026),
 * kopiert, nicht verlinkt. Web-Ergänzungen (nur Website) sind als solche markiert.
 * Die Blöcke mit „@theme …“ liest tests/contrast.mjs; Namen und Werte nur paarweise ändern.
 */

/* @theme light */
:root {
  color-scheme: light;
  --surface: #FCFCFD;
  --surface-sunken: #F4F4F5;
  --surface-raised: #FFFFFF;
  --surface-card: #FFFFFF;
  --panel: #F4F4F5;
  --canvas: #EEEEF0;
  --row-selected: #EDEDF0;
  --field-fill: #FFFFFF;
  --ink: #18181B;
  --ink-nav: #27272A;
  --ink-secondary: #3F3F46;
  --ink-tertiary: #52525B;
  --line: #E4E4E7;
  --line-strong: #D4D4D8;
  --field-border: #8E8E96;
  --control-border: #84848C;
  --ok: #0B7A53;
  --ok-soft: #D5F0E2;
  --review: #7A4100;
  --review-soft: #FFF5E0;
  --review-border: #E0B45C;
  --review-strong: #A86400;
  --review-choice: #FFFBF2;
  --review-choice-border: #B58A3A;
  --review-text: #5C3600;
  --danger: #B42318;
  --danger-soft: #FEF3F2;
  --primary-fill: #18181B;
  --on-primary: #FFFFFF;
  /* Web-Ergänzung: Hover des Primärknopfs (inkNav) und Fokusring (ink) */
  --primary-hover: #27272A;
  --focus: #18181B;
  /* Web-Ergänzung: Akzenttext (Grün), Glas der Kopfleiste, Raster, Glow und Schatten der App-Fenster */
  --accent-text: #0B7A53;
  --surface-glass: rgb(252 252 253 / 0.84);
  --grid-line: rgb(24 24 27 / 0.05);
  --glow-a: rgb(11 122 83 / 0.16);
  --glow-b: rgb(82 82 91 / 0.12);
  --shadow-window: 0 1px 2px rgb(0 0 0 / 0.06), 0 12px 32px rgb(24 24 27 / 0.10), 0 40px 90px -30px rgb(11 122 83 / 0.32);
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.04), 0 2px 8px rgb(24 24 27 / 0.05);
  --shadow-lift: 0 14px 34px rgb(24 24 27 / 0.12);
}
/* @end */

/* @theme dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #111113;
    --surface-sunken: #0C0C0E;
    --surface-raised: #1F1F23;
    --surface-card: #151518;
    --panel: #18181B;
    --canvas: #09090A;
    --row-selected: #1F1F23;
    --field-fill: #0C0C0E;
    --ink: #EDEDEF;
    --ink-nav: #D4D4D8;
    --ink-secondary: #C4C4CC;
    --ink-tertiary: #A1A1AA;
    --line: #27272A;
    --line-strong: #3F3F46;
    --field-border: #62626B;
    --control-border: #75757E;
    --ok: #3DD68C;
    --ok-soft: #12301F;
    --review: #F2C063;
    --review-soft: #2E230C;
    --review-border: #6E5216;
    --review-strong: #E0A534;
    --review-choice: #231A08;
    --review-choice-border: #8A6A24;
    --review-text: #F6D38A;
    --danger: #F97066;
    --danger-soft: #2D1210;
    --primary-fill: #EDEDEF;
    --on-primary: #111113;
    --primary-hover: #C4C4CC;
    --focus: #EDEDEF;
    --accent-text: #3DD68C;
    --surface-glass: rgb(17 17 19 / 0.84);
    --grid-line: rgb(255 255 255 / 0.05);
    --glow-a: rgb(61 214 140 / 0.13);
    --glow-b: rgb(161 161 170 / 0.09);
    --shadow-window: 0 0 0 1px rgb(255 255 255 / 0.06), 0 12px 32px rgb(0 0 0 / 0.5), 0 40px 90px -30px rgb(61 214 140 / 0.22);
    --shadow-card: 0 2px 10px rgb(0 0 0 / 0.35);
    --shadow-lift: 0 14px 34px rgb(0 0 0 / 0.5);
  }
}
/* @end */

/* Gleiche Werte bei aktiver Wahl „Dunkel“ (data-theme setzt theme-init.js bzw. theme-switch.js). */
/* @theme dark */
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #111113;
  --surface-sunken: #0C0C0E;
  --surface-raised: #1F1F23;
  --surface-card: #151518;
  --panel: #18181B;
  --canvas: #09090A;
  --row-selected: #1F1F23;
  --field-fill: #0C0C0E;
  --ink: #EDEDEF;
  --ink-nav: #D4D4D8;
  --ink-secondary: #C4C4CC;
  --ink-tertiary: #A1A1AA;
  --line: #27272A;
  --line-strong: #3F3F46;
  --field-border: #62626B;
  --control-border: #75757E;
  --ok: #3DD68C;
  --ok-soft: #12301F;
  --review: #F2C063;
  --review-soft: #2E230C;
  --review-border: #6E5216;
  --review-strong: #E0A534;
  --review-choice: #231A08;
  --review-choice-border: #8A6A24;
  --review-text: #F6D38A;
  --danger: #F97066;
  --danger-soft: #2D1210;
  --primary-fill: #EDEDEF;
  --on-primary: #111113;
  --primary-hover: #C4C4CC;
  --focus: #EDEDEF;
  --accent-text: #3DD68C;
  --surface-glass: rgb(17 17 19 / 0.84);
  --grid-line: rgb(255 255 255 / 0.05);
  --glow-a: rgb(61 214 140 / 0.13);
  --glow-b: rgb(161 161 170 / 0.09);
  --shadow-window: 0 0 0 1px rgb(255 255 255 / 0.06), 0 12px 32px rgb(0 0 0 / 0.5), 0 40px 90px -30px rgb(61 214 140 / 0.22);
  --shadow-card: 0 2px 10px rgb(0 0 0 / 0.35);
  --shadow-lift: 0 14px 34px rgb(0 0 0 / 0.5);
}
/* @end */

/* „Kontrast erhöhen“: highContrastLight/Dark aus WerkbankPalette.swift. */
/* @theme light-hc */
@media (prefers-contrast: more) {
  :root {
    --line: #A1A1AA;
    --line-strong: #71717A;
    --field-border: #52525B;
    --control-border: #52525B;
    --ink-tertiary: #3F3F46;
    --ink-secondary: #27272A;
    --review-border: #A86400;
    --review-choice-border: #7A4100;
  }
}
/* @end */

/* @theme dark-hc */
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --line: #52525B;
    --line-strong: #71717A;
    --field-border: #A1A1AA;
    --control-border: #A1A1AA;
    --ink-tertiary: #C4C4CC;
    --ink-secondary: #E4E4E7;
    --review-border: #E0A534;
    --review-choice-border: #E0A534;
  }
}
/* @end */

/* @theme dark-hc */
@media (prefers-contrast: more) {
  :root[data-theme="dark"] {
    --line: #52525B;
    --line-strong: #71717A;
    --field-border: #A1A1AA;
    --control-border: #A1A1AA;
    --ink-tertiary: #C4C4CC;
    --ink-secondary: #E4E4E7;
    --review-border: #E0A534;
    --review-choice-border: #E0A534;
  }
}
/* @end */

:root {
  /* Web-Ergänzung: Druck auf weißem Papier (Tastatur-Seite). */
  --paper: #FFFFFF;
  --paper-ink: #18181B;
  /* Web-Ergänzung: dunkle Flächen in beiden Modi (Privatsphäre, Terminal, Abschluss) aus Werkbank-Dunkeltönen. */
  --night-bg: #0C0C0E;
  --night-raised: #18181B;
  --night-ink: #EDEDEF;
  --night-ink-2: #C4C4CC;
  --night-line: #3F3F46;
  --night-accent: #3DD68C;
  --night-glow-a: rgb(61 214 140 / 0.2);
  --night-glow-b: rgb(161 161 170 / 0.14);
  /* Radien 4/6/8 wie die App; größere nur für Karten, Fenster und Panels der Website; Pille für Chips und Reiter. */
  --r-4: 4px;
  --r-6: 6px;
  --r-8: 8px;
  --r-12: 12px;
  --r-16: 16px;
  --r-24: 24px;
  --r-32: 32px;
  --r-pill: 999px;
  --font-sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --header-h: 64px;
  --container: 1160px;
  --gutter: 16px;
  --section-y: 80px;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --section-y: 96px; }
}

/* wunderdoc.de – Seitenstil „Werkbank“: viel Luft, wenig Text, das Produkt groß. Farben nur über Tokens (tokens.css). */

/* ---------- Schriften (selbst gehostet, SIL OFL 1.1, siehe /fonts/OFL.txt) ---------- */
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Regular.otf?v=674ccb412b") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-SemiBold.otf?v=e7516c6998") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Regular.otf?v=f0d0ab7618") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Medium.otf?v=bcb73d3fca") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
/* Ersatzschriften mit angepasster Breite, damit beim Nachladen nichts springt. */
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 104%; ascent-override: 92%; descent-override: 22%; }
@font-face { font-family: "Geist Mono Fallback"; src: local("Menlo"), local("Courier New"); size-adjust: 100%; }

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
  overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
::selection { background: var(--row-selected); color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--ink); text-wrap: balance; }
/* Typo-Skala: je größer, desto enger. */
h1 { font-size: clamp(38px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; }
/* Überschriften-Muster: fetter Satz, abgesetzter Schlussteil (kursiv, normales Gewicht). */
.shift { font-style: italic; font-weight: 400; }
h1 .shift { display: block; color: var(--accent-text); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code, kbd, samp, pre { font-family: var(--font-mono); }
code { font-size: 0.9em; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-4); padding: 0.05em 0.35em; }
strong { font-weight: 600; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-4); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100; padding: 10px 14px;
  background: var(--primary-fill); color: var(--on-primary); border-radius: var(--r-6); font-weight: 600;
}
.skip-link:focus { top: 10px; outline-color: var(--on-primary); outline-offset: -4px; }

/* Nur mit bzw. ohne JavaScript (Klasse „js“ setzt theme-init.js). */
html:not(.js) [data-js-only] { display: none !important; }

/* ---------- Bausteine ---------- */
.eyebrow {
  display: block; margin: 0 0 16px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; line-height: 1.4;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text);
}
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-secondary); max-width: 60ch; }
.caption { font-size: 13px; line-height: 1.5; color: var(--ink-tertiary); }
.caption strong { color: var(--ink); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 0; padding: 5px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink-secondary); box-shadow: var(--shadow-card);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; line-height: 1.4;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }

/* Hauptaufruf vor der Veröffentlichung: Statusetikett, kein (deaktivierter) Knopf. */
.cta-status {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px;
  border: 1px dashed var(--control-border); border-radius: var(--r-pill); background: var(--surface-raised);
  color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.2;
}
.cta-status .dot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--ink-secondary); flex: none; }
.cta-status-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px;
  border-radius: var(--r-pill); border: 1px solid var(--control-border); background: var(--surface-raised); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.14s var(--ease);
}
.btn:hover { background: var(--row-selected); text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
/* Abspiel-Dreieck für „Touren ansehen“ (rein dekorativ). */
.play-mark { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; flex: none; }

/* Tastenkappen: Fläche surfaceRaised, Rahmen controlBorder, 2 px Unterkante. */
kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.9em; padding: 0.12em 0.45em;
  border: 1px solid var(--control-border); border-bottom-width: 2px; border-radius: var(--r-4);
  background: var(--surface-raised); color: var(--ink); font-size: 13px; font-weight: 500;
  line-height: 1.35; white-space: nowrap; vertical-align: 0.08em;
  /* Tastensymbole (⌘ ⏎ ⌥ …) fehlen in Geist Mono: direkt auf die Systemschrift ausweichen, nicht auf Menlo. */
  font-family: "Geist Mono", system-ui, -apple-system, "Segoe UI Symbol", sans-serif;
}

/* ---------- Kopfleiste (Glas) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--surface-glass); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.wordmark img { width: 28px; height: 28px; }
.site-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-anchors { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-anchors a { position: relative; display: inline-block; padding: 8px 10px; color: var(--ink-nav); font-size: 14.5px; text-decoration: none; border-radius: var(--r-pill); }
.nav-anchors a:hover { background: var(--row-selected); }
/* Aktiver Anker: Punkt unter dem Link (Form, nicht nur Farbe). */
.nav-anchors a[aria-current="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink);
}
.header-tools { display: flex; align-items: center; gap: 12px; }
.lang-link { font-family: var(--font-mono); font-size: 13px; font-weight: 500; padding: 8px 6px; }
.nav-toggle { display: none; }

/* Erscheinungsbild: System / Hell / Dunkel als Radiogruppe */
.theme-switch { display: inline-flex; border: 1px solid var(--control-border); border-radius: var(--r-pill); padding: 2px; margin: 0; min-width: 0; background: var(--surface-sunken); }
.theme-switch legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.theme-switch label { position: relative; display: inline-flex; align-items: center; min-height: 30px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 13px; color: var(--ink-secondary); cursor: pointer; }
.theme-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.theme-switch input:checked + span { color: var(--ink); font-weight: 600; }
.theme-switch label:has(input:checked) { background: var(--surface-raised); box-shadow: 0 0 0 1px var(--control-border); }
.theme-switch label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }

@media (max-width: 1099px) {
  .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px;
    border: 1px solid var(--control-border); border-radius: var(--r-pill); background: var(--surface-raised); color: var(--ink);
    font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  }
  .nav-toggle .bars { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
  .nav-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
  html.js .site-nav { display: none; }
  html.js .site-nav.is-open { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px; background: var(--surface); border-bottom: 1px solid var(--line); margin: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  html:not(.js) .site-nav { position: static; padding: 8px 0 16px; border: 0; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  .nav-anchors { flex-direction: column; }
  .nav-anchors a { display: block; padding: 10px 8px; border-radius: var(--r-6); }
  .nav-anchors a[aria-current="true"]::after { left: auto; right: 12px; top: 50%; bottom: auto; margin: -2px 0 0; }
  .header-tools { flex-wrap: wrap; }
}

/* ---------- Abschnitte ---------- */
.section { padding: var(--section-y) 0; }
.section-tint { background: var(--surface-sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 16px; }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.is-center .lead { margin-left: auto; margin-right: auto; }
@media (max-width: 767px) { .section-head { margin-bottom: 40px; } }

/* Rasterlinien (56 px) mit Glow hinter Hero und Seitenköpfen, elliptisch ausgeblendet. */
.backdrop { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 0%, rgb(0 0 0) 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 0%, rgb(0 0 0) 30%, transparent 100%);
}
.backdrop::after {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background: radial-gradient(40% 45% at 22% 18%, var(--glow-a), transparent 70%), radial-gradient(38% 40% at 82% 10%, var(--glow-b), transparent 70%);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 112px 0 96px; }
.hero-copy { max-width: 900px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { margin: 28px 0 24px; }
.hero .lead { margin: 0 0 36px; }
.hero .btn-row { justify-content: center; }
.hero .caption { margin-top: 20px; }
.hero-stage { position: relative; margin-top: 72px; }
@media (max-width: 767px) {
  .hero { padding: 64px 0 72px; }
  .hero-stage { margin-top: 48px; }
}
@media (max-width: 639px) {
  .btn-row { flex-direction: column; align-items: stretch; width: 100%; }
  .btn-row > * { width: 100%; }
}

/* Schwebendes App-Fenster mit weichem Schatten; Glow liegt dahinter. */
.window {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-12);
  background: var(--surface-raised); box-shadow: var(--shadow-window);
}
.window img, .window video { width: 100%; }
.window-hero, .window-lg { border-radius: var(--r-16); }
.glow {
  position: absolute; inset: 8% 4% -6%; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(50% 50% at 30% 40%, var(--glow-a), transparent 72%), radial-gradient(45% 50% at 75% 60%, var(--glow-b), transparent 72%);
  filter: blur(40px);
}
.glow + .window { z-index: 1; }

/* Produkt-Loop und Tour-Video: Poster-Bild (lazy) unter dem Video; Loop-Knopf oben rechts im Fenster. */
.loop { position: relative; }
.video-frame { position: relative; }
.video-poster { display: block; width: 100%; height: auto; }
/* Video liegt über seinem Poster-Bild; ohne geladenes Bild bleibt es durchsichtig, das Poster scheint durch. */
.window .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; }
/* Hero: unter 600 px der lesbare Ausschnitt statt des ganzen Fensters. */
.only-narrow { display: none; }
@media (max-width: 599px) {
  .only-wide { display: none; }
  .only-narrow { display: block; }
}
.loop-toggle {
  position: absolute; right: 12px; top: 12px; z-index: 2; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--control-border); border-radius: 50%; background: var(--surface-raised); color: var(--ink);
  box-shadow: var(--shadow-card); cursor: pointer; opacity: 0.92; transition: opacity 0.2s var(--ease), transform 0.14s var(--ease);
}
.loop-toggle:hover { opacity: 1; }
.loop-toggle:active { transform: scale(0.94); }
.loop-toggle:focus-visible { opacity: 1; border-radius: 50%; }
.lt-icon { position: relative; width: 12px; height: 12px; }
.lt-icon::before, .lt-icon::after { content: ""; position: absolute; top: 0; width: 4px; height: 12px; border-radius: 1px; background: currentColor; }
.lt-icon::before { left: 1px; }
.lt-icon::after { right: 1px; }
.loop-toggle.is-paused .lt-icon::before {
  left: 2px; width: 0; height: 0; border-radius: 0; background: none;
  border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor;
}
.loop-toggle.is-paused .lt-icon::after { display: none; }

/* ---------- So geht’s ---------- */
.step-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step-card {
  position: relative; display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-24);
  background: var(--surface-card); box-shadow: var(--shadow-card); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.step-card .window { border-radius: var(--r-12); box-shadow: none; }
.step-body { position: relative; padding: 28px 16px 16px; }
.step-body h3 { margin-bottom: 8px; padding-right: 56px; }
.step-body p { color: var(--ink-secondary); font-size: 15px; padding-right: 56px; }
/* Große Konturziffer (dekorativ). */
.step-num {
  position: absolute; right: 12px; top: 12px; font-size: 72px; font-weight: 600; line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong); user-select: none;
}
@media (max-width: 1023px) {
  .step-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; }
}

/* ---------- Funktionen ---------- */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature {
  display: flex; flex-direction: column; padding: 12px 12px 28px; border: 1px solid var(--line); border-radius: var(--r-24);
  background: var(--surface-card); box-shadow: var(--shadow-card); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.feature-stage { padding: clamp(14px, 2vw, 22px); border-radius: var(--r-16); background: var(--canvas); }
.feature-stage .window { border-radius: var(--r-8); }
.feature h3 { margin: 24px 12px 6px; font-size: 18px; }
.feature p { margin: 0 12px; color: var(--ink-secondary); font-size: 15px; }
.feature .feature-link { margin-top: 12px; font-size: 15px; }
@media (max-width: 1023px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Die App: Reiter als Pillen, großes Fenster ---------- */
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.tabs-center > .tablist { justify-content: center; }
.tab {
  appearance: none; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--surface-raised); color: var(--ink-secondary); font: inherit; font-size: 14.5px; cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.tab:hover { background: var(--row-selected); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--primary-fill); border-color: var(--primary-fill); color: var(--on-primary); font-weight: 600; }
.tab:focus-visible { border-radius: var(--r-pill); }
.shot, .tour { margin: 0; }
.shot[hidden], .tour[hidden] { display: none; }
.shot + .shot, .tour + .tour { margin-top: 56px; }
html.js .tabs .shot + .shot, html.js .tabs .tour + .tour { margin-top: 0; }
.shot-stage { position: relative; }
.shot figcaption, .tour figcaption { max-width: 640px; margin: 28px auto 0; text-align: center; color: var(--ink-secondary); }
.shot figcaption h3 { font-size: 19px; margin-bottom: 4px; }
[role="tabpanel"]:focus-visible { outline-offset: 8px; border-radius: var(--r-16); }

/* Ganze Touren: kompakt aufklappbar */
.tours { margin-top: 64px; }
.tours > summary {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; width: max-content; max-width: 100%;
  margin: 0 auto; padding: 10px 20px; min-height: 48px; border: 1px solid var(--control-border); border-radius: var(--r-pill);
  background: var(--surface-raised); cursor: pointer; list-style: none; font-weight: 600;
}
.tours > summary::-webkit-details-marker { display: none; }
.tours > summary:hover { background: var(--row-selected); }
.tours > summary:focus-visible { border-radius: var(--r-pill); }
.tours[open] > summary { margin-bottom: 40px; }
.tours[open] > summary .play-mark { transform: rotate(90deg); }
.tour figcaption { display: grid; gap: 6px; justify-items: center; }
.tour figcaption h3 { font-size: 19px; }
.steps-details { margin-top: 6px; }
.steps-details summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink); }
.steps-alt { margin: 12px auto 0; padding-left: 1.3em; text-align: left; font-size: 15px; width: max-content; max-width: 100%; }
.steps-alt li { margin-bottom: 4px; }

/* Bild- und Videovarianten hell/dunkel folgen dem wirksamen Erscheinungsbild. */
.v-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .v-light { display: none; }
  :root:not([data-theme="light"]) .v-dark { display: block; }
}
:root[data-theme="dark"] .v-light { display: none; }
:root[data-theme="dark"] .v-dark { display: block; }

/* ---------- Dunkle Panels (Privatsphäre, Abschluss) – in beiden Modi dunkel ---------- */
.night-panel, .final-panel {
  position: relative; overflow: hidden; border: 1px solid var(--night-line); border-radius: var(--r-32);
  background: var(--night-bg); color: var(--night-ink);
}
.night-panel { padding: clamp(28px, 6vw, 72px); }
.night-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 60% at 88% 0%, var(--night-glow-a), transparent 70%), radial-gradient(45% 55% at 0% 100%, var(--night-glow-b), transparent 70%);
}
.night-panel > *, .final-panel > * { position: relative; }
.night-panel .night-glow, .final-panel .night-glow { position: absolute; }
.night-panel h2, .night-panel h3, .final-panel h2 { color: var(--night-ink); }
.night-panel .eyebrow { color: var(--night-accent); }
.night-panel .lead, .final-panel .lead { color: var(--night-ink-2); }
.night-panel a, .final-panel a { color: var(--night-ink); }
.night-panel :focus-visible, .final-panel :focus-visible { outline-color: var(--night-ink); }
.night-panel .section-head { margin-bottom: 0; }
.night-note { margin-top: 32px; font-size: 14px; color: var(--night-ink-2); max-width: 46ch; }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.privacy-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.privacy-points li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px;
  border: 1px solid var(--night-line); border-radius: var(--r-16); background: var(--night-raised);
}
.pp-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-12); background: var(--night-bg); color: var(--night-accent); border: 1px solid var(--night-line); }
.privacy-points h3 { font-size: 17px; margin-bottom: 4px; }
.privacy-points p { margin: 0; font-size: 15px; color: var(--night-ink-2); }
@media (max-width: 1023px) { .privacy-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* ---------- Open Source: Terminal (dunkel) ---------- */
.oss-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.oss-grid .section-head { margin-bottom: 32px; }
.oss-guide { margin-bottom: 20px; }
@media (max-width: 1023px) { .oss-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.codeblock {
  position: relative; margin: 16px 0; overflow: hidden; border: 1px solid var(--night-line); border-radius: var(--r-16);
  background: var(--night-bg); color: var(--night-ink); box-shadow: var(--shadow-window);
}
.oss-grid .codeblock { margin: 0; }
.code-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 44px; padding: 6px 8px 6px 16px; border-bottom: 1px solid var(--night-line); }
.code-dots { display: inline-flex; gap: 6px; }
.code-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--night-ink-2); }
.code-label { font-family: var(--font-mono); font-size: 13px; color: var(--night-ink-2); }
.copy-status { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--night-ink-2); min-height: 1.4em; }
.copy-btn {
  min-height: 32px; padding: 4px 14px; border: 1px solid var(--night-ink-2); border-radius: var(--r-pill); background: transparent;
  color: var(--night-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.copy-btn:hover { background: var(--night-raised); }
.codeblock :focus-visible { outline-color: var(--night-ink); }
.codeblock pre { margin: 0; padding: 20px 22px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.codeblock code { background: none; border: 0; padding: 0; font-size: inherit; color: var(--night-ink); }
.codeblock .prompt { color: var(--night-ink-2); user-select: none; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
@media (max-width: 1023px) { .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 22px 52px 22px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px; display: grid; place-items: center;
  border: 1px solid var(--control-border); border-radius: 50%; font-family: var(--font-mono); font-weight: 400; font-size: 17px; line-height: 1;
  color: var(--ink-secondary); transition: transform 0.26s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 24px; color: var(--ink-secondary); max-width: 62ch; }
.faq .answer strong { color: var(--ink); }

/* ---------- Abschluss-Panel ---------- */
.section-final { padding-top: 24px; }
.final-panel {
  padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 64px); text-align: center;
  background: linear-gradient(165deg, var(--night-raised), var(--night-bg) 70%);
}
.final-icon { width: 72px; height: 72px; margin: 0 auto 28px; border-radius: var(--r-16); }
.final-panel h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 20px; }
.final-panel h2 .shift { color: var(--night-accent); }
.final-panel .lead { margin: 0 auto 36px; }
.final-panel .btn-row { justify-content: center; }
.final-panel .cta-status { background: var(--night-ink); color: var(--night-bg); border: 1px solid var(--night-ink); }
.final-panel .cta-status .dot { border-color: var(--night-bg); }
.btn-light { background: transparent; color: var(--night-ink); border-color: var(--night-ink-2); }
.btn-light:hover { background: var(--night-raised); }
.final-panel .caption { margin-top: 24px; color: var(--night-ink-2); }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--surface-sunken); border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.footer-grid h2 { font-size: 13px; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-tertiary); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 28px; text-decoration: none; color: var(--ink-secondary); }
.footer-grid li a:hover { color: var(--ink); text-decoration: underline; }
.footer-claim { margin-top: 14px; color: var(--ink-secondary); }
.footer-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-secondary); }
.footer-notes p { margin: 0; }
.footer-meta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-tertiary); }
@media (max-width: 767px) {
  .footer-grid, .footer-notes { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Unterseiten ---------- */
.page-head { position: relative; padding: 104px 0 56px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 20px; max-width: 900px; }
.page-head .lead { margin-bottom: 0; }
.page-head .chip { margin-top: 24px; }
@media (max-width: 767px) { .page-head { padding: 64px 0 40px; } }
.prose { max-width: 760px; padding: 56px 0 112px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 26px); margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink-secondary); }
.prose strong { color: var(--ink); }
.prose address { font-style: normal; font-family: var(--font-mono); font-size: 15px; line-height: 1.7; color: var(--ink); padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-12); background: var(--panel); display: inline-block; }
.notice { padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-12); background: var(--panel); color: var(--ink-secondary); margin-bottom: 40px; }
.install-steps { counter-reset: st; list-style: none; padding: 0; margin: 0 0 32px; }
.install-steps > li { counter-increment: st; position: relative; padding: 0 0 36px 52px; border-left: 1px solid var(--line-strong); margin-left: 16px; }
.install-steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.install-steps > li::before {
  content: counter(st); position: absolute; left: -17px; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-raised); border: 1px solid var(--control-border); font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--ink);
}
.install-steps h2 { margin: 0 0 10px; font-size: 21px; }
@media (max-width: 479px) {
  .install-steps > li { padding-left: 32px; }
  .code-dots { display: none; }
}
.shortcut-table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 32px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-16); background: var(--surface-card); box-shadow: var(--shadow-card);
}
.shortcut-table caption { text-align: left; font-weight: 600; font-size: 19px; padding: 0 0 12px; color: var(--ink); }
.shortcut-table th, .shortcut-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.shortcut-table tbody tr:last-child td { border-bottom: 0; }
.shortcut-table thead th { font-size: 13px; color: var(--ink-tertiary); font-weight: 600; background: var(--surface-sunken); }
.shortcut-table td:first-child { white-space: nowrap; width: 9em; }
.shortcut-table td { color: var(--ink); }
.shortcut-table .app-label { display: block; font-family: var(--font-mono); font-size: 13px; color: var(--ink-tertiary); }
.notes-card { margin-top: 8px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--r-16); background: var(--surface-sunken); }
.notes-card h2 { margin-top: 0; font-size: 19px; }
.notes-card ul { margin: 0; }
.notes-card li + li { margin-top: 8px; }
.not-found { padding: 112px 0; }
.not-found .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
@media (max-width: 767px) { .not-found .cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-stage { animation: wd-up 0.8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }
  .hero-stage { animation-delay: 0.3s; }
}
@keyframes wd-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .step-card:hover, .feature:hover { transform: none; }
}

/* ---------- Hochkontrast / erzwungene Farben ---------- */
@media (prefers-contrast: more) {
  .window, .step-card, .feature, .tab, .chip { border-color: var(--line-strong); }
}
@media (forced-colors: active) {
  .chip, .cta-status, kbd, .window, .step-card, .feature, .night-panel, .final-panel, .codeblock, .tab, .loop-toggle, .privacy-points li { border: 1px solid CanvasText; forced-color-adjust: auto; }
  .chip .dot, .cta-status .dot { background: CanvasText; border-color: CanvasText; }
  .step-num { -webkit-text-stroke: 0; color: GrayText; }
  .tab[aria-selected="true"] { border-color: Highlight; outline: 2px solid Highlight; }
  .backdrop, .glow, .night-glow { display: none; }
}

/* ---------- Druck (Tastatur-Seite) ---------- */
@media print {
  .site-header, .site-footer, .skip-link, .backdrop { display: none !important; }
  body { background: var(--paper); color: var(--paper-ink); }
  .page-head { padding: 0 0 16px; }
  .prose { padding: 16px 0; max-width: none; }
  .shortcut-table { box-shadow: none; }
  kbd { border-color: var(--paper-ink); }
}
