/* ==========================================================================
   Crosswalk — Stylesheet
   Dunkles Produktseiten-Theme, Akzent in GNOME-Blau (Design des Tools), System-Fonts.
   OKLCH-Tokens in drei Ebenen: Primitiv -> Semantik -> Komponente.
   ========================================================================== */

:root {
  /* --- Ebene 1: Primitive (mit Hex-Fallback für ältere Browser) --- */
  --p-ink: #0b0c10;
  --p-ink: oklch(0.155 0.009 274);
  --p-surface: #111318;
  --p-surface: oklch(0.187 0.011 268);
  --p-raised: #1a1e26;
  --p-raised: oklch(0.235 0.017 264);
  --p-text: #f7f8f8;
  --p-text: oklch(0.978 0.001 197);
  --p-muted: #b1b9bd;
  --p-muted: oklch(0.78 0.01 230);
  --p-dim: #8b9096;
  --p-dim: oklch(0.66 0.012 240);
  --p-accent: #2f6fd6;
  --p-accent: oklch(0.58 0.155 258);
  --p-accent-hover: #4a8ae8;
  --p-accent-hover: oklch(0.65 0.15 257);
  --p-accent-ink: #99c1f1;
  --p-accent-ink: oklch(0.81 0.09 244);
  --p-accent-ink-hover: #c2d9fa;
  --p-accent-ink-hover: oklch(0.885 0.05 245);
  --p-on-accent: #ffffff;
  --p-on-accent: oklch(1 0 0);
  --p-success: #52db9c;
  --p-success: oklch(0.8 0.15 160);

  /* --- Ebene 2: Semantik --- */
  --bg: var(--p-ink);
  --surface: var(--p-surface);
  --raised: var(--p-raised);
  --text: var(--p-text);
  --text-muted: var(--p-muted);
  --text-dim: var(--p-dim);
  --accent: var(--p-accent);
  --accent-hover: var(--p-accent-hover);
  --accent-ink: var(--p-accent-ink);
  --accent-ink-hover: var(--p-accent-ink-hover);
  --on-accent: var(--p-on-accent);
  --success: var(--p-success);
  --border: oklch(1 0 0 / 0.15);
  --border-subtle: oklch(1 0 0 / 0.08);
  --hover-bg: oklch(1 0 0 / 0.05);
  --focus-ring: oklch(0.81 0.09 244 / 0.45);

  /* --- Ebene 3: Komponenten --- */
  --nav-bg: oklch(0.187 0.011 268 / 0.72);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-color: #545454 #171717;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
}

/* Individuelle Scrollbar (Webkit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #171717; }
::-webkit-scrollbar-thumb { background: #545454; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-ink); }

::selection { background: oklch(0.58 0.155 258 / 0.5); color: var(--text); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.15; text-wrap: balance; font-weight: 750; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent-ink-hover); }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--focus-ring);
  border-radius: 4px;
}

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* Grid-/Flex-Kindern das Schrumpfen erlauben (sonst Überlauf auf Mobile) */
.tour > *, .features > *, .downloads > *, .shots > *, .footer-grid > * { min-width: 0; }

.mono { font-family: var(--font-mono); }

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}
.container-narrow { max-width: 800px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  transform: translateY(-150%);
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-s);
  font-weight: 600;
  transition: transform 150ms ease-out;
}
.skip-link:focus { transform: none; color: var(--on-accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 180ms ease-out, border-color 180ms ease-out,
              color 180ms ease-out, transform 180ms ease-out;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { background: var(--hover-bg); border-color: oklch(1 0 0 / 0.35); color: var(--text); }

.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 0.875rem; }

/* ---------- Navigation (schwebende Glas-Pill) ---------- */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 16px;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgb(0 0 0 / 0.18), inset 0 1px 0 rgb(255 255 255 / 0.12);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  padding-right: 8px;
}
.nav-brand img { display: block; }
.nav-brand:hover { color: var(--text); }

.nav-links { display: none; }

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 150ms ease-out, background-color 150ms ease-out;
}
.nav-links a:hover { color: var(--text); background: var(--hover-bg); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn-ghost { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--text);
  transition: background-color 150ms ease-out;
}
.nav-toggle:hover { background: var(--hover-bg); }

