/* ============================================================
   Kinetx — Website
   Markentreu zur App (Design/project/app/styles.css): warmes Fast-Schwarz, ein Akzent (Elektro-Lime),
   SF-Systemschrift, Mono nur für kleine technische Labels. Keine externen Schriften/Skripte —
   alles lokal bzw. Systemschriften (keine Cookies, nichts von Dritten).
   Abstände im 4-px-Raster (4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96 · 128).
   ============================================================ */

:root {
  color-scheme: dark;

  /* Flächen — aus der App */
  --bg: #0c0d0a;
  --s1: #161611;
  --s2: #1e1f19;
  --s3: #26271f;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --tx: #f3f4ec;
  --tx2: #b6b8aa;
  --tx3: #7c7e70;

  /* Akzent — Elektro-Lime, sparsam (≈10 %) */
  --acc: #c9ff36;
  --acc-soft: rgba(201, 255, 54, 0.14);
  --acc-line: rgba(201, 255, 54, 0.3);
  --acc-ink: #13200a;
  --gold: #f2c14e;
  --down: #ff7a6b;

  --r-xl: 26px;
  --r-l: 20px;
  --r-m: 15px;
  --r-s: 11px;

  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--bg);
  /* Lichtkegel von oben wie im Pausen-Screen + feines Korn (lokal, SVG-Rauschen) */
  background-image:
    radial-gradient(120% 60% at 50% -10%, #171a10 0%, rgba(12, 13, 10, 0) 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .035 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-repeat: no-repeat, repeat;
  color: var(--tx);
  font-family: var(--sf);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--acc); color: var(--acc-ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }

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

/* ---------- Typo ---------- */

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx3);
}
.label .on { color: var(--acc); }

h1, h2, h3 { margin: 0; font-weight: 700; color: var(--tx); }
.display {
  font-size: clamp(56px, 10.5vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.display em { font-style: normal; color: var(--acc); }
.h2 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.018em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--tx2); max-width: 34em; }
.muted { color: var(--tx3); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- Header + Insel-Pille ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.solid {
  background: rgba(12, 13, 10, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { justify-self: end; display: flex; gap: 24px; font-size: 15px; }
.nav a { color: var(--tx2); text-decoration: none; transition: color 0.15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--tx); }
@media (max-width: 640px) {
  .brand span { display: none; }
  .nav { gap: 16px; font-size: 14px; }
  .nav .opt { display: none; }
}

/* Die Pille aus dem Trainings-Screen der App: Zeit · Live-Punkt · erledigte Sätze. */
.island {
  justify-self: center;
  display: inline-flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 14px 0 12px;
  border-radius: 999px;
  background: #000;
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(201, 255, 54, 0);
  color: var(--tx);
  font: 600 14px/1 var(--sf);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.4s var(--ease);
}
.island:hover { transform: scale(1.03); }
.island.bump { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(201, 255, 54, 0.12); }
.island svg { width: 15px; height: 15px; }
.island .bolt { color: var(--acc); }
.island .flame { color: var(--gold); }
.island .sep { width: 1px; height: 14px; background: var(--line-strong); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: 0.35; } }

/* Übersicht hinter der Pille (wie „Trainingsübersicht" in der App) */
.overview {
  position: fixed; z-index: 60; top: calc(var(--header-h) + 4px); left: 50%;
  width: min(360px, calc(100vw - 32px));
  transform: translate(-50%, -8px) scale(0.98); opacity: 0; pointer-events: none;
  padding: 16px; border-radius: var(--r-l);
  background: rgba(22, 22, 17, 0.92);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease);
}
.overview.open { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
.overview h2 { font-size: 15px; letter-spacing: -0.01em; margin-bottom: 4px; }
.overview p { margin: 0 0 12px; font-size: 13px; color: var(--tx3); }
.overview ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.overview a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-s);
  text-decoration: none; font-size: 15px; color: var(--tx2);
}
.overview a:hover { background: var(--s2); color: var(--tx); }
.overview .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong); flex: none; }
.overview .dot svg { width: 13px; height: 13px; opacity: 0; }
.overview .done .dot { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.overview .done .dot svg { opacity: 1; }
.overview .now .dot { border-color: var(--acc); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 10px var(--acc); }
.overview .done a, .overview .now a { color: var(--tx); }
.overview small { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--tx3); letter-spacing: 0.08em; }

/* ---------- Story-Layout: Inhalt links, Muskelfigur rechts (klebt) ---------- */

.story { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1040px) {
  .story { grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 360px); gap: 48px; }
}

.figure-col { display: none; }
@media (min-width: 1040px) {
  .figure-col { display: block; }
  .figure-sticky { position: sticky; top: calc(var(--header-h) + 32px); padding-top: 24px; }
}

