/* Toolbox-Website. Flach, Haarlinien, ein Akzent (Indigo) – wie die App.
   Farben stammen aus crates/gui/src/theme.rs. */

/* ---------- Farben ---------- */

:root {
  color-scheme: light;
  --bg: #f3f4f7;
  --bg-2: #e9ebf0;
  --panel: #ffffff;
  --well: #eff1f5;
  --line: #d9dce4;
  --line-strong: #c3c8d3;
  --text: #1c1e26;
  --muted: #5a6272;
  --accent: #5a55e0;
  --accent-hover: #4a45cf;
  --accent-text: #4a45d1;
  --accent-soft: #dde0fb;
  --on-accent: #ffffff;
  --dot: #cfd3dd;
  --ok: #1f8a5c;
  --warn: #8a5d08;
  --danger: #c0343f;
  --shadow: rgba(28, 30, 38, 0.28);
  --ring: rgba(28, 30, 38, 0.1);

  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101116;
  --bg-2: #15161b;
  --panel: #1c1e25;
  --well: #121318;
  --line: #2a2d38;
  --line-strong: #3b4050;
  --text: #e9eaee;
  --muted: #9aa1b0;
  --accent: #5a55e0;
  --accent-hover: #6a66ea;
  --accent-text: #a5acff;
  --accent-soft: #2b2e55;
  --dot: #30343f;
  --ok: #46c08a;
  --warn: #e6b450;
  --danger: #f06c75;
  --shadow: rgba(0, 0, 0, 0.6);
  --ring: rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #101116;
    --bg-2: #15161b;
    --panel: #1c1e25;
    --well: #121318;
    --line: #2a2d38;
    --line-strong: #3b4050;
    --text: #e9eaee;
    --muted: #9aa1b0;
    --accent: #5a55e0;
    --accent-hover: #6a66ea;
    --accent-text: #a5acff;
    --accent-soft: #2b2e55;
    --dot: #30343f;
    --ok: #46c08a;
    --warn: #e6b450;
    --danger: #f06c75;
    --shadow: rgba(0, 0, 0, 0.6);
    --ring: rgba(255, 255, 255, 0.08);
  }
  :root:not([data-theme]) .only-light { display: none; }
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .only-dark { display: none; }
}

:root[data-theme="light"] .only-dark,
:root[data-theme="dark"] .only-light { display: none; }

/* ---------- Grundlagen ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.06;
  text-wrap: balance;
}

a { color: var(--accent-text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

::selection { background: var(--accent); color: #fff; }

code, kbd, .mono { font-family: var(--mono); font-size: 0.9em; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; outline-color: var(--text); }

.wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ic {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic .f { fill: currentColor; stroke: none; }

/* ---------- Kopf ---------- */

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

.top__in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  color: var(--text);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { display: block; width: 30px; height: 30px; }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-2); }

.toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.toggle:hover { background: var(--bg-2); border-color: var(--line-strong); }
.toggle .ic { width: 18px; height: 18px; }
html:not(.js) .toggle { display: none; }

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }

.btn--xl {
  gap: 16px;
  padding: 15px 26px 15px 20px;
  border-radius: 10px;
  font-size: 1.12rem;
  text-align: left;
}
.btn--xl .ic { width: 24px; height: 24px; }
.btn__two { display: grid; gap: 3px; }
.btn__two small { font-size: 0.8rem; font-weight: 400; opacity: 0.88; }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { background: var(--bg-2); }
.btn--ghost.is-done { border-color: var(--ok); color: var(--ok); }

.btn--light { background: #fff; color: #2f2a9e; }
.btn--light:hover { background: #ecebff; }

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
}
.more .ic { transition: transform 0.2s var(--ease); }
.more:hover .ic { transform: translateX(4px); }

/* ---------- Kleinteile ---------- */

.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.9em;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker b { font-weight: 400; color: var(--accent-text); }

.lede { color: var(--muted); font-size: 1.14rem; line-height: 1.55; max-width: 34em; text-wrap: pretty; }

.win {
  display: block;
  border-radius: 9px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--ring), 0 26px 50px -22px var(--shadow), 0 60px 90px -50px var(--shadow);
}
.win img { display: block; width: 100%; height: auto; }

