/* Designsystem von Gatryn (S5 Aufgabe 1): Werte aus dem Wegwerf-Entwurf, Grundlage Radix-Primitives
   mit eigenen Tokens (Samir, k-0014). Alle Farben, Maße und Schriften der Oberfläche kommen von hier;
   Komponenten nutzen nur var(--…). Kontraste prüft tokens.test.ts (WCAG AA). */
:root {
  /* Flächen */
  --color-canvas: #e6e9ef; /* Arbeitsfläche hinter den Tafeln */
  --color-surface: #ffffff; /* Tafeln, Tabellen, Dialoge */
  --color-surface-muted: #f8fafc; /* Kopfzeilen, Fußzeilen von Tafeln */
  --color-border: #cfd5df;
  --color-border-strong: #7a8597; /* Ränder von Eingabefeldern (WCAG 1.4.11: 3 : 1; der Entwurf hatte #94a3b8, 2,6 : 1) */
  --color-selected: #dbeafe; /* gewählte Zeile */
  --color-readas: #eef2ff; /* „Gelesen als“ */

  /* Text */
  --color-text: #111827;
  --color-text-muted: #4b5563;
  --color-link: #1d4ed8;
  --color-link-hover: #1e3a8a;

  /* Akzent und Fokus */
  --color-accent: #1d4ed8;
  --color-accent-hover: #1e3a8a;
  --color-on-accent: #ffffff;
  --color-focus: #1d4ed8; /* Fokusring 2 px auf hellen Flächen */
  --color-focus-on-nav: #93c5fd; /* Fokusring auf der dunklen Navigation */

  /* Navigation und Leisten (dunkel, harter Kontrast) */
  --color-nav: #0a1020;
  --color-nav-raised: #16213a; /* Knöpfe in der Leiste */
  --color-nav-border: #334155;
  --color-nav-text: #f8fafc;
  --color-nav-muted: #a5b4cc; /* Untertitel, Server-Name */
  --color-nav-hint: #94a3b8; /* Tastenkürzel */
  --color-nav-accent: #2563eb; /* Veröffentlichen */

  /* Aktionen: nie nur über Farbe, das Abzeichen trägt immer den Text */
  --color-accept-bg: #dcfce7;
  --color-accept-text: #14532d;
  --color-accept-border: #86efac;
  --color-drop-bg: #ffedd5;
  --color-drop-text: #7c2d12;
  --color-drop-border: #fdba74;
  --color-reject-bg: #ede9fe;
  --color-reject-text: #4c1d95;
  --color-reject-border: #c4b5fd;

  /* Zustände */
  --color-ok-bg: #dcfce7;
  --color-ok-text: #14532d;
  --color-warning-bg: #fff7e6;
  --color-warning-text: #4a3200;
  --color-warning-border: #f0c36d;
  --color-error-bg: #fef2f2;
  --color-error-text: #991b1b;
  --color-error-border: #fca5a5;

  /* Schrift: IBM Plex, mitgeliefert (fonts.css); Systemschrift nur als Rückfall beim Laden */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --text-xs: 11px;
  --text-s: 12px;
  --text-m: 13px;
  --text-base: 14px;
  --text-l: 15px;
  --text-xl: 18px;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-strong: 600;

  /* Maße */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --radius-s: 4px;
  --radius-m: 6px;
  --radius-l: 8px;
  --radius-pill: 999px;
  --control-height: 40px;
  --focus-width: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.4;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--color-link);
}

a:hover {
  color: var(--color-link-hover);
}

:focus-visible {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: 2px;
}