/* Muskelfigur — Grundton wie in der App, Wärme = mehr Sätze (Akzentfarbe). */
.figure-slot { position: relative; }
.figure-slot svg { width: 100%; height: auto; overflow: visible; }
.figure-svg .outline { fill: #121310; stroke: rgba(255, 255, 255, 0.16); stroke-width: 3; }
.figure-svg .part { fill: #1b1c16; }
.figure-svg .m {
  fill: #2b2c24; stroke: #0c0d0a; stroke-width: 1.5;
  cursor: pointer;
  transition: fill 0.7s var(--ease), filter 0.7s var(--ease);
}
.figure-svg .m:hover { fill: #3a3c30; }
.figure-svg .m[data-h="1"] { fill: rgba(201, 255, 54, 0.3); }
.figure-svg .m[data-h="2"] { fill: rgba(201, 255, 54, 0.52); }
.figure-svg .m[data-h="3"] { fill: rgba(201, 255, 54, 0.76); }
.figure-svg .m[data-h="4"] { fill: var(--acc); filter: drop-shadow(0 0 12px rgba(201, 255, 54, 0.55)); }
.figure-svg .m.hit { animation: hit 0.5s var(--ease); transform-box: fill-box; transform-origin: center; }
@keyframes hit { 30% { transform: scale(1.06); } }
.figure-svg.hint .m { animation: hint 2.4s var(--ease) both; }
@keyframes hint { 40% { fill: rgba(201, 255, 54, 0.22); } }

.figure-meta { margin-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.figure-meta .count { font-size: 15px; color: var(--tx2); }
.figure-meta .count b { color: var(--tx); font-weight: 600; }
.figure-tip {
  position: absolute; z-index: 5; pointer-events: none;
  padding: 6px 10px; border-radius: 10px; white-space: nowrap;
  background: #000; border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 600; color: var(--tx);
  transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity 0.15s;
}
.figure-tip.show { opacity: 1; }
.figure-tip span { color: var(--acc); font-weight: 500; margin-left: 6px; font-variant-numeric: tabular-nums; }

/* Mini-Figur fürs Handy (schwebt unten rechts, solange der Hero weg ist) */
.figure-float {
  position: fixed; z-index: 40; right: 12px; bottom: 12px;
  width: 112px; padding: 10px 10px 8px; border-radius: var(--r-m);
  background: rgba(22, 22, 17, 0.82);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  transform: translateY(16px); opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.figure-float.show { opacity: 1; transform: none; }
.figure-float .label { font-size: 9px; letter-spacing: 0.12em; margin-top: 4px; text-align: center; }
.figure-float .figure-svg .m { cursor: default; }
@media (min-width: 1040px) { .figure-float { display: none; } }

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

.hero { min-height: min(100svh, 980px); display: grid; align-content: center; padding: calc(var(--header-h) + 48px) 0 64px; }
.hero .label { margin-bottom: 24px; }
.hero .display { margin-bottom: 32px; }
.hero .lead { margin: 0 0 32px; }
.hero-figure { margin: 8px auto 40px; width: min(100%, 420px); }
@media (min-width: 1040px) { .hero-figure { display: none; } }

.word { display: inline-block; }
.reveal-word { display: inline-block; opacity: 0; transform: translateY(0.35em); animation: rise 0.9s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px 0 20px; border-radius: 999px;
  background: var(--acc); color: var(--acc-ink);
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  box-shadow: 0 10px 40px rgba(201, 255, 54, 0.22);
}
.soon svg { width: 18px; height: 18px; }
.text-link { color: var(--tx2); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: color 0.15s, gap 0.2s var(--ease); }
.text-link:hover { color: var(--tx); gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-strong); color: var(--tx2); font-size: 14px;
}
.chip svg { width: 14px; height: 14px; color: var(--acc); }

/* ---------- Sätze (Abschnitte) ---------- */

.set { padding: clamp(64px, 12vh, 128px) 0; border-top: 1px solid var(--line); }
.set-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 760px) { .set-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; } }
.set .label { margin-bottom: 20px; display: flex; gap: 12px; align-items: center; }
.set .label .bar { display: inline-flex; gap: 3px; }
.set .label .bar i { width: 14px; height: 4px; border-radius: 2px; background: var(--s3); }
.set .label .bar i.on { background: var(--acc); }
.set .h2 { margin-bottom: 24px; }
.set p { color: var(--tx2); margin: 0 0 24px; max-width: 30em; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--tx2); font-size: 16px; }
.facts svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--acc); }