.plate {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: var(--bg-2);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  background-size: 18px 18px;
  background-position: 8px 8px;
}

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

.hero { padding-top: clamp(40px, 7vw, 96px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px clamp(28px, 5vw, 72px);
  align-items: end;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.25rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}
.hero h1 span { display: block; }
.hero h1 .dim { color: var(--accent-text); }

.hero__side { display: grid; gap: 28px; padding-bottom: 6px; }

.dl { display: grid; gap: 14px; justify-items: start; }

.dl__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.dl__meta > * + *::before { content: "·"; margin-inline: 0.7em; color: var(--line-strong); }

.variants {
  width: 100%;
  max-width: 420px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.variants li { border-bottom: 1px solid var(--line); }
.variants a {
  display: grid;
  grid-template-columns: 5.2em minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 10px 2px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s, padding 0.2s var(--ease);
}
.variants a:hover { color: var(--accent-text); padding-left: 8px; }
.variants b { font-family: var(--mono); font-size: 0.86rem; font-weight: 400; }
.variants span { color: var(--muted); }
.variants .variants__size { font-family: var(--mono); font-size: 0.8rem; white-space: nowrap; }
.variants mark {
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.74rem;
  white-space: nowrap;
}

.stage {
  position: relative;
  margin-top: clamp(40px, 6vw, 84px);
  padding-bottom: clamp(44px, 7vw, 100px);
}
.stage__slab {
  position: absolute;
  inset: clamp(34px, 8vw, 110px) 0 0 clamp(28px, 11vw, 150px);
  border-radius: 14px;
  background: var(--accent);
}
.stage__main { position: relative; width: min(1080px, 84%); }
.stage__side {
  position: absolute;
  right: clamp(10px, 3vw, 40px);
  bottom: clamp(14px, 3vw, 44px);
  width: min(46%, 520px);
}
.stage__cap {
  position: absolute;
  left: clamp(28px, 11vw, 150px);
  bottom: 0;
  width: 36%;
  padding: 0 0 clamp(14px, 2.2vw, 30px) clamp(14px, 2.2vw, 30px);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.5;
}

@media (prefers-reduced-motion: no-preference) {
  .hero .rise { animation: rise 0.8s var(--ease) both; }
  .hero .rise--2 { animation-delay: 0.08s; }
  .hero .rise--3 { animation-delay: 0.16s; }
  .hero .rise--4 { animation-delay: 0.26s; }
  .hero .rise--5 { animation-delay: 0.4s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Abschnitte ---------- */

.section { padding-block: clamp(52px, 7.5vw, 100px); }

.rule {
  position: relative;
  height: 1px;
  background: var(--line);
}
.rule::before, .rule::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--line-strong);
}
.rule::before { left: 0; }
.rule::after { right: 0; }

.head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(36px, 6vw, 72px);
}
.head--tight { margin-bottom: 0; }
.rule + .head, .rule + .two { padding-top: 22px; }
.head h2 { margin-top: 16px; font-size: clamp(2rem, 5.2vw, 3.6rem); }

/* Kapitel der Funktionsschau */

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: 36px clamp(28px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(44px, 6.5vw, 92px);
}
.chapter--flip { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.chapter--flip .chapter__text { order: 2; }
.chapter--stack { grid-template-columns: minmax(0, 1fr); }

.chapter__text { display: grid; gap: 20px; align-content: start; }
.chapter__text h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.chapter__text p { color: var(--muted); max-width: 34em; text-wrap: pretty; }
.chapter__text p strong { color: var(--text); font-weight: 600; }

.chapter__intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: 20px clamp(28px, 5vw, 80px);
  align-items: end;
}
.chapter__intro .chapter__text { gap: 16px; }

.spec { border-top: 1px solid var(--line); font-size: 0.92rem; }
.spec > div {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.25em;
}
.spec dd { color: var(--text); }

.fine {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}
.fine .ic { margin-top: 0.28em; color: var(--accent-text); }

/* Bildflächen */

.shots { position: relative; padding: clamp(16px, 3vw, 40px); }
.shots--pair { padding-bottom: clamp(56px, 9vw, 120px); }
.shots--pair .win--a { width: 90%; }
.shots--pair .win--b {
  position: absolute;
  right: clamp(-28px, -2vw, -10px);
  bottom: clamp(-26px, -2vw, -10px);
  width: 56%;
}
.chapter--flip .shots--pair .win--a { margin-left: auto; }
.chapter--flip .shots--pair .win--b { right: auto; left: clamp(-28px, -2vw, -10px); }

.shots--bleed { padding: clamp(16px, 3vw, 40px) 0 0 clamp(16px, 3vw, 40px); overflow: hidden; }
.shots--bleed .win { border-radius: 9px 0 0 0; width: 116%; max-width: none; }
.chapter--flip .shots--bleed { padding: clamp(16px, 3vw, 40px) clamp(16px, 3vw, 40px) 0 0; }
.chapter--flip .shots--bleed .win { border-radius: 0 9px 0 0; margin-left: -16%; }

/* Reiter */

.seg {
  display: inline-flex;
  justify-self: start;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.seg button {
  padding: 8px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.94rem;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { background: var(--accent-soft); color: var(--text); font-weight: 600; }

.tabs { display: grid; gap: 22px; }
.tabs:not(.is-ready) .seg { display: none; }
.tabs__panel { display: grid; gap: 18px; }
.tabs:not(.is-ready) .tabs__panel + .tabs__panel { margin-top: 28px; }
.tabs__desc { color: var(--muted); max-width: 44em; }
.tabs__desc strong { color: var(--text); font-weight: 600; }
.tabs .shots { padding: clamp(14px, 3vw, 44px) clamp(14px, 6vw, 88px) 0; overflow: hidden; }
.tabs .shots .win { border-radius: 9px 9px 0 0; max-width: 1080px; margin-inline: auto; }

/* Menüs (gezeichnet, keine Bildschirmfotos) */

.menus {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(18px, 2vw, 26px);
  padding: clamp(20px, 2.4vw, 30px);
  align-items: center;
}
.menus figure { display: grid; gap: 14px; justify-items: start; }
.menus figcaption {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu {
  width: 100%;
  max-width: 320px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--panel);
  box-shadow: 0 22px 40px -22px var(--shadow);
  font-size: 0.9rem;
  line-height: 1.3;
}
.menu li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--text);
}
.menu li.is-hot { background: var(--accent-soft); }
.menu li.is-first { font-weight: 600; }
.menu li.is-sep { height: 1px; margin: 5px 8px; padding: 0; background: var(--line); border-radius: 0; }
.menu li.is-dim { color: var(--muted); }
.menu .ic { width: 16px; height: 16px; color: var(--muted); }
.menu li.is-hot .ic { color: var(--accent-text); }
.menu img { width: 18px; height: 18px; margin: -1px; }
.menu .menu__arrow { margin-left: auto; }

.ctx { position: relative; width: 100%; padding: 0 0 116px; }
.ctx .menu { max-width: 196px; font-size: 0.84rem; }
.ctx .menu--sub {
  position: absolute;
  left: 186px;
  top: 70px;
  width: max-content;
  max-width: none;
  white-space: nowrap;
}

/* Vergleich Hell/Dunkel */

.compare {
  --pos: 50%;
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--ring), 0 26px 50px -22px var(--shadow);
}
.compare img { display: block; width: 100%; height: auto; }
.compare__top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  pointer-events: none;
}
.compare__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.compare__knob .ic { width: 18px; height: 18px; }
.compare input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare:focus-within { outline: 2px solid var(--accent-text); outline-offset: 4px; }
.compare__tag {
  position: absolute;
  bottom: 12px;
  padding: 3px 10px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 0.72rem;
  pointer-events: none;
}
.compare__tag--l { left: 12px; background: #23252e; color: #e9eaee; }
.compare__tag--r { right: 12px; background: #ffffff; color: #1c1e26; box-shadow: 0 0 0 1px #dadde5; }
html:not(.js) .compare__line, html:not(.js) .compare input { display: none; }

/* ---------- Warum ---------- */

.facts { border-top: 1px solid var(--line); counter-reset: fact; }
.facts > div {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 5fr) minmax(0, 7fr);
  gap: 8px clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(18px, 2.4vw, 28px) 0;
  border-bottom: 1px solid var(--line);
  counter-increment: fact;
  transition: background-color 0.2s;
}
.facts > div::before {
  content: counter(fact, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent-text);
}
.facts dt {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.facts dd { color: var(--muted); max-width: 36em; text-wrap: pretty; }

/* ---------- Sicherheit ---------- */

.safe {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(28px, 5vw, 80px);
  align-items: start;
}
.safe__points { display: grid; gap: 28px; }
.point { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 14px; }
.point .ic { grid-row: span 2; width: 22px; height: 22px; margin-top: 3px; color: var(--accent-text); }
.point h3 { font-family: var(--font); font-size: 1.06rem; letter-spacing: 0; line-height: 1.35; }
.point p { color: var(--muted); font-size: 0.98rem; }

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 18px clamp(18px, 2.4vw, 26px);
  border-bottom: 1px solid var(--line);
}
.card__head h3 { font-family: var(--font); font-size: 1.06rem; letter-spacing: 0; }
.card__head p { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.card__body { padding: clamp(18px, 2.4vw, 26px); display: grid; gap: 18px; }

.hash { display: grid; gap: 8px; }
.hash__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.hash__arch {
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.76rem;
}
.hash__name { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere; }
.hash__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.hash__value {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--well);
  font-size: 0.8rem;
  line-height: 1.5;
  word-break: break-all;
  user-select: all;
}
.hash .btn { padding-inline: 14px; }

.cmd {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--well);
  border: 1px dashed var(--line-strong);
  font-family: var(--mono);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.cmd b { font-weight: 400; color: var(--text); }
.card__note { font-size: 0.92rem; color: var(--muted); }

.notice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px 14px;
  margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}
