/* PX1: helle A-Variante; höhere Spezifität als der dunkle Standard. */
:root[data-theme="light"] {
  --fc-bg: #F5F3F7;
  --fc-sidebar: #FFFFFF;
  --fc-surface: #FFFFFF;
  --fc-surface-raised: #EDE8F0;
  --fc-surface-hover: #EDE8F0;
  --fc-surface-selected: #F0DDEA;
  --fc-border: #C9BFCE;
  --fc-border-control: #93869B;
  --fc-text: #241E2D;
  --fc-text-secondary: #4C4257;
  --fc-text-muted: #675D70;
  --fc-primary: #A52278;
  --fc-primary-end: #862063;
  --fc-primary-hover: #921E6C;
  --fc-primary-hover-end: #7C1D5D;
  --fc-primary-active: #751651;
  --fc-accent-text: #9B236F;
  --fc-focus: #9B236F;
  --fc-success-text: #216833;
  --fc-success-bg: #E5F3E5;
  --fc-warning-text: #835000;
  --fc-warning-bg: #FFF0D4;
  --fc-danger-text: #A42C27;
  --fc-danger-bg: #FBE7E5;
  --fc-info-text: #235B9D;
  --fc-info-bg: #E4EFFB;
  --fc-disabled-bg: #E6E0EA;
  --fc-disabled-text: #766A7E;
  --fc-progress-track: #E6D6E8;
  --fc-progress-fill: #8B3F8D;
  --fc-flow-light: #9B236F;
  --fc-flow-pink: #A52278;
  --fc-flow-purple: #6C439A;
}
/* Flow Command · PX1 · A Leitstand, gewählt N124 (10.11.2026).
   Historische Kontofarben beeinflussen diese einheitliche Palette nicht mehr. */
