/* ==========================================================================
   Buchhaltung Sabrina · Teaser bis 01.12.2026
   Richtung „01 Glut“. Tokens aus docs/06-design/assets/css/tokens.css
   (Auszug). Dunkel ist Standard, hell gleichwertig per data-theme="light".
   KEIN LOGO: Das Punkt-S bleibt bis zum Launch geheim.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist.4353346e.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.532c19ba.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #120E0B;          /* Ruß */
  --surface: #1D1814;     /* Kohle */
  --text: #F4ECE2;        /* Bonweiß, 16,4:1 */
  --muted: #A99D90;       /* Asche, 7,2:1 */
  --accent: #FF8A3D;      /* Glut, 8,2:1 */
  --glut: #FF8A3D;
  --focus: #FFC48A;       /* Funke */
  --dot-idle: rgb(244 236 226 / .14);
  --hair: rgb(244 236 226 / .12);
  --hair-strong: rgb(244 236 226 / .24);
  --glow-glut: 0 0 .5rem rgb(255 138 61 / .55), 0 0 1.75rem rgb(255 138 61 / .28);
  --dm-glow: drop-shadow(0 0 .12px rgb(255 138 61 / .9)) drop-shadow(0 0 .45px rgb(255 138 61 / .55));
  --floor: rgb(255 138 61 / .10);
  --veil: rgb(18 14 11 / .55);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #F7F2EA;          /* Papier */
  --surface: #FFFFFF;
  --text: #1A1512;        /* Tinte, 16,3:1 */
  --muted: #6B6058;       /* Rauch, 5,5:1 */
  --accent: #B4471A;      /* Glut tief, 4,9:1 (Text) */
  --glut: #E0661F;        /* Glut hell, nur Grafik */
  --focus: #B4471A;
  --dot-idle: rgb(26 21 18 / .12);
  --hair: rgb(26 21 18 / .12);
  --hair-strong: rgb(26 21 18 / .26);
  --glow-glut: 0 0 .4rem rgb(224 102 31 / .35);
  --dm-glow: none;
  --floor: rgb(255 138 61 / .08);
  --veil: rgb(247 242 234 / .6);
}
:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-h1: clamp(2.375rem, 1.6rem + 3.4vw, 4.5rem);      /* 38 → 72 */
  --fs-h2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-lead: clamp(1.0625rem, .98rem + .4vw, 1.3125rem); /* 17 → 21 */
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-mono: .75rem;
  --fs-micro: .6875rem;
  --ls-head: -.045em;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(1rem, 4vw, 5rem);
  --container: 76rem;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* Ab 1441 px wächst alles proportional bis 4K (wie Hero und Website) */