.notice > .ic { width: 24px; height: 24px; margin-top: 2px; color: var(--accent-text); }
.notice h3 { font-family: var(--font); font-size: 1.1rem; letter-spacing: 0; line-height: 1.35; }
.notice p { grid-column: 2; color: var(--muted); max-width: 52em; }
.steps { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.steps li { display: inline-flex; align-items: center; gap: 10px; }
.steps span {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--panel);
  font-size: 0.92rem;
  font-weight: 600;
}
.steps .ic { color: var(--muted); }

/* ---------- Versionshinweise ---------- */

.release {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 16px clamp(24px, 5vw, 72px);
  padding: clamp(24px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}
.release:last-child { border-bottom: 1px solid var(--line); }
.release__head { display: grid; gap: 6px; align-content: start; }
.release__title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.release__link { color: var(--text); text-decoration: none; }
.release__link:hover { color: var(--accent-text); }
.release__date { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.release__body { display: grid; gap: 20px; }
.release__empty { color: var(--muted); }
.release.is-target .release__link { color: var(--accent-text); }

.notes { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 8px 16px; align-items: start; }
.notes__list { display: grid; gap: 8px; }
.notes__list li { position: relative; padding-left: 18px; overflow-wrap: anywhere; }
.notes__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 1px;
  background: var(--line-strong);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  margin-top: 0.22em;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--muted); }
