/* =====================================================================
   UNIC Kunden-Website – Zentrale Design-Tokens (public/site/tokens.css)
   Designsprache: Premium Automotive × Technical Precision × Functional Commerce
   Farben aus dem Logo (100 % unveraendert): Dunkel / Metall-Silber / Glas-Blau
   ===================================================================== */

:root {
  /* -------------------------------------------------------------------
     TIER 1: BRAND & COLOR PRIMITIVES (Unveraenderliche Markenfarben)
     ------------------------------------------------------------------- */
  /* Dunkle Architektur-Basis (Kopfzeile, Fusszeile, Hero, Showroom, Nacht-Basis) */
  --bg: #0B0C0E;
  --bg-2: #08090A;
  --surface: #141619;
  --surface-2: #1A1D21;
  --line: #23272C;
  --line-2: #2E3339;
  --text: #F2F3F5;
  --muted: #9AA1AB;

  /* Marken-Silber & Glas-Blau */
  --silver: linear-gradient(180deg, #E6E8EB, #9BA2AC);
  --silver-horiz: linear-gradient(90deg, #E6E8EB, #9BA2AC);
  --silver-solid: #C9CDD3;
  --blue: #2F7BFF;
  --blue-hover: #5A97FF;
  --blue-shine: #7FB8FF;

  /* -------------------------------------------------------------------
     TIER 2: SEMANTIC SURFACE, TEXT, BORDER & STATUS TOKENS
     Standardwerte fuer Tag-Modus + Basis-Fallback
     ------------------------------------------------------------------- */
  --l-bg: #F5F6F7;
  --l-card: #FFFFFF;
  --l-surface-subtle: #EEF1F5;
  --l-text: #111315;
  --l-text-secondary: #24292F;
  --l-muted: #5B636E;
  --l-line: #E2E5E9;
  --l-line-2: #CDD2D8;
  --l-input-bg: #FFFFFF;
  --l-input-border: #CDD2D8;

  /* Interaktive Akzent-Semantik */
  --accent: #2F7BFF;
  --accent-hover: #5A97FF;
  --accent-deep: #1F63DB;
  --accent-soft: #EAF2FF;
  --accent-border: #C7DBFF;
  --focus-ring: rgba(47, 123, 255, .2);

  /* Status-Semantik */
  --ok: #1F8A4C;
  --ok-soft: rgba(31, 138, 76, .12);
  --danger: #D9363E;
  --danger-soft: rgba(217, 54, 62, .08);
  --warn: #A86A00;
  --warn-soft: #FFF8E6;

  /* -------------------------------------------------------------------
     TIER 3: TYPOGRAPHY SCALE, WEIGHTS, TRACKING & TECHNICAL MONOSPACE
     ------------------------------------------------------------------- */
  --font: -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Typografie-Skala */
  --text-2xs: 0.6875rem;   /* 11px – Technische Tags & Badges */
  --text-xs: 0.75rem;      /* 12px – Eyebrows, Teilenummern, Labels */
  --text-sm: 0.84375rem;   /* 13.5px – Filter-Pills, Tabellen-Meta */
  --text-base: 0.9375rem;  /* 15px – Karten-Fliesstext, Formular-Labels */
  --text-md: 1rem;         /* 16px – Standard-Body & Formular-Inputs */
  --text-lg: 1.125rem;     /* 18px – Lead-Copy & Subheadings */
  --text-xl: 1.3125rem;    /* 21px – Karten-Titel & Drawer-Header */
  --text-2xl: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
  --text-3xl: clamp(2rem, 1.4rem + 3vw, 3.4rem);
  --text-display: clamp(2rem, 1rem + 5.4vw, 5rem);

  /* Schriftschnitte */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-heavy: 800;

  /* Zeilenhoehen */
  --lh-tight: 1.04;
  --lh-heading: 1.12;
  --lh-snug: 1.28;
  --lh-body: 1.55;

  /* Laufweiten / Tracking */
  --track-tight: 0.005em;
  --track-heading: 0.012em;
  --track-ui: 0.02em;
  --track-code: 0.03em;
  --track-label: 0.12em;
  --track-eyebrow: 0.18em;

  /* -------------------------------------------------------------------
     TIER 4: LAYOUT, SPACING, SHARP AUTOMOTIVE RADII, SHADOWS & MOTION
     ------------------------------------------------------------------- */
  /* Praezise, kantige Automotive-Radien (2–4 px) */
  --radius-xs: 2px;
  --radius: 3px;
  --radius-lg: 4px;
  --radius-pill: 999px;

  /* Container & Header-Masse */
  --hdr-h: 68px;
  --hdr-h-compact: 58px;
  --gutter: 20px;
  --maxw: 1360px;
  --maxw-narrow: 860px;

  /* Konsistente Abstands-Skala */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 44px;
  --space-9: 64px;
  --space-10: 96px;
  --space-11: 120px;

  /* Schatten & Elevation */
  --shadow-xs: 0 1px 3px rgba(11, 12, 14, .06);
  --shadow-sm: 0 2px 10px rgba(17, 19, 21, .05);
  --shadow-md: 0 6px 20px rgba(17, 19, 21, .09);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, .45);
  --shadow-blue: 0 2px 10px rgba(47, 123, 255, .32);
  --shadow-drawer: -12px 0 40px rgba(0, 0, 0, .4);

  /* Z-Index-Skala */
  --z-base: 1;
  --z-sticky: 30;
  --z-header: 50;
  --z-menu: 80;
  --z-toast: 105;
  --z-backdrop: 110;
  --z-drawer: 120;
  --z-skip: 200;

  /* Bewegung & Kurven */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 300ms;

  /* -------------------------------------------------------------------
     UNIFIED CATALOG TOKENS (--uc-*) – Gemeinsame Quelle fuer site + catalog
     ------------------------------------------------------------------- */
  --uc-bg: var(--l-bg);
  --uc-card: var(--l-card);
  --uc-text: var(--l-text);
  --uc-muted: var(--l-muted);
  --uc-line: var(--l-line);
  --uc-line-2: var(--l-line-2);
  --uc-accent: var(--accent);
  --uc-accent-h: var(--accent-hover);
  --uc-accent-d: var(--accent-deep);
  --uc-accent-soft: var(--accent-soft);
  --uc-ok: var(--ok);
  --uc-wait: var(--warn);
  --uc-r: var(--radius);
  --uc-g: var(--gutter, 20px);
  --uc-font: var(--font);
  --uc-mono: var(--mono);
}

/* Responsive Layout-Tokens */
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --hdr-h: 82px;
    --hdr-h-compact: 68px;
  }
}
@media (min-width: 1200px) {
  :root {
    --gutter: 36px;
  }
}
@media (min-width: 1380px) {
  :root {
    --gutter: 48px;
  }
}