/* iPhone-Rahmen um die echten App-Aufnahmen */
.phone {
  position: relative; width: clamp(200px, 17vw, 250px); margin-inline: auto; flex: none;
  aspect-ratio: 506 / 1100; border-radius: 46px; padding: 9px;
  background: linear-gradient(160deg, #34352d, #1a1b15 40%, #23241e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 0 120px -30px rgba(201, 255, 54, 0.18);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.phone::after { /* Dynamic Island */
  content: ""; position: absolute; top: 19px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 22px; border-radius: 999px; background: #000;
}
.phone.tilt { transform: rotate(-2deg); }
.phones { display: flex; justify-content: center; position: relative; isolation: isolate; }
.phones .phone.tilt { margin-inline: 0; }
.phones .phone + .phone { margin: 64px 0 0 -72px; transform: rotate(3deg); z-index: -1; }
@media (min-width: 760px) and (max-width: 1039px) { .phones .phone + .phone { display: none; } }
@media (max-width: 759px) { .phones .phone + .phone { display: none; } }

/* Apple Watch mit echtem Pausen-Timer (Rahmen am Displayrand, wie in der Watch-App) */
.watch-demo { display: grid; justify-items: center; gap: 16px; }
.watch {
  position: relative; width: 236px; aspect-ratio: 236 / 284; border-radius: 64px; padding: 14px;
  background: linear-gradient(160deg, #3a3b33, #15160f 55%, #2a2b24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -20px rgba(0, 0, 0, 0.75);
}
.watch::before { /* Krone */
  content: ""; position: absolute; right: -9px; top: 30%; width: 12px; height: 46px; border-radius: 6px;
  background: linear-gradient(90deg, #2a2b24, #4a4b42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.watch::after { content: ""; position: absolute; right: -5px; top: 56%; width: 6px; height: 54px; border-radius: 3px; background: #2a2b24; }
.watch-screen {
  position: relative; width: 100%; height: 100%; border-radius: 50px; background: #000; overflow: hidden;
  display: grid; place-items: center; border: 0; padding: 0; color: var(--tx); font: inherit; cursor: pointer;
}
.watch-screen svg.edge { position: absolute; inset: 0; width: 100%; height: 100%; }
.watch-screen .edge rect { fill: none; stroke-width: 7; }
.watch-screen .edge .track { stroke: #1d1e18; }
.watch-screen .edge .prog { stroke: var(--acc); stroke-linecap: round; transition: stroke-dashoffset 0.25s linear, stroke 0.3s; }
.watch-screen.over .edge .prog { stroke: var(--gold); }
.watch-ui { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; }
.watch-ui .bars { display: flex; gap: 4px; margin-bottom: 6px; }
.watch-ui .bars i { width: 16px; height: 4px; border-radius: 2px; background: #2a2b24; }
.watch-ui .bars i.on { background: var(--acc); }
.watch-ui .state { font: 600 11px var(--mono); letter-spacing: 0.16em; color: var(--tx3); }
.watch-ui .time { font: 600 52px/1 var(--sf); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.watch-ui .next { font-size: 13px; color: var(--tx2); }
.watch-screen.done .time { color: var(--acc); }
.watch-screen.buzz { animation: buzz 0.18s linear 3 alternate; }
@keyframes buzz { from { transform: translateX(-2px); } to { transform: translateX(2px); } }
.watch-hint { font-size: 14px; color: var(--tx3); }

/* Datenfluss: wohin deine Daten gehen (und wohin nicht) */
.flow-map {
  display: grid; grid-template-columns: 1fr 72px 1fr 72px 1fr; grid-template-rows: auto 56px auto 56px auto;
  align-items: center; justify-items: center; max-width: 560px; margin-inline: auto;
}
.node {
  width: 100%; max-width: 160px; padding: 14px 12px; border-radius: var(--r-m); text-align: center;
  background: var(--s1); border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; line-height: 1.3;
}
.node small { display: block; font-weight: 400; color: var(--tx3); font-size: 12px; margin-top: 4px; }
.node.me { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); box-shadow: 0 0 60px rgba(201, 255, 54, 0.25); }
.node.me small { color: rgba(19, 32, 10, 0.7); }
.node.none { background: transparent; border-style: dashed; color: var(--tx3); }
.node.none s { text-decoration-color: var(--down); text-decoration-thickness: 2px; }
.link { position: relative; width: 2px; height: 100%; background: var(--acc-line); overflow: hidden; }
.link.h { width: 100%; height: 2px; }
.link::after { /* wandernder Datenpunkt */
  content: ""; position: absolute; left: -2px; top: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 8px var(--acc); animation: travel-v 2.4s linear infinite;
}
.link.h::after { top: -2px; left: 0; animation-name: travel-h; }
@keyframes travel-v { from { top: -6px; } to { top: 100%; } }
@keyframes travel-h { from { left: -6px; } to { left: 100%; } }
.link.cut { background: repeating-linear-gradient(to bottom, var(--line-strong) 0 6px, transparent 6px 12px); }
.link.cut::after { display: none; }
.cut-x { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--down); font-weight: 700; font-size: 18px; line-height: 1; background: var(--bg); padding: 2px; }
.flow-wrap { position: relative; }
@media (max-width: 480px) {
  .flow-map { grid-template-columns: 1fr 28px 1fr 28px 1fr; }
  .node { font-size: 12px; padding: 10px 6px; }
  .node small { font-size: 10.5px; }
}

/* ---------- Abschluss-Karte ---------- */

.finish { padding: clamp(64px, 12vh, 128px) 0; border-top: 1px solid var(--line); }
.finish-card {
  max-width: 620px; margin-inline: auto; text-align: center;
  padding: clamp(32px, 5vw, 56px); border-radius: var(--r-xl);
  background: radial-gradient(120% 80% at 50% 0%, #1d2211 0%, var(--s1) 55%);
  border: 1px solid var(--line-strong);
}
.badge {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 24px; display: grid; place-items: center;
  background: var(--s3); color: var(--tx3); transition: background 0.5s var(--ease), color 0.5s, box-shadow 0.5s;
}
.badge svg { width: 34px; height: 34px; }
.finish-card.complete .badge { background: var(--acc); color: var(--acc-ink); box-shadow: 0 0 0 10px var(--acc-soft); }
.finish-card .h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.finish-card > p { color: var(--tx2); margin: 0 auto 32px; max-width: 28em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 32px; }
.stat { padding: 16px 8px; border-radius: var(--r-m); background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--tx3); font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.finish-card .soon { margin-bottom: 16px; }
.finish-card .fine { font-size: 14px; color: var(--tx3); margin: 0; }

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

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--tx3); }
.site-footer .wrap { display: grid; gap: 20px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: auto 1fr auto; align-items: center; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: var(--tx2); text-decoration: none; }
.site-footer nav a:hover { color: var(--tx); }
.site-footer .clean { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
@media (min-width: 760px) { .site-footer .clean { justify-self: end; text-align: right; } }

/* ---------- Rechtstexte & Support ---------- */

.doc { padding: calc(var(--header-h) + 64px) 0 96px; }
.doc .wrap { max-width: 820px; }
.doc .label { margin-bottom: 20px; }
.doc h1 { font-size: clamp(40px, 7vw, 76px); line-height: 0.98; letter-spacing: -0.04em; margin-bottom: 24px; }
.doc .lead { margin-bottom: 48px; }
.doc h2 { font-size: 26px; letter-spacing: -0.02em; margin: 64px 0 16px; scroll-margin-top: calc(var(--header-h) + 24px); }
.doc h3 { font-size: 18px; letter-spacing: -0.01em; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--tx2); }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--tx); text-decoration-color: var(--acc-line); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--acc); }
.doc strong { color: var(--tx); font-weight: 600; }
.doc address { font-style: normal; color: var(--tx2); }

.tldr {
  padding: 24px clamp(20px, 3vw, 32px); border-radius: var(--r-l);
  background: var(--s1); border: 1px solid var(--line-strong);
}
.tldr .label { margin-bottom: 12px; }
.tldr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tldr li { display: flex; gap: 12px; color: var(--tx); margin: 0; }
.tldr svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--acc); }