.tag--added::before { background: var(--ok); }
.tag--changed::before { background: var(--accent-text); }
.tag--fixed::before { background: var(--warn); }
.tag--security::before { background: var(--danger); }

.status { padding: 22px 0; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 2px;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.faq summary .ic { width: 18px; height: 18px; color: var(--muted); transition: transform 0.25s var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); color: var(--accent-text); }
.faq__a { padding: 0 2px 24px; color: var(--muted); max-width: 46em; display: grid; gap: 12px; }
.faq__a strong { color: var(--text); font-weight: 600; }

.two {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 28px clamp(28px, 5vw, 72px);
  align-items: start;
}
.two > .head { display: block; margin: 0; position: sticky; top: 100px; }
.two > .head .lede { margin-top: 18px; }

/* ---------- Schlussband ---------- */

.band { background: var(--accent); color: #fff; overflow: hidden; }
.band__in {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(52px, 8vw, 104px);
}
.band h2 { font-size: clamp(2rem, 5.4vw, 3.8rem); }
.band p { margin-top: 18px; max-width: 30em; color: #eeedff; }
.band .btn { margin-top: 30px; }
.band .kicker, .band .kicker b { color: #e3e2ff; }
.band .win { max-width: 480px; margin-left: auto; box-shadow: 0 30px 60px -24px rgba(12, 10, 60, 0.7); }
.band :focus-visible { outline-color: #fff; }

/* ---------- Fuß ---------- */

.foot { border-top: 1px solid var(--line); padding-block: 36px 44px; font-size: 0.92rem; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot .brand { font-size: 1rem; }
.foot .brand img { width: 24px; height: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover, .foot nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }
.foot__legal { width: 100%; font-size: 0.84rem; }

/* ---------- Textseiten ---------- */

.page { padding-block: clamp(44px, 8vw, 104px) clamp(64px, 10vw, 128px); }
.page__head { margin-bottom: clamp(32px, 5vw, 64px); }
.page__head h1 { margin-top: 18px; font-size: clamp(2.3rem, 7vw, 4.6rem); letter-spacing: -0.035em; }
.page__head .lede { margin-top: 20px; }

.legal { border-top: 1px solid var(--line); }
.legal > section {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 10px clamp(24px, 5vw, 72px);
  padding: clamp(22px, 3.4vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}
.legal h2 {
  font-family: var(--font);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-wrap: pretty;
}
.legal .body { display: grid; gap: 12px; max-width: 44em; }
.legal address { font-style: normal; }
.legal ul { display: grid; gap: 8px; }
.legal ul li { position: relative; padding-left: 18px; }
.legal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 1px;
  background: var(--line-strong);
}
.legal .small { font-size: 0.92rem; color: var(--muted); }
.todo {
  padding: 1px 6px;
  border: 1px dashed var(--warn);
  border-radius: 5px;
  color: var(--warn);
  font-family: var(--mono);
  font-size: 0.86em;
}

.lost { min-height: 62vh; display: grid; align-content: center; gap: 22px; padding-block: 64px; }
.lost h1 { font-size: clamp(2.6rem, 10vw, 6rem); letter-spacing: -0.04em; }
.lost .code { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--accent-text); text-transform: uppercase; }
.lost__links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Einblenden ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal--late { transition-delay: 0.12s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Schmaler ---------- */

main, .foot { overflow-x: clip; }

@media (max-width: 1000px) {
  .nav { display: none; }
}

@media (max-width: 900px) {
  .hero__grid, .head, .chapter, .chapter__intro, .safe, .two, .band__in { grid-template-columns: minmax(0, 1fr); }
  .chapter--flip .chapter__text { order: 0; }
  .two > .head { position: static; }
  .band .win { margin-left: 0; }
  .facts > div { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .facts dd { grid-column: 2; }
  .release, .legal > section { grid-template-columns: minmax(0, 1fr); }
  .stage__cap { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .top__in { gap: 10px; min-height: 58px; }
  .top .btn { padding: 9px 12px; }
  .stage__main { width: 94%; }
  .stage__side { width: 62%; right: 0; }
  .shots--pair .win--a { width: 100%; }
  .shots--pair .win--b { right: 8px; bottom: 10px; width: 64%; }
  .chapter--flip .shots--pair .win--b { left: 8px; }
  .menus { grid-template-columns: minmax(0, 1fr); }
  .ctx { padding-bottom: 0; }
  .seg { display: grid; grid-template-columns: 1fr 1fr; justify-self: stretch; }
  .seg button { justify-content: center; text-align: center; }
  .ctx .menu--sub { position: static; margin: 8px 0 0 28px; width: auto; max-width: 220px; white-space: normal; }
  .spec > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .notes { grid-template-columns: minmax(0, 1fr); }
  .hash__row { grid-template-columns: minmax(0, 1fr); }
  .hash .btn { justify-self: start; }
  .notice { grid-template-columns: minmax(0, 1fr); }
  .notice p, .steps { grid-column: 1; }
  .variants a { grid-template-columns: 4.6em minmax(0, 1fr) auto; }
  .btn--xl { width: 100%; justify-content: flex-start; }
}

@media (max-width: 400px) {
  .top .btn span.wide { display: none; }
}

@media print {
  .top, .band, .toggle, .stage, .plate { display: none; }
  body { background: #fff; color: #000; }
}
