/* ==========================================================================
   base.css — Reset, Design-Tokens, Fonts, Typografie
   ========================================================================== */

/* ---- Fonts (self-hosted, DSGVO-konform) --------------------------------- */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600.woff2") format("woff2");
}

/* ---- Design-Tokens ------------------------------------------------------- */

:root {
  /* Flächen */
  --bg-0: #0b0f14;
  --bg-1: #10161e;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-solid: #121923;
  --surface-border: rgba(255, 255, 255, 0.09);

  /* Text */
  --text-hi: #e6edf3;
  --text-mid: #9aa7b4;
  --text-dim: #8494a3;

  /* Akzent: warmes Amber/Gold */
  --accent: #f59e0b;
  --accent-soft: #fbbf24;
  --accent-glow: rgba(245, 158, 11, 0.15);
  --accent-dim: rgba(245, 158, 11, 0.4);

  /* Typografie */
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(0.85rem, 0.82rem + 0.2vw, 0.95rem);
  --step-0: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.6vw, 2.4rem);
  --step-3: clamp(2.4rem, 1.8rem + 3.5vw, 4.2rem);
  --step-4: clamp(2.8rem, 2rem + 5.5vw, 5.5rem);

  /* Sonstiges */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 60px var(--accent-glow);
  --nav-height: 72px;
  --content-width: 68rem;
  --parallax-range: 120px;

  color-scheme: dark;
}

/* ---- Reset ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background-color: var(--bg-0);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul,
ol {
  padding-left: 1.2em;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
}

strong,
b {
  font-weight: 600;
  color: var(--text-hi);
}

/* ---- Typografie ------------------------------------------------------------ */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-hi);
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--step-2);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--step-1);
  font-weight: 500;
}

/* Sektions-Eyebrow: kleine Akzent-Überschrift über jedem Sektionstitel */
.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Nur im Druck sichtbar (siehe print.css) */
.print-only {
  display: none;
}

/* ---- Fokus & A11y ----------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 0.6em 1em;
  background: var(--accent);
  color: var(--bg-0);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
  text-decoration: none;
  color: var(--bg-0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

::selection {
  background: var(--accent-dim);
  color: var(--text-hi);
}