:root, :root[data-theme="dark"] {
  --fc-bg: #19171F;
  --fc-sidebar: #17151D;
  --fc-surface: #24212C;
  --fc-surface-raised: #302B39;
  --fc-surface-hover: #302B39;
  --fc-surface-selected: #45253F;
  --fc-border: #494150;
  --fc-border-control: #6B5D74;
  --fc-text: #F6F2F8;
  --fc-text-secondary: #DED8E3;
  --fc-text-muted: #BCB5C7;
  --fc-primary: #CC3699;
  --fc-primary-end: #B02E86;
  --fc-primary-hover: #C63395;
  --fc-primary-hover-end: #A62B7E;
  --fc-primary-active: #93246F;
  --fc-accent-text: #FF9CE6;
  --fc-focus: #F58AD5;
  --fc-success-text: #8BD48A;
  --fc-success-bg: #263829;
  --fc-warning-text: #F4BD56;
  --fc-warning-bg: #3A2E22;
  --fc-danger-text: #EE7C66;
  --fc-danger-bg: #40222C;
  --fc-info-text: #9ABEF5;
  --fc-info-bg: #1C273B;
  --fc-disabled-bg: #29222F;
  --fc-disabled-text: #8E839A;
  --fc-progress-track: #382D43;
  --fc-progress-fill: #C68CDF;
  --fc-flow-light: #F58AD5;
  --fc-flow-pink: #D238A8;
  --fc-flow-purple: #9D74D8;
  --fc-scrim: rgb(8 6 12 / 72%);
  --fc-shadow-overlay: 0 20px 60px rgb(0 0 0 / 30%);
  --fc-brand-original-bg: #FFFFFF;
  --fc-gradient-brand-panel: linear-gradient(115deg, var(--fc-surface), var(--fc-surface-selected));
  --fc-gradient-primary: linear-gradient(110deg, var(--fc-primary), var(--fc-primary-end));
  --fc-gradient-primary-hover: linear-gradient(110deg, var(--fc-primary-hover), var(--fc-primary-hover-end));
  --fc-gradient-brand: linear-gradient(125deg, var(--fc-flow-light), var(--fc-flow-pink) 48%, var(--fc-flow-purple));
  --fc-primary-text: #FFFFFF;
  /* FC03: SPEZ 4, mobile Größen werden unten gezielt überschrieben. */
  --fc-type-brand: 20px;
  --fc-type-title: 24px;
  --fc-type-section: 16px;
  --fc-type-body: 14px;
  --fc-type-nav: 14px;
  --fc-type-button: 14px;
  --fc-type-table: 14px;
  --fc-type-meta: 13px;
  --fc-type-metric: 26px;
  --fc-type-chart: 12px;
  --fc-weight-regular: 400;
  --fc-weight-medium: 500;
  --fc-weight-semibold: 600;
  --fc-weight-bold: 700;
  --fc-line-heading: 1.25;
  --fc-line-body: 1.5;
  --fc-line-chat: 1.6;
  --fc-line-technical: 1.4;
  --fc-font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fc-font-mono: "JetBrains Mono", ui-monospace, monospace;
  --fc-space-4: 4px;
  --fc-space-8: 8px;
  --fc-space-12: 12px;
  --fc-space-16: 16px;
  --fc-space-20: 20px;
  --fc-space-24: 24px;
  --fc-space-32: 32px;
  --fc-space-40: 40px;
  --fc-space-48: 48px;
  --fc-space-64: 64px;
  --fc-radius-status: 6px;
  --fc-radius-control: 8px;
  --fc-radius-card: 8px;
  --fc-radius-dialog: 12px;
  --fc-radius-brand: 10px;
  --fc-feed-hell-seite: #f4f2ee;
  --fc-feed-hell-karte: #ffffff;
  --fc-feed-hell-text: #191919;
  --fc-feed-hell-meta: #666666;
  --fc-feed-hell-link: #0a66c2;
  --fc-feed-hell-rand: #e0dfdc;
  --fc-feed-hell-flaeche: #ebebeb;
  --fc-feed-dunkel-seite: #000000;
  --fc-feed-dunkel-karte: #1b1f23;
  --fc-feed-dunkel-text: #e9e9e9;
  --fc-feed-dunkel-meta: #a0a3a6;
  --fc-feed-dunkel-link: #71b7fb;
  --fc-feed-dunkel-rand: #38434f;
  --fc-feed-dunkel-flaeche: #293138;

  /* Bestehende Verbraucher: kompatible Namen, ausschließlich FC-Farbquellen. */
  --flaeche-seite: var(--fc-bg);
  --flaeche-leiste: var(--fc-sidebar);
  --flaeche-karte: var(--fc-surface);
  --flaeche-karte-kopf: var(--fc-surface);
  --flaeche-element: var(--fc-surface-raised);
  --flaeche-element-aktiv: var(--fc-surface-selected);
  --flaeche-tooltip: var(--fc-surface-raised);
  --linie: var(--fc-border);
  --linie-stark: var(--fc-border-control);
  --linie-raster: var(--fc-border);
  --text-0: var(--fc-text);
  --text-1: var(--fc-text-secondary);
  --text-2: var(--fc-text-muted);
  --text-3: var(--fc-text-muted);
  --flaeche-kartenverlauf: var(--fc-surface);
  --flaeche-eingabeverlauf: var(--fc-surface-raised);
  --flaeche-aktion: var(--fc-primary);
  --text-aktion: var(--fc-primary-text);
  --flaeche-atlas: var(--fc-surface);
  --flaeche-aktiv: var(--fc-surface-selected);
  --schimmer-atlas: var(--fc-flow-purple);
  --akzent: var(--fc-accent-text);
  --akzent-schwach: var(--fc-surface-selected);
  --akzent-leuchten: var(--fc-primary);
  --kopfleiste: var(--fc-sidebar);
  --kopfleiste-text: var(--fc-text);
  --symbol-kreis: var(--fc-surface-selected);
  --symbol-kreis-text: var(--fc-accent-text);
  --daten-1: var(--fc-info-text);
  --daten-2: var(--fc-accent-text);
  --daten-3: var(--fc-warning-text);
  --daten-4: var(--fc-text-muted);
  --daten-5: var(--fc-success-text);
  --daten-flaeche-blau: var(--fc-info-text);
  --daten-flaeche-orange: var(--fc-warning-text);
  --daten-ring-spur: var(--fc-border);
  --daten-punkt: var(--fc-primary-text);
  --scrollbalken: var(--fc-border-control);
  --scrollbalken-spur: var(--fc-bg);
  --fokus: var(--fc-focus);
  --auswahl: var(--fc-surface-selected);
  --ok: var(--fc-success-text);
  --ok-rahmen: var(--fc-success-text);
  --ok-flaeche: var(--fc-success-bg);
  --warnung: var(--fc-warning-text);
  --warnung-rahmen: var(--fc-warning-text);
  --warnung-flaeche: var(--fc-warning-bg);
  --fehler: var(--fc-danger-text);
  --fehler-rahmen: var(--fc-danger-text);
  --fehler-flaeche: var(--fc-danger-bg);
  --info: var(--fc-info-text);
  --info-rahmen: var(--fc-info-text);
  --info-flaeche: var(--fc-info-bg);
  --fehler-band: var(--fc-danger-bg);
}

