/* ============================================================
   Design Tokens — Verkehrswacht Schwandorf
   Karolins Vorgabe: RGB(196, 222, 175) Pastellgruen.
   Alle weiteren Werte semantisch abgeleitet.
   ============================================================ */

:root {
  /* Farben */
  --color-primary: #C4DEAF;
  --color-primary-soft: #E2EED5;
  --color-primary-dark: #5A7F45;
  --color-primary-darker: #3F5A30;
  --color-text: #1F2A1A;
  --color-text-muted: #5C6657;
  --color-text-on-primary: #1F2A1A;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F7FBF3;
  --color-border: #DCE5D2;
  --color-border-strong: #B4C8A0;
  --color-warn: #C0392B;
  --color-warn-bg: #FBEAE5;
  --color-focus: #2E6BB8;

  /* Typografie */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: 1.375rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.5rem, 1.5vw + 0.875rem, 2rem);
  --fs-h1: clamp(1.875rem, 2.5vw + 1rem, 2.75rem);
  --lh-base: 1.6;
  --lh-tight: 1.3;
  --lh-headings: 1.2;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --letter-tight: -0.01em;

  /* Spacing — 4pt-Grid */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Layout */
  --container-max: 72rem;
  --container-narrow: 48rem;
  --header-height: 4.5rem;

  /* Radien */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-pill: 999px;

  /* Schatten */
  --shadow-sm: 0 1px 2px rgba(31, 42, 26, 0.06);
  --shadow-md: 0 4px 12px rgba(31, 42, 26, 0.08);
  --shadow-lg: 0 12px 32px rgba(31, 42, 26, 0.12);

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --t-slow: 0.4s ease;

  /* Z-Index */
  --z-skip: 100;
  --z-header: 50;
  --z-menu: 60;
  --z-modal: 80;
}

/* Dark Mode optional, nicht aktiviert per Default */
@media (prefers-color-scheme: dark) {
  /* bewusst leer: Verein wuenscht hellen Look. Kann spaeter ergaenzt werden. */
}

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