/* ==========================================================================
   base.css – Schriften, Design-Tokens, Reset, Typografie, Buttons, Fokus
   Thema: Holografie & Sicherheitsdruck
   ========================================================================== */

@font-face {
  font-family: 'Bodoni Moda';
  src: url('../fonts/bodoni-moda-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('../fonts/bodoni-moda-italic-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Tinte & Papier */
  --ink-0: #05060b;
  --ink-1: #090b13;
  --ink-2: #0f1220;
  --ink-3: #161a2b;
  --ink-4: #20263b;
  --line: rgba(196, 208, 236, 0.14);
  --line-strong: rgba(196, 208, 236, 0.28);
  --text: #eceff8;
  --text-soft: #c3c9da;
  --muted: #9aa3ba;
  --silver: #c9d1e4;
  --gold: #e2c48a;

  /* Holo-Spektrum */
  --h-mint: #7cf7e4;
  --h-sky: #8fb4ff;
  --h-violet: #b9a2ff;
  --h-orchid: #f0a2f2;
  --h-gold: #ffd89c;
  --h-lime: #bdf7a0;
  --holo: linear-gradient(110deg, var(--h-mint), var(--h-sky) 20%, var(--h-violet) 38%, var(--h-orchid) 55%, var(--h-gold) 72%, var(--h-lime) 86%, var(--h-mint));

  /* Laufzeit-Variablen, von holo.js gesetzt (0…1) */
  --hx: 0.5;
  --hy: 0.4;

  --font-display: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line);
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-total, 110px) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink-1);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: 'ss01', 'cv01';
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* sehr feines Sicherheitspapier-Raster über die ganze Seite */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(143, 180, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(240, 162, 242, 0.07), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px),
    var(--ink-1);
}

img, svg, canvas { display: block; max-width: 100%; }
svg { overflow: visible; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4.9vw, 4.35rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.2; }
h1 em, h2 em { font-style: italic; font-weight: 500; }

p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
a { color: var(--h-mint); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
strong { color: #fff; font-weight: 700; }
small { font-size: 0.85em; }
abbr { text-decoration: none; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--holo);
}

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 62ch;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink-0);
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink-3);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 50px;
  padding: 0.8em 1.45em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--text);
  font: 700 0.98rem/1.1 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--holo {
  border: 0;
  color: #0a0c14;
  background:
    linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.75) 45%, transparent 60%) calc(var(--hx) * 260% - 80%) 0 / 250% 100% no-repeat,
    var(--holo) calc(var(--hx) * 100%) 50% / 300% 100%;
  box-shadow: 0 12px 34px -12px rgba(143, 180, 255, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.btn--holo:hover { color: #05060b; box-shadow: 0 16px 44px -12px rgba(240, 162, 242, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.6); }

.btn--ghost { background: transparent; }
.btn--small { min-height: 40px; padding: 0.55em 1.1em; font-size: 0.88rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: gap 0.25s var(--ease), border-color 0.25s;
}
.link-arrow:hover { gap: 0.85em; border-color: var(--h-mint); color: #fff; }
.link-arrow svg { width: 16px; height: 16px; }
