/* =====================================================================
   Skin "Klartext" — CI-Modus 1 (hell): weißer Grund, Navy-Text,
   Forest als Arbeitsfarbe, Lime nur als Akzent. Kopfleiste bleibt Navy.

   Wird NACH ci-continuum.css geladen (nur bei Cookie ipa-skin=klartext,
   siehe App.razor) und überschreibt ausschließlich Farben und Flächen.
   Palette für MudBlazor: CiTheme.Klartext.
   ===================================================================== */

:root {
  --ci-flaeche: #f4f7fa;
  --ci-karte: #ffffff;
  --ci-karte-rahmen: #dbe4ee;
  --ci-text: #0a2238;
  --ci-text-gedaempft: #1c3550;
  --ci-text-leise: #5a6f86;
  --ci-linie: #e3e9f0;
}

/* ---------- Grundfläche: ruhig, ohne Verlauf ---------- */
body { background: var(--ci-flaeche); color: var(--ci-text); }
body::before { display: none; }

/* ---------- Kopfleiste (Navy) und Navigation (weiß) ---------- */
.mud-appbar { backdrop-filter: none; border-bottom: 3px solid var(--ci-lime); }
.mud-drawer { backdrop-filter: none; border-right: 1px solid var(--ci-karte-rahmen); }

.mud-nav-link.active:not(.mud-nav-link-disabled) {
  background: rgba(168, 236, 0, .16) !important;
  color: var(--ci-forest) !important;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--ci-lime);
}
.mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-icon { color: var(--ci-forest) !important; }
.mud-nav-link:hover:not(.active):not(.mud-nav-link-disabled) { background: #eef3f7 !important; }
.mud-navmenu .mud-typography-overline { color: var(--ci-text-leise); opacity: 1; }

/* ---------- Karten: weiß mit feinem Rahmen und leichtem Schatten ---------- */
.mud-paper,
.mud-card {
  background-color: #ffffff !important;
  border: 1px solid var(--ci-karte-rahmen);
  backdrop-filter: none;
  box-shadow: 0 1px 2px rgba(10, 34, 56, .04), 0 2px 8px rgba(10, 34, 56, .04) !important;
}
/* Kopfleiste und Menü sind technisch auch "Paper" — dort keine Karte. */
.mud-appbar.mud-paper, .mud-drawer.mud-paper { box-shadow: none !important; }
.mud-appbar.mud-paper { background-color: var(--ci-navy) !important; border-top: 0; border-left: 0; border-right: 0; }
.mud-drawer.mud-paper { border-top: 0; border-left: 0; border-bottom: 0; }

.mud-popover,
.mud-dialog,
.mud-menu-popover .mud-list {
  background-color: #ffffff !important;
  border: 1px solid var(--ci-karte-rahmen);
  box-shadow: 0 8px 28px rgba(10, 34, 56, .14) !important;
}

/* ---------- Tabellen ---------- */
.mud-table-head .mud-table-cell { color: var(--ci-text-leise); background: #f7f9fb; }
.mud-table-row:hover .mud-table-cell { background-color: #f3f7fa; }

/* ---------- Schaltflächen: Forest gefüllt, Lime bleibt Akzent ---------- */
.mud-button-filled.mud-button-filled-primary { color: #ffffff !important; }
.mud-button-filled.mud-button-filled-primary:hover { background-color: #0a2e1b !important; }

/* ---------- Kennzahlen und Fortschritt ---------- */
.ci-kennzahl-lime { color: var(--ci-forest); }
.ci-fortschritt { background: #e6edf3; }

/* ---------- Dokumente (Markdown) ---------- */
.doc-content a { color: #0b6b3a; }
.doc-content th { background: #f3f6f9; }
.doc-content pre { background: #f6f8fa; }
.doc-content :not(pre) > code { background: #eef2f6; }
.doc-content blockquote { background: #f6faf0; }

/* ---------- Scrollleisten ---------- */
* { scrollbar-color: rgba(10, 34, 56, .25) transparent; }

/* ---------- Anmeldeseiten behalten ihren dunklen Look (eigene Bühne, unabhängig vom Design) ---------- */
.login-page {
  --ci-karte: rgba(255, 255, 255, .06);
  --ci-karte-rahmen: rgba(255, 255, 255, .12);
  --ci-text: #ffffff;
  --ci-text-gedaempft: #cfdae6;
  --ci-text-leise: #9fb3c8;
  --ci-linie: rgba(255, 255, 255, .10);
  background-color: var(--ci-navy);
}
