/* =========================================================================
   DESIGN TOKENS — LIGHTMODE (Standard, orientiert an minimalistischer UI)
   ========================================================================= */
:root,
[data-theme="light"] {
  --bg-page: #f7f8fa;
  --bg-surface: #ffffff;
  --bg-subtle: #f3f4f6;
  --bg-hover: #f0f2f5;

  /* Charakteristischer dunkler Obsidian-Block (KPI-Panel, Tabellenkopf, Primär-Buttons) */
  --obsidian-bg: #151926;
  --obsidian-surface: #1e2436;
  --obsidian-border: #2a3147;
  --obsidian-text: #ffffff;
  --obsidian-muted: #94a3b8;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #8b95a5;

  --border-color: #e6e8ec;
  --border-strong: #d1d5db;

  --accent: #151926;
  --accent-hover: #252c40;
  --accent-contrast: #ffffff;

  --status-green-bg: #e7f8ef;
  --status-green-text: #15803d;
  --status-yellow-bg: #fef7e0;
  --status-yellow-text: #a16207;
  --status-red-bg: #fdecec;
  --status-red-text: #b91c1c;
  --status-blue-bg: #eaf2ff;
  --status-blue-text: #1d4ed8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-subtle: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-float: 0 10px 30px rgba(16, 24, 40, 0.12);

  --sidebar-width: 248px;
  --topbar-height: 64px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =========================================================================
   DESIGN TOKENS — DARKMODE
   ========================================================================= */
[data-theme="dark"] {
  --bg-page: #0c0f17;
  --bg-surface: #141926;
  --bg-subtle: #1b2234;
  --bg-hover: #222b40;

  /* Im Darkmode hebt sich das KPI-Panel durch feinen Rahmen & tiefes Slate ab */
  --obsidian-bg: #0f131f;
  --obsidian-surface: #182032;
  --obsidian-border: #2b3650;
  --obsidian-text: #f8fafc;
  --obsidian-muted: #94a3b8;

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #7e8ba3;

  --border-color: #232b3e;
  --border-strong: #33405c;

  --accent: #f8fafc;
  --accent-hover: #e2e8f0;
  --accent-contrast: #0f172a;

  --status-green-bg: rgba(34, 197, 94, 0.16);
  --status-green-text: #4ade80;
  --status-yellow-bg: rgba(234, 179, 8, 0.16);
  --status-yellow-text: #facc15;
  --status-red-bg: rgba(239, 68, 68, 0.16);
  --status-red-text: #f87171;
  --status-blue-bg: rgba(59, 130, 246, 0.18);
  --status-blue-text: #60a5fa;

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-float: 0 14px 36px rgba(0, 0, 0, 0.55);
}

/* Kompakte Dichte (in Einstellungen umschaltbar) */
[data-density="compact"] {
  font-size: 14px;
}