/* Schriften liegen im Dashboard selbst (fonts/, Lizenz: SIL OFL 1.1); es werden keine Daten an Google übertragen. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/fonts/space-grotesk.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/fonts/geist-mono.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --bg-alt: #101317;
  --surface: #14171c;
  --surface-inset: #0f1216;
  --chip: #1b1f26;
  --line: #1e2229;
  --line-strong: #2a2f38;
  --text: #e8eaed;
  --muted: #a9b0bb;
  --faint: #8a919c;
  --accent: #8b9bff;
  --accent-text: #aeb8ff;
  --accent-soft: #1a1f33;
  --on-accent: #0d0f12;
  --amber: #f2b544;
  --amber-soft: #2a2112;
  --red: #f28b82;
  --red-soft: #2b1717;
  --green: #7fd6a6;
  --green-soft: #12261c;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, dl, dd, ol { margin: 0; }
a { color: inherit; }
code { font: .9em var(--mono); color: var(--text); background: var(--chip); padding: 2px 6px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

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

/* Buttons */
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.button-large { min-height: 52px; padding: 0 22px; border-radius: 12px; font-size: 16px; }
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--accent-text); }
.button-secondary { border-color: var(--line-strong); background: var(--surface); color: var(--text); font-weight: 500; }
.button-secondary:hover { border-color: #3a404b; }
.button-ghost { border-color: var(--line-strong); color: var(--text); font-weight: 500; }
.button-ghost:hover { background: var(--surface); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgb(13 15 18 / 88%); backdrop-filter: blur(12px); }
.header-inner { display: flex; height: 72px; align-items: center; justify-content: space-between; gap: 16px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font: 600 19px var(--display); text-decoration: none; }
.brand-symbol { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 700 17px/1 var(--display); }
.brand-symbol-small { width: 26px; height: 26px; border-radius: 7px; font-size: 14px; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--faint); font-size: 15px; text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Hero */
.hero { padding: 96px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 56px; }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font: 700 clamp(40px, 6vw, 68px)/1.02 var(--display); letter-spacing: -.03em; }
.hero-copy { max-width: 34rem; color: var(--muted); font-size: 19px; }

.preview { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid #23272f; border-radius: 20px; background: var(--surface); box-shadow: 0 30px 80px rgb(0 0 0 / 45%); }
.preview-head { display: flex; align-items: center; justify-content: space-between; color: var(--faint); font-size: 13px; }
.status-pill { padding: 5px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; }
.preview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.preview-stats div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-inset); }
.preview-stats small { display: block; color: var(--faint); font-size: 12px; }
.preview-stats strong { display: block; margin-top: 6px; font: 600 26px/1.2 var(--display); }
.preview-log { display: flex; flex-direction: column; margin: 0; padding: 6px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-inset); list-style: none; }
.preview-log li { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 14px; }
.preview-log li + li { border-top: 1px solid var(--line); }
.preview-log li span:nth-child(2) { flex: 1; }
.preview-log time { color: var(--faint); font-size: 12px; }
.preview figcaption { color: var(--faint); font-size: 12px; }
.tag { padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.tag-accent { background: var(--accent-soft); color: var(--accent-text); }
.tag-amber { background: var(--amber-soft); color: var(--amber); }
.tag-red { background: var(--red-soft); color: var(--red); }

/* Zahlen */
.figures { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.figures-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 36px; padding-bottom: 36px; }
.figures dd { color: var(--accent); font: 600 40px/1.2 var(--display); }
.figures dt { margin-top: 4px; color: var(--muted); font-size: 14px; }

/* Abschnitte */
.section { padding: 112px 0; }
.section-alt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.section-title { margin-bottom: 48px; font: 700 clamp(32px, 4vw, 48px)/1.08 var(--display); letter-spacing: -.02em; }

.modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.module { display: flex; flex-direction: column; gap: 16px; padding: 32px; border: 1px solid #23272f; border-radius: 20px; background: var(--surface); }
.module h3 { font: 600 24px/1.2 var(--display); }
.module p { color: var(--muted); }
.module-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; }
.module-icon .icon { width: 24px; height: 24px; stroke-width: 1.8; }
.module-icon-accent { background: var(--accent-soft); color: var(--accent-text); }
.module-icon-amber { background: var(--amber-soft); color: var(--amber); }
.module-icon-red { background: var(--red-soft); color: var(--red); }
.module-icon-green { background: var(--green-soft); color: var(--green); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; list-style: none; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 2px solid var(--line-strong); }
.steps li:first-child { border-top-color: var(--accent); }
.step-index { color: var(--accent-text); font: 500 15px var(--display); }
.steps h3 { font: 600 22px/1.25 var(--display); }
.steps p { color: var(--muted); }

.closing { padding: 112px 0; }
.closing-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.closing h2 { font: 700 clamp(34px, 5vw, 56px)/1.05 var(--display); letter-spacing: -.02em; }
.closing .actions { justify-content: center; }

/* Fußzeile */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { color: var(--faint); font-size: 14px; text-decoration: none; }
.footer-nav a:hover { color: var(--text); }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Hinweisseite (z. B. Transcript nicht verfügbar) */
.notice-page { display: grid; min-height: 100vh; place-items: center; padding: 24px 16px; }
.notice-page main { display: grid; width: min(460px, 100%); gap: 14px; padding: 36px; border: 1px solid #23272f; border-radius: 16px; background: var(--surface); }
.notice-page h1 { font: 700 32px/1.1 var(--display); letter-spacing: -.02em; }
.notice-page p { color: var(--muted); }
.notice-page a { color: var(--accent-text); }

@media (max-width: 900px) {
  .hero { padding: 64px 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .figures-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .section, .closing { padding: 80px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-nav { display: none; }
  .button-ghost { display: none; }
  .modules { grid-template-columns: minmax(0, 1fr); }
  .module { padding: 24px; }
  .preview-stats strong { font-size: 22px; }
}