@media (min-width: 1441px) { html { font-size: clamp(16px, min(1.1111vw, 1.78vh), 40px); } }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: transparent; /* Fond kommt von html, sonst läge body über der Funken-Leinwand */
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: clip;
}
/* Ohne WebGL: ruhiges Glutlicht von unten (wie Hero-Fallback) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(120% 60% at 50% 118%, var(--floor), transparent 70%);
}
a { color: inherit; }
p, h1, h2, h3, ul, ol, address { margin: 0; }
address { font-style: normal; }
::selection { background: var(--glut); color: var(--bg); }
:focus-visible { outline: .125rem solid var(--focus); outline-offset: .1875rem; border-radius: .25rem; }
.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--fs-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.dot { color: var(--glut); }
.star { color: var(--accent); font-weight: 600; text-decoration: none; }
.wrap {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Skip-Link ---------- */
.skip {
  position: absolute;
  left: 1rem; top: 1rem;
  z-index: 10;
  padding: .625rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

/* ---------- Funken-Leinwand ---------- */
.funken {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}
.anim .funken { display: block; }

/* ---------- Kopf ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: max(1.25rem, env(safe-area-inset-top, 0px));
  padding-bottom: 1.25rem;
}
.word {
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -.03em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.word span { color: var(--muted); font-weight: 500; }
.toggle {
  display: none;
  appearance: none;
  align-items: center;
  gap: .5rem;
  height: 2.25rem;
  padding: 0 .875rem 0 .6875rem;
  border-radius: 999px;
  border: 1px solid var(--hair-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: border-color .2s var(--ease);
}
.js .toggle { display: inline-flex; }
.toggle:hover { border-color: var(--accent); }
.toggle svg { width: 1rem; height: 1rem; display: block; }
.toggle .sun { display: none; }
[data-theme="light"] .toggle .sun { display: block; }
[data-theme="light"] .toggle .moon { display: none; }
.toggle .mono { font-size: var(--fs-micro); }

/* ---------- Bühne (Startseite) ---------- */
main { flex: 1 0 auto; display: flex; flex-direction: column; }
.stage {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(1.5rem, 5vh, 4.5rem) clamp(2rem, 5.5vh, 4.5rem);
}
.overline {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .875rem;
}
.overline::after {
  content: "";
  flex: 0 1 5.5rem;
  height: 1px;
  background: var(--hair-strong);
}
.datum {
  margin: clamp(1.5rem, 3.6vh, 2.75rem) 0 clamp(1.5rem, 4.2vh, 3rem);
  width: min(100%, 52rem);
  line-height: 0;
}
.datum svg { display: block; width: 100%; height: auto; overflow: visible; transition: opacity .5s var(--ease); }
.datum .i { fill: var(--text); }
.datum .g { fill: var(--glut); filter: var(--dm-glow); }
.datum .o { fill: var(--dot-idle); }
/* Während die Funken das Datum setzen, steht das SVG unsichtbar als Maß im Layout */
.anim-pending .datum svg, .anim .datum svg { opacity: 0; transition: none; }
h1 {
  font-weight: 600;
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: var(--ls-head);
  text-wrap: balance;
  max-width: 14em;
}
.lead {
  margin-top: clamp(.75rem, 2vh, 1.25rem);
  font-size: var(--fs-lead);
  line-height: 1.4;
  color: var(--muted);
}
.lead strong { color: var(--text); font-weight: 500; }

/* ---------- Fakten: wie Bon-Zeilen ---------- */
.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--hair);
}
.fact h2 {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .875rem;
}
.fact p { max-width: 34em; text-wrap: pretty; }
.fact .note { margin-top: .75rem; font-size: var(--fs-small); color: var(--muted); }
.lines { list-style: none; padding: 0; margin-top: 1rem; border-top: 1px dashed var(--hair-strong); max-width: 30rem; }
.lines li { border-bottom: 1px dashed var(--hair-strong); }
.lines a {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: baseline;
  gap: .75rem;
  padding: .75rem 0;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.lines a .mono { color: var(--muted); }
.lines a b { font-weight: 500; overflow-wrap: anywhere; }
.lines a i { font-style: normal; color: var(--muted); transition: transform .2s var(--ease), color .2s var(--ease); }
.lines a:hover b { color: var(--accent); }
.lines a:hover i { color: var(--accent); transform: translateX(.25rem); }
@media (min-width: 860px) {
  .facts { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; padding-block: 2rem 2rem; }
  .facts .fact:first-child { grid-column: 1 / 7; }
  .facts .fact:last-child { grid-column: 8 / 13; }
}

/* ---------- Fuß ---------- */
.foot {
  border-top: 1px solid var(--hair);
  padding-top: 1.25rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-micro);
  color: var(--muted);
}
.foot nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.foot a { text-decoration: none; padding-block: .375rem; }
.foot a:hover, .foot a[aria-current="page"] { color: var(--text); }
.foot a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; text-decoration-color: var(--glut); }

/* ---------- Rechtstexte ---------- */
.legal { padding-block: clamp(2rem, 7vh, 4.5rem) clamp(3rem, 8vh, 5rem); }
.legal .overline { margin-bottom: 1.25rem; }
.legal h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); }
.legal .intro { margin-top: 1rem; color: var(--muted); font-size: var(--fs-lead); line-height: 1.45; max-width: 36em; }
.legal .body { margin-top: clamp(2rem, 5vh, 3.25rem); max-width: 44rem; }
.legal h2 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin: 2.25rem 0 .625rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hair);
}
.legal h2:first-child { margin-top: 0; }
.legal p + p, .legal p + ul, .legal ul + p, .legal address + p { margin-top: .75rem; }
.legal ul { padding-left: 1.125rem; }
.legal li + li { margin-top: .375rem; }
.legal li::marker { color: var(--glut); }
.legal a { text-decoration-color: var(--hair-strong); text-underline-offset: .2em; }
.legal a:hover { color: var(--accent); text-decoration-color: currentColor; }
.legal .box {
  margin-top: 1.5rem;
  max-width: 44rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--hair-strong);
  border-radius: .875rem;
  background: var(--veil);
}
.legal .stand { margin-top: 2.5rem; color: var(--muted); }
.back { display: inline-flex; gap: .5rem; margin-top: 2.5rem; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
@media (forced-colors: active) {
  .datum .i, .datum .g { fill: CanvasText; }
  .datum .o { fill: GrayText; }
}
@media print {
  .funken, .toggle, .skip { display: none !important; }
  html, body { background: #fff; color: #000; }
  .anim .datum svg, .anim-pending .datum svg { opacity: 1; }
}
