/*
  Kikoń Design – Tokens (Version 1, 22.11.2026)
  Quelle der Marke: kikon-webpage/assets/kikon.css (Logo-Blau, Gold, Josefin Sans, Baustein-Kacheln).
  Alle Kikoń-Oberflächen (Webseite, Spiel, Messtool, Face Tracker, Mobil-App, …) laden diese Datei und benutzen NUR diese Namen –
  keine eigenen Hex-Werte in Komponenten.

  Kontrastwerte (WCAG, nachgerechnet):
    Creme auf Blau 4,77 · Gold auf Blau 3,44 (nur große Schrift ≥ 24 px/Zierde) · Gold-tief auf Blau 2,49 (nur Linien)
    Creme auf Tinte 12,2 · Gold auf Tinte 8,8 · Creme auf Kachelfläche 8,1 · Gold auf Kachelfläche 5,8
    Knopftext #1a1205 auf Gold 11,2
*/
:root {
  color-scheme: dark;

  /* ---------- Marke ---------- */
  --k-blue:       #2e6aa1;                 /* Logo-Blau: Grundfläche der Marke */
  --k-blue-deep:  #1d4a78;
  --k-ink:        #0f2a47;                 /* Tinte: dunkle Flächen auf Blau */
  --k-ink-deep:   #091c33;                 /* noch dunkler: Eingabefelder, Livebild-Rand */
  --k-gold:       #f0c27a;                 /* Überschriften (≥ 24 px), Knöpfe, Linien auf Tinte */
  --k-gold-deep:  #d4a35c;                 /* nur Linien und Zierde, nie Text auf Blau */
  --k-gold-soft:  rgba(240, 194, 122, .72);
  --k-cream:      #f4ead8;                 /* Fließtext */
  --k-cream-dim:  rgba(244, 234, 216, .72);/* gedämpfter Text (auf Kachelfläche 5,0:1) */

  /* ---------- Flächen und Linien ---------- */
  --k-surface:    rgba(15, 42, 71, .55);   /* Kachel/Karte auf Blau (ergibt #1d4770) */
  --k-surface-2:  rgba(15, 42, 71, .78);   /* verschachtelt, Schalter, Felder */
  --k-surface-solid: #1d4770;
  --k-line:       rgba(240, 194, 122, .22);/* feine Goldlinie */
  --k-line-strong:rgba(240, 194, 122, .45);
  --k-grid:       rgba(255, 255, 255, .045);/* Blaupausen-Raster */

  /* ---------- Gruppenfarben der Kacheln (wie im Spiel/Messtool) ---------- */
  --g-ablauf:  #5e5e6e;  --on-ablauf:  var(--k-cream);
  --g-aktion:  #286ec8;  --on-aktion:  #ffffff;
  --g-pruefen: #2e9a4e;  --on-pruefen: #1a1205;
  --g-zeit:    #dc821e;  --on-zeit:    #1a1205;
  --g-rechnen: #8a5cc8;  --on-rechnen: #ffffff;
  --g-ok:      #2e9a4e;  --on-ok:      #1a1205;
  --g-nio:     #c83232;  --on-nio:     #ffffff;
  --g-ausgabe: #12868f;  --on-ausgabe: #ffffff;   /* nur große/fette Schrift (4,35:1) */

  /* ---------- Zustände (…-text = Textfarbe auf Tinte/Kachelfläche, ≥ 4,5:1) ---------- */
  --k-ok:    #2e9a4e;   --k-ok-text:   #7ddba0;
  --k-warn:  #dc821e;   --k-warn-text: #ffb45c;
  --k-bad:   #c83232;   --k-bad-text:  #ffa3a3;
  --k-info:  #286ec8;   --k-info-text: #8cbcff;
  --k-focus: #f0c27a;                      /* Fokusring: immer sichtbar */

  /* ---------- Schrift ---------- */
  --k-font: "Josefin Sans", "Futura", "Century Gothic", system-ui, sans-serif;
  --k-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;    /* nur Zahlen/Messwerte */
  --k-w-light: 300;   --k-w-regular: 400;   --k-w-strong: 600;       /* Marke lebt von 300/400 */
  --k-track-eyebrow: .32em;  --k-track-btn: .08em;  --k-track-label: .14em;

  /* ---------- Maße ---------- */
  --k-r-s: 10px;  --k-r: 14px;  --k-r-l: 18px;  --k-r-pill: 999px;
  --k-touch: 44px;                          /* Mindestgröße für Tippflächen */
  --k-s1: 4px; --k-s2: 8px; --k-s3: 12px; --k-s4: 16px; --k-s5: 24px; --k-s6: 32px; --k-s7: 48px;
  --k-brick-corner: 12%;  --k-brick-notch-w: 22%;  --k-brick-notch-h: 6%;   /* Baustein-Form, siehe kikon-ui.js */

  /* ---------- Baustein-Form als Hintergrundbild (Chips; Kacheln mit .k-brick + kikon-ui.js) ---------- */
  --kb-chip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2.5 104 105' preserveAspectRatio='none'%3E%3Cpath d='M12,0 L39,0 L45,6 L55,6 L61,0 L88,0 Q100,0 100,12 L100,82 Q100,94 88,94 L61,94 L55,100 L45,100 L39,94 L12,94 Q0,94 0,82 L0,12 Q0,0 12,0 Z' fill='%23091c33' fill-opacity='.62' stroke='%23d4a35c' stroke-opacity='.75' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --kb-chip-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2.5 104 105' preserveAspectRatio='none'%3E%3Cpath d='M12,0 L39,0 L45,6 L55,6 L61,0 L88,0 Q100,0 100,12 L100,82 Q100,94 88,94 L61,94 L55,100 L45,100 L39,94 L12,94 Q0,94 0,82 L0,12 Q0,0 12,0 Z' fill='%23091c33' fill-opacity='.62' stroke='%237ddba0' stroke-opacity='1' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --kb-chip-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2.5 104 105' preserveAspectRatio='none'%3E%3Cpath d='M12,0 L39,0 L45,6 L55,6 L61,0 L88,0 Q100,0 100,12 L100,82 Q100,94 88,94 L61,94 L55,100 L45,100 L39,94 L12,94 Q0,94 0,82 L0,12 Q0,0 12,0 Z' fill='%23091c33' fill-opacity='.62' stroke='%23ffb45c' stroke-opacity='1' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --kb-chip-bad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2.5 104 105' preserveAspectRatio='none'%3E%3Cpath d='M12,0 L39,0 L45,6 L55,6 L61,0 L88,0 Q100,0 100,12 L100,82 Q100,94 88,94 L61,94 L55,100 L45,100 L39,94 L12,94 Q0,94 0,82 L0,12 Q0,0 12,0 Z' fill='%23091c33' fill-opacity='.62' stroke='%23ffa3a3' stroke-opacity='1' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");

  /* ---------- Druck auf weißem Papier (MASTER §10) ---------- */
  --k-druck-text: #0f2a47;  --k-druck-text-2: #3d5470;  --k-druck-akzent: #2e6aa1;  --k-druck-logo: #1d4a78;  --k-druck-gold: #d4a35c;  /* Gold nur als Linie */

  /* ---------- Bewegung ---------- */
  --k-ease: cubic-bezier(.2, .7, .2, 1);
  --k-t: 180ms;                              /* Standard-Übergang; Eingang 300–400 ms, Ausgang kürzer */
  --k-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