/* Typografie, Maße, Radien (kein Theme-Block: gelten immer) */
:root {
  /* marken-logo-ausrollen (15.11.): Markenfarben des facettierten Kristalls (Entwurf aus docs/marke/referenz/bauen.mjs, Spektrum 1–8 rot→violett,
     weiße Kanten, Schatten, Tafel für Entwurf b) – themenunabhängig, nur für bild/flow-command/oxygen.svg und die App-Symbole (werkzeuge/marke.mjs) */
  --fc-brand-1: #b5122c; --fc-brand-2: #e8402a; --fc-brand-3: #f3861c; --fc-brand-4: #ffcf3a; --fc-brand-5: #6cb93b; --fc-brand-6: #1fa58f; --fc-brand-7: #2b7fd6; --fc-brand-8: #6a3fb8;
  --fc-brand-edge: #FFFFFF; --fc-brand-shade: #000000; --fc-brand-tafel: #E9E4FF; --fc-brand-tafel-tief: #B8A9EE;
  --fc-mask-tabs-links: linear-gradient(to right, transparent, var(--fc-bg) var(--s-4));
  --fc-mask-tabs-rechts: linear-gradient(to right, var(--fc-bg) calc(100% - var(--s-6)), transparent);
  --fc-mask-tabs: linear-gradient(to right, transparent, var(--fc-bg) var(--s-4), var(--fc-bg) calc(100% - var(--s-6)), transparent);
  /* Chat (Atlas, Kanal, Widget) — Schrift/Dichte je Konto über data-schrift/data-dichte (kern/design.mjs, 27.10.) */
  --chat-schrift: var(--fc-type-body); --chat-zeile: var(--fc-line-chat); --chat-luecke: 12px;
  /* Atlas-Zeichen wie Siri (27.10.): fließende Lichtflecken in der Kugel — aus den vorhandenen Farben abgeleitet */
  --atlas-glanz-1: var(--fc-flow-light); --atlas-glanz-2: var(--fc-flow-purple); --atlas-glanz-3: var(--fc-flow-pink);
  --radius-blase: var(--fc-radius-brand);   /* Chat-Blasen (Messenger-Stil) */
  /* linkedin-vorschau-echt (05.11.): Feed-Vorschau 1:1 wie LinkedIn — eigene Fläche in den LinkedIn-Farben (Hell/Dunkel wie dort),
     unabhängig vom Oxygen-Thema; Schrift = LinkedIns System-Schriftstapel, 14/20 px, Profilbild 48 px, Kartenradius 8 px */
  --feed-hell-seite: var(--fc-feed-hell-seite); --feed-hell-karte: var(--fc-feed-hell-karte); --feed-hell-text: var(--fc-feed-hell-text); --feed-hell-meta: var(--fc-feed-hell-meta); --feed-hell-link: var(--fc-feed-hell-link); --feed-hell-rand: var(--fc-feed-hell-rand); --feed-hell-flaeche: var(--fc-feed-hell-flaeche);
  --feed-dunkel-seite: var(--fc-feed-dunkel-seite); --feed-dunkel-karte: var(--fc-feed-dunkel-karte); --feed-dunkel-text: var(--fc-feed-dunkel-text); --feed-dunkel-meta: var(--fc-feed-dunkel-meta); --feed-dunkel-link: var(--fc-feed-dunkel-link); --feed-dunkel-rand: var(--fc-feed-dunkel-rand); --feed-dunkel-flaeche: var(--fc-feed-dunkel-flaeche);
  --schrift-feed: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Cantarell, "Droid Sans", sans-serif;
  --feed-groesse: 14px; --feed-zeile: 20px; --feed-groesse-klein: 12px; --feed-zeile-klein: 16px; --feed-avatar: 48px; --radius-feed: 8px; --radius-feed-logo: 4px;
  --schrift-text: var(--fc-font-ui);
  --schrift-zahl: var(--fc-font-mono);

  --groesse-seitentitel: var(--fc-type-title); --gewicht-seitentitel: var(--fc-weight-bold);
  --groesse-kartentitel: var(--fc-type-section); --gewicht-kartentitel: var(--fc-weight-semibold);
  --groesse-untertitel: var(--fc-type-meta);
  --groesse-label: var(--fc-type-nav);
  --groesse-metadaten: var(--fc-type-meta);
  --groesse-achse: var(--fc-type-meta);
  --groesse-zahl-xl: var(--fc-type-metric);
  --groesse-zahl-l: var(--fc-type-metric);
  --groesse-zahl-m: var(--fc-type-body);
  --groesse-zahl-s: var(--fc-type-table);

  /* Abstands-Skala (rework-4-02, Marek 31.10.): padding/margin/gap nur über diese Stufen (kern/test/abstand-tokens.test.mjs) */
  --s-1: var(--fc-space-4); --s-2: var(--fc-space-8); --s-3: var(--fc-space-12); --s-4: var(--fc-space-16); --s-5: var(--fc-space-20); --s-6: var(--fc-space-24); --s-7: var(--fc-space-32); --s-8: var(--fc-space-48);
  --s-haar: 1px;   /* optischer Ausgleich (Reiter-Unterstrich, kbd/Inline-Code/Zahl-Pille, Avatar), kein echter Abstand — token-haarlinie */

  --abstand-seite:    20px;
  --abstand-raster:   16px;
  --abstand-karte:    16px;
  --hoehe-kopf:       52px;
  --hoehe-kopf-klein: 38px;
  --breite-nav:       196px;   /* Gruppen-Navigation links (tc-shell) */
  --breite-seitenspalte: 340px;

  --radius-karte: var(--fc-radius-card);
  --radius-element: var(--fc-radius-control);
  --radius-segment: var(--fc-radius-control);
  --radius-tooltip: var(--fc-radius-status);
  --radius-badge: var(--fc-radius-status);
  --radius-balken:     2px;
  --radius-rund:      50%;
  --radius-pille:     999px;

  --rahmen:           1px solid var(--linie);
  --dauer:            150ms;
}

