/*
 * AQUALYS Design-Tokens (CI-Handbuch "AQUALYS", tokens.json).
 * Helles Thema als Standard, dunkles Thema über <html data-theme="dark">.
 * Nur Variablen – keine Regeln für Elemente. Komponenten: aq.css.
 */
:root {
    /* Marke */
    --brand: #3880c2;
    --brand-strong: #2a6aa8;
    --brand-soft: #e4eef8;
    --on-brand: #ffffff;
    --martinek-blue: #0082b9;
    --graphite: #525251;

    /* Flächen und Linien */
    --surface: #f1f3f6;
    --surface-raised: #ffffff;
    --surface-sunken: #e8ecf1;
    --line: #d6dce4;
    --line-strong: #7f8b9b;

    /* Text */
    --ink: #1c2430;
    --ink-muted: #525d6b;

    /* Status */
    --changed: #8a6100;
    --changed-soft: #fdf2c8;
    --success: #1d6b35;
    --success-soft: #ddf3e3;
    --pending: #1f5d99;
    --pending-soft: #e3eefa;
    --danger: #b3261e;
    --danger-soft: #fde4df;

    /* Messgrößen (nur Diagramme/Icons) */
    --measure-flow: #2f74b5;
    --measure-pressure: #d23a2e;
    --measure-noise: #2a8f55;
    --measure-temperature: #e58a22;
    --online: #26b050;
    --focus: #2a6aa8;

    /* Typografie */
    --font-sans: "Helvetica Neue", Arial, Helvetica, sans-serif;
    --font-mono: ui-monospace, Consolas, "Courier New", monospace;
    --text-display: 700 28px/34px var(--font-sans);
    --text-title: 700 20px/26px var(--font-sans);
    --text-heading: 600 16px/22px var(--font-sans);
    --text-body: 400 15px/22px var(--font-sans);
    --text-label: 600 13px/18px var(--font-sans);
    --text-small: 400 12px/16px var(--font-sans);

    /* Abstände (4er-Raster) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;

    /* Radien */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 999px;

    /* Schatten */
    --shadow-raised: 0 1px 2px rgba(16,24,40,0.06), 0 1px 3px rgba(16,24,40,0.10);
    --shadow-overlay: 0 8px 24px rgba(16,24,40,0.18);

    /* Layout */
    --rail-width: 288px;          /* ausgeklappt: Platz für das größere Logo (TODO 27.11.2026) */
    --rail-width-collapsed: 72px;

    color-scheme: light;
}

html[data-theme="dark"] {
    --brand: #6aa6e0;
    --brand-strong: #5a9de0;
    --brand-soft: #18304a;
    --on-brand: #0b1420;
    --martinek-blue: #3fa9d8;
    --graphite: #b9b9b7;

    --surface: #10151c;
    --surface-raised: #19202a;
    --surface-sunken: #0b0f14;
    --line: #2c3644;
    --line-strong: #6b7889;

    --ink: #e8edf3;
    --ink-muted: #a6b0bd;

    --changed: #f2cf62;
    --changed-soft: #3a3011;
    --success: #7fd59a;
    --success-soft: #123320;
    --pending: #8ec2f2;
    --pending-soft: #14304d;
    --danger: #f4978a;
    --danger-soft: #3d1813;

    --measure-flow: #6aa6e0;
    --measure-pressure: #f07a6e;
    --measure-noise: #6bcf93;
    --measure-temperature: #f2ad5c;
    --online: #4cc970;
    --focus: #8ec2f2;

    --shadow-raised: 0 1px 2px rgba(0,0,0,0.5);
    --shadow-overlay: 0 8px 24px rgba(0,0,0,0.6);

    color-scheme: dark;
}
