/* Basis: Fonts, Buehnen-Hintergrund, Typografie, Fokus. */

/* Display-Font Rajdhani (selbst gehostet, SIL OFL 1.1 — fonts/OFL.txt) */
@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/rajdhani-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/rajdhani-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  /* Buehne: Fraktionslicht (gruen NW / gold NO), Vignette, taktisches Grid */
  background:
    radial-gradient(1100px 520px at 12% -6%, rgba(111, 224, 135, 0.10), transparent 60%),
    radial-gradient(900px 460px at 92% -4%, rgba(224, 176, 85, 0.10), transparent 55%),
    radial-gradient(140% 100% at 50% 0%, transparent 55%, rgba(0, 0, 0, 0.42) 100%),
    repeating-linear-gradient(0deg, transparent 0 55px, rgba(244, 240, 232, 0.02) 55px 56px),
    repeating-linear-gradient(90deg, transparent 0 55px, rgba(244, 240, 232, 0.02) 55px 56px),
    var(--bg);
  color: var(--text);
  font: 450 15px/1.5 var(--font-body);
}

/* Dezentes Filmkorn ueber der ganzen Seite (Inline-SVG, 0 Requests). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Fog-Drift: nur Desktop und nur ohne reduced-motion (siehe effects.css) */

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Zahlen buendig untereinander (Metriken, Tabellen, Charts) */
strong,
td,
.value {
  font-variant-numeric: tabular-nums;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px max(16px, calc((100vw - 1180px) / 2));
  background: rgba(9, 12, 10, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

/* HUD-Label: die Signatur der Seite ("// BEZEICHNUNG") */
.eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "// ";
  color: var(--gold);
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
}

h1 {
  font-weight: 700;
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: 0.04em;
}

h2 {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.05em;
}
