/* Neutrale Basis; aktive Firmenfarbe kommt aus der Kundeninstallation. */
:root {
  /* === Brand === */
  --color-brand-primary: #2C5C4C;            /* Wird durch die aktive Kundenfarbe ersetzt. */
  --color-brand-primary-hover: #254e41;
  --color-brand-primary-active: #204237;
  --color-brand-primary-soft: #ecf0ef;       /* Heller Akzent für Badges und Hinweise. */
  --color-brand-primary-on: #FFFFFF;         /* Text auf Brand-Hintergrund */
  --color-brand-primary-on-hover: #FFFFFF;
  --color-brand-primary-on-active: #FFFFFF;

  --color-brand-dark: #1F1F1F;               /* Footer, Headlines, Print */
  --color-brand-dark-soft: #2E2E2E;

  /* === Surfaces === */
  --color-surface: #FFFFFF;
  --color-surface-alt: #F7F7F8;              /* Card-Hintergrund, Sidebar */
  --color-surface-muted: #EFEFF1;            /* Tabellen-Zebra */
  --color-surface-overlay: rgba(0, 0, 0, 0.4);

  /* === Text === */
  --color-text-default: #1F1F1F;
  --color-text-muted: #6B6B6B;
  --color-text-subtle: #9A9A9A;
  --color-text-on-dark: #FFFFFF;
  --color-text-link: var(--color-brand-primary);
  --color-text-link-hover: var(--color-brand-primary-hover);

  /* === Border === */
  --color-border: #DCDCE0;
  --color-border-strong: #B5B5BB;
  --color-border-focus: var(--color-brand-primary);

  /* === Status === */
  --color-status-ok: #2E7D32;
  --color-status-ok-soft: #E6F4E7;
  --color-status-warn: #ED6C02;
  --color-status-warn-soft: #FDF1E1;
  --color-status-error: #C62828;
  --color-status-error-soft: #FBE6E6;
  --color-status-info: #1565C0;
  --color-status-info-soft: #E3F0FB;

  /* === Typography === */
  --font-family-base: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-family-heading: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-family-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --font-size-xs: 11px;
  --font-size-sm: 13px;
  --font-size-md: 14px;     /* Default Body */
  --font-size-lg: 16px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-loose: 1.75;

  /* === Spacing (4-pt-Grid) === */
  --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;
  --space-16: 64px;

  /* === Radii === */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  /* === Shadows === */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-focus: 0 0 0 3px color-mix(in srgb, var(--color-brand-primary) 25%, transparent);

  /* === Layout === */
  --header-height: 56px;
  --sidebar-width: 240px;
  --container-max: 1280px;

  --transition-fast: 120ms ease;
  --transition-base: 180ms ease;
  --transition-slow: 280ms ease;
}
