/* ============================================================
   DESIGN TOKENS
   Single Source of Truth: 02-design-system/00-design-tokens.md
   Quelle: Studierenden Marketing Kampagne 2026 Style Guide (260422)
   ============================================================ */

:root {
  /* ── Colors — Primary ───────────────────────────────────── */
  --color-blue-mid: #004191;        /* Pantone 293 U / HKS 43 */
  --color-blue-light: #00BEFF;      /* Pantone 2985 U / HKS 47 */
  --color-anthracite: #1E1E1E;

  /* ── Colors — Secondary / Highlight ─────────────────────── */
  --color-yellow-signal: #FFFF00;

  /* ── Colors — Neutrals (UI) ─────────────────────────────── */
  --color-white: #FFFFFF;
  --color-gray-50: #F5F5F5;
  --color-gray-200: #E5E5E5;
  --color-gray-500: #666666;
  --color-gray-700: #3A3A3A;

  /* ── Colors — Semantic ──────────────────────────────────── */
  --color-success: #2E7D32;
  --color-warning: #EF6C00;
  --color-error: #C62828;

  /* ── Background-Gradient (CSS-Fallback) ─────────────────── */
  --bg-gradient-brand: linear-gradient(135deg, #004191 0%, #00BEFF 100%);

  /* ── Background-Texture (mit Noise vom Design-Team) ─────── */
  --bg-image-brand: url("../02-design-system/textures/260407_Farbverlauf_RGB_1920x1080px_00.webp");

  /* ── Typography — Font Stacks ───────────────────────────── */
  --font-headline: "Permanent Marker", "Marker Felt", cursive;
  --font-subline: "Arial Black", "Helvetica Neue", Helvetica, "Helvetica Black", sans-serif;
  --font-body: Arial, "Helvetica Neue", Helvetica, sans-serif;

  /* ── Typography — Scale (Mobile First) ──────────────────── */
  --fs-h1: 48px;
  --fs-h2: 36px;
  --fs-h3: 28px;
  --fs-subline: 18px;
  --fs-h4: 18px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-body-sm: 14px;
  --fs-caption: 12px;
  --fs-button: 16px;

  /* Line-Heights */
  --lh-tight: 1.0;
  --lh-headline: 1.05;
  --lh-snug: 1.3;
  --lh-base: 1.5;
  --lh-relaxed: 1.6;

  /* ── Spacing-Skala (8px grid) ───────────────────────────── */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 80px;
  --space-3xl: 120px;
  --space-4xl: 160px;

  /* ── Container-Breite ───────────────────────────────────── */
  --container-max: 1200px;
  --container-padding: 24px;

  /* ── Border-Radius ──────────────────────────────────────── */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 9999px;

  /* ── Shadows ────────────────────────────────────────────── */
  --shadow-paper: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-paper-lg: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-button: 0 2px 4px rgba(0, 0, 0, 0.15);
  --shadow-button-hover: 0 4px 8px rgba(0, 0, 0, 0.25);
  --shadow-nav: 0 1px 4px rgba(0, 0, 0, 0.08);

  /* ── Animations ─────────────────────────────────────────── */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.27, 1.55);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 500ms;

  /* ── Z-Index-Skala ──────────────────────────────────────── */
  --z-base: 1;
  --z-sticky-cta: 90;
  --z-sticky-nav: 100;
  --z-modal: 1000;
}

/* ── Type-Scale-Override für Desktop ─────────────────────── */
@media (min-width: 1024px) {
  :root {
    --fs-h1: 96px;
    --fs-h2: 64px;
    --fs-h3: 40px;
    --fs-subline: 22px;
    --fs-h4: 20px;
    --fs-button: 18px;
    --container-padding: 32px;
  }
}

/* ── Font-Face: Permanent Marker (self-hosted, DSGVO) ────── */
@font-face {
  font-family: "Permanent Marker";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../02-design-system/fonts/permanent-marker-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Reduced Motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
