/* ==================================================================
   Design-Tokens – Workplace Cockpit

   Schicht 1: Grundwerte   (feste Palette, wird nie direkt in Komponenten genutzt)
   Schicht 2: Bedeutung    (Theme-abhängig, das nutzen alle Komponenten)
   Kundenwerte (Akzent, Status) werden in der Seite aus der Konfiguration
   überschrieben – die Werte hier sind nur Standardwerte.
   ================================================================== */

/* ---------- Schrift ---------- */

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

/* ---------- Schicht 1: Grundwerte ---------- */

:root {
  /* Graustufen – leicht bläulich für einen kühlen, technischen Eindruck */
  --gray-0: #ffffff;
  --gray-50: #f5f7f9;
  --gray-100: #ebeef2;
  --gray-200: #d9dee4;
  --gray-300: #b8c0c9;
  --gray-400: #8a94a0;
  --gray-500: #6b7480;
  --gray-600: #4b535c;
  --gray-700: #2a323b;
  --gray-750: #232a32;
  --gray-800: #1c2229;
  --gray-850: #14191e;
  --gray-900: #0e1115;
  --gray-950: #0a0c0f;

  /* Typografie */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.375rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2.5rem;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.02em;
  --letter-spacing-wide: 0.08em;

  /* Abstände – 4-px-Raster */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;

  /* Ecken und Linien */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 999px;
  --border-width: 1px;

  /* Bewegung */
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 500ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Layout */
  --header-height: 64px;
  --content-max-width: 1440px;
}

/* ---------- Kundenwerte (Standard, werden per Konfiguration überschrieben) ---------- */

:root {
  --accent: #3b82f6;
  --accent-contrast: #ffffff;

  --status-present: #4ade80;
  --status-home-office: #60a5fa;
  --status-business-trip: #a78bfa;
  --status-busy: #fbbf24;
  --status-absent: #6b7280;

  /* Abgeleitete Werte – berechnet der Browser aus der jeweiligen Kundenfarbe */
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-border: color-mix(in srgb, var(--accent) 45%, transparent);
}

/* ---------- Schicht 2: Bedeutung – dunkles Theme (Standard) ---------- */

:root,
[data-theme="dark"] {
  color-scheme: dark;

  --color-bg: var(--gray-950);
  --color-surface: var(--gray-900);
  --color-surface-raised: var(--gray-850);
  --color-surface-hover: var(--gray-800);

  --color-border: var(--gray-800);
  --color-border-strong: var(--gray-700);

  --color-text: var(--gray-100);
  --color-text-secondary: var(--gray-300);
  --color-text-muted: var(--gray-400);
  --color-text-faint: var(--gray-500);

  --color-grid-dot: #1a2027;
}

/* ---------- Schicht 2: Bedeutung – helles Theme ---------- */

[data-theme="light"] {
  color-scheme: light;

  --color-bg: var(--gray-50);
  --color-surface: var(--gray-0);
  --color-surface-raised: var(--gray-0);
  --color-surface-hover: var(--gray-100);

  --color-border: var(--gray-100);
  --color-border-strong: var(--gray-200);

  --color-text: var(--gray-950);
  --color-text-secondary: var(--gray-600);
  --color-text-muted: var(--gray-500);
  --color-text-faint: var(--gray-400);

  /* Im hellen Theme kein Punktraster */
  --color-grid-dot: transparent;
}