/* Design-Tokens – einzige Quelle für Farben, Typo, Abstände.
   Charts lesen diese Variablen zur Laufzeit, daher ist alles einheitlich. */
:root {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, Georgia, serif;
  --font: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --border: #d9dee7;
  --text: #0b1220;
  --text-muted: #4b5565;
  --text-faint: #7b8697;

  --accent: #25307a;
  --accent-soft: rgba(37, 48, 122, 0.08);
  --pos: #0b7a5a;
  --pos-soft: rgba(11, 122, 90, 0.10);
  --neg: #b42318;
  --neg-soft: rgba(229, 72, 77, 0.12);
  --warn: #a85a08;
  --warn-soft: rgba(168, 90, 8, 0.10);

  --grid: #e9ecf1;
  --axis: #98a2b3;

  --radius: 6px;
  --radius-sm: 4px;
  --shadow: none;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif;
    --bg: #0b0d12;
    --surface: #12151c;
    --surface-2: #181c25;
    --border: #232835;
    --text: #f2f4f7;
    --text-muted: #98a2b3;
    --text-faint: #667085;
    --accent: #7c88ff;
    --accent-soft: rgba(124, 136, 255, 0.16);
    --pos: #2dd4a0;
    --neg: #ff6b6f;
    --warn: #f5a524;
    --grid: #1c212b;
    --axis: #667085;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}
