/* BN-SYS design tokens — the approved BitNetz design (pictures 01d–05d, boss 23.11.2026).
   Colours from bitnetz-gmbh.de (hue 270 purple scale, violet-tinted neutrals). Fonts are local:
   Inter if installed, else Segoe UI (Inter files will be self-hosted, never loaded from Google). */
:root {
  --bn-purple-900: #331a4d;
  --bn-purple-800: #4d2673;
  --bn-purple-700: #663894;
  --bn-purple-600: #8751bd;
  --bn-purple-500: #9970c2;
  --bn-purple-300: #ccbadb;

  --brand: var(--bn-purple-600);
  --brand-ink: #ffffff;
  --brand-soft: #f3edf9;
  --brand-dark: var(--bn-purple-700);

  --surface: #faf9fb;
  --panel: #ffffff;
  --line: #e2dbe8;
  --line-strong: #cbc1d4;
  --ink: #1a1320;
  --ink-soft: #6b5f73;        /* AA on white */
  --attention-ink: #7a4a00;
  --attention-bg: #fff8ea;
  --attention-line: #e0a020;
  --error-ink: #a51d1d;
  --error-bg: #fdeeee;
  --error-line: #efb3b3;

  --font: "Inter", "Segoe UI", Arial, sans-serif;
  --radius: 4px;
  --sidebar-w: 236px;
  --sidebar-bg: #24123a;
  --sidebar-ink: #ece6f3;
  --sidebar-soft: #b6a8c6;
  --row-h: 52px;

  /* Type scale (owner 01.12.2026: "enlarge font", picture 06a): every size +2 px against the approved
     pictures, body 13 -> 15 px. ALL font sizes in the portal come from here (guarded by
     web/tests/test_css_type_scale.py) - a later "Schriftgröße groß" per user only changes these lines. */
  --fs-2xs: 13px;   /* was 11: group labels, tags */
  --fs-xs: 14px;    /* was 12: hints, table heads, second lines */
  --fs-sm: 15px;    /* was 13: body text, table cells, buttons */
  --fs-md: 16px;    /* was 14: navigation, tabs, inputs */
  --fs-lg: 17px;    /* was 15: card titles */
  --fs-xl: 18px;    /* was 16: section titles, small icons */
  --fs-2xl: 20px;   /* was 18: icons */
  --fs-3xl: 22px;   /* was 20 */
  --fs-4xl: 24px;   /* was 22 */
  --fs-5xl: 26px;   /* was 24: page titles */
  --fs-6xl: 28px;   /* was 26: key figures */
  --fs-7xl: 30px;   /* was 28 */
  /* Buttons and fields grow with the text (picture 06a: 38 px) */
  --control-h-sm: 34px;  /* was 30 */
  --control-h: 38px;     /* was 34 / 36 */
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: var(--fs-sm); color: var(--ink); background: var(--surface); }
:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; }
