/* Minewhyle — Website */

@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("../fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-display: swap; src: url("../fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url("../fonts/geist-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url("../fonts/geist-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap; src: url("../fonts/geist-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url("../fonts/geist-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-display: swap; src: url("../fonts/geist-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #050d1c;
  --ink-2: #0b1f3a;
  --ink-3: #13294a;
  --paper: #f2f0eb;
  --paper-2: #e9e6df;
  --white: #ffffff;
  --text: #0b1a30;
  --muted: #5d6675;
  --muted-dark: #8f9bb0;
  --line: rgba(11, 26, 48, 0.12);
  --line-dark: rgba(255, 255, 255, 0.1);
  --mint: #34d399;
  --mint-2: #10b981;
  --mint-soft: #e6f8f0;
  --danger: #d4533f;

  --display: "Sora", "Geist", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
::selection { background: var(--mint); color: var(--ink); }

/* feines Papierkorn für Materialität statt glatter Flächen */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--white); padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 2px; }

.i-dot { position: relative; }
.i-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.155em;
  width: 0.2em;
  height: 0.2em;
  margin-left: -0.1em;
  border-radius: 50%;
  background: linear-gradient(135deg, #5ff5c2, var(--mint-2));
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  font: 600 15px/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: #5ff5c2; }
.btn span { transition: transform 0.35s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; opacity: 0.85; }
.btn--ghost:hover { background: transparent; opacity: 1; }
.btn--small { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--big { height: 68px; padding: 0 36px; font-size: 18px; }

/* ───── Navigation ───── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
  padding: 0 var(--gutter);
  color: var(--white);
  transition: transform 0.5s var(--ease), color 0.3s, background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-scrolled { background: rgba(5, 13, 28, 0.72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line-dark); }
.nav.on-light { color: var(--text); }
.nav.on-light.is-scrolled { background: rgba(242, 240, 235, 0.78); border-color: var(--line); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 22px/1 var(--display); letter-spacing: -0.04em; }
.nav-mark--dark { display: none; }
.nav.on-light .nav-mark--dark { display: block; }
.nav.on-light .nav-mark--light { display: none; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; }
.nav-links a { text-decoration: none; opacity: 0.7; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-actions { margin-left: auto; } }

/* ───── Allgemeine Abschnitte ───── */
.sec { padding: clamp(96px, 14vw, 200px) 0; position: relative; }
.sec-head {
  display: flex;
  gap: 18px;
  align-items: center;
  font: 500 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: clamp(32px, 5vw, 64px);
}
.sec-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
[data-theme="dark"] .sec-head { color: var(--muted-dark); }
[data-theme="dark"] .sec-head::after { background: var(--line-dark); }
.idx { color: var(--mint-2); }
[data-theme="dark"] .idx { color: var(--mint); }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.tick { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }

.h2 { font: 700 clamp(38px, 5.6vw, 84px)/0.98 var(--display); letter-spacing: -0.045em; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 46ch; }

/* ───── Hero ───── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(60% 55% at 72% 42%, rgba(19, 60, 110, 0.55), transparent 70%),
    radial-gradient(40% 40% at 78% 58%, rgba(52, 211, 153, 0.08), transparent 70%),
    var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(70% 60% at 70% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 70% 45%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero-canvas {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero.is-ready .hero-canvas { opacity: 1; }
.hero-fallback { display: none; position: absolute; right: 10%; top: 22%; width: min(32vw, 380px); opacity: 0.9; z-index: -1; }
.hero.no-webgl .hero-fallback { display: block; }

.hero-inner { padding-top: 120px; padding-bottom: 36px; }
.hero-title {
  margin: 26px 0 36px;
  font: 700 clamp(52px, min(8.2vw, 13.5svh), 150px)/0.88 var(--display);
  letter-spacing: -0.055em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: normal; color: var(--mint); }
.hero-foot { display: grid; grid-template-columns: minmax(0, 520px) auto; gap: 40px; align-items: end; justify-content: space-between; }
.hero-lead { font-size: clamp(17px, 1.35vw, 20px); color: rgba(255, 255, 255, 0.72); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-bar {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line-dark);
  font: 400 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.3); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--mint); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }
@media (max-width: 860px) {
  .hero-canvas { width: 100%; height: 50%; top: 48px; }
  .hero-foot { grid-template-columns: 1fr; gap: 28px; }
  .hero-bar-mid { display: none; }
  .hero-inner { padding-top: 47svh; }
}

/* ───── 01 Problem ───── */
.statement {
  font: 600 clamp(28px, 3.6vw, 56px)/1.12 var(--display);
  letter-spacing: -0.035em;
  max-width: 24ch;
  max-width: 1100px;
}
.statement sup { font-size: 0.4em; color: var(--mint-2); vertical-align: super; }
.statement .w { opacity: 0.16; transition: none; }
.problem { padding-bottom: clamp(56px, 7vw, 110px); }
.statement-turn {
  margin-top: clamp(28px, 4vw, 48px);
  font: 600 clamp(22px, 2.2vw, 32px)/1.2 var(--display);
  letter-spacing: -0.03em;
  color: var(--mint-2);
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(64px, 9vw, 128px);
  border-top: 1px solid var(--line);
}
.fact { padding: 28px 24px 0 0; border-right: 1px solid var(--line); }
.fact + .fact { padding-left: 24px; }
.fact:last-child { border-right: 0; }
.fact dt { font: 700 clamp(56px, 7vw, 108px)/1 var(--display); letter-spacing: -0.06em; display: flex; align-items: baseline; gap: 6px; }
.fact dt small { font-size: 0.28em; letter-spacing: -0.01em; color: var(--muted); font-weight: 600; }
.fact dd { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 24ch; }
.footnote { margin-top: 56px; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.footnote sup { color: var(--mint-2); }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 24px 16px 24px 0; border-bottom: 1px solid var(--line); }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-child(2n + 1) { padding-left: 0; }
}

/* ───── 02 Story ───── */
.story { background: var(--paper); position: relative; }
.story-pin { min-height: 100svh; display: flex; align-items: center; padding: 110px 0 60px; }
.story-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.story-copy .h2 { font-size: clamp(34px, 3.8vw, 58px); margin-bottom: 40px; }
.steps { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.step { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); opacity: 0.35; transition: opacity 0.4s; }
.step.is-active { opacity: 1; }
.step-n { font: 500 12px/1.6 var(--mono); color: var(--mint-2); padding-top: 3px; }
.step b { display: block; font: 600 18px/1.3 var(--display); letter-spacing: -0.02em; }
.step span:not(.step-n) { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }

.stage { margin: 0; perspective: 1800px; perspective-origin: 50% 20%; }
.device {
  --mx: 0;
  position: relative;
  border-radius: 14px;
  background: var(--white);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 0 0 1px rgba(11, 26, 48, 0.1),
    0 40px 80px -30px rgba(5, 13, 28, 0.45),
    0 90px 140px -60px rgba(5, 13, 28, 0.35);
  transform-style: preserve-3d;
  transform: rotateX(24deg) rotateY(-14deg) rotateZ(2deg) scale(0.9);
  transform-origin: 50% 60%;
  overflow: hidden;
  font-family: var(--sans);
}
.device-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: #f6f6f7; border-bottom: 1px solid #e7e7ea; font-size: 12px; color: #6b7280; }
.device-dots { display: flex; gap: 6px; }
.device-dots i { width: 10px; height: 10px; border-radius: 50%; background: #dcdde1; }
.device-tab { background: var(--white); border: 1px solid #e7e7ea; border-bottom: 0; padding: 6px 14px; border-radius: 8px 8px 0 0; align-self: flex-end; }
.device-url { margin-left: auto; margin-right: auto; background: #ececef; border-radius: 6px; padding: 4px 60px; }

.app { position: relative; display: grid; grid-template-columns: 180px 1fr; height: clamp(420px, 46vw, 560px); background: var(--white); }
.app-side { background: #f7f7f8; border-right: 1px solid #ededf0; padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.app-new { font-size: 12px; border: 1px solid #e3e3e7; border-radius: 8px; padding: 8px 10px; color: #374151; margin-bottom: 10px; }
.ph { height: 8px; border-radius: 4px; background: #e6e6ea; }
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.app-main { display: flex; flex-direction: column; min-width: 0; }
.thread { flex: 1; padding: 28px clamp(18px, 3vw, 44px) 12px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.msg { font-size: 14px; line-height: 1.55; color: #1f2937; }
.msg--user { align-self: flex-end; max-width: 78%; background: #f1f2f4; padding: 10px 14px; border-radius: 16px 16px 4px 16px; }
.msg--think { display: flex; align-items: center; gap: 10px; color: #6b7280; font-size: 13px; }
.msg--think b { font-weight: 500; font-variant-numeric: tabular-nums; color: #374151; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9ca3af; animation: bob 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bob { 0%, 60%, 100% { transform: translateY(0); opacity: 0.6; } 30% { transform: translateY(-4px); opacity: 1; } }
.msg--ai p { margin-bottom: 6px; }
.msg--ai mark { background: #fdecea; color: var(--danger); padding: 0 4px; border-radius: 3px; font-weight: 500; }
.composer { position: relative; margin: 8px clamp(18px, 3vw, 44px) 22px; border: 1px solid #e3e3e7; border-radius: 16px; padding: 14px 52px 14px 16px; font-size: 14px; color: #1f2937; min-height: 52px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04); }
.composer-text { display: block; white-space: nowrap; overflow: hidden; }
.composer-placeholder { position: absolute; left: 16px; top: 15px; color: #9ca3af; opacity: 0; }
.composer-send { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: #111827; color: var(--white); display: grid; place-items: center; font-size: 15px; }

/* Die Minewhyle-Karte: bewusst identisch zur echten Karte der Erweiterung */
.mw {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 300px;
  background: var(--white);
  color: #1f1f1f;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
  z-index: 2;
}
.mw-label { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.mw-label svg { width: 14px; height: 14px; }
.mw-q { font-size: 13px; line-height: 1.4; margin-bottom: 10px; }
.mw-opts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.mw-opt { font-size: 12px; padding: 7px 10px; border-radius: 8px; border: 1px solid #ddd; background: #fafafa; line-height: 1.35; }
.mw-opt.is-correct { border: 2px solid #1f8a4c; background: #e8f7ee; font-weight: 600; padding: 6px 9px; }
.mw-feedback { overflow: hidden; }
.mw-feedback b { display: block; font-size: 13px; color: #1f8a4c; margin-bottom: 4px; }
.mw-feedback span { display: block; font-size: 11px; color: #888; line-height: 1.4; margin-bottom: 8px; }
.mw-foot { display: flex; justify-content: space-between; font-size: 11px; color: #999; }

@media (max-width: 980px) {
  .story-pin { padding: 90px 0 30px; align-items: flex-start; }
  .story-layout { grid-template-columns: 1fr; gap: 24px; }
  .story-copy .h2 { font-size: 30px; margin-bottom: 16px; }
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border: 0; }
  .step { flex-direction: column; gap: 4px; padding: 10px 0 0; border-bottom: 0; border-top: 2px solid var(--line); }
  .step.is-active { border-top-color: var(--mint-2); }
  .step b { font-size: 13px; }
  .step span:not(.step-n) { display: none; }
  .app { grid-template-columns: 1fr; height: 470px; }
  .app-side { display: none; }
  .device-url { display: none; }
  .mw { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

/* ───── Marquee ───── */
.marquee { background: var(--ink); color: var(--white); overflow: hidden; padding: clamp(28px, 4vw, 52px) 0; border-block: 1px solid var(--line-dark); }
.marquee-track { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); white-space: nowrap; width: max-content; will-change: transform; }
.marquee-track span { font: 700 clamp(56px, 10vw, 168px)/1 var(--display); letter-spacing: -0.05em; }
.marquee-track span:nth-of-type(2n) { color: rgba(255, 255, 255, 0.22); }
.marquee-track i { width: clamp(18px, 2.2vw, 36px); height: clamp(18px, 2.2vw, 36px); border-radius: 50%; background: var(--mint); flex-shrink: 0; }

/* ───── 03 Admin ───── */
.admin { background: var(--paper); overflow: hidden; }
.admin-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
@media (max-width: 860px) { .admin-top { grid-template-columns: 1fr; } }

.dash-stage { perspective: 2200px; perspective-origin: 50% 10%; padding: clamp(56px, 8vw, 120px) var(--gutter) clamp(40px, 6vw, 80px); max-width: 1500px; margin: 0 auto; }
.dash {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(11, 26, 48, 0.08), 0 60px 120px -50px rgba(5, 13, 28, 0.5), 0 30px 60px -30px rgba(5, 13, 28, 0.25);
  transform-style: preserve-3d;
  transform: rotateX(28deg) rotateY(0deg) scale(0.92);
  transform-origin: 50% 0%;
  font-family: var(--sans);
  font-size: 13px;
  color: #1a2230;
}
.dash-side { background: #15253c; color: #fff; border-radius: 14px 0 0 14px; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.dash-brand { display: flex; gap: 10px; align-items: center; padding: 2px 6px 16px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.dash-brand img { width: 28px; height: 28px; }
.dash-brand b { display: block; font-size: 14px; }
.dash-brand span { font-size: 11px; color: #9fb0c8; }
.dash-sec { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: #7d8fa9; padding: 12px 8px 4px; }
.dash-nav { padding: 7px 10px; border-radius: 6px; color: #c9d4e3; }
.dash-nav.is-on { background: rgba(255, 255, 255, 0.1); color: #fff; }
.dash-main { padding: 24px 28px 28px; background: #f3f4f6; border-radius: 0 14px 14px 0; }
.dash-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.dash-head b { font-size: 20px; letter-spacing: -0.02em; }
.dash-head span { font-size: 12px; color: #667085; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.kpi, .dash-card { background: #fff; border: 1px solid #e4e7ec; border-radius: 10px; padding: 14px 16px; }
.kpi span { display: block; font-size: 11.5px; color: #667085; margin-bottom: 8px; }
.kpi b { font-size: 26px; letter-spacing: -0.03em; }
.kpi small { font-size: 13px; color: #98a2b3; font-weight: 500; }
.dash-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.dash-card-h { display: block; font-size: 12px; font-weight: 600; margin-bottom: 14px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; border-bottom: 1px solid #e4e7ec; }
.bars i { flex: 1; height: var(--h); background: #1f3a5f; border-radius: 4px 4px 0 0; transform-origin: bottom; }
.bars i:last-child { background: var(--mint-2); }
.topic { display: grid; grid-template-columns: 100px 1fr 40px; gap: 10px; align-items: center; margin-bottom: 12px; font-size: 12px; }
.topic em { height: 6px; border-radius: 3px; background: #eef0f3; position: relative; overflow: hidden; }
.topic em::after { content: ""; position: absolute; inset: 0; width: var(--w); background: #1f3a5f; border-radius: 3px; }
.topic b { text-align: right; font-weight: 600; }

.float { position: absolute; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(11, 26, 48, 0.08), 0 30px 60px -20px rgba(5, 13, 28, 0.35); }
.float--report { right: 4%; top: 22%; width: 290px; padding: 18px; transform: translateZ(120px); }
.report-h { display: flex; justify-content: space-between; align-items: baseline; }
.report-h b { font-size: 16px; }
.report-h span { font-size: 11px; color: #667085; }
.report-sub { font-size: 11px; color: #667085; margin: 6px 0 14px; }
.report-row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid #eef0f3; font-size: 12.5px; }
.report-row em { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.report-row .ok { background: #e7f3ec; color: #22643f; }
.report-row .part { background: #fef3e2; color: #9a5b12; }
.report-btns { display: flex; gap: 8px; margin-top: 12px; }
.report-btns span { flex: 1; text-align: center; font-size: 12px; font-weight: 600; padding: 8px; border-radius: 8px; border: 1px solid #d0d5dd; }
.report-btns span:first-child { background: #1f3a5f; border-color: #1f3a5f; color: #fff; }
.float--toast { left: 16%; bottom: -26px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 12.5px; font-weight: 500; transform: translateZ(180px); }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-2); box-shadow: 0 0 0 4px var(--mint-soft); }

@media (max-width: 980px) {
  .dash { grid-template-columns: 1fr; font-size: 12px; transform: none; }
  .dash-side { display: none; }
  .dash-main { border-radius: 14px; padding: 16px; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-row { grid-template-columns: 1fr; }
  .float--report { position: relative; right: auto; top: auto; width: auto; margin: 16px; transform: none; }
  .float--toast { display: none; }
}

.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(24px, 4vw, 48px); }
.feature { padding: 28px 24px 0 0; }
.feature + .feature { padding-left: 24px; border-left: 1px solid var(--line); }
.feature-n { font: 500 12px/1 var(--mono); color: var(--mint-2); }
.feature h3 { font: 600 21px/1.2 var(--display); letter-spacing: -0.025em; margin: 18px 0 10px; }
.feature p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .feature, .feature + .feature { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ───── 04 Datenschutz ───── */
.privacy { background: var(--ink); color: var(--white); }
.statement--dark { font-size: clamp(34px, 5vw, 80px); line-height: 1.02; letter-spacing: -0.045em; max-width: 16ch; }
.statement--dark .w { opacity: 0.14; }
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(64px, 9vw, 128px); border-top: 1px solid var(--line-dark); }
.p-item { padding: 28px 24px 0 0; }
.p-item + .p-item { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.p-item h3 { font: 600 20px/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 12px; }
.p-item p { color: var(--muted-dark); font-size: 15px; }
.p-item em { color: var(--mint); font-style: normal; }
.leaves { margin-top: clamp(64px, 8vw, 110px); border: 1px solid var(--line-dark); border-radius: 14px; overflow: hidden; }
.leaves-h { padding: 18px 24px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-dark); border-bottom: 1px solid var(--line-dark); }
.leaves table { width: 100%; border-collapse: collapse; }
.leaves th, .leaves td { text-align: left; padding: 18px 24px; border-bottom: 1px solid var(--line-dark); font-size: 16px; font-weight: 400; }
.leaves tr:last-child th, .leaves tr:last-child td { border-bottom: 0; }
.leaves td { color: var(--muted-dark); width: 40%; }
.leaves .never th { color: var(--white); }
.leaves .never td { color: var(--mint); font: 600 22px/1 var(--display); letter-spacing: -0.02em; }
@media (max-width: 860px) {
  .privacy-grid { grid-template-columns: 1fr; }
  .p-item, .p-item + .p-item { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .leaves th, .leaves td { display: block; width: auto; padding: 6px 18px; border: 0; }
  .leaves tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
}

/* ───── 05 Pilot (horizontale Schiene) ───── */
.pilot { background: var(--paper-2); overflow: hidden; }
.pilot-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 80px; }
.pilot-head { margin-bottom: clamp(40px, 5vw, 72px); }
.rail { display: flex; gap: 20px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.rail-card {
  width: clamp(280px, 30vw, 420px);
  min-height: 340px;
  padding: 32px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.rail-n { font: 700 72px/1 var(--display); letter-spacing: -0.06em; color: var(--ink-2); opacity: 0.12; }
.rail-card h3 { margin-top: auto; font: 600 26px/1.15 var(--display); letter-spacing: -0.03em; margin-bottom: 12px; }
.rail-card p { color: var(--muted); font-size: 15.5px; min-height: 4.65em; }
.rail-card--accent { background: var(--ink); color: var(--white); border-color: var(--ink); }
.rail-card--accent .rail-n { color: var(--mint); opacity: 1; }
.rail-card--accent p { color: var(--muted-dark); }
@media (max-width: 860px) {
  .rail { flex-direction: column; width: auto; }
  .rail-card { width: auto; min-height: 0; }
  .rail-card h3 { margin-top: 28px; }
}

/* ───── 06 FAQ ───── */
.faq-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 100px); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font: 600 clamp(18px, 1.6vw, 22px)/1.3 var(--display);
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--sans); color: var(--mint-2); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 28px; color: var(--muted); max-width: 62ch; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } }

/* ───── CTA & Footer ───── */
.cta {
  background:
    radial-gradient(50% 70% at 85% 100%, rgba(52, 211, 153, 0.16), transparent 70%),
    radial-gradient(60% 80% at 10% 0%, rgba(19, 60, 110, 0.6), transparent 70%),
    var(--ink);
  color: var(--white);
  padding: clamp(120px, 16vw, 240px) 0;
}
.cta-title { margin: 28px 0 32px; font: 700 clamp(48px, 8.4vw, 144px)/0.92 var(--display); letter-spacing: -0.055em; }
.cta-lead { color: rgba(255, 255, 255, 0.7); font-size: clamp(17px, 1.4vw, 20px); max-width: 48ch; margin-bottom: 44px; }

.footer { background: var(--ink); color: var(--white); padding: 40px 0 32px; border-top: 1px solid var(--line-dark); }
.footer-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font: 400 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-dark); }
.footer-top nav { display: flex; gap: 24px; }
.footer-top a { text-decoration: none; }
.footer-top a:hover { color: var(--white); }
.footer-word { font: 700 min(17.2vw, 250px)/0.8 var(--display); letter-spacing: -0.07em; margin: clamp(40px, 6vw, 80px) 0 28px; color: rgba(255, 255, 255, 0.95); white-space: nowrap; }
.footer-legal { font-size: 12px; color: var(--muted-dark); max-width: 80ch; }

/* ───── Rechtstexte ───── */
.legal { padding: 140px 0 100px; }
.legal h1 { font: 700 clamp(40px, 6vw, 72px)/1 var(--display); letter-spacing: -0.045em; margin-bottom: 32px; }
.legal h2 { font: 600 22px/1.3 var(--display); margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); max-width: 70ch; }
.legal .todo { background: #fff4d6; color: #7a5200; padding: 14px 18px; border-radius: 10px; margin-bottom: 32px; font-size: 15px; }

/* ───── Ohne Bewegung ───── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .statement .w { opacity: 1 !important; }
  .device, .dash { transform: none !important; }
}

/* ── Anmelden / Pilot starten ─────────────────────────────────────────── */
.nav-actions { display: flex; align-items: center; gap: 18px; }
@media (min-width: 861px) { .nav-actions { margin-left: 28px; } }
.nav-login { font-size: 14px; font-weight: 500; opacity: 0.85; transition: opacity 0.2s; }
.nav-login:hover { opacity: 1; }
@media (max-width: 720px) { .nav-login { display: none; } }
.cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.cta-mail { font-size: 15px; opacity: 0.75; text-decoration: underline; text-underline-offset: 4px; }
.cta-mail:hover { opacity: 1; }

dialog.auth {
  border: 0; padding: 36px 34px 28px; border-radius: 18px; width: min(440px, calc(100vw - 32px));
  background: var(--white); color: var(--text); box-shadow: 0 30px 80px rgba(5, 13, 28, 0.45);
  font-family: var(--sans);
}
dialog.auth::backdrop { background: rgba(5, 13, 28, 0.72); backdrop-filter: blur(6px); }
.auth-close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 8px; }
.auth-close:hover { background: var(--paper); color: var(--text); }
.auth-mark { display: block; margin-bottom: 14px; }
dialog.auth h2 { font-family: var(--display); font-size: 26px; margin: 0 0 8px; letter-spacing: -0.01em; }
.auth-lead { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0 0 22px; }
dialog.auth label { display: block; font-size: 12.5px; font-weight: 600; margin: 0 0 6px; letter-spacing: 0.01em; }
dialog.auth input { width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--text); margin-bottom: 14px; box-sizing: border-box; }
dialog.auth input:focus { outline: 2px solid var(--mint-2); outline-offset: 1px; background: var(--white); }
.auth-btn { width: 100%; justify-content: center; height: 50px; }
.auth-btn:disabled { opacity: 0.6; cursor: default; }
.auth-hint { font-size: 14px; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.auth-back { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.auth-status { min-height: 20px; font-size: 13.5px; margin: 14px 0 0; color: var(--muted); }
.auth-status.error { color: var(--danger); }
.auth-status.ok { color: var(--mint-2); }
.auth-foot { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.auth-foot a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.auth-pw-toggle { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.auth-pw-toggle summary { font-size: 12px; color: var(--muted); cursor: pointer; list-style: none; }
.auth-pw-toggle summary::-webkit-details-marker { display: none; }
.auth-pw-toggle summary:hover { color: var(--text); }
.auth-pw-toggle[open] summary { color: var(--text); margin-bottom: 12px; }
.auth-pw-toggle form label { font-size: 11.5px; }
.auth-pw-toggle form input { height: 42px; }

/* ───── Selbstcheck ───── */
.check { background: var(--paper); }
.check-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.check-lead { margin-top: 20px; color: var(--muted); max-width: 52ch; }
.check-note { margin-top: 12px; font: 400 13px/1.4 var(--mono); color: var(--muted); }
.check-box { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 40px); box-shadow: 0 24px 60px -32px rgba(5, 13, 28, 0.25); }
.check-progress { height: 4px; background: var(--paper-2); border-radius: 4px; overflow: hidden; margin-bottom: 24px; }
.check-progress span { display: block; height: 100%; width: 0; background: var(--mint-2); transition: width 0.4s var(--ease); }
.check-step { font: 500 13px/1 var(--mono); color: var(--muted); margin: 0 0 12px; }
.check-q { border: 0; padding: 0; margin: 0; min-width: 0; }
.check-q legend { padding: 0; font: 600 clamp(19px, 1.8vw, 24px)/1.3 var(--display); letter-spacing: -0.02em; margin-bottom: 18px; }
.check-opt { display: block; width: 100%; text-align: left; font: 500 16px/1.4 var(--sans); color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease); }
.check-opt:hover, .check-opt:focus-visible { border-color: var(--mint-2); background: var(--mint-soft); outline: none; transform: translateX(3px); }
.check-nav { margin-top: 8px; min-height: 24px; }
.check-back { background: none; border: 0; color: var(--muted); font: 500 14px var(--sans); cursor: pointer; padding: 6px 0; text-decoration: underline; }
.check-result h3 { font: 700 clamp(22px, 2.2vw, 30px)/1.2 var(--display); letter-spacing: -0.02em; margin: 6px 0 10px; }
.check-badge { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--mono); padding: 8px 12px; border-radius: 999px; }
.check-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.check-badge--low { background: var(--mint-soft); color: #0b7a55; }
.check-badge--mid { background: #fdf3dc; color: #a15c07; }
.check-badge--high { background: #fbe6e2; color: var(--danger); }
.check-result p { color: var(--muted); margin: 0 0 14px; }
.check-result ul { margin: 0 0 22px; padding-left: 20px; color: var(--text); }
.check-result li { margin-bottom: 8px; }
.check-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.check-again { background: none; border: 0; color: var(--muted); font: 500 14px var(--sans); cursor: pointer; text-decoration: underline; }
@media (max-width: 860px) { .check-layout { grid-template-columns: 1fr; } }

.auth-demo { margin: 14px 0 0; text-align: center; font-size: 14px; }
.auth-demo a { color: var(--mint-2); font-weight: 600; text-decoration: underline; }