.toc { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); text-decoration: none; font-size: 14px; color: var(--tx2); }
.toc a:hover { color: var(--tx); border-color: var(--acc-line); }

.todo { background: rgba(242, 193, 78, 0.16); color: var(--gold); border-radius: 4px; padding: 0 4px; font-family: var(--mono); font-size: 0.9em; }

.contact-card {
  display: grid; gap: 8px; padding: 28px clamp(20px, 3vw, 32px); margin-bottom: 48px; border-radius: var(--r-l);
  background: radial-gradient(120% 120% at 0% 0%, #1d2211 0%, var(--s1) 60%); border: 1px solid var(--line-strong);
}
.contact-card .mail { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.02em; color: var(--tx); text-decoration: none; }
.contact-card .mail:hover { color: var(--acc); }
.contact-card p { margin: 0; color: var(--tx2); }

.faq { display: grid; gap: 8px; }
.faq details { border-radius: var(--r-m); background: var(--s1); border: 1px solid var(--line); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px; display: flex; justify-content: space-between; gap: 16px;
  font-weight: 600; color: var(--tx); font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--acc); font-size: 22px; line-height: 1; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 20px; }
.faq .answer p { margin: 0 0 12px; }
.faq .answer p:last-child { margin-bottom: 0; }
.path { font-family: var(--mono); font-size: 0.86em; color: var(--tx); background: var(--s2); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }

/* ---------- Einblenden beim Scrollen ---------- */

.rise { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .rise, .reveal-word { opacity: 1; transform: none; }
  .link::after { display: none; }
}

/* Ohne JavaScript: alles sichtbar, Pille/Übersicht weg */
.no-js .rise, .no-js .reveal-word { opacity: 1; transform: none; }
.no-js .island, .no-js .figure-float { display: none; }
