/* HDTools Design Set v2 - GENERIERT aus design_tokens.json durch tokens_export.py.
   Nicht von Hand aendern: Aenderungen gehoeren in design_tokens.json. Dunkel ist Standard,
   hell gilt bei [data-theme=light] oder ohne Wahl bei prefers-color-scheme: light. */

@font-face {
  font-family: "Barlow";
  src: url("fonts/Barlow-Regular.woff2") format("woff2"), url("fonts/Barlow-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/Barlow-Medium.woff2") format("woff2"), url("fonts/Barlow-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/Barlow-SemiBold.woff2") format("woff2"), url("fonts/Barlow-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/Barlow-Bold.woff2") format("woff2"), url("fonts/Barlow-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("fonts/BarlowSemiCondensed-SemiBold.woff2") format("woff2"), url("fonts/BarlowSemiCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Variable.woff2") format("woff2"), url("fonts/JetBrainsMono-Variable.ttf") format("truetype");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "Barlow", "Bahnschrift", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Barlow Semi Condensed", "Bahnschrift SemiCondensed", "Barlow", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  --sperrung-label: 0.08em;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 13px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-display: 44px;
  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --inhalt-max: 1180px;
  --messraster: 32px;
  --dauer-schnell: 120ms;
  --dauer-normal: 200ms;
  --dauer-langsam: 320ms;
  --kurve: cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0e14;
  --surface: #10161e;
  --surface-alt: #161e28;
  --surface-raised: #1c2632;
  --border: #243040;
  --border-strong: #33445a;
  --hairline: #1a2430;
  --text: #e6edf5;
  --text-dim: #9aabbd;
  --text-faint: #64758a;
  --accent: #22c9e8;
  --accent-hover: #4fd8f2;
  --accent-press: #12aac6;
  --accent-text: #041219;
  --accent-soft: #103241;
  --focus: #22c9e8;
  --ml: #b39dff;
  --ml-text: #120a33;
  --ml-soft: #2a2350;
  --success: #3ddc84;
  --warning: #f5b83d;
  --danger: #ff6b6b;
  --info: #22c9e8;
  --scrim: #05080cb8;
  --reihe-1: #22c9e8;
  --reihe-2: #e69f00;
  --reihe-3: #3ddc84;
  --reihe-4: #cc79a7;
  --reihe-5: #ff7b3d;
  --reihe-6: #5aa9ff;
  --reihe-7: #f0e442;
  --reihe-8: #b39dff;
  --gitter: #1a2430;
  --achse: #9aabbd;
  --fokusring: 0 0 0 3px rgba(34, 201, 232, 0.28);
  --schatten-karte: 0 1px 0 rgba(255,255,255,0.03) inset, 0 8px 24px rgba(0,0,0,0.35);
  --schatten-pop: 0 12px 40px rgba(0,0,0,0.55);
  --bg-2: var(--surface);
  --panel: var(--surface);
  --panel-2: var(--surface-alt);
  --ink: var(--text);
  --ink-dim: var(--text-dim);
  --ink-faint: var(--text-faint);
  --line: var(--border);
  --accent-ink: var(--accent-text);
  --ok: var(--success);
  --warn: var(--warning);
  --bad: var(--danger);
  --grid: var(--hairline);
  --trace: var(--accent);
  --fg: var(--text);
  --fg-dim: var(--text-dim);
  --bg-sunken: var(--bg);
  --axis: var(--achse);
  --muted: var(--text-dim);
  --blue: var(--accent);
  --cyan: var(--info);
  --green: var(--success);
  --shadow-card: var(--schatten-karte);
  --shadow-pop: var(--schatten-pop);
  --shadow-sm: var(--schatten-karte);
  --shadow-md: var(--schatten-pop);
  --radius: var(--radius-lg);
  --sans: var(--font-sans);
  --mono: var(--font-mono);
  --series-1: var(--reihe-1);
  --series-2: var(--reihe-2);
  --series-3: var(--reihe-3);
  --series-4: var(--reihe-4);
  --series-5: var(--reihe-5);
  --series-6: var(--reihe-6);
  --series-7: var(--reihe-7);
  --series-8: var(--reihe-8);
  --kopf: var(--surface);
  --kopf-text: var(--text);
  --grund: var(--bg);
  --karte: var(--surface);
  --rand: var(--border);
  --leise: var(--text-dim);
  --akzent: var(--accent);
  --akzent-dunkel: var(--accent-press);
  --gruen: var(--success);
  --gelb: var(--warning);
  --rot: var(--danger);
  --grau: var(--border-strong);
  --schrift: var(--font-sans);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #eef2f6;
    --surface: #ffffff;
    --surface-alt: #f3f6f9;
    --surface-raised: #ffffff;
    --border: #d3dbe4;
    --border-strong: #b7c3d0;
    --hairline: #e6ebf1;
    --text: #121a24;
    --text-dim: #4f5f70;
    --text-faint: #6f7d8c;
    --accent: #0a7fae;
    --accent-hover: #096f98;
    --accent-press: #085f83;
    --accent-text: #ffffff;
    --accent-soft: #dcf1f8;
    --focus: #0a7fae;
    --ml: #6d4fd6;
    --ml-text: #ffffff;
    --ml-soft: #ece7fb;
    --success: #15803d;
    --warning: #a16207;
    --danger: #c62828;
    --info: #0a7fae;
    --scrim: #0a0e1466;
    --reihe-1: #0a7fae;
    --reihe-2: #c77f00;
    --reihe-3: #15803d;
    --reihe-4: #b0508a;
    --reihe-5: #d55e00;
    --reihe-6: #0072b2;
    --reihe-7: #a89b00;
    --reihe-8: #6d4fd6;
    --gitter: #e6ebf1;
    --achse: #4f5f70;
    --fokusring: 0 0 0 3px rgba(10, 127, 174, 0.25);
    --schatten-karte: 0 1px 2px rgba(18,26,36,0.06), 0 8px 24px rgba(18,26,36,0.08);
    --schatten-pop: 0 12px 40px rgba(18,26,36,0.18);
    --bg-2: var(--surface);
    --panel: var(--surface);
    --panel-2: var(--surface-alt);
    --ink: var(--text);
    --ink-dim: var(--text-dim);
    --ink-faint: var(--text-faint);
    --line: var(--border);
    --accent-ink: var(--accent-text);
    --ok: var(--success);
    --warn: var(--warning);
    --bad: var(--danger);
    --grid: var(--hairline);
    --trace: var(--accent);
    --fg: var(--text);
    --fg-dim: var(--text-dim);
    --bg-sunken: var(--bg);
    --axis: var(--achse);
    --muted: var(--text-dim);
    --blue: var(--accent);
    --cyan: var(--info);
    --green: var(--success);
    --shadow-card: var(--schatten-karte);
    --shadow-pop: var(--schatten-pop);
    --shadow-sm: var(--schatten-karte);
    --shadow-md: var(--schatten-pop);
    --radius: var(--radius-lg);
    --sans: var(--font-sans);
    --mono: var(--font-mono);
    --series-1: var(--reihe-1);
    --series-2: var(--reihe-2);
    --series-3: var(--reihe-3);
    --series-4: var(--reihe-4);
    --series-5: var(--reihe-5);
    --series-6: var(--reihe-6);
    --series-7: var(--reihe-7);
    --series-8: var(--reihe-8);
    --kopf: var(--surface);
    --kopf-text: var(--text);
    --grund: var(--bg);
    --karte: var(--surface);
    --rand: var(--border);
    --leise: var(--text-dim);
    --akzent: var(--accent);
    --akzent-dunkel: var(--accent-press);
    --gruen: var(--success);
    --gelb: var(--warning);
    --rot: var(--danger);
    --grau: var(--border-strong);
    --schrift: var(--font-sans);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-alt: #f3f6f9;
  --surface-raised: #ffffff;
  --border: #d3dbe4;
  --border-strong: #b7c3d0;
  --hairline: #e6ebf1;
  --text: #121a24;
  --text-dim: #4f5f70;
  --text-faint: #6f7d8c;
  --accent: #0a7fae;
  --accent-hover: #096f98;
  --accent-press: #085f83;
  --accent-text: #ffffff;
  --accent-soft: #dcf1f8;
  --focus: #0a7fae;
  --ml: #6d4fd6;
  --ml-text: #ffffff;
  --ml-soft: #ece7fb;
  --success: #15803d;
  --warning: #a16207;
  --danger: #c62828;
  --info: #0a7fae;
  --scrim: #0a0e1466;
  --reihe-1: #0a7fae;
  --reihe-2: #c77f00;
  --reihe-3: #15803d;
  --reihe-4: #b0508a;
  --reihe-5: #d55e00;
  --reihe-6: #0072b2;
  --reihe-7: #a89b00;
  --reihe-8: #6d4fd6;
  --gitter: #e6ebf1;
  --achse: #4f5f70;
  --fokusring: 0 0 0 3px rgba(10, 127, 174, 0.25);
  --schatten-karte: 0 1px 2px rgba(18,26,36,0.06), 0 8px 24px rgba(18,26,36,0.08);
  --schatten-pop: 0 12px 40px rgba(18,26,36,0.18);
  --bg-2: var(--surface);
  --panel: var(--surface);
  --panel-2: var(--surface-alt);
  --ink: var(--text);
  --ink-dim: var(--text-dim);
  --ink-faint: var(--text-faint);
  --line: var(--border);
  --accent-ink: var(--accent-text);
  --ok: var(--success);
  --warn: var(--warning);
  --bad: var(--danger);
  --grid: var(--hairline);
  --trace: var(--accent);
  --fg: var(--text);
  --fg-dim: var(--text-dim);
  --bg-sunken: var(--bg);
  --axis: var(--achse);
  --muted: var(--text-dim);
  --blue: var(--accent);
  --cyan: var(--info);
  --green: var(--success);
  --shadow-card: var(--schatten-karte);
  --shadow-pop: var(--schatten-pop);
  --shadow-sm: var(--schatten-karte);
  --shadow-md: var(--schatten-pop);
  --radius: var(--radius-lg);
  --sans: var(--font-sans);
  --mono: var(--font-mono);
  --series-1: var(--reihe-1);
  --series-2: var(--reihe-2);
  --series-3: var(--reihe-3);
  --series-4: var(--reihe-4);
  --series-5: var(--reihe-5);
  --series-6: var(--reihe-6);
  --series-7: var(--reihe-7);
  --series-8: var(--reihe-8);
  --kopf: var(--surface);
  --kopf-text: var(--text);
  --grund: var(--bg);
  --karte: var(--surface);
  --rand: var(--border);
  --leise: var(--text-dim);
  --akzent: var(--accent);
  --akzent-dunkel: var(--accent-press);
  --gruen: var(--success);
  --gelb: var(--warning);
  --rot: var(--danger);
  --grau: var(--border-strong);
  --schrift: var(--font-sans);
}

@media (prefers-reduced-motion: reduce) {
  :root { --dauer-schnell: 0ms; --dauer-normal: 0ms; --dauer-langsam: 0ms; }
}