/* Geöffnetes Mobil-Menü */
.nav-pill.menu-open { border-radius: var(--radius-l); }
.nav-pill.menu-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  padding: 12px;
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.4);
}
.nav-pill.menu-open .nav-links a { padding: 12px 16px; font-size: 1rem; }
.nav-pill { position: relative; }

@media (min-width: 900px) {
  .nav-links { display: flex; align-items: center; }
  .nav-actions .btn-ghost { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: 168px;
  padding-bottom: 96px;
  overflow: hidden;
  text-align: center;
}

.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(oklch(1 0 0 / 0.10) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, black 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, black 0%, transparent 72%);
  animation: dots-pulse 9s ease-in-out infinite;
}
@keyframes dots-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin-bottom: 28px;
}
.badges li {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}
.badges li:first-child { color: var(--accent-ink); border-color: oklch(0.81 0.09 244 / 0.4); }

.hero h1 {
  font-size: clamp(2.05rem, 8vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--accent-ink); }

.hero .lead {
  max-width: 68ch;
  margin-inline: auto;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-meta {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.hero-shot {
  position: relative;
  margin-top: 72px;
}
.hero-glow {
  position: absolute;
  inset: 8% 4% -6% 4%;
  background: radial-gradient(ellipse at 50% 60%, oklch(0.58 0.155 258 / 0.35), transparent 65%);
  filter: blur(48px);
  pointer-events: none;
}
.hero-shot img {
  position: relative;
  margin-inline: auto;
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.5);
}

/* ---------- Sektionen allgemein ---------- */
.section {
  padding-block: 96px;
  scroll-margin-top: 96px;
}

.section-head { max-width: 720px; margin-bottom: 56px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}

.section-head h2, .split-left h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-head .lead, .split-right p { color: var(--text-muted); }

.note { margin-top: 28px; font-size: 0.9375rem; color: var(--text-dim); }

/* ---------- Funktionen ---------- */
.features {
  list-style: none;
  display: grid;
  gap: 40px;
}
.feature svg { color: var(--accent-ink); margin-bottom: 18px; }
.feature h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature p { color: var(--text-muted); font-size: 0.9688rem; }

@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
}

/* ---------- Motivation (asymmetrischer Split) ---------- */
.split {
  display: grid;
  gap: 40px;
}
.split-right p + p { margin-top: 18px; }

.stats {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
.stats li {
  border-left: 2px solid var(--accent-ink);
  padding-left: 18px;
}
.stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stats span { color: var(--text-muted); font-size: 0.9375rem; }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1.2fr; gap: 72px; }
  .stats { grid-template-columns: repeat(3, auto); gap: 32px; }
  .stats li { border-left: none; border-top: 2px solid var(--accent-ink); padding: 14px 0 0; }
}

/* ---------- Screenshots ---------- */
.shots {
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .shots { grid-template-columns: repeat(3, 1fr); }
}

.shot-link {
  display: block;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: transform 200ms ease-out, border-color 200ms ease-out;
  cursor: zoom-in;
}
.shot-link:hover { transform: translateY(-4px); border-color: oklch(0.81 0.09 244 / 0.5); }
.shot figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- Klick-Tour ---------- */
.tour {
  display: grid;
  gap: 28px;
  align-items: start;
}
@media (min-width: 900px) {
  .tour { grid-template-columns: 1.5fr 1fr; gap: 48px; }
}

.tour-stage {
  position: relative;
  border-radius: var(--radius-m);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: opacity 180ms ease-out;
}
.tour-stage.fading { opacity: 0; }

