
/* ---------- Schuldesign Informatik & IT ---------- */
:root{--paper:#FFF8EE;--surface:#FFFFFF;--ink:#1F1A14;--muted:#6B6158;--rule:#EADFCF;--accent:#A34100;--accent-soft:#FDEBD6;--carry:#2a49c7;--ci-if:#F6A01D;--ci-it:#E75F0D;--ci-akzent:var(--accent);color-scheme:light}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--paper:#14110D;--surface:#1E1A15;--ink:#EFE8DF;--muted:#A89F94;--rule:#3A332B;--accent:#F6A01D;--accent-soft:#33261A;--carry:#93a9ff;--ci-if:#F6A01D;--ci-it:#F07A35;color-scheme:dark}}
:root[data-theme="dark"]{--paper:#14110D;--surface:#1E1A15;--ink:#EFE8DF;--muted:#A89F94;--rule:#3A332B;--accent:#F6A01D;--accent-soft:#33261A;--carry:#93a9ff;--ci-if:#F6A01D;--ci-it:#F07A35;color-scheme:dark}
/* Symbole der Bedienung (svg mit focusable="false", z. B. Lesezeichen, Vorlesen) und Links in Tabellen
   nehmen die Farbe des Schuldesigns (--ci-akzent = Seitenakzent), nicht das Blau der Grafiken.
   Grafiken und Tabellen behalten ihre ursprünglichen Farben: Blau und Orange haben dort teils Bedeutung
   (z. B. Blutkreislauf, Legenden wie „Orange: die doppelte Null“). Die Detailgrad-Marke .stufe ebenso, damit sie in
   der Lehrplan-Tabelle und in der Legende darunter gleich aussieht. */
svg:not(:where([focusable="false"])),.anim-leg{--accent:#2a49c7;--accent-soft:#e7ebfb;--carry:#b0520c}
table,.stufe{--accent:#2a49c7;--carry:#b0520c}
table a:not([class]){color:var(--ci-akzent)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) svg:not(:where([focusable="false"])),:root:not([data-theme="light"]) .anim-leg{--accent:#93a9ff;--accent-soft:#1f2741;--carry:#f2a55c}:root:not([data-theme="light"]) table,:root:not([data-theme="light"]) .stufe{--accent:#93a9ff;--carry:#f2a55c}}
:root[data-theme="dark"] svg:not(:where([focusable="false"])),:root[data-theme="dark"] .anim-leg{--accent:#93a9ff;--accent-soft:#1f2741;--carry:#f2a55c}
:root[data-theme="dark"] table,:root[data-theme="dark"] .stufe{--accent:#93a9ff;--carry:#f2a55c}
.mast{border-bottom:3px solid;border-image:linear-gradient(90deg,var(--ci-if),var(--ci-it)) 1}
.mast.ci-mit-logo{grid-template-columns:minmax(0,1fr) auto}
.mast.ci-mit-logo>*{grid-column:1/-1}
.mast.ci-mit-logo>.eyebrow,.mast.ci-mit-logo>h1{grid-column:1}
.mast>.ci-logo{grid-column:2;grid-row:1/3;align-self:start;width:112px;height:auto;margin:.15rem 0 0 .75rem}
.chapters a.cur{box-shadow:inset 0 -3px 0 var(--ci-if)}
.merk{border-color:var(--ci-if)}
.ci-theme{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;font:500 .8rem/1 var(--f-body);color:var(--muted)}
.ci-theme span{margin-right:.2rem}
.ci-theme button{font:600 .8rem/1 var(--f-body);color:var(--ink);background:var(--surface);border:1px solid var(--rule);border-radius:999px;padding:.35rem .75rem;cursor:pointer}
.ci-theme button:hover{border-color:var(--accent)}
.ci-theme button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--surface)}
@media (max-width:600px){.mast>.ci-logo{width:72px}}
@media print{
  :root,:root:not([data-theme="light"]),:root[data-theme="dark"]{--paper:#fff;--surface:#fff;--ink:#000;--muted:#444;--rule:#bbb;--accent:#8a3700;--accent-soft:#fdf0e3;--carry:#1d3aa8;--ci-if:#F6A01D;--ci-it:#E75F0D;color-scheme:light}
  :root svg:not(:where([focusable="false"])),:root:not([data-theme="light"]) svg:not(:where([focusable="false"])),:root[data-theme="dark"] svg:not(:where([focusable="false"])),:root .anim-leg{--accent:#1d3aa8;--accent-soft:#eef1fb;--carry:#a14a00}
  :root table,:root:not([data-theme="light"]) table,:root[data-theme="dark"] table,:root .stufe,:root:not([data-theme="light"]) .stufe,:root[data-theme="dark"] .stufe{--accent:#1d3aa8;--carry:#a14a00}
  .ci-theme{display:none!important}
  .mast>.ci-logo{width:72px}
}
.ci-fortschritt{margin-top:.4rem}
.ci-steuer{display:grid;gap:.55rem;justify-items:start}
.ci-steuer .ci-fortschritt{margin-top:0}
/* Kopfzeile: Anleitung, Fortschritt sichern, Einstellungen (aufklappbar, kapitel.js) */
.ci-zeile{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:.35rem}
.ci-sichern,.ci-einst>summary{font:600 .8rem/1 var(--f-body);color:var(--ink);background:var(--surface);border:1px solid var(--rule);border-radius:999px;padding:.35rem .75rem;cursor:pointer}
.ci-sichern:hover,.ci-einst>summary:hover,.ci-einst[open]>summary{border-color:var(--accent)}
.ci-einst{position:static}
.ci-einst>summary{list-style:none;display:inline-flex;align-items:center;gap:.45rem}
.ci-einst>summary::-webkit-details-marker{display:none}
.ci-einst>summary::after{content:"";width:.38em;height:.38em;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-.12em) rotate(45deg)}
.ci-einst[open]>summary::after{transform:translateY(.08em) rotate(-135deg)}
.ci-einst-inhalt{position:absolute;left:0;top:calc(100% + .4rem);z-index:30;display:grid;gap:.7rem;width:max-content;max-width:min(24rem,calc(100vw - 2rem));padding:.8rem .9rem;background:var(--surface);border:1px solid var(--rule);border-radius:10px;box-shadow:0 6px 20px rgba(0,0,0,.12)}
.ci-einst-inhalt .ci-theme span{min-width:5.6rem}
@media (max-width:480px){.ci-einst-inhalt .ci-theme span{flex-basis:100%;margin-bottom:.1rem}}
@media print{.ci-zeile{display:none!important}}
/* Ab Notebook-Breite: Darstellung und Fortschritt rechts neben Titel und Einleitung (kapitel.js setzt .mit-steuer) */
@media (min-width:1100px){
  .mast.mit-steuer{grid-template-columns:minmax(0,1fr) auto;column-gap:2.5rem;padding-bottom:1.4rem}
  .mast.mit-steuer>*,.mast.mit-steuer.ci-mit-logo>*{grid-column:1}
  .mast.mit-steuer>.ci-steuer{grid-column:2;grid-row:2/span 2;align-self:start;margin-top:.35rem}
  .mast.mit-steuer .ci-einst-inhalt{left:auto;right:0}
  .mast.mit-steuer.ci-mit-logo>.ci-logo{grid-column:2;grid-row:1/3;justify-self:end;margin-left:0}
  .mast.mit-steuer.ci-mit-logo>.ci-steuer{grid-row:3/span 2;margin-top:0}
}
