/* =====================================================================
   Kita · Transparenz-Stufe „leichter" · 14.09.2026
   ---------------------------------------------------------------------
   Rollback: die Zeile <link … kita-transparenz.css> in kibiz.html,
   index.html und rechtliche-hinweise.html entfernen. Alle Werte davor
   stehen unverändert in kita-liquid.css.

   Kontrast (WCAG AA, dunkelster bzw. hellster Fotopunkt hinter der Zone):
   hell  Zone .76 → .66, Text-Tokens abgedunkelt: subtle 4.97 · muted 5.62
         · Lila 4.81 · Orange 4.62 · Grün 4.57 (vorher bei .66: 3.8–4.2)
   dunkel Zone .50 → .38: subtle 7.3 · highlight 4.99 · link 7.3
   Ruhige Darstellung, Lite-Modus, reduzierte Transparenz und erhöhter
   Kontrast behalten ihre dichten Werte.
   ===================================================================== */

@media screen {
  /* ---- Hell ---- */
  html:not([data-theme="dark"]):not([data-lg-calm]):not([data-lg-lite]) {
    --group-tint: rgba(246, 243, 250, .66);
    --tile-fill: rgba(255, 255, 255, .58);
    --tile-fill-strong: rgba(255, 255, 255, .72);

    --text-muted: #2f3945;
    --text-subtle: #37414e;
    --nav-inactive: #2f3945;
    --highlight: #5e1d96;
    --highlight-gradient: linear-gradient(135deg, #6c28b0 0%, #5e1d96 100%);
    --link: #5e1d96;
    --focus-ring: #5e1d96;
    --accent-orange-text: #772e0a;
    --accent-green-text: #1f4f24;

    --c-on-surface-variant: 47 57 69;
    --c-primary: 94 29 150;
    --c-primary-container: 94 29 150;
    --c-secondary: 119 46 10;
    --c-tertiary: 55 65 78;
    --c-slate-400: 47 57 69;
    --c-slate-500: 47 57 69;
    --c-slate-600: 55 65 78;
  }
  /* Präsentation hell behält ihre noch dunkleren Grautöne */
  html[data-lg-present]:not([data-theme="dark"]):not([data-lg-calm]):not([data-lg-lite]) {
    --text-muted: #2a3340; --text-subtle: #333d4a; --nav-inactive: #1f2a36;
  }

  /* ---- Dunkel ---- */
  html[data-theme="dark"]:not([data-lg-calm]):not([data-lg-lite]) {
    --group-tint: rgba(11, 20, 28, .38);
    --tile-fill: rgba(6, 10, 16, .32);
    --tile-fill-strong: rgba(6, 10, 16, .44);
  }
}

/* Systemeinstellungen gewinnen weiterhin (höhere Spezifität per :not(#_)) */
@media (prefers-reduced-transparency: reduce) {
  html:not(#_):not([data-theme="dark"]) { --group-tint: rgba(246, 243, 250, .95); --tile-fill: #fff; --tile-fill-strong: #fff; }
  html:not(#_)[data-theme="dark"] { --group-tint: rgba(11, 20, 28, .93); --tile-fill: #141c25; --tile-fill-strong: #0f1820; }
}
@media (prefers-contrast: more) {
  html:not(#_):not([data-theme="dark"]) { --group-tint: #fff; --tile-fill: #fff; --tile-fill-strong: #fff; }
  html:not(#_)[data-theme="dark"] { --group-tint: #000; --tile-fill: #000; --tile-fill-strong: #000; }
}