/* Expliziter Tag-Modus (html[data-site-theme="light"]) */
html[data-site-theme="light"] {
  --l-bg: #F5F6F7;
  --l-card: #FFFFFF;
  --l-surface-subtle: #EEF1F5;
  --l-text: #111315;
  --l-text-secondary: #24292F;
  --l-muted: #5B636E;
  --l-line: #E2E5E9;
  --l-line-2: #CDD2D8;
  --l-input-bg: #FFFFFF;
  --l-input-border: #CDD2D8;
  --accent: #2F7BFF;
  --accent-hover: #5A97FF;
  --accent-deep: #1F63DB;
  --accent-soft: #EAF2FF;
  --accent-border: #C7DBFF;
  --focus-ring: rgba(47, 123, 255, .18);
  --ok: #1F8A4C;
  --ok-soft: rgba(31, 138, 76, .12);
  --danger: #D9363E;
  --danger-soft: rgba(217, 54, 62, .08);
  --warn: #A86A00;
  --warn-soft: #FFF8E6;
  --shadow-sm: 0 2px 10px rgba(17, 19, 21, .05);
  --shadow-md: 0 6px 20px rgba(17, 19, 21, .09);
  --shadow-drawer: -12px 0 40px rgba(0, 0, 0, .35);
}

/* Nacht-Modus (html[data-site-theme="dark"] – Standard-Theme) */
html[data-site-theme="dark"] {
  --l-bg: #0D0F12;
  --l-card: #15181D;
  --l-surface-subtle: #1A1E25;
  --l-text: #F2F4F7;
  --l-text-secondary: #DDE2EA;
  --l-muted: #9AA3AE;
  --l-line: #252A32;
  --l-line-2: #343B46;
  --l-input-bg: #0F1216;
  --l-input-border: #2D333D;
  --accent: #3D8BFF;
  --accent-hover: #63A0FF;
  --accent-deep: #82B8FF;
  --accent-soft: rgba(61, 139, 255, .15);
  --accent-border: rgba(99, 160, 255, .34);
  --focus-ring: rgba(61, 139, 255, .22);
  --ok: #34D399;
  --ok-soft: rgba(52, 211, 153, .14);
  --danger: #F87171;
  --danger-soft: rgba(248, 113, 113, .12);
  --warn: #FBBF24;
  --warn-soft: rgba(251, 191, 36, .14);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .32);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .42);
  --shadow-drawer: -16px 0 48px rgba(0, 0, 0, .65);

  /* Unified Catalog Tokens im Nacht-Modus */
  --uc-bg: #0D0F12;
  --uc-card: #15181D;
  --uc-text: #F2F4F7;
  --uc-muted: #9AA3AE;
  --uc-line: #252A32;
  --uc-line-2: #343B46;
  --uc-accent: #3D8BFF;
  --uc-accent-h: #63A0FF;
  --uc-accent-d: #82B8FF;
  --uc-accent-soft: rgba(61, 139, 255, .15);
  --uc-ok: #34D399;
  --uc-wait: #FBBF24;
}