.tour-highlight {
  position: absolute;
  border: 2px solid var(--accent-ink);
  border-radius: 10px;
  box-shadow: 0 0 0 4px oklch(0.81 0.09 244 / 0.18), 0 0 24px oklch(0.81 0.09 244 / 0.35);
  transition: left 250ms ease-out, top 250ms ease-out,
              width 250ms ease-out, height 250ms ease-out;
  animation: hl-pulse 2.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hl-pulse {
  0%, 100% { box-shadow: 0 0 0 4px oklch(0.81 0.09 244 / 0.18), 0 0 24px oklch(0.81 0.09 244 / 0.35); }
  50% { box-shadow: 0 0 0 7px oklch(0.81 0.09 244 / 0.10), 0 0 34px oklch(0.81 0.09 244 / 0.5); }
}

.tour-count {
  font-size: 0.8125rem;
  color: var(--accent-ink);
  margin-bottom: 12px;
}
.tour-panel h3 { font-size: 1.5rem; margin-bottom: 12px; letter-spacing: -0.01em; }
.tour-panel p { color: var(--text-muted); }

.tour-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
}

.tour-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.tour-dots button {
  width: 28px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.tour-dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--text-dim);
  transition: background-color 180ms ease-out, width 180ms ease-out;
}
.tour-dots button[aria-selected="true"]::before { background: var(--accent); width: 20px; }

@media (max-width: 560px) {
  .tour-controls { flex-wrap: wrap; justify-content: space-between; }
  .tour-dots { order: 3; flex-basis: 100%; margin-top: 12px; }
}

/* ---------- Installation (Tabs + Code) ---------- */
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-m);
  width: fit-content;
  max-width: 100%;
  margin-bottom: 40px;
}
.tablist [role="tab"] {
  padding: 10px 18px;
  min-height: 44px;
  border-radius: var(--radius-s);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background-color 180ms ease-out, color 180ms ease-out;
}
.tablist [role="tab"]:hover { color: var(--text); }
.tablist [role="tab"][aria-selected="true"] {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.steps { list-style: none; counter-reset: step; }
.steps > li {
  position: relative;
  padding-left: 56px;
  padding-bottom: 32px;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--accent-ink);
}
.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 44px;
  bottom: 6px;
  width: 1px;
  background: var(--border-subtle);
}
.steps p + p, .steps p + .code, .steps .code + p { margin-top: 12px; }

.code {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-m);
  overflow-x: auto;
}
.code code {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--text);
  white-space: pre;
}
.copy-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  min-height: 36px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 150ms ease-out, border-color 150ms ease-out, background-color 150ms ease-out;
}
.copy-btn:hover { color: var(--text); background: var(--hover-bg); }
.copy-btn.copied { color: var(--accent-ink); border-color: oklch(0.81 0.09 244 / 0.5); }

@media (max-width: 560px) {
  .code { flex-direction: column; align-items: flex-start; }
  .code code { white-space: pre; overflow-x: auto; max-width: 100%; }
}

/* ---------- Download-Karten ---------- */
.downloads {
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .downloads { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
}
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l);
  transition: border-color 200ms ease-out, transform 200ms ease-out;
}
.dl-card:hover { border-color: var(--border); transform: translateY(-3px); }
.dl-card h3 { font-size: 1.25rem; }
.dl-card p { color: var(--text-muted); font-size: 0.9688rem; }
.dl-card .meta {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-top: auto;
}
.dl-card .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- Changelog ---------- */
.changelog { list-style: none; }
.release { padding-bottom: 40px; border-bottom: 1px solid var(--border-subtle); }
.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.version-tag {
  font-size: 0.8125rem;
  color: var(--accent-ink);
  border: 1px solid oklch(0.81 0.09 244 / 0.4);
  border-radius: 999px;
  padding: 4px 12px;
}
.release-head time { color: var(--text-dim); font-size: 0.9375rem; }
.release h3 { font-size: 1.25rem; margin-bottom: 14px; }
.release-list { list-style: none; }
.release-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-muted);
}
.release-list li + li { margin-top: 8px; }
.release-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.7;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand p { margin-top: 16px; color: var(--text-muted); font-size: 0.9375rem; }
.footer-col h4 {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color 150ms ease-out;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: oklch(0 0 0 / 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: lb-fade 180ms ease-out;
}
.lightbox[hidden] { display: none; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure {
  max-width: min(1100px, 100%);
  animation: lb-pop 180ms ease-out;
}
@keyframes lb-pop { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox img {
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgb(0 0 0 / 0.6);
  max-height: 80vh;
}
.lightbox figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background-color 150ms ease-out;
}
.lightbox-close:hover { background: var(--raised); }

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.legal { padding-top: 160px; padding-bottom: 96px; }
.legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 12px;
}
.legal p, .legal li { color: var(--text-muted); max-width: 70ch; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin-top: 8px; }
.legal address { font-style: normal; color: var(--text-muted); line-height: 1.8; }
.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9375rem;
}
.todo {
  background: oklch(0.81 0.09 244 / 0.14);
  border-bottom: 1px dashed var(--accent-ink);
  border-radius: 4px;
  padding: 0 5px;
  color: var(--text);
}
.todo-note {
  margin-top: 48px;
  padding: 16px 20px;
  border: 1px dashed oklch(0.81 0.09 244 / 0.5);
  border-radius: var(--radius-m);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ---------- Scroll-Reveal (nur mit JS aktiv, Inhalt nie versteckt) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Changelog: Beta-Vorgeschichte (aufklappbar) ---------- */
.beta {
  margin-top: 36px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-m);
  padding: 4px 22px;
}
.beta summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 0.9688rem;
  transition: color 150ms ease-out;
}
.beta summary:hover { color: var(--accent-ink); }
.beta ul { list-style: none; padding-bottom: 18px; }
.beta li {
  display: flex;
  gap: 16px;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.beta li .mono {
  color: var(--accent-ink);
  font-size: 0.8125rem;
  flex-shrink: 0;
  min-width: 3.2em;
  padding-top: 2px;
}

/* ---------- Ablauf (drei Schritte) ---------- */
.flow { list-style: none; display: grid; gap: 36px; }
.flow li { border-top: 2px solid var(--border-subtle); padding-top: 22px; }
.flow-num {
  display: block;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--accent-ink);
  margin-bottom: 12px;
}
.flow h3 { font-size: 1.125rem; margin-bottom: 10px; }
.flow p { color: var(--text-muted); font-size: 0.9688rem; }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* ---------- Grenzen (Was Crosswalk nicht ist) ---------- */
.limits { list-style: none; display: grid; gap: 16px; }
.limits li {
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-m);
  color: var(--text-muted);
}
.limits strong { color: var(--text); }
@media (min-width: 800px) {
  .limits { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ---------- Installation (Checkliste + Schritte) ---------- */
.install-grid { display: grid; gap: 48px; }
@media (min-width: 900px) {
  .install-grid { grid-template-columns: 1fr 1.3fr; gap: 72px; }
}
.install-sub { font-size: 1.0625rem; margin-bottom: 18px; }
.checklist { list-style: none; }
.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--text-muted);
}
.checklist li + li { margin-top: 14px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: rotate(-45deg);
}
.checklist strong { color: var(--text); }
.steps code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2px 7px;
}

/* ---------- Roadmap (Geplant) ---------- */
.roadmap { margin-top: 44px; }
.roadmap h3 { font-size: 1.0625rem; margin-bottom: 12px; }
.roadmap ul { list-style: none; }
.roadmap li {
  display: flex;
  gap: 16px;
  padding: 7px 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.roadmap li .mono {
  color: var(--accent-ink);
  font-size: 0.8125rem;
  flex-shrink: 0;
  min-width: 3.6em;
  padding-top: 2px;
}
.roadmap strong { color: var(--text); font-weight: 600; }

/* ---------- Sprachschalter (DE/EN) ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding: 3px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
}
.lang-switch a,
.lang-switch .lang-active {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.lang-switch a:hover { color: var(--text); background: var(--hover-bg); }
.lang-switch .lang-active { background: var(--accent); color: var(--on-accent); }

/* Im geöffneten Mobil-Menü */
.nav-pill.menu-open .nav-links .lang-switch {
  align-self: flex-start;
  margin: 10px 0 4px 16px;
}
.nav-pill.menu-open .nav-links .lang-switch a,
.nav-pill.menu-open .nav-links .lang-switch .lang-active {
  padding: 8px 14px;
  font-size: 0.9375rem;
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* v7: zweite Liste „Bekannte Grenzen“ unter „Was Crosswalk nicht ist“ */
.limits + .limits-head { margin-top: 64px; }
.limits + .note { margin-top: 20px; }
.code code { background: none; border: 0; padding: 0; }