/* Handy: noch enger (Marek 19.10.: Ring und Köpfe füllten den ganzen Bildschirm) */
@media (max-width: 599px) {
  :root {
    --fc-type-brand: 19px; --fc-type-title: 22px; --fc-type-metric: 24px;
    --abstand-seite: 12px; --abstand-raster: 10px; --abstand-karte: 12px; --hoehe-kopf: 52px; --hoehe-kopf-klein: 40px;
  }
}

/* Nur Token-Scope: bisherige allgemeine UI-Verbraucher des Zahlentokens werden Inter.
   Technische Werte/Code/Terminal behalten JetBrains Mono, auch in einem UI-Container. */
.badge-trend, .badge-status, .tabelle th, .zeitleiste-zeit, .chat-meta,
.abschnitt-gruppe, .formular-schmal, .schritte, .atlas-blase-zahl {
  --schrift-zahl: var(--fc-font-ui);
}
.wert, .zahl, .tresor-klar, .kopf-suche-taste { --schrift-zahl: var(--fc-font-ui); }
code, pre, .terminal, .terminal-text, .atlas-weiche-vorschau,
.chat-code, .chat-code-inline, .claude-live-zeilen {
  --schrift-zahl: var(--fc-font-mono);
}
/* Alte Hauptbutton-Hover-Regel verwendet text-1 als Fläche: lokal auf Hover-Pink abbilden. */
.knopf-primaer { --text-1: var(--fc-primary-hover); }
:root[data-schrift="klein"] { --chat-schrift: 13px; }
:root[data-schrift="gross"] { --chat-schrift: 16px; --chat-zeile: 1.5; }
:root[data-dichte="kompakt"] { --chat-zeile: 1.35; --chat-luecke: 8px; }

/* LI-F2 Coverflow */
:root { --li-tiefe: 1000px; --li-winkel: 24deg; --li-nachbar-skala: .92; }

/* PoSi-Portal (posi-linkedin-webtool, 16.11.): Marke pollmer siemers – eigenes Design der PoSi-Website (DESIGN-SYSTEM.md dort), nur von portal/portal.css genutzt */
:root {
  --posi-rot: #D3342A; --posi-rot-hover: #B31E16; --posi-signal: #F04D43; --posi-tinte: #1A1A1A; --posi-grau: #5C5C5C; --posi-linie: #E7DFDE;
  --posi-nebel: #FCF5F4; --posi-weiss: #FFFFFF; --posi-dunkel: #2A1F1E; --posi-dunkel-tief: #241A19;
  --posi-term-grund: #1E1E1E; --posi-term-text: #E6E6E6; --posi-term-leise: #9A9A9A; --posi-term-akzent: #D97757; --posi-term-linie: #3A3A3A;
  --posi-ok: #2F7D4F; --posi-warn: #B7791F;
  --schrift-posi: "Plex", system-ui, -apple-system, "Segoe UI", sans-serif; --schrift-posi-mono: "PlexMono", ui-monospace, Menlo, monospace;
}
