/* =========================================================
   SchulServ – Kurzeinführung, Teil „Admin-Panel“
   (kurzeinfuehrung-adminpanel.html). Grundlage und Baukasten:
   kurzeinfuehrung.css – Seitenrahmen, Bühne, Geräterahmen,
   kleine Bilder. Hier steht, was dieser Teil zusätzlich braucht:

     1. Auftakt mit der nachgebauten Startseite und ihrer Suche,
        der Fahrplan der sieben Kapitel, die Übersicht am Ende
     2. ap-…  das Admin-Panel, nachgezeichnet (Leiste, Kopfzeile,
              Knöpfe, Marken, Tabellen, Dialog, Meldung, Handy)
        as-…  Startseite
     3. die Szenen der Kapitel, je mit eigenem Präfix:
        tg- Day-to-Day      km- Krankmeldungen   kn- Klausuren
        kd- Kalender        fl- Workflows        im- Dateien
        sm- Stammdaten      wl- Wahlfächer       uv- Userverwaltung
        ro- Rollen & Rechte x?- kleine Bilder (xk- Klassenbuch,
        xm- Mündl. Abitur, xl- Nachrichten, xa- Aushänge …)
        .v-bild.av = kleines Bild im Aussehen des Admin-Panels,
        .va-hinweis = Hinweiszeile darin

   Jede große Vorführung steht in einem Rechnerfenster
   (.m.fenster.ap, auf der Startseite .gross). Wo ein Eintrag im
   Onlineplan ankommt, schiebt sich am Ende ein Handy ins Bild
   (.ap-handy). Unter 560 px Fensterbreite gilt die schmale
   Fassung (@container): ohne Leiste, Nebenspalten als Blatt.

   Die Bildschirme tragen Farben und Schrift des Admin-Panels
   („Nachtblau und Feenlicht“, public/admin/stundenfee-huelle.css),
   nicht die der Website. Alles darin ist in em gesetzt.
   ========================================================= */

/* Überschriften im Admin-Panel: „Stundenfee Display“ (Teilmenge von TeX Gyre Adventor, siehe LIZENZEN.txt) */
@font-face {
  font-family: "Stundenfee Display";
  src: url("../schriften/adventor-400.woff") format("woff");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------
   Auftakt: Text und Suche links, Startseite rechts
   --------------------------------------------------------- */
.ap-auftakt { padding-bottom: 4rem; }
.ap-einstieg {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  gap: 2.8rem;
  align-items: start;
  margin-top: 2.6rem;
}
.ap-einstieg-text { padding-top: 0.4rem; }
.ap-auftakt h1 { font-size: clamp(2.1rem, 3.5vw, 2.85rem); }
.ap-auftakt p.lead { max-width: 44ch; }

.ap-suche {
  margin: 1.9rem 0 1.7rem;
  padding: 1.1rem 1.2rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.ap-suche label { display: block; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.ap-suchzeile { position: relative; margin-top: 0.7rem; }
.ap-suchzeile i { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); font-size: 0.9rem; color: var(--tinte-3); pointer-events: none; }
.ap-suchzeile input {
  width: 100%;
  min-height: 46px;
  padding: 0.5rem 0.9rem 0.5rem 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--ease) 150ms, box-shadow var(--ease) 150ms;
}
.ap-suchzeile input::placeholder { color: var(--ink-muted); }
.ap-suchzeile input:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px var(--accent-tint); }
.ap-suchworte { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.ap-suchworte button {
  min-height: 32px;
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color var(--ease) 150ms, color var(--ease) 150ms, background var(--ease) 150ms;
}
.ap-suchworte button:hover { border-color: var(--accent-tint); background: var(--accent-soft); color: var(--accent-deeper); }
.ap-suchworte button[aria-pressed="true"] { border-color: transparent; background: var(--accent-deeper); color: #fff; }
.ap-suchworte button:last-child { border-style: dashed; }
.ap-suchstand { margin-top: 0.7rem; min-height: 2.7em; font-size: 0.86rem; line-height: 1.5; color: var(--tinte-3); }
.ap-suchstand b { color: var(--ink); font-weight: 700; }
/* Ohne JavaScript gibt es keine Suche: Die Kacheln stehen alle da und führen zu ihren Kapiteln. */
html:not(.js) .ap-suchzeile,
html:not(.js) .ap-suchworte,
html:not(.js) .ap-suche label { display: none; }
html:not(.js) .ap-suche { padding-block: 0.8rem; }
html:not(.js) .ap-suchstand { margin-top: 0; min-height: 0; }

.ap-einstieg-bild { min-width: 0; display: grid; justify-items: center; }
.ap-einstieg-bild .ke-unterschrift { max-width: 720px; }

/* ---------------------------------------------------------
   Fahrplan: die sieben Kapitel mit ihrem Takt
   --------------------------------------------------------- */
.ap-ordnung { padding-block: 4.5rem 0; }
.ap-ordnung .section-head { margin-bottom: 2.2rem; }
.ap-fahrplan {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.7rem;
}
.ap-fahrplan::before {
  content: "";
  position: absolute;
  left: 1.5rem; right: 1.5rem; top: 1.72rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-tint), var(--line) 85%);
}
.ap-fahrplan a {
  position: relative;
  display: grid;
  gap: 0.75rem;
  height: 100%;
  align-content: start;
  padding: 0.85rem 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease) 160ms, border-color var(--ease) 160ms, box-shadow var(--ease) 160ms;
}
.ap-fahrplan a:hover { transform: translateY(-3px); border-color: var(--kap-r); box-shadow: var(--shadow); }
.ap-fahrplan i {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--kap-a) 0%, var(--kap) 100%);
  box-shadow: 0 0 0 4px var(--surface);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  font-style: normal;
}
.ap-fahrplan b { display: block; font-size: 0.95rem; font-weight: 800; line-height: 1.22; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.ap-fahrplan em { display: block; margin-top: 0.3rem; font-style: normal; font-size: 0.78rem; line-height: 1.35; color: var(--kap); font-weight: 600; }
.ap-blatt { margin-top: 4.5rem; }

/* ---------------------------------------------------------
   Das Admin-Panel, nachgezeichnet
   .m.fenster.ap        Rechnerfenster einer Vorführung
   .m.fenster.ap.gross  die Startseite im Auftakt
   --------------------------------------------------------- */
.m.fenster.ap { --em: 56; max-width: 780px; }
.m.fenster.ap.gross { --em: 62; max-width: 720px; }
.m.fenster.ap .m-schirm { height: 34em; }
.m.fenster.ap.gross .m-schirm { height: 51.5em; }

.m-schirm.ap {
  --ap-nacht: #0f1a2b;
  --ap-nacht-3: #1d2f4a;
  --ap-lagune: #46aecb;
  --ap-app: #f1f4f7;
  --ap-weiss: #ffffff;
  --ap-grau: #f6f8fa;
  --ap-grau-2: #e9edf2;
  --ap-text: #162031;
  --ap-text-2: #46546b;
  --ap-text-3: #5f6d83;
  --ap-blass: #8591a3;
  --ap-akzent: #1f6377;
  --ap-zart: #e6f1f4;
  --ap-linie: #dfe4eb;
  --ap-linie-2: #cdd5df;
  --ap-gut: #1b7550;     --ap-gut-h: #e3f3ea;
  --ap-warn: #9a570b;    --ap-warn-h: #fcf0dc;
  --ap-fehler: #b0342c;  --ap-fehler-h: #fbe8e6;
  --ap-info: #275a9a;    --ap-info-h: #e5edf8;
  --ap-lila: #6d4ad1;    --ap-lila-h: #eeeafd;
  --ap-titel: "Stundenfee Display", var(--geraet);
  display: flex;
  background: var(--ap-app);
  color: var(--ap-text);
  font-feature-settings: "tnum" 1;
}
.m-schirm.ap::after { background: var(--ap-app); }

/* Leiste am Rand, eingeklappt: nur Symbole */
.ap-rail {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.34em;
  width: 3.3em;
  padding: 0.75em 0 0.6em;
  background: var(--ap-nacht);
  color: #7f8da3;
  overflow: hidden;
}
.ap-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5em; height: 1.5em;
  margin-bottom: 0.25em;
  border-radius: 0.36em;
  background: #1f6377;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  color: #fff;
  font-family: var(--ap-titel);
  font-size: 1.35em;
  line-height: 1;
}
.ap-rail .i { flex: none; width: 2.1em; height: 1.75em; padding: 0.42em 0.6em; border-radius: 0.45em; font-size: 1em; stroke-width: 2; }
.ap-rail .i.an { background: var(--ap-nacht-3); color: var(--ap-lagune); box-shadow: -0.62em 0 0 -0.45em var(--ap-lagune); }
.ap-rail hr { flex: none; width: 1.7em; height: 1px; margin: 0.12em 0; border: 0; background: rgba(255, 255, 255, 0.1); }

.ap-haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ap-kopf {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.7em;
  height: 2.75em;
  padding-inline: 0.9em 1em;
  border-bottom: 1px solid var(--ap-linie);
  background: var(--ap-weiss);
  color: var(--ap-text-2);
}
.ap-kopf .i { font-size: 0.95em; }
.ap-pfad { font-size: 0.72em; font-weight: 500; color: var(--ap-text-3); white-space: nowrap; }
.ap-pfad i { margin-inline: 0.3em; font-style: normal; color: var(--ap-blass); }
.ap-pfad b { font-size: 1.16em; font-weight: 650; color: var(--ap-text); }
.ap-kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 0.95em; }
.ap-gpu { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.68em; font-weight: 500; color: var(--ap-text-3); }
.ap-gpu .i { color: var(--ap-gut); font-size: 1.15em; }
.ap-kopf-suche {
  display: flex;
  align-items: center;
  gap: 0.6em;
  flex: 0 1 15em;
  height: 2.5em;
  margin-left: 0.5em;
  padding: 0 0.6em 0 0.8em;
  border: 1px solid var(--ap-linie-2);
  border-radius: 0.7em;
  background: var(--ap-grau);
  font-size: 0.7em;
  color: var(--ap-text-3);
}
.ap-kopf-suche span { flex: 1; white-space: nowrap; overflow: hidden; }
.ap kbd {
  padding: 0.18em 0.42em;
  border: 1px solid var(--ap-linie-2);
  border-bottom-width: 2px;
  border-radius: 0.36em;
  background: var(--ap-weiss);
  font: 600 0.9em/1 var(--geraet);
  color: var(--ap-text-2);
  white-space: nowrap;
}

.ap-flaeche { position: relative; flex: 1; min-height: 0; padding: 1em 1.2em 0; overflow: hidden; }

/* Seitenkopf eines Bereichs: Titel in der Überschriftenschrift, eine Zeile darunter, Knöpfe rechts */
.ap-seitenkopf { display: flex; align-items: flex-end; gap: 0.6em; margin-bottom: 0.8em; }
.ap-seitenkopf > div:first-child { flex: 1; min-width: 0; }
.ap-h1 { display: block; font: 400 1.5em/1.15 var(--ap-titel); letter-spacing: 0.005em; color: var(--ap-text); }
.ap-seitenkopf em { display: block; margin-top: 0.25em; font-style: normal; font-size: 0.72em; color: var(--ap-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ap-btn {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  height: 2.5em;
  padding: 0 0.9em;
  border: 1px solid var(--ap-linie-2);
  border-radius: 0.65em;
  background: var(--ap-weiss);
  font-size: 0.72em;
  font-weight: 600;
  color: var(--ap-text);
  white-space: nowrap;
}
.ap-btn .i { font-size: 1.1em; }
.ap-btn.primaer { border-color: var(--ap-akzent); background: var(--ap-akzent); color: #fff; }
.ap-btn.geist { border-color: transparent; background: none; color: var(--ap-text-2); }
.ap-btn.klein { height: 2.1em; padding: 0 0.7em; font-size: 0.68em; }

.ap-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.16em 0.7em;
  border-radius: 100px;
  background: var(--ap-grau-2);
  font-size: 0.68em;
  font-weight: 650;
  line-height: 1.45;
  color: var(--ap-text-2);
  white-space: nowrap;
}
.ap-chip .i { font-size: 1.05em; stroke-width: 2.4; }
.ap-chip.ok { background: var(--ap-gut-h); color: var(--ap-gut); }
.ap-chip.warn { background: var(--ap-warn-h); color: var(--ap-warn); }
.ap-chip.fehler { background: var(--ap-fehler-h); color: var(--ap-fehler); }
.ap-chip.akzent { background: var(--ap-zart); color: var(--ap-akzent); }
.ap-chip.info { background: var(--ap-info-h); color: var(--ap-info); }
.ap-chip.lila { background: var(--ap-lila-h); color: var(--ap-lila); }
.ap-chip.rand { background: none; box-shadow: inset 0 0 0 1px var(--ap-linie-2); }

/* Kürzel einer Lehrkraft, einer Klasse, eines Raums */
.ap-kz {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 2.9em;
  height: 1.8em;
  padding: 0 0.45em;
  border-radius: 0.42em;
  background: var(--ap-grau-2);
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ap-text);
}
.ap-kz.weg { background: var(--ap-fehler-h); color: var(--ap-text-3); text-decoration: line-through; text-decoration-color: var(--ap-fehler); }
.ap-kz.neu { background: var(--ap-zart); color: var(--ap-akzent); }
.ap-kz.leer { background: none; border: 1px dashed var(--ap-linie-2); color: var(--ap-blass); font-weight: 500; }

/* Reiter eines Bereichs */
.ap-reiter { display: flex; gap: 1.5em; margin-bottom: 0.85em; border-bottom: 1px solid var(--ap-linie); font-size: 0.72em; font-weight: 600; color: var(--ap-text-3); white-space: nowrap; overflow: hidden; }
.ap-reiter > span { position: relative; display: inline-flex; align-items: center; gap: 0.45em; padding: 0 0 0.7em; }
.ap-reiter > span .i { font-size: 1.05em; }
.ap-reiter > span.an { color: var(--ap-akzent); }
.ap-reiter > span.an::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ap-akzent); }
.ap-reiter i { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 0.4em; border-radius: 100px; background: var(--ap-grau-2); font-style: normal; font-size: 0.86em; font-weight: 700; color: var(--ap-text-2); }
.ap-reiter i.rot { background: var(--ap-fehler-h); color: var(--ap-fehler); }

/* Karte, Kennzahlen, Tabelle */
.ap-karte { border: 1px solid var(--ap-linie); border-radius: 0.75em; background: var(--ap-weiss); box-shadow: 0 1px 2px rgba(16, 27, 44, 0.06); }
.ap-kt { display: flex; align-items: center; gap: 0.5em; margin: 0; padding: 0.75em 0.9em 0.55em; font-size: 0.62em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ap-text-3); }
.ap-kpis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.6em; margin-bottom: 0.8em; }
.ap-kpis > span { display: grid; gap: 0.1em; padding: 0.6em 0.8em 0.65em; border: 1px solid var(--ap-linie); border-radius: 0.75em; background: var(--ap-weiss); font-size: 0.64em; font-weight: 500; line-height: 1.25; color: var(--ap-text-3); }
.ap-kpis b { font: 400 2.15em/1.1 var(--ap-titel); color: var(--ap-text); }
.ap-kpis .gut b { color: var(--ap-gut); }
.ap-kpis .warn b { color: var(--ap-warn); }
.ap-kpis .fehler b { color: var(--ap-fehler); }

.ap-tab { display: grid; align-content: start; font-size: 0.74em; }
.ap-tab > div { display: grid; grid-template-columns: var(--sp); align-items: center; gap: 0.7em; min-height: 2.75em; padding: 0.3em 0.9em; border-bottom: 1px solid var(--ap-linie); }
.ap-tab > div:last-child { border-bottom: 0; }
/* Kopfzeile: die Schrift wird an den Zellen kleiner, nicht an der Zeile – sonst rechnet ihr Raster in anderen em als die Zeilen darunter */
.ap-tab > .ap-tab-kopf { min-height: 1.95em; background: var(--ap-grau); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ap-text-3); }
.ap-tab > .ap-tab-kopf > * { font-size: 0.84em; }
.ap .nw { white-space: nowrap; }
/* Kleinteile, die mehrere Szenen brauchen: zweite Zeile in einer Tabellenzelle, Wert mit Balken, Fußnote, Hilfezeile */
.ap-unterzeile { display: block; font-size: 0.86em; }
.ap-wert { display: grid; grid-template-columns: 5.6em 1fr auto; align-items: center; gap: 0.6em; margin-top: 0.65em; font-size: 0.66em; color: var(--ap-text-3); }
.ap-wert b { font-weight: 700; color: var(--ap-text); white-space: nowrap; }
.ap-fussnote { margin-top: 0.8em; padding-top: 0.6em; border-top: 1px solid var(--ap-linie); font-size: 0.64em; color: var(--ap-text-3); }
.ap-hilfe { display: flex; align-items: center; gap: 0.6em; margin-top: 0.8em; font-size: 0.68em; line-height: 1.45; color: var(--ap-text-3); }
.ap-hilfe .i { flex: none; font-size: 1.2em; }
.ap-hilfe .ap-btn { margin-left: auto; font-size: 0.96em; }
.ap-tab b { font-weight: 650; }
.ap-tab em { font-style: normal; color: var(--ap-text-3); }
.ap-tab .ap-kz, .ap-tab .ap-chip { font-size: 0.92em; }
.ap-tab > div.gewaehlt { background: var(--ap-zart); box-shadow: inset 0.22em 0 0 var(--ap-akzent); }

/* Balken (Anteil, Auslastung, Lesestand) */
.ap-balken { display: block; height: 0.5em; border-radius: 1em; background: var(--ap-grau-2); overflow: hidden; }
.ap-balken > i { display: block; height: 100%; width: var(--w, 50%); border-radius: 1em; background: var(--b, var(--ap-akzent)); transition: width 0.8s var(--weich); }

/* Dialog über der Fläche */
.ap-dialog {
  position: absolute;
  left: 50%; top: 46%;
  z-index: 20;
  width: 25em;
  border: 1px solid var(--ap-linie-2);
  border-radius: 0.9em;
  background: var(--ap-weiss);
  box-shadow: 0 1.6em 3.4em -1em rgba(16, 27, 44, 0.5), 0 0 0 100em rgba(12, 20, 34, 0.3);
  font-size: 0.8em;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -46%) scale(0.96);
  transition: opacity 0.3s var(--ruhig), transform 0.45s var(--weich), visibility 0s linear 0.3s;
}
.ap-dialog.da { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition: opacity 0.3s var(--ruhig), transform 0.45s var(--weich); }
.ap-dialog-kopf { display: flex; align-items: center; gap: 0.6em; padding: 0.9em 1.1em 0.75em; border-bottom: 1px solid var(--ap-linie); }
.ap-dialog-kopf .i { padding: 0.4em; width: 2em; height: 2em; border-radius: 0.55em; background: var(--ap-zart); color: var(--ap-akzent); }
.ap-dialog-kopf b { display: block; font: 400 1.25em/1.2 var(--ap-titel); }
.ap-dialog-kopf em { display: block; font-style: normal; font-size: 0.86em; color: var(--ap-text-3); }
.ap-dialog dl { display: grid; grid-template-columns: 6.6em 1fr; gap: 0.55em 0.8em; margin: 0; padding: 0.95em 1.1em; align-items: center; }
.ap-dialog dt { color: var(--ap-text-3); font-size: 0.92em; }
.ap-dialog dd { margin: 0; display: flex; align-items: center; gap: 0.45em; min-height: 2.2em; padding: 0 0.7em; border: 1px solid var(--ap-linie-2); border-radius: 0.55em; font-weight: 600; }
.ap-dialog-fuss { display: flex; justify-content: flex-end; gap: 0.5em; padding: 0.75em 1.1em 0.9em; border-top: 1px solid var(--ap-linie); background: var(--ap-grau); border-radius: 0 0 0.9em 0.9em; }
.ap-dialog .ap-btn { font-size: 0.9em; }

/* Meldung am unteren Rand */
.ap-toast {
  position: absolute;
  left: 50%; bottom: 1.2em;
  z-index: 22;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.65em 1.1em;
  border-radius: 0.7em;
  background: var(--ap-nacht);
  box-shadow: 0 0.9em 2em -0.7em rgba(16, 27, 44, 0.6);
  font-size: 0.74em;
  font-weight: 600;
  color: #e9eef6;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 0.9em);
  transition: opacity 0.3s var(--ruhig), transform 0.45s var(--weich);
}
.ap-toast .i { font-size: 1.2em; color: #5fd39a; stroke-width: 2.6; }
.ap-toast.da { opacity: 1; transform: translate(-50%, 0); }

/* Handy, das sich von rechts hereinschiebt: so kommt es im Onlineplan an */
.ap-handy {
  position: absolute;
  right: 1em; top: 6.4em; bottom: 1em;
  z-index: 24;
  width: 15.5em;
  padding: 0.9em 0.85em;
  border-radius: 1.5em;
  background: #f5f5f5;
  box-shadow: 0 1.4em 3.2em -0.9em rgba(16, 27, 44, 0.65), 0 0 0 0.4em #0d1830;
  font-size: 0.82em;
  color: #1c2333;
  transform: translateX(130%);
  transition: transform 0.65s var(--weich);
  overflow: hidden;
}
.ap-handy.da { transform: none; }
.ap-handy-wer { display: flex; align-items: center; gap: 0.4em; margin-bottom: 0.7em; font-size: 0.8em; font-weight: 600; color: #5d6a80; }
.ap-handy-wer .i { font-size: 1.15em; }
.ap-handy-kopf { margin: 0 -0.85em 0.7em; padding: 0.6em 0.9em; background: linear-gradient(to right, #223e6d, #111f37); color: #fff; font-size: 0.86em; font-weight: 700; text-align: center; }
.ap-handy-kopf small { display: block; font-size: 0.82em; font-weight: 400; opacity: 0.9; }
.ap-handy .op-push { position: static; transform: none; opacity: 1; margin-bottom: 0.6em; padding: 0.6em 0.65em; box-shadow: 0 0.5em 1.2em -0.6em rgba(17, 31, 55, 0.5), 0 0 0 1px rgba(17, 31, 55, 0.08); }
.ap-handy-karte { margin-bottom: 0.5em; padding: 0.6em 0.7em; border-radius: 0.6em; background: #fff; box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.1); font-size: 0.88em; line-height: 1.35; }
.ap-handy-karte b { display: block; color: #223e6d; }
.ap-handy-karte em { display: block; font-style: normal; font-size: 0.9em; color: #6b7280; }
.ap-handy-karte .op-marke { margin-top: 0.35em; }
.ap-handy-knoepfe { display: flex; gap: 0.4em; margin-top: 0.55em; }
.ap-handy-knoepfe span { flex: 1; padding: 0.42em 0.2em; border-radius: 0.45em; background: #223e6d; color: #fff; font-size: 0.88em; font-weight: 700; text-align: center; }
.ap-handy-knoepfe span + span { background: #e6eaf1; color: #223e6d; }

/* Schmale Behälter (Handy des Besuchers): ohne Leiste, größer gesetzt; .nb = nur in der Breite */
@container (max-width: 560px) {
  .m.fenster.ap .m-geraet { font-size: calc(100cqw / 39); }
  .m.fenster.ap .m-schirm { height: 37em; }
  .ap-rail, .ap .nb, .ap-gpu { display: none !important; }
  .ap-flaeche { padding-inline: 0.9em; }
  .ap-handy { width: 14.5em; }
  .tg-datum > .i { display: none; }
  .tg-kopf { gap: 0.45em; }
}

/* ---------------------------------------------------------
   Startseite (Auftakt)
   --------------------------------------------------------- */
.as-flaeche { padding: 1.5em 1.6em 0; }
.as-flaeche::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.2em; background: linear-gradient(to bottom, rgba(241, 244, 247, 0), var(--ap-app)); pointer-events: none; }
.as-gruss { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5em; padding-bottom: 1em; margin-bottom: 1em; border-bottom: 1px solid var(--ap-linie); }
.as-schule { font-size: 0.58em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ap-akzent); }
.as-hallo { margin-top: 0.3em; font: 400 1.75em/1.12 var(--ap-titel); letter-spacing: 0.005em; }
.as-datum { margin-top: 0.45em; font-size: 0.72em; color: var(--ap-text-2); }
.as-datum i { margin-inline: 0.3em; font-style: normal; color: var(--ap-blass); }
.as-suche {
  flex: 0 1 16em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  height: 2.9em;
  padding: 0 0.7em 0 0.9em;
  border: 1px solid var(--ap-linie-2);
  border-radius: 0.8em;
  background: var(--ap-weiss);
  box-shadow: 0 1px 2px rgba(16, 27, 44, 0.06);
  font-size: 0.72em;
  color: var(--ap-text);
  transition: border-color 0.2s var(--ruhig), box-shadow 0.2s var(--ruhig);
}
.as-suche .i { color: var(--ap-text-3); }
.as-suche span:empty { display: none; }
.as-suche span { font-weight: 500; white-space: nowrap; overflow: hidden; }
.as-suche span:not(:empty)::after { content: ""; display: inline-block; width: 1px; height: 1.1em; margin-left: 1px; vertical-align: -0.18em; background: var(--ap-akzent); animation: as-blink 1.1s steps(1) infinite; }
.as-suche span:not(:empty) + em { display: none; }
.as-suche em { flex: 1; font-style: normal; color: var(--ap-blass); white-space: nowrap; overflow: hidden; }
.as-suche kbd { margin-left: auto; }
.sucht .as-suche { border-color: var(--ap-akzent); box-shadow: 0 0 0 0.25em rgba(31, 99, 119, 0.12); }
.sucht .as-suche kbd { display: none; }
@keyframes as-blink { 50% { opacity: 0; } }

.as-gruppe + .as-gruppe { margin-top: 0.85em; }
.as-gruppe[hidden] { display: none; }
.as-gruppe-titel { display: flex; align-items: center; gap: 0.6em; margin-bottom: 0.5em; font-size: 0.56em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ap-text-3); }
.as-gruppe-titel span { padding: 0 0.6em; border-radius: 100px; background: var(--ap-grau-2); font-size: 0.95em; letter-spacing: 0; line-height: 1.6; }
.as-kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5em; }
.as-kachel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6em;
  min-height: 2.75em;
  padding: 0.35em 1.9em 0.35em 0.45em;
  border: 1px solid var(--ap-linie);
  border-radius: 0.75em;
  background: var(--ap-weiss);
  box-shadow: 0 1px 2px rgba(16, 27, 44, 0.06);
  color: var(--ap-text);
  transition: border-color 0.15s var(--ruhig), box-shadow 0.15s var(--ruhig), transform 0.15s var(--ruhig);
}
.as-kachel[hidden] { display: none; }
.as-kachel > .i { flex: none; width: 2em; height: 2em; padding: 0.48em; border-radius: 0.55em; background: var(--ap-zart); color: var(--ap-akzent); transition: background-color 0.15s var(--ruhig), color 0.15s var(--ruhig); }
.as-kachel > span:not(.ke-nur-vorlesen) { min-width: 0; }
.as-kachel b { display: block; font-size: 0.78em; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-kachel b small { margin-left: 0.5em; padding: 0 0.5em; border-radius: 100px; background: var(--ap-grau-2); font-size: 0.72em; font-weight: 600; color: var(--ap-text-3); }
.as-kachel em { display: none; margin-top: 0.2em; font-style: normal; font-size: 0.66em; line-height: 1.4; color: var(--ap-text-3); }
.as-kachel > i {
  position: absolute;
  right: 0.5em; top: 50%;
  display: grid;
  place-items: center;
  width: 1.75em; height: 1.75em;
  margin-top: -0.875em;
  border: 1px solid var(--kap-r);
  border-radius: 50%;
  background: var(--kap-h);
  color: var(--kap);
  font-style: normal;
  font-size: 0.56em;
  font-weight: 800;
}
.as-kachel:hover,
.as-kachel:focus-visible,
.as-kachel.bester { border-color: var(--ap-akzent); box-shadow: 0 0.7em 1.4em -0.8em rgba(16, 27, 44, 0.35); transform: translateY(-1px); }
.as-kachel:hover > .i,
.as-kachel.bester > .i { background: var(--ap-akzent); color: #fff; }
.as-kachel.bester { box-shadow: 0 0 0 0.22em rgba(31, 99, 119, 0.14); }
/* Beim Suchen: wenige Kacheln, dafür mit der Zeile, was man dort tut */
.sucht .as-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sucht .as-kachel { align-items: flex-start; min-height: 4.6em; padding: 0.7em 2.2em 0.7em 0.7em; }
.sucht .as-kachel > .i { width: 2.3em; height: 2.3em; padding: 0.55em; }
.sucht .as-kachel b { font-size: 0.8em; white-space: normal; }
.sucht .as-kachel em { display: block; }
.sucht .as-kachel > i { top: 1.5em; font-size: 0.6em; }
.as-leer { display: flex; align-items: center; gap: 0.7em; padding: 1.3em 1.2em; border: 1px dashed var(--ap-linie-2); border-radius: 0.8em; font-size: 0.76em; color: var(--ap-text-3); }
.as-leer[hidden] { display: none; }

@container (max-width: 560px) {
  .m.fenster.ap.gross .m-geraet { font-size: calc(100cqw / 35); }
  .m.fenster.ap.gross .m-schirm { height: auto; padding-bottom: 1.4em; }
  .as-flaeche { padding: 1.1em 1em 0; }
  .as-flaeche::after { display: none; }
  .as-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-suche { display: none; }
  .as-hallo { font-size: 1.5em; }
}

/* ---------------------------------------------------------
   Bühne: Zusätze für diesen Teil
   --------------------------------------------------------- */
/* Rechnerfenster brauchen Platz: schmalere Textspalte als auf den Bühnen des Onlineplans */
@media (min-width: 1101px) {
  .ke-adminpanel .ke-buehne.fenster { grid-template-columns: minmax(0, 1fr) minmax(0, 2.05fr); gap: 1.9rem; padding: 2rem; }
  .ke-adminpanel .ke-buehne.gedreht.fenster { grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); }
}
.ke-adminpanel .ke-buehne { align-items: start; }
.ke-adminpanel .ke-buehne-bild { align-self: center; }
/* Satz unter dem Fenster: was der Bereich sonst noch kann */
.m-notiz { margin: 14px 4px 0; font-size: 0.88rem; line-height: 1.55; color: var(--tinte-3); text-wrap: pretty; }
/* Kleine Bilder im Aussehen des Admin-Panels */
.v-bild.av { --kreide: #f1f4f7; background: #f1f4f7; color: #162031; font-feature-settings: "tnum" 1;
  --ap-nacht: #0f1a2b; --ap-app: #f1f4f7; --ap-weiss: #fff; --ap-grau: #f6f8fa; --ap-grau-2: #e9edf2; --ap-text: #162031; --ap-text-2: #46546b; --ap-text-3: #5f6d83;
  --ap-blass: #8591a3; --ap-akzent: #1f6377; --ap-zart: #e6f1f4; --ap-linie: #dfe4eb; --ap-linie-2: #cdd5df; --ap-gut: #1b7550; --ap-gut-h: #e3f3ea;
  --ap-warn: #9a570b; --ap-warn-h: #fcf0dc; --ap-fehler: #b0342c; --ap-fehler-h: #fbe8e6; --ap-info: #275a9a; --ap-info-h: #e5edf8; --ap-lila: #6d4ad1; --ap-lila-h: #eeeafd;
  --ap-titel: "Stundenfee Display", var(--geraet); }
.v-bild.av .v-kopf { background: var(--ap-nacht); font-weight: 600; letter-spacing: 0.01em; }
.v-bild.av .v-zeile { border: 1px solid var(--ap-linie); box-shadow: 0 1px 2px rgba(16, 27, 44, 0.06); }
.v-bild.av .v-zeile b { color: var(--ap-text); font-weight: 650; }
.v-bild.av .v-zeile em { color: var(--ap-text-3); }
.v-bild.av .v-zeile > .i { padding: 0.28em; width: 1.5em; height: 1.5em; border-radius: 0.3em; background: var(--ap-zart); color: var(--ap-akzent); font-size: 1.35em; }
.v-bild.av .v-zeile > .ap-chip, .v-bild.av .v-zeile > .ap-kz { margin-left: auto; font-size: 0.8em; }
.v-bild.av .v-zeile > .ap-kz:first-child { margin-left: 0; }
.v-bild.av .v-meldung { background: var(--ap-nacht); color: #e9eef6; }
.v-bild.av .v-meldung .i { color: #5fd39a; }
/* Die Meldung liegt unten im Bild: Knöpfe darunter treten zurück, sobald sie erscheint */
.v-bild.av:has(.v-meldung.da) :is(.xv-knoepfe, .xp-knopf) { opacity: 0; transition: opacity 0.3s var(--ruhig); }
.v-bild.av .ap-chip { font-size: 0.74em; }
.v-bild.av .ap-kz { font-size: 0.74em; }

/* ---------------------------------------------------------
   Kapitel 1: Der Schultag
   --------------------------------------------------------- */

/* Day-to-Day */
.tg-kopf { display: flex; align-items: center; gap: 0.6em; margin-bottom: 0.75em; }
.tg-datum { display: inline-flex; align-items: center; gap: 0.55em; color: var(--ap-text-3); }
.tg-datum .i { font-size: 0.9em; }
.tg-datum b { display: block; font: 400 1.22em/1.15 var(--ap-titel); color: var(--ap-text); white-space: nowrap; }
.tg-datum em { display: block; font-style: normal; font-size: 0.64em; }
.tg-lage { flex: 1; display: flex; padding-left: 0.4em; }
.tg-lage .ap-chip { display: none; font-size: 0.7em; }
.tg-l0 { display: inline-flex !important; }
.ab-1 .tg-l0 { display: none !important; }
.ab-1 .tg-l1 { display: inline-flex; }
.ab-4 .tg-l1 { display: none; }
.ab-4 .tg-l2 { display: inline-flex; }
.tg-n1 { display: none; }
.ab-3 .tg-n3 { display: none; }
.ab-3 .tg-n1 { display: inline; }
.tg-zaehler { visibility: hidden; }
.ab-1 .tg-zaehler { visibility: visible; }
.ab-4 .tg-zaehler { visibility: hidden; }
.tg-quali { position: relative; display: grid; place-items: center; width: 2.3em; height: 2.3em; opacity: 0; transform: scale(0.6); transition: opacity 0.4s var(--ruhig), transform 0.5s var(--weich); }
.tg-quali.da { opacity: 1; transform: none; }
.tg-quali svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--ap-grau-2); stroke-width: 3.5; }
.tg-quali .ring { stroke: var(--ap-gut); stroke-linecap: round; stroke-dasharray: 75.4; stroke-dashoffset: 75.4; transition: stroke-dashoffset 1s var(--weich) 0.2s; }
.tg-quali.da .ring { stroke-dashoffset: 6.8; }
.tg-quali b { position: relative; font-size: 0.72em; font-weight: 700; }
.tg-stand { width: 0.6em; height: 0.6em; border-radius: 50%; background: #f2b45a; transition: background-color 0.4s var(--ruhig); }
.ab-5 .tg-stand { background: #5fd39a; }

.tg-zwei { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0.8em; align-items: start; }
.tg-abw { display: flex; align-items: center; gap: 0.6em; min-height: 2.3em; margin-bottom: 0.65em; font-size: 0.72em; color: var(--ap-text-3); }
.tg-abw > b { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 650; color: var(--ap-text-2); }
.tg-abw .ap-btn { margin-left: auto; font-size: 0.94em; }
.tg-abw .ap-kz { font-size: 0.92em; }
.tg-abw-chip { display: none; align-items: center; gap: 0.55em; padding: 0.3em 0.7em 0.3em 0.35em; border: 1px solid var(--ap-linie-2); border-radius: 0.7em; background: var(--ap-weiss); font-weight: 600; color: var(--ap-text); }
.ab-1 .tg-abw-chip { display: inline-flex; animation: ap-rein 0.5s var(--weich); }
.ab-1 .tg-niemand { display: none; }
.tg-std { display: inline-flex; gap: 0.16em; }
.tg-std i { width: 0.42em; height: 1.1em; border-radius: 0.15em; background: var(--ap-grau-2); }
.tg-std i.an { background: var(--ap-fehler); opacity: 0.75; }
.tg-abw-chip em { font-style: normal; font-weight: 700; }
.tg-abw-chip .offen { color: var(--ap-fehler); }
.tg-abw-chip .fertig { display: none; color: var(--ap-gut); }
.ab-4 .tg-abw-chip .offen { display: none; }
.ab-4 .tg-abw-chip .fertig { display: inline-flex; }
@keyframes ap-rein { from { opacity: 0; transform: translateY(0.5em); } }

.tg-liste { overflow: hidden; }
.tg-zeile { opacity: 0; transition: background-color 0.3s var(--ruhig); }
.ab-1 .tg-zeile { opacity: 1; animation: ap-rein 0.5s var(--weich) both; }
.ab-1 .tg-z2 { animation-delay: 0.12s; }
.ab-1 .tg-z3 { animation-delay: 0.24s; }
.tg-zeile .neu { display: none; }
.tg-zeile.da .neu { display: inline-grid; }
.tg-zeile.da .ap-chip.neu { display: inline-flex; }
.tg-zeile.da .alt { display: none; }
.tg-zeile.frisch { background: #fff8d6; }
.ap-tab > div.tg-zeile.gewaehlt-in-2 { background: none; }
[data-phase="2"] .tg-z1 { background: var(--ap-zart); box-shadow: inset 0.22em 0 0 var(--ap-akzent); }
.tg-strich { color: var(--ap-blass); padding-left: 0.9em; }
.tg-fuss { display: flex; align-items: center; gap: 0.4em; margin-top: 0.7em; font-size: 0.6em; color: var(--ap-blass); }
.tg-fuss kbd + kbd { margin-left: -0.2em; }
.tg-fuss kbd:not(:first-child) { margin-left: 0.8em; }

.tg-rechts { min-height: 19.6em; padding: 0.75em 0.8em; }
.tg-leer { display: grid; justify-items: center; gap: 0.7em; padding: 4.2em 1em 0; font-size: 0.7em; line-height: 1.45; text-align: center; color: var(--ap-blass); }
.tg-leer .i { font-size: 1.8em; }
.tg-fall { display: none; }
[data-phase="2"] .tg-fall, [data-phase="3"] .tg-fall { display: block; animation: ap-rein 0.45s var(--weich); }
[data-phase="2"] .tg-leer, [data-phase="3"] .tg-leer { display: none; }
.tg-fall-kopf b { display: block; font-size: 0.82em; font-weight: 700; }
.tg-fall-kopf em { display: block; font-style: normal; font-size: 0.66em; color: var(--ap-text-3); }
.tg-gr { display: flex; align-items: center; gap: 0.45em; margin: 0.75em 0 0.4em; font-size: 0.6em; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ap-text-3); }
.tg-gr span { margin-left: auto; font-weight: 500; letter-spacing: 0; text-transform: none; }
.tg-kand { position: relative; display: flex; align-items: flex-start; gap: 0.55em; margin-bottom: 0.4em; padding: 0.5em 0.55em; border: 1px solid var(--ap-linie); border-radius: 0.6em; background: var(--ap-weiss); transition: border-color 0.3s var(--ruhig), background-color 0.3s var(--ruhig), box-shadow 0.3s var(--ruhig); }
.tg-kand > span:nth-child(2) { flex: 1; min-width: 0; }
.tg-kand b { font-size: 0.74em; font-weight: 650; }
.tg-krit { display: flex; flex-wrap: wrap; gap: 0.25em; margin-top: 0.25em; }
.tg-krit i { padding: 0.08em 0.5em; border-radius: 0.4em; background: var(--ap-gut-h); font-style: normal; font-size: 0.56em; font-weight: 600; line-height: 1.5; color: var(--ap-gut); white-space: nowrap; }
.tg-krit i.minus { background: var(--ap-fehler-h); color: var(--ap-fehler); }
.tg-score { flex: none; display: grid; justify-items: end; gap: 0.3em; width: 2.6em; --b: var(--ap-akzent); }
.tg-score b { font-size: 0.9em; font-weight: 700; line-height: 1; }
.tg-score .ap-balken { width: 100%; height: 0.3em; }
.tg-score.gut { --b: var(--ap-gut); }
.tg-score.schwach { --b: var(--ap-warn); }
.ab-3 .tg-kand.m-tipp { border-color: var(--ap-akzent); background: var(--ap-zart); box-shadow: 0 0 0 0.16em rgba(31, 99, 119, 0.14); }
.tg-opt { display: flex; gap: 0.35em; }
.tg-opt span { flex: 1; padding: 0.42em 0.2em; border: 1px solid var(--ap-linie); border-radius: 0.5em; background: var(--ap-weiss); font-size: 0.62em; font-weight: 600; text-align: center; color: var(--ap-text-2); }
.tg-dialog dd .ap-kz { font-size: 0.8em; }

/* Krankmeldungen */
.km-reiter > span { transition: color 0.3s var(--ruhig); }
.km-r0, [data-phase="1"] .km-r1, [data-phase="2"] .km-r1, .ab-3 .km-r3 { color: var(--ap-akzent); }
.km-r0::after, [data-phase="1"] .km-r1::after, [data-phase="2"] .km-r1::after, .ab-3 .km-r3::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ap-akzent); z-index: 1; }
.ab-1 .km-r0 { color: inherit; }
.ab-1 .km-r0::after { display: none; }
.km-reiter .m-tipp::after { z-index: 2; height: 2.6em; background: rgba(29, 78, 216, 0.28); border-radius: 50%; left: 50%; right: auto; bottom: auto; }
.km-seite { display: none; }
.km-heute { display: block; }
.ab-1 .km-heute { display: none; }
[data-phase="1"] .km-unb, [data-phase="2"] .km-unb, .ab-3 .km-stat { display: block; animation: ap-rein 0.45s var(--weich); }
.km-zwei { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 0.7em; align-items: start; }
.km-stat .km-zwei { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.km-neu { background: #fff8d6; }
.km-klassen { padding-bottom: 0.6em; }
.km-klassen > p:not(.ap-kt) { display: grid; grid-template-columns: 2.6em 1fr 1.4em; align-items: center; gap: 0.6em; padding: 0.3em 0.9em; font-size: 0.72em; }
.km-klassen b { text-align: right; font-weight: 650; }
.km-hinweis { display: flex; gap: 0.6em; margin-bottom: 0.8em; padding: 0.7em 0.9em; border-radius: 0.7em; background: var(--ap-info-h); font-size: 0.7em; line-height: 1.45; color: var(--ap-info); }
.km-hinweis .i { margin-top: 0.15em; font-size: 1.15em; }
.km-fall { background: var(--ap-fehler-h); }
.km-fussnote { margin-top: 0.7em; font-size: 0.64em; color: var(--ap-blass); }
.km-dialog-in { padding: 0.9em 1.1em 1em; }
.km-stunden { display: flex; gap: 0.35em; margin: 0.6em 0 0.7em; }
.km-stunden i { display: grid; place-items: center; width: 2.4em; height: 2.2em; border: 1px solid var(--ap-linie-2); border-radius: 0.5em; font-style: normal; font-weight: 650; color: var(--ap-text-2); }
.km-stunden i.an { border-color: var(--ap-fehler); background: var(--ap-fehler-h); color: var(--ap-fehler); }
.km-notiz { min-height: 3.4em; padding: 0.55em 0.75em; border: 1px solid var(--ap-linie-2); border-radius: 0.55em; color: var(--ap-text-2); }
.km-stat-kopf { display: flex; align-items: center; gap: 0.7em; margin-bottom: 0.7em; }
.km-bild { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--ap-zart); font-size: 0.8em; font-weight: 700; color: var(--ap-akzent); }
.km-stat-kopf > span:nth-child(2) { flex: 1; }
.km-stat-kopf b { display: block; font-size: 0.9em; font-weight: 700; }
.km-stat-kopf em { display: block; font-style: normal; font-size: 0.66em; color: var(--ap-text-3); }
.km-tage { padding-bottom: 0.6em; }
.km-tage > p:not(.ap-kt) { display: grid; grid-template-columns: 5.2em 1fr auto; gap: 0.6em; padding: 0.32em 0.9em; font-size: 0.7em; }
.km-tage > p.km-klein { display: block; margin: -0.1em 0.9em 0.3em 6.7em; padding: 0.3em 0.6em; border-radius: 0.45em; background: var(--ap-grau); font-size: 0.6em; line-height: 1.4; color: var(--ap-text-3); }
.km-tage b { font-weight: 650; }
.km-tage em { font-style: normal; color: var(--ap-text-3); }

/* Klassenbuch (klein) */
.xk-karte { border: 1px solid var(--ap-linie); border-radius: 0.5em; background: #fff; box-shadow: 0 1px 2px rgba(16, 27, 44, 0.06); overflow: hidden; }
.xk-zeile { display: grid; grid-template-columns: 2.6em 1fr 3em; align-items: center; gap: 0.6em; padding: 0.36em 0.65em; font-size: 0.86em; transition: background-color 0.4s var(--ruhig); }
.xk-zeile + .xk-zeile { border-top: 1px solid var(--ap-linie); }
.xk-zeile b { text-align: right; font-weight: 650; }
.ab-1 .xk-luecke { background: var(--ap-warn-h); }
.xk-fuss { display: grid; align-items: center; }
.xk-fuss > * { grid-area: 1 / 1; }
.xk-offen { display: flex; align-items: center; gap: 0.4em; font-size: 0.76em; font-weight: 600; color: var(--ap-warn); }
.xk-offen .i { font-size: 1.15em; }
.xk-sicht { display: flex; align-items: center; gap: 0.4em; font-size: 0.74em; color: var(--ap-text-3); }
.xk-sicht span { margin-right: auto; font-weight: 600; white-space: nowrap; }
.xk-sicht i { padding: 0.3em 0.7em; border: 1px solid var(--ap-linie-2); border-radius: 0.5em; background: #fff; font-style: normal; font-weight: 600; color: var(--ap-text-2); white-space: nowrap; }
.xk-sicht i.an { border-color: var(--ap-akzent); background: var(--ap-akzent); color: #fff; }
.ap-tab > .ap-tab-kopf { letter-spacing: 0.03em; white-space: nowrap; }
.km-erledigt { display: flex; align-items: center; gap: 0.6em; margin-top: 1.2em; padding: 0.6em 0.9em; border: 1px dashed var(--ap-linie-2); border-radius: 0.7em; font-size: 0.68em; color: var(--ap-text-3); }
.km-erledigt .i { color: var(--ap-gut); font-size: 1.2em; stroke-width: 2.6; }
.km-erledigt span { flex: 1; }
.km-erledigt b { color: var(--ap-text-2); font-weight: 650; }
.km-erledigt em { font-style: normal; }

/* ---------------------------------------------------------
   Kapitel 2: Prüfungen
   --------------------------------------------------------- */

/* Klausuren */
.kn .ap-seitenkopf { margin-bottom: 0.6em; }
.kn-entwurf { display: flex; align-items: center; gap: 0.6em; height: 0; margin-bottom: 0; padding: 0 0.8em; border-radius: 0.65em; background: var(--ap-warn-h); font-size: 0.68em; color: var(--ap-warn); overflow: hidden; opacity: 0; transition: height 0.4s var(--weich), margin 0.4s var(--weich), opacity 0.3s var(--ruhig), background-color 0.4s var(--ruhig), color 0.4s var(--ruhig); }
.ab-1 .kn-entwurf { height: 2.9em; margin-bottom: 0.7em; opacity: 1; }
.kn-entwurf > span:not(.ap-btn) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kn-entwurf .ap-btn { font-size: 0.94em; }
.kn-entwurf .neu { display: none; }
.ab-5 .kn-entwurf { background: var(--ap-gut-h); color: var(--ap-gut); transition-delay: 0.5s; }
.ab-5 .kn-entwurf .alt, .ab-5 .kn-entwurf .ap-btn { display: none; }
.ab-5 .kn-entwurf .neu { display: inline; }
.kn-drei { display: grid; grid-template-columns: 9.6em minmax(0, 1fr) 12.4em; gap: 0.7em; align-items: start; }
.kn-offen { padding-bottom: 0.5em; }
.kn-stufe { margin: 0.35em 0.75em 0.3em; font-size: 0.6em; font-weight: 700; color: var(--ap-text-3); }
.kn-kurs { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0 0.4em; margin: 0 0.5em 0.35em; padding: 0.4em 0.55em; border: 1px solid var(--ap-linie); border-radius: 0.5em; background: var(--ap-weiss); font-size: 0.68em; line-height: 1.3; transition: border-color 0.3s var(--ruhig), background-color 0.3s var(--ruhig), opacity 0.4s var(--ruhig); }
.kn-kurs b { font-weight: 700; }
.kn-kurs em { grid-column: 1; font-style: normal; font-size: 0.9em; color: var(--ap-text-3); }
.kn-kurs i { grid-area: 1 / 2 / 3 / 3; align-self: center; padding: 0.1em 0.5em; border-radius: 1em; background: var(--ap-grau-2); font-style: normal; font-size: 0.86em; font-weight: 700; color: var(--ap-text-2); }
.kn-vor { border-color: var(--ap-akzent); background: var(--ap-zart); box-shadow: 0 0 0 0.16em rgba(31, 99, 119, 0.14); }
.ab-1 .kn-vor { border-color: var(--ap-linie); background: var(--ap-weiss); box-shadow: none; opacity: 0.45; }
.kn-woche { padding: 0.55em 0.6em 0.6em; }
.kn-tage { display: grid; grid-template-columns: 1.6em repeat(5, minmax(0, 1fr)); gap: 0.3em; margin-bottom: 0.3em; font-size: 0.64em; font-weight: 650; text-align: center; color: var(--ap-text-2); }
.kn-raster { position: relative; display: grid; grid-template-columns: 1.04em repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(6, 2.62em); gap: 0.2em; background-image: linear-gradient(var(--ap-linie) 1px, transparent 1px); background-size: 100% 2.82em; background-position: 0 -0.1em; }
.kn-raster > i { grid-column: 1; display: grid; place-items: center; font-style: normal; font-size: 0.58em; font-weight: 600; color: var(--ap-blass); }
.kn-block, .kn-sperre { grid-column: calc(var(--tag) + 1); grid-row: var(--s) / span var(--n); min-width: 0; border-radius: 0.5em; }
.kn-block { position: relative; display: grid; align-content: start; gap: 0.1em; padding: 0.4em 0.5em; border: 1px solid #b9a7ee; border-left-width: 0.22em; background: #f3effd; font-size: 0.64em; line-height: 1.25; color: #3b2a7a; overflow: hidden; }
.kn-block.st11 { border-color: #9fd2e2; background: #e8f5f9; color: #0e4d5f; }
.kn-block b { font-size: 0.86em; font-weight: 700; letter-spacing: 0.02em; opacity: 0.8; }
.kn-block strong { font-weight: 700; font-size: 1.06em; }
.kn-block em { font-style: normal; font-size: 0.92em; opacity: 0.85; white-space: nowrap; }
.kn-block u { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25em 0.3em; margin-top: 0.25em; font-size: 0.9em; font-weight: 650; text-decoration: none; }
.kn-block u .i { font-size: 1em; }
.kn-block u > span { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.05em 0.4em; border-radius: 0.4em; }
.kn-sperre { display: flex; align-items: center; justify-content: center; gap: 0.3em; background: repeating-linear-gradient(135deg, #e6eaf0 0 0.35em, #f4f6f9 0.35em 0.7em); font-size: 0.58em; font-weight: 600; color: var(--ap-text-3); }
.kn-neu { opacity: 0; transform: scale(0.7); transition: opacity 0.3s var(--ruhig), transform 0.5s var(--weich), box-shadow 0.4s var(--ruhig); }
.kn-neu.da { opacity: 1; transform: none; }
.kn-neu.frisch, [data-phase="2"] .kn-neu, [data-phase="3"] .kn-neu { box-shadow: 0 0 0 0.2em rgba(109, 74, 209, 0.28); }
.kn-neu .neu { display: none; }
.kn-raum, .kn-auf { background: var(--ap-fehler-h); color: var(--ap-fehler); transition: background-color 0.3s var(--ruhig), color 0.3s var(--ruhig); }
.ab-2 .kn-raum, .ab-3 .kn-auf { background: none; color: inherit; padding-inline: 0 !important; }
.ab-2 .kn-raum .neu, .ab-3 .kn-auf .neu { display: inline; }
.ab-2 .kn-raum .alt, .ab-3 .kn-auf .alt { display: none; }
.kn-detail { min-height: 17.6em; padding: 0.7em 0.75em; }
.kn-leer { display: grid; justify-items: center; gap: 0.7em; padding: 3.4em 0.6em 0; font-size: 0.66em; line-height: 1.45; text-align: center; color: var(--ap-blass); }
.kn-leer .i { font-size: 1.8em; }
.kn-fall { display: none; }
.ab-1 .kn-fall { display: block; animation: ap-rein 0.45s var(--weich); }
.ab-1 .kn-detail .kn-leer { display: none; }
.kn-fall-kopf b { display: block; font-size: 0.8em; font-weight: 700; }
.kn-fall-kopf em { display: block; font-style: normal; font-size: 0.64em; color: var(--ap-text-3); }
.kn-tabs { display: flex; gap: 0.25em; margin: 0.6em 0 0.55em; padding: 0.18em; border-radius: 0.55em; background: var(--ap-grau-2); font-size: 0.62em; font-weight: 650; color: var(--ap-text-3); }
.kn-tabs span { flex: 1; padding: 0.3em 0; border-radius: 0.4em; text-align: center; }
.kn-tabs span:first-child, .ab-2 .kn-t-raum, .ab-3 .kn-t-auf { background: var(--ap-weiss); color: var(--ap-text); box-shadow: 0 1px 2px rgba(16, 27, 44, 0.12); }
.ab-2 .kn-tabs span:first-child, .ab-3 .kn-t-raum { background: none; color: inherit; box-shadow: none; }
.kn-raeume, .kn-aufsichten { display: none; }
.kn-raeume, [data-phase="1"] .kn-raeume, [data-phase="2"] .kn-raeume { display: block; }
.ab-3 .kn-raeume { display: none; }
.ab-3 .kn-aufsichten { display: block; }
.kn-r { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0 0.4em; align-items: center; margin-bottom: 0.35em; padding: 0.4em 0.55em; border: 1px solid var(--ap-linie); border-radius: 0.5em; font-size: 0.68em; line-height: 1.3; transition: border-color 0.3s var(--ruhig), background-color 0.3s var(--ruhig); }
.kn-r b { font-weight: 700; }
.kn-r em { grid-column: 1; font-style: normal; font-size: 0.9em; color: var(--ap-text-3); }
.kn-r .ap-chip { grid-area: 1 / 2 / 3 / 3; font-size: 0.86em; }
.kn-r.zu { opacity: 0.6; }
.ab-2 .kn-r.m-tipp { border-color: var(--ap-akzent); background: var(--ap-zart); }
.kn-a { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.32em; font-size: 0.68em; }
.kn-a i { width: 1.3em; font-style: normal; font-weight: 700; color: var(--ap-text-3); }
.kn-a .ap-kz { font-size: 0.92em; background: var(--ap-zart); color: var(--ap-akzent); }
.kn-a em { font-style: normal; font-size: 0.9em; color: var(--ap-text-3); }
.kn-aufsichten .ap-btn { margin-top: 0.3em; }
.kn-dialog { width: 21em; left: 34%; }
.kn-pruef { display: grid; gap: 0.5em; padding: 0.95em 1.1em 1.1em; }
.kn-pruef li { display: flex; align-items: center; gap: 0.55em; }
.kn-pruef .i { flex: none; padding: 0.15em; border-radius: 50%; background: var(--ap-gut-h); color: var(--ap-gut); font-size: 1.25em; stroke-width: 3; }
.kn .ap-handy { transition-delay: 0.9s; }
.ab-1 .kn-vor .alt { display: none; }
.ab-1 .kn-vor .neu { display: inline; }

/* Mündliches Abitur (klein) */
.xm-raster { display: grid; grid-template-columns: 2.6em repeat(3, minmax(0, 1fr)); gap: 0.25em; font-size: 0.78em; text-align: center; }
.xm-raster > b { display: grid; place-items: center; min-height: 1.5em; font-size: 0.86em; font-weight: 600; color: var(--ap-text-3); }
.xm-raster > span { display: grid; place-items: center; min-height: 2.5em; border: 1px solid #b9a7ee; border-radius: 0.4em; background: #f3effd; font-weight: 700; line-height: 1.1; color: #3b2a7a; }
.xm-raster > span em { font-style: normal; font-size: 0.74em; font-weight: 500; opacity: 0.8; }
.xm-raster > span.pause { border: 1px dashed var(--ap-linie-2); background: none; font-size: 0.82em; font-weight: 500; color: var(--ap-blass); }
.v-bild .xm-raster > span[data-an] { transform: scale(0.8); }
.v-bild .xm-raster > span[data-an].da { transform: none; }
.xm-raster > span:nth-child(4n+2) { transition-delay: 0.05s; }
.xm-raster > span:nth-child(4n+3) { transition-delay: 0.15s; }
.xm-raster > span:nth-child(4n+4) { transition-delay: 0.25s; }
.xm-knopf { position: absolute; left: 50%; top: 56%; display: inline-flex; align-items: center; gap: 0.4em; padding: 0.5em 1em; border-radius: 0.6em; background: var(--ap-akzent); color: #fff; font-size: 0.8em; font-weight: 700; transform: translate(-50%, -50%); box-shadow: 0 0.6em 1.4em -0.6em rgba(16, 27, 44, 0.5); transition: opacity 0.3s var(--ruhig); }
.ab-1 .xm-knopf { opacity: 0; }

/* ---------------------------------------------------------
   Kapitel 3: Mitteilungen und Termine
   --------------------------------------------------------- */

/* Kalender: Monatsansicht, Dialog „Neuer Termin“, Angaben daneben.
   Farben der Kategorien wie CAL_CATEGORIES in calendar_api.php. */
.kd { --k: #8b5cf6; }
.kd .kat-allgemein { --k: #8b5cf6; }
.kd .kat-ferien { --k: #10b981; }
.kd .kat-konferenz { --k: #f59e0b; }
.kd .kat-elternabend { --k: #ec4899; }
.kd .kat-ausflug { --k: #14b8a6; }
.kd .ap-seitenkopf { margin-bottom: 0.7em; }
.kd .ap-kpis { margin-bottom: 0.7em; }
.kd .ap-kpis > span { padding-block: 0.45em 0.5em; }
.kd .ap-kpis b { font-size: 1.9em; }
.ab-3 .kd .ap-kpis .alt { display: none; }
.ab-3 .kd .ap-kpis .neu { display: inline; color: var(--ap-akzent); }
.kd-leiste { display: flex; align-items: center; gap: 0.7em; margin-bottom: 0.55em; font-size: 0.72em; }
.kd-monatname { display: inline-flex; align-items: center; gap: 0.5em; color: var(--ap-text-3); }
.kd-monatname b { min-width: 4.6em; font: 400 1.55em/1.1 var(--ap-titel); text-align: center; color: var(--ap-text); }
.kd-leiste .ap-btn { font-size: 0.92em; }
.kd-segment { margin-left: auto; display: flex; gap: 0.15em; padding: 0.18em; border-radius: 0.6em; background: var(--ap-grau-2); font-weight: 650; color: var(--ap-text-3); }
.kd-segment span { padding: 0.3em 0.85em; border-radius: 0.45em; }
.kd-segment .an { background: var(--ap-weiss); color: var(--ap-text); box-shadow: 0 1px 2px rgba(16, 27, 44, 0.12); }
.kd-zwei { display: grid; grid-template-columns: minmax(0, 1fr) 13em; gap: 0.7em; align-items: start; }
.kd-monat { padding: 0.55em 0.55em 0.6em; }
.kd-wt, .kd-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.25em; }
.kd-wt { padding-bottom: 0.35em; font-size: 0.56em; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ap-text-3); }
.kd-wt b { padding-left: 0.6em; font-weight: 700; }
.kd-raster > span { position: relative; display: grid; align-content: start; gap: 0.15em; min-width: 0; min-height: 3.1em; padding: 0.26em 0.28em; border-radius: 0.45em; background: var(--ap-grau); transition: background-color 0.3s var(--ruhig), box-shadow 0.3s var(--ruhig); }
.kd-raster > span > i { padding-left: 0.3em; font-style: normal; font-size: 0.6em; font-weight: 650; color: var(--ap-text-2); }
.kd-raster .aus > i { color: var(--ap-blass); }
.kd-raster .we { background: none; box-shadow: inset 0 0 0 1px var(--ap-linie); }
.kd-raster .ferien { background: color-mix(in srgb, #10b981 9%, var(--ap-grau)); }
.kd-t { display: block; padding: 0.2em 0.45em 0.2em 0.65em; border-radius: 0.35em; background: color-mix(in srgb, var(--k) 15%, #fff); box-shadow: inset 0.22em 0 0 var(--k); color: color-mix(in srgb, var(--k) 52%, #162031); font-style: normal; font-size: 0.53em; font-weight: 650; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kd-raster .ferien .kd-t { background: none; box-shadow: none; padding-left: 0.5em; }
.kd-ziel.m-tipp::after { left: 50%; top: 55%; }
[data-phase="1"] .kd-ziel, [data-phase="2"] .kd-ziel { background: var(--ap-zart); box-shadow: inset 0 0 0 0.12em var(--ap-akzent); }
.ab-3 .kd-ziel .kd-t.frisch { animation: kd-neu 0.9s var(--weich); }
@keyframes kd-neu { 0% { transform: scale(0.6); } 55% { transform: scale(1.08); } 100% { transform: none; } }
.kd-punkt { flex: none; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--k); }

.kd-detail { min-height: 17.4em; padding: 0.75em 0.8em; }
.kd-fall { display: none; }
.ab-3 .kd-fall { display: block; animation: ap-rein 0.45s var(--weich); }
.ab-3 .kd-detail .kn-leer { display: none; }
.kd-wann { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.1em 0.5em; }
.kd-wann b { font: 400 1.45em/1.1 var(--ap-titel); }
.kd-wann span { font-size: 0.68em; color: var(--ap-text-3); }
.kd-wann .ap-chip { margin-left: auto; font-size: 0.58em; }
.kd-titel { display: flex; align-items: center; gap: 0.5em; margin-top: 0.6em; padding: 0.5em 0.6em; border-radius: 0.55em; background: var(--ap-grau); }
.kd-titel b { display: block; font-size: 0.76em; font-weight: 700; }
.kd-titel em, .kd-plan em { display: block; font-style: normal; font-size: 0.62em; color: var(--ap-text-3); }
.kd-kt { margin: 0.95em 0 0.35em; font-size: 0.58em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ap-text-3); }
.kd-plan { display: flex; align-items: center; gap: 0.5em; }
.kd-plan .i { flex: none; padding: 0.3em; width: 1.7em; height: 1.7em; border-radius: 0.4em; background: #efe9fd; color: #6d4ad1; }
.kd-plan b { display: block; font-size: 0.7em; font-weight: 650; }
.kd-adr { display: flex; align-items: center; gap: 0.5em; font-size: 0.68em; font-weight: 600; color: var(--ap-text-2); }
.kd-erreicht { margin-top: 0.6em; padding-top: 0.55em; border-top: 1px solid var(--ap-linie); font-size: 0.66em; color: var(--ap-text-3); }
.kd-erreicht b { font-weight: 700; color: var(--ap-text); }

.kd-dialog { width: 27em; left: 40%; }
.kd-dialog dl { padding-bottom: 0.3em; }
.kd-ganz { margin-left: auto; display: inline-flex; align-items: center; gap: 0.35em; font-size: 0.9em; font-weight: 600; color: var(--ap-akzent); }
.kd-ganz .i { padding: 0.12em; border-radius: 0.3em; background: var(--ap-akzent); color: #fff; stroke-width: 3; }
.kd-wen { padding: 0 1.1em 0.95em; }
.kd-wen .kd-kt { font-size: 0.8em; margin-top: 0.75em; }
.kd-arten { display: flex; flex-wrap: wrap; gap: 0.3em; }
.kd-arten span { padding: 0.25em 0.75em; border: 1px solid var(--ap-linie-2); border-radius: 100px; font-size: 0.9em; font-weight: 600; color: var(--ap-text-2); transition: background-color 0.3s var(--ruhig), border-color 0.3s var(--ruhig), color 0.3s var(--ruhig); }
.ab-2 .kd-klassen { border-color: var(--ap-akzent); background: var(--ap-akzent); color: #fff; }
.kd-zeile { display: flex; align-items: center; gap: 0.35em; margin-top: 0.6em; padding: 0.5em 0.6em; border: 1px solid var(--ap-linie); border-radius: 0.6em; background: var(--ap-grau); }
.kd-zeile .ap-kz { margin-right: 0.3em; }
.kd-zeile i { padding: 0.2em 0.65em; border: 1px solid var(--ap-linie-2); border-radius: 0.45em; background: var(--ap-weiss); font-style: normal; font-size: 0.86em; font-weight: 600; color: var(--ap-text-3); }
.kd-zeile i.an { border-color: var(--ap-akzent); background: var(--ap-zart); color: var(--ap-akzent); }
.kd .ap-handy { transition-delay: 0.3s; }

/* Nachrichten, Aushänge (klein) */
.xa-art { display: flex; gap: 0.35em; font-size: 0.74em; font-weight: 650; }
.xa-art i { flex: 1; padding: 0.35em 0.2em; border: 1px solid var(--ap-linie-2); border-radius: 0.5em; background: #fff; font-style: normal; text-align: center; color: var(--ap-text-2); }
.xa-art i.an { border-color: var(--ap-fehler); background: var(--ap-fehler-h); color: var(--ap-fehler); }
.xa-banner { display: flex; align-items: center; gap: 0.6em; padding: 0.6em 0.75em; border-radius: 0.55em; background: #c0392b; color: #fff; font-size: 0.84em; line-height: 1.3; }
.xa-banner .i { flex: none; font-size: 1.4em; }
.xa-banner b { display: block; font-size: 0.82em; opacity: 0.85; }
.xa-ziel { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3em; }
.xa-ziel em { margin-left: auto; font-style: normal; font-size: 0.74em; font-weight: 600; color: var(--ap-text-3); }
.v-bild.av.xl { gap: 0.38em; }
.xl-umfrage { display: flex; align-items: center; gap: 0.35em; padding: 0 0.2em; font-size: 0.76em; }
.xl-umfrage span { margin-right: auto; font-weight: 650; color: var(--ap-text-2); white-space: nowrap; }
.xl-umfrage i.ap-chip { font-style: normal; font-size: 0.9em; }
.xl-umfrage em { font-style: normal; font-size: 0.92em; color: var(--ap-text-3); white-space: nowrap; }

/* Was in einer Vorführung erst später erscheint (data-an): weich einblenden. Mit :where() ohne Gewicht,
   damit Dialog, Meldung, Handy und die Szenen ihre eigenen Übergänge behalten. */
:where(.m-schirm.ap [data-an]) { opacity: 0; transform: translateY(0.5em); transition: opacity 0.35s var(--ruhig), transform 0.5s var(--weich); }
:where(.m-schirm.ap [data-an].da) { opacity: 1; transform: none; }
.ap .alt, .v-bild.av .alt { display: inline; }
.ap .neu, .v-bild.av .neu { display: none; }

/* ---------------------------------------------------------
   Kapitel 4: Durchs Schuljahr
   --------------------------------------------------------- */

/* Workflows */
.ab-4 .fl-stand .alt { display: none; }
.ab-4 .fl-stand .neu { display: inline; color: var(--ap-gut); font-weight: 650; }
.fl-zwei { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 0.7em; align-items: start; }
.fl-palette { padding-bottom: 0.5em; }
.fl-palette > p:not(.ap-kt) { display: flex; align-items: center; gap: 0.55em; padding: 0.3em 0.9em; font-size: 0.66em; font-weight: 600; color: var(--ap-text-2); white-space: nowrap; }
.fl-palette > p:not(.ap-kt)::before { content: ""; flex: none; width: 0.75em; height: 0.75em; border-radius: 0.22em; background: var(--f); }
.fl-flaeche { position: relative; width: 37.2em; height: 19.6em; border: 1px solid var(--ap-linie); border-radius: 0.75em; background: var(--ap-weiss) radial-gradient(circle, #d5dbe4 1px, transparent 1.2px) 0 0 / 1.1em 1.1em; }
.fl-kanten { position: absolute; left: 0; top: 0; width: 37.2em; height: 19.6em; fill: none; stroke: #9aa7b8; stroke-width: 1.4; opacity: 0; transition: opacity 0.5s var(--ruhig) 0.6s; }
.ab-1 .fl-kanten, .ab-1 .fl-kante { opacity: 1; }
.fl-kante { position: absolute; left: calc(var(--x) / 0.52 * 1em); top: calc(var(--y) / 0.52 * 1em); padding: 0 0.5em; border-radius: 1em; background: var(--ap-gut-h); font-size: 0.52em; font-weight: 700; line-height: 1.6; color: var(--ap-gut); opacity: 0; transition: opacity 0.5s var(--ruhig) 0.7s; }
.fl-kante.rot { background: var(--ap-fehler-h); color: var(--ap-fehler); }
.fl-k { position: absolute; left: calc(var(--x) * 1em); top: calc(var(--y) * 1em); display: grid; grid-template-columns: auto 1fr; gap: 0 0.45em; align-content: center; width: 11em; height: 4.6em; padding: 0 0.6em 0 0.55em; border: 1px solid var(--ap-linie-2); border-left: 0.26em solid var(--f); border-radius: 0.6em; background: var(--ap-weiss); box-shadow: 0 0.3em 0.8em -0.5em rgba(16, 27, 44, 0.35); opacity: 0; transform: scale(0.85); transition: opacity 0.35s var(--ruhig), transform 0.5s var(--weich), box-shadow 0.3s var(--ruhig), border-color 0.3s var(--ruhig); }
.fl-k .i { grid-row: 1 / 3; align-self: center; width: 1.7em; height: 1.7em; padding: 0.36em; border-radius: 0.4em; background: color-mix(in srgb, var(--f) 16%, #fff); color: var(--f); }
.fl-k b { align-self: end; font-size: 0.6em; font-weight: 700; line-height: 1.2; }
.fl-k em { align-self: start; font-style: normal; font-size: 0.54em; color: var(--ap-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-1 .fl-k { opacity: 1; transform: none; }
.ab-1 .k2 { transition-delay: 0.1s; } .ab-1 .k3 { transition-delay: 0.2s; } .ab-1 .k4 { transition-delay: 0.3s; }
.ab-1 .k5 { transition-delay: 0.4s; } .ab-1 .k6 { transition-delay: 0.5s; } .ab-1 .k7 { transition-delay: 0.6s; }
[data-phase="2"] .k3 { border-color: var(--f); box-shadow: 0 0 0 0.2em color-mix(in srgb, var(--f) 30%, transparent); transition-delay: 0s; }
[data-phase="3"] .fl-k:not(.k7) { animation: fl-lauf 2.6s var(--ruhig) both; }
[data-phase="3"] .k2 { animation-delay: 0.3s; } [data-phase="3"] .k3 { animation-delay: 0.6s; } [data-phase="3"] .k4 { animation-delay: 0.9s; }
[data-phase="3"] .k5 { animation-delay: 1.2s; } [data-phase="3"] .k6 { animation-delay: 1.5s; }
@keyframes fl-lauf { 0%, 100% { box-shadow: 0 0.3em 0.8em -0.5em rgba(16, 27, 44, 0.35); } 12%, 70% { box-shadow: 0 0 0 0.22em rgba(27, 117, 80, 0.4); border-color: #1b7550; } }
.fl-insp { position: absolute; left: 0.6em; top: 6.2em; z-index: 5; width: 23.4em; box-shadow: 0 1.2em 2.6em -1em rgba(16, 27, 44, 0.5); }
.fl-insp dl { display: grid; grid-template-columns: 7em 1fr; gap: 0.5em 0.8em; margin: 0; padding: 0.1em 0.9em 0.9em; font-size: 0.68em; align-items: center; }
.fl-insp dt { color: var(--ap-text-3); }
.fl-insp dd { margin: 0; display: flex; gap: 0.35em; font-weight: 600; }
.fl-insp dd b { font-weight: 700; color: var(--ap-akzent); margin-left: 0.3em; }
.fl-insp .ap-chip { font-size: 0.94em; }
.fl-dialog { width: 34em; }
.fl-vorlagen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5em; padding: 0.9em 1.1em 1.1em; }
.fl-vorlagen span { position: relative; display: grid; align-content: start; gap: 0.3em; min-height: 5em; padding: 0.6em 0.7em; border: 1px solid var(--ap-linie); border-radius: 0.6em; line-height: 1.25; }
.fl-vorlagen b { font-size: 0.9em; font-weight: 650; }
.fl-vorlagen em { font-style: normal; font-size: 0.8em; color: var(--ap-text-3); }
.fl-vorlagen .an { border-color: var(--ap-akzent); background: var(--ap-zart); }

/* Veranstaltungen, Elternsprechtag, Projektwoche, Anmeldungen (klein) */
.ab-1 .xv-neu .alt, .ab-1 .xn-neu .alt { display: none; }
.ab-1 .xv-neu .neu, .ab-1 .xn-neu .neu { display: inline-flex; }
.xv-knoepfe { display: flex; gap: 0.4em; font-size: 0.78em; font-weight: 700; transition: opacity 0.3s var(--ruhig); }
.xv-knoepfe span { flex: 1; padding: 0.45em 0.2em; border: 1px solid var(--ap-linie-2); border-radius: 0.5em; background: #fff; text-align: center; color: var(--ap-text-2); }
.xv-knoepfe .xv-ja { border-color: var(--ap-akzent); background: var(--ap-akzent); color: #fff; }
.ab-1 .xv-knoepfe { opacity: 0.35; }
.xe-schritte { display: flex; gap: 0.3em; font-size: 0.68em; font-weight: 650; }
.xe-schritte i { position: relative; flex: 1; padding: 0.4em 0.1em; border-radius: 0.5em; background: var(--ap-grau-2); font-style: normal; text-align: center; white-space: nowrap; color: var(--ap-text-3); transition: background-color 0.3s var(--ruhig), color 0.3s var(--ruhig); }
.xe-schritte i.an, .ab-1 .xe-frei { background: var(--ap-gut-h); color: var(--ap-gut); }
.xe-zeile { display: grid; grid-template-columns: 2.6em 2.2em 1fr 3.6em; align-items: center; gap: 0.5em; padding: 0.4em 0.6em; border: 1px solid var(--ap-linie); border-radius: 0.5em; background: #fff; font-size: 0.84em; }
.xe-zeile em { font-style: normal; font-size: 0.9em; color: var(--ap-text-3); }
.xe-zeile b { text-align: right; font-weight: 650; font-size: 0.92em; }
.xe-tag { height: 0.9em; border-radius: 0.3em; background: repeating-linear-gradient(90deg, var(--ap-grau-2) 0 0.5em, #fff 0.5em 0.62em); overflow: hidden; }
.xe-tag u { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--ap-akzent) 0 0.5em, #fff 0.5em 0.62em); transition: width 1.2s var(--weich) 0.3s; }
.ab-1 .xe-zeile .xe-tag u { width: 58%; }
.ab-1 .xe-zeile + .xe-zeile .xe-tag u { width: 79%; }
.ab-1 .xe-zeile .alt, .ab-1 .xp-zeile .alt { display: none; }
.ab-1 .xe-zeile .neu, .ab-1 .xp-zeile .neu { display: inline; }
.xp-zeile { display: grid; grid-template-columns: 6.2em 1fr 3.8em; align-items: center; gap: 0.6em; padding: 0.42em 0.65em; border: 1px solid var(--ap-linie); border-radius: 0.5em; background: #fff; font-size: 0.84em; }
.xp-zeile b { font-weight: 650; }
.xp-zeile em { font-style: normal; text-align: right; font-size: 0.92em; color: var(--ap-text-2); }
.ab-1 .v-kopf + .xp-zeile i { width: 100% !important; }
.ab-1 .v-kopf + .xp-zeile + .xp-zeile i { width: 90% !important; }
.ab-1 .v-kopf + .xp-zeile + .xp-zeile + .xp-zeile i { width: 81% !important; }
.xp-knopf { justify-self: center; display: inline-flex; align-items: center; gap: 0.4em; padding: 0.45em 1em; border-radius: 0.55em; background: var(--ap-akzent); color: #fff; font-size: 0.78em; font-weight: 700; transition: opacity 0.3s var(--ruhig); }
.ab-1 .xp-knopf { opacity: 0.35; }
.xn-export { display: flex; align-items: center; gap: 0.6em; padding: 0.45em 0.65em; border: 1px dashed var(--ap-linie-2); border-radius: 0.5em; font-size: 0.82em; line-height: 1.3; }
.xn-export .i { font-size: 1.5em; color: var(--ap-gut); }
.xn-export b { display: block; font-weight: 650; }
.xn-export em { display: block; font-style: normal; font-size: 0.88em; color: var(--ap-text-3); }

/* ---------------------------------------------------------
   Kapitel 5: Stammdaten
   --------------------------------------------------------- */

/* Dateien */
.im-r0, .ab-4 .im-r4 { color: var(--ap-akzent); }
.im-r0::after, .ab-4 .im-r4::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ap-akzent); }
.ab-4 .im-r0 { color: inherit; }
.ab-4 .im-r0::after { display: none; }
.im-reiter i { visibility: hidden; }
.ab-3 .im-reiter i { visibility: visible; background: var(--ap-zart); color: var(--ap-akzent); }
.im-versionen { display: none; }
.ab-4 .im-import { display: none; }
.ab-4 .im-versionen { display: block; animation: ap-rein 0.45s var(--weich); }
.im .ap-kpis b { font-size: 1.7em; }
.ab-3 .im .alt, .ab-3 .im-version .alt, .ab-3 .im-naechster .alt, .ab-3 .ap-kpis .alt { display: none; }
.ab-3 .im-version .neu, .ab-3 .ap-kpis .neu { display: inline; }
.ab-3 .im-naechster b { color: var(--ap-akzent); }
.im-zwei { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0.7em; align-items: start; }
.im-ablage { padding: 0.6em; }
.im-zone { display: grid; justify-items: center; gap: 0.2em; padding: 0.8em 0.6em; border: 1.5px dashed var(--ap-linie-2); border-radius: 0.6em; background: var(--ap-grau); font-size: 0.7em; text-align: center; color: var(--ap-text-2); transition: border-color 0.3s var(--ruhig), background-color 0.3s var(--ruhig); }
.im-zone .i { font-size: 1.7em; color: var(--ap-akzent); }
.im-zone span { font-weight: 650; }
.im-zone em { font-style: normal; font-size: 0.88em; color: var(--ap-text-3); }
[data-phase="1"] .im-zone { border-color: var(--ap-akzent); background: var(--ap-zart); }
.im-dateien p { display: grid; grid-template-columns: 6.2em 1fr auto 1.2em; align-items: center; gap: 0.5em; padding: 0.42em 0.3em 0; font-size: 0.68em; }
.im-dateien b { font-weight: 700; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.94em; }
.im-dateien em { font-style: normal; color: var(--ap-text-3); }
.im-dateien .ap-chip { font-size: 0.9em; }
.im-dateien p:nth-child(2) { transition-delay: 0.1s; } .im-dateien p:nth-child(3) { transition-delay: 0.2s; } .im-dateien p:nth-child(4) { transition-delay: 0.3s; }
.im-ok { color: var(--ap-gut); stroke-width: 3; opacity: 0; transition: opacity 0.3s var(--ruhig); }
.ab-3 .im-ok { opacity: 1; }
.im-version { padding-bottom: 0.8em; }
.im-version dl { display: grid; grid-template-columns: 5.6em 1fr; gap: 0.45em 0.6em; margin: 0; padding: 0 0.9em 0.8em; font-size: 0.7em; align-items: center; }
.im-version dt { color: var(--ap-text-3); }
.im-version dd { margin: 0; min-height: 2.2em; display: flex; align-items: center; padding: 0 0.7em; border: 1px solid var(--ap-linie-2); border-radius: 0.5em; font-weight: 650; }
.im-version .ap-btn { margin-left: 1.25em; transition: background-color 0.3s var(--ruhig), border-color 0.3s var(--ruhig); }
.ab-3 .im-version .ap-btn { border-color: var(--ap-gut); background: var(--ap-gut); }
.im-protokoll { margin: 0.8em 0.9em 0; font-size: 0.62em; line-height: 1.45; color: var(--ap-text-3); }
.im-vneu { background: #fff8d6; }
.im .ap-tab > div { min-height: 3.3em; line-height: 1.3; }
.im .ap-tab > .ap-tab-kopf { min-height: 1.95em; }
.ap-handy-karte.im-hinweis { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
.ap-handy-karte.im-hinweis b { color: #fff; }
.ap-handy-karte.im-hinweis em { color: rgba(255, 255, 255, 0.9); }
.ap-handy-karte.im-hinweis span { display: inline-block; margin-top: 0.5em; padding: 0.3em 0.8em; border-radius: 0.5em; background: #fff; color: #667eea; font-size: 0.86em; font-weight: 700; }

/* Lehrer – das Muster der Stammdaten */
.sm .ap-seitenkopf { margin-bottom: 0.65em; }
.sm .ap-kpis { margin-bottom: 0.65em; }
.sm .ap-kpis b { font-size: 1.8em; }
.sm-leiste { display: flex; align-items: center; gap: 0.6em; margin-bottom: 0.65em; }
.sm-suche { flex: 0 1 17em; display: flex; align-items: center; gap: 0.55em; height: 2.5em; padding: 0 0.8em; border: 1px solid var(--ap-linie-2); border-radius: 0.65em; background: var(--ap-weiss); font-size: 0.72em; }
.sm-suche .i { color: var(--ap-text-3); }
.sm-suche span { font-weight: 600; }
.sm-suche em { font-style: normal; color: var(--ap-blass); white-space: nowrap; overflow: hidden; }
.ab-1 .sm-suche { border-color: var(--ap-akzent); box-shadow: 0 0 0 0.22em rgba(31, 99, 119, 0.12); }
.ab-1 .sm-suche em { display: none; }
.sm-ansicht { margin-left: auto; display: flex; gap: 0.2em; padding: 0.18em; border-radius: 0.6em; background: var(--ap-grau-2); font-size: 0.68em; font-weight: 650; color: var(--ap-text-3); }
.sm-ansicht i { position: relative; padding: 0.3em 0.9em; border-radius: 0.45em; font-style: normal; }
.sm-a0, .ab-3 .sm-a3 { background: var(--ap-weiss); color: var(--ap-text); box-shadow: 0 1px 2px rgba(16, 27, 44, 0.12); }
.ab-3 .sm-a0 { background: none; color: inherit; box-shadow: none; }
.sm-zwei { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 0.7em; align-items: start; }
.sm-liste > div { min-height: 2.5em; }
.ab-1 .sm-weg { display: none; }
.sm-minus { color: var(--ap-warn); font-weight: 650; }
.sm-plus { color: var(--ap-info); font-weight: 650; }
.ab-2 .sm-z { background: var(--ap-zart); box-shadow: inset 0.22em 0 0 var(--ap-akzent); }
.sm-detail { min-height: 14.4em; padding: 0.7em 0.8em; }
.sm-detail .kn-leer { padding-top: 2.4em; }
.sm-fall { display: none; }
.ab-2 .sm-fall { display: block; animation: ap-rein 0.45s var(--weich); }
.ab-2 .sm-detail .kn-leer { display: none; }
.sm-plan { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.2em; margin-top: 0.7em; }
.sm-plan i { height: 0.85em; border-radius: 0.2em; background: var(--ap-grau-2); }
.sm-plan i.an { background: #9cc4d0; }
.sm-chips { display: flex; flex-wrap: wrap; gap: 0.3em; margin-top: 0.7em; }
.sm-statistik { position: absolute; left: 1.2em; right: 1.2em; top: 13.3em; bottom: 0; z-index: 4; padding-bottom: 0.6em; border-radius: 0.75em 0.75em 0 0; }
.sm-st { display: grid; grid-template-columns: 7em 1fr 2em; align-items: center; gap: 0.7em; padding: 0.3em 0.9em; font-size: 0.72em; }
.sm-st .ap-balken { height: 0.8em; }
.sm-st b { text-align: right; font-weight: 700; }
.sm-saeulen { display: flex; align-items: flex-end; gap: 0.5em; height: 6.4em; margin: 0 0.9em; padding-bottom: 1.3em; }
.sm-saeulen i { position: relative; flex: 1; height: var(--h); border-radius: 0.3em 0.3em 0 0; background: #0f87a6; transform-origin: bottom; transform: scaleY(0); transition: transform 0.8s var(--weich) 0.2s; }
.sm-statistik.da .sm-saeulen i { transform: none; }
.sm-saeulen u { position: absolute; left: 50%; bottom: -1.9em; transform: translateX(-50%); font-size: 0.6em; font-weight: 600; text-decoration: none; color: var(--ap-text-3); }

/* Klassen, Schüler, Fächer, Räume (klein) */
.xs-zahl { font-size: 0.78em; color: var(--ap-text-3); text-align: center; }
.xs-zahl b { color: var(--ap-warn); font-weight: 700; }
.xf-zeile { display: grid; grid-template-columns: 4em 1.2em 3em 1fr; align-items: center; gap: 0.5em; padding: 0.5em 0.65em; border: 1px solid var(--ap-linie); border-radius: 0.5em; background: #fff; font-size: 0.86em; }
.xf-zeile .i { color: var(--ap-blass); }
.xf-zeile b { justify-self: start; padding: 0.1em 0.6em; border-radius: 0.4em; background: #223e6d; color: #fff; font-weight: 700; }
.xf-zeile em { font-style: normal; font-size: 0.9em; color: var(--ap-text-3); }
.v-bild.av .va-hinweis { font-size: 0.76em; font-weight: 600; text-align: center; color: var(--ap-text-3); }
.xr-raster { display: grid; grid-template-columns: 1.3em repeat(5, minmax(0, 1fr)); gap: 0.22em; text-align: center; font-size: 0.72em; }
.xr-raster > * { display: grid; place-items: center; min-height: 1.85em; border-radius: 0.3em; font-style: normal; font-weight: 700; }
.xr-raster > b { color: var(--ap-text-3); font-weight: 600; }
.xr-raster > span { background: #e3e8ee; color: var(--ap-text-3); transition: background 0.4s var(--ruhig); }
.xr-raster > .voll, .xr-leg .voll { background: #46546b; color: #fff; }
.xr-raster > .buch, .xr-leg .buch { background: var(--ap-zart); color: var(--ap-akzent); box-shadow: inset 0 0 0 0.1em #a8cdd8; }
.v-bild .xr-raster > .xr-sperre { opacity: 1; transform: none; }
.xr-raster > .xr-sperre.da, .xr-leg .xr-sperre { background: repeating-linear-gradient(135deg, #f2c7c2 0 0.3em, #fbe8e6 0.3em 0.6em); }
.xr-leg { display: flex; justify-content: center; gap: 1em; font-size: 0.68em; color: var(--ap-text-3); }
.xr-leg span { display: inline-flex; align-items: center; gap: 0.35em; }
.xr-leg i { width: 1em; height: 1em; border-radius: 0.25em; }

/* ---------------------------------------------------------
   Kapitel 6: Unterricht und Pläne
   --------------------------------------------------------- */

/* Wahlfächer */
.wl-zwei { display: grid; grid-template-columns: 9.6em minmax(0, 1fr); gap: 0.7em; align-items: start; }
.wl-leiste { padding-bottom: 0.5em; }
.wl-u { position: relative; display: grid; margin: 0 0.5em 0.35em; padding: 0.4em 0.55em; border: 1px solid var(--ap-linie); border-radius: 0.5em; background: var(--ap-weiss); font-size: 0.68em; line-height: 1.3; transition: opacity 0.3s var(--ruhig), border-color 0.3s var(--ruhig), background-color 0.3s var(--ruhig), transform 0.6s var(--weich); }
.wl-u b { font-weight: 700; }
.wl-u em { font-style: normal; font-size: 0.9em; color: var(--ap-text-3); }
.wl-u.benutzt, .ab-1 .wl-zieh { opacity: 0.45; }
.wl-zieh { border-color: var(--ap-akzent); background: var(--ap-zart); z-index: 3; }
[data-phase="0"] .wl-zieh { animation: wl-zieh 2.6s var(--ruhig) 0.9s both; }
@keyframes wl-zieh { 0% { transform: none; } 70%, 100% { transform: translate(16em, 1.2em) rotate(3deg); box-shadow: 0 1em 2em -0.8em rgba(16, 27, 44, 0.5); } }
.ab-1 .wl-zieh { border-color: var(--ap-linie); background: var(--ap-weiss); }
.wl-tipp { margin: 0.6em 0.7em 0.2em; font-size: 0.58em; line-height: 1.4; color: var(--ap-blass); }
.wl-bereich { padding: 0.7em 0.8em 0.8em; }
.wl-bereich-kopf { display: flex; align-items: center; gap: 0.6em; margin-bottom: 0.7em; }
.wl-bereich-kopf b { font-size: 0.86em; font-weight: 700; }
.wl-bereich-kopf em { margin-left: auto; font-style: normal; font-size: 0.68em; font-weight: 650; color: var(--ap-warn); }
.ab-3 .wl-bereich-kopf em { color: var(--ap-gut); }
.ab-3 .wl .alt, .ab-3 .wl-bereich .alt { display: none; }
.ab-3 .wl-bereich .neu { display: inline; }
.wl-kurse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6em; }
.wl-kurs { display: grid; align-content: start; gap: 0.15em; min-height: 14.4em; padding: 0.6em 0.7em; border: 1px solid var(--ap-linie-2); border-top: 0.24em solid var(--ap-akzent); border-radius: 0.6em; background: var(--ap-grau); }
.wl-kurs > b { font-size: 0.78em; font-weight: 700; }
.wl-kurs > em { font-style: normal; font-size: 0.62em; color: var(--ap-text-3); }
.wl-zahl { display: flex; align-items: baseline; gap: 0.4em; margin-top: 0.45em; font: 400 1.6em/1 var(--ap-titel); }
.wl-zahl small { font: 500 0.4em/1 var(--geraet); color: var(--ap-text-3); }
.wl-namen { display: grid; gap: 0.25em; margin-top: 0.6em; opacity: 0; transition: opacity 0.5s var(--ruhig) 0.3s; }
.ab-3 .wl-namen { opacity: 1; }
.wl-namen i { padding: 0.25em 0.55em; border-radius: 0.4em; background: var(--ap-weiss); font-style: normal; font-size: 0.62em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-namen i:last-child { background: none; font-weight: 500; color: var(--ap-text-3); }
.wl-namen .wl-ich { background: #fff3b8; box-shadow: 0 0 0 1px #e9cf5a; }
.wl-neu, .wl-ablage { grid-column: 3; grid-row: 1; }
.wl-neu { display: none; border-top-color: #6d4ad1; }
.wl-neu.da { display: grid; animation: ap-rein 0.5s var(--weich); }
.wl-neu.frisch { box-shadow: 0 0 0 0.2em rgba(109, 74, 209, 0.25); }
.wl-ablage { display: grid; place-items: center; align-content: center; gap: 0.5em; min-height: 14.4em; border: 1.5px dashed var(--ap-linie-2); border-radius: 0.6em; font-size: 0.64em; text-align: center; color: var(--ap-blass); }
.wl-ablage .i { font-size: 1.6em; }
.ab-1 .wl-ablage { display: none; }

/* Unterricht, Stundenpläne, Stundenfee (klein) */
.xu-modus { display: flex; align-items: center; gap: 0.3em; font-size: 0.74em; }
.xu-modus span { margin-right: auto; font-weight: 650; color: var(--ap-text-3); }
.xu-modus i { padding: 0.3em 0.7em; border-radius: 0.5em; background: var(--ap-grau-2); font-style: normal; font-weight: 650; color: var(--ap-text-3); }
.xu-modus i.an { background: var(--ap-akzent); color: #fff; }
.xt-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.25em; text-align: center; font-size: 0.78em; }
.xt-raster > b { padding: 0.15em 0; border-radius: 0.3em; background: #46546b; color: #fff; font-size: 0.86em; font-weight: 700; }
.xt-raster > span { display: grid; place-items: center; min-height: 2.3em; border: 1px solid var(--ap-linie); border-radius: 0.35em; background: #fff; font-weight: 700; line-height: 1.1; transition: background-color 0.4s var(--ruhig), color 0.4s var(--ruhig), border-color 0.4s var(--ruhig); }
.xt-raster > span em { font-style: normal; font-size: 0.74em; font-weight: 500; color: var(--ap-text-3); }
.v-bild .xt-raster > span[data-an] { opacity: 1; transform: none; }
.xt-vtr.da { border-color: #efcc92; background: var(--ap-warn-h); color: var(--ap-warn); }
.xt-entf.da { border-color: #efb6b0; background: var(--ap-fehler-h); color: var(--ap-fehler); text-decoration: line-through; }
.xt-frei { color: transparent; }
.xt-frei.da { border-color: #a8d9bf; background: var(--ap-gut-h); color: var(--ap-gut); }
.xt-schalter { display: flex; align-items: center; gap: 0.5em; font-size: 0.76em; font-weight: 600; color: var(--ap-text-2); }
.xt-schalter i { position: relative; width: 2.3em; height: 1.3em; border-radius: 1em; background: var(--ap-linie-2); transition: background-color 0.3s var(--ruhig); }
.xt-schalter u { position: absolute; left: 0.15em; top: 0.15em; width: 1em; height: 1em; border-radius: 50%; background: #fff; transition: transform 0.3s var(--weich); }
.ab-1 .xt-schalter i { background: var(--ap-akzent); }
.ab-1 .xt-schalter u { transform: translateX(1em); }
.v-bild.xfee { place-content: center; justify-items: center; gap: 0.3em; background: linear-gradient(160deg, #0f1a2b 0%, #1d2f4a 100%); color: #eaf4ff; text-align: center; }
.v-bild.xfee .i { width: 2.6em; height: 2.6em; padding: 0.65em; border-radius: 0.8em; background: rgba(70, 174, 203, 0.18); color: #46aecb; }
.v-bild.xfee b { margin-top: 0.3em; font: 400 1.5em/1.1 "Stundenfee Display", var(--geraet); letter-spacing: 0.02em; }
.v-bild.xfee em { font-style: normal; font-size: 0.78em; color: #a7b4c7; }
.ke-liste > li.ap-tuer { background: var(--surface-2); border-style: dashed; box-shadow: none; }
.ap-weiter { color: var(--accent-deeper); font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; }

/* ---------------------------------------------------------
   Kapitel 7: Konten und Einrichtung
   --------------------------------------------------------- */

/* Userverwaltung */
.uv-schritte { display: flex; gap: 0.35em; margin-bottom: 0.8em; font-size: 0.66em; font-weight: 650; counter-reset: uv; }
.uv-schritte i { flex: 1; display: flex; align-items: center; gap: 0.5em; padding: 0.45em 0.7em; border-radius: 0.55em; background: var(--ap-grau-2); font-style: normal; color: var(--ap-text-3); counter-increment: uv; transition: background-color 0.3s var(--ruhig), color 0.3s var(--ruhig); }
.uv-schritte i::before { content: counter(uv); display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--ap-weiss); font-size: 0.9em; }
.uv-s0, .ab-1 .uv-s1, .ab-2 .uv-s2, .ab-3 .uv-s3 { background: var(--ap-akzent) !important; color: #fff !important; }
.ab-1 .uv-s0, .ab-2 .uv-s1, .ab-3 .uv-s2 { background: var(--ap-gut-h) !important; color: var(--ap-gut) !important; }
.uv-schritte i.uv-s0::before, .ab-1 .uv-s1::before, .ab-2 .uv-s2::before, .ab-3 .uv-s3::before { color: var(--ap-akzent); }
.uv-seite { display: none; }
[data-phase="0"] .uv-p0, [data-phase="1"] .uv-p1, [data-phase="2"] .uv-p2, .ab-3 .uv-p3 { display: block; animation: ap-rein 0.45s var(--weich); }
html:not(.js) .uv-p0 { display: block; }
.uv-quellen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6em; }
.uv-quellen span { position: relative; display: grid; align-content: start; gap: 0.35em; min-height: 9em; padding: 0.9em; border: 1px solid var(--ap-linie); border-radius: 0.75em; background: var(--ap-weiss); line-height: 1.35; }
.uv-quellen .i { width: 2.2em; height: 2.2em; padding: 0.5em; border-radius: 0.6em; background: var(--ap-zart); color: var(--ap-akzent); }
.uv-quellen b { font-size: 0.8em; font-weight: 700; }
.uv-quellen em { font-style: normal; font-size: 0.66em; color: var(--ap-text-3); }
.uv-quellen .an { border-color: var(--ap-akzent); box-shadow: 0 0 0 0.2em rgba(31, 99, 119, 0.14); }
.uv-zwei { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0.7em; align-items: start; }
.uv-bau, .uv-bsp { padding-bottom: 0.8em; }
.uv-teile { display: flex; gap: 0.4em; padding: 0 0.9em 0.7em; }
.uv-teile i { display: grid; padding: 0.4em 0.8em; border-radius: 0.55em; background: var(--ap-akzent); color: #fff; font-style: normal; font-size: 0.72em; font-weight: 700; line-height: 1.3; }
.uv-teile small { font-size: 0.8em; font-weight: 500; opacity: 0.85; }
.uv-teile .zart { background: var(--ap-zart); color: var(--ap-akzent); }
.uv-opt { display: grid; grid-template-columns: 6.4em 1fr; gap: 0.6em; padding: 0.3em 0.9em; font-size: 0.7em; }
.uv-opt span { color: var(--ap-text-3); }
.uv-opt b { font-weight: 650; }
.uv-bsp > p:not(.ap-kt) { display: flex; justify-content: space-between; gap: 0.6em; padding: 0.38em 0.9em; font-size: 0.72em; }
.uv-bsp span { color: var(--ap-text-2); }
.uv-bsp b { padding: 0 0.5em; border-radius: 0.35em; background: var(--ap-grau-2); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; }
.uv .ap-kpis b { font-size: 1.8em; }
.uv-los { display: flex; justify-content: flex-end; margin-top: 0.8em; }
.uv-fertig, .uv-eltern { display: flex; align-items: center; gap: 0.9em; padding: 0.9em 1em; }
.uv-eltern { margin-top: 0.7em; }
.uv-fertig > .i, .uv-eltern > .i { flex: none; width: 2.4em; height: 2.4em; padding: 0.5em; border-radius: 0.6em; background: var(--ap-gut-h); color: var(--ap-gut); }
.uv-eltern > .i { background: var(--ap-info-h); color: var(--ap-info); }
.uv-fertig div, .uv-eltern div { flex: 1; min-width: 0; }
.uv-fertig b, .uv-eltern b { display: block; font-size: 0.84em; font-weight: 700; }
.uv-fertig em, .uv-eltern em { display: block; margin-top: 0.15em; font-style: normal; font-size: 0.68em; line-height: 1.45; color: var(--ap-text-3); }
.uv-kette { flex: none; display: flex; align-items: center; gap: 0.35em; font-size: 0.66em; font-weight: 650; }
.uv-kette i { padding: 0.2em 0.7em; border-radius: 1em; background: var(--ap-zart); font-style: normal; color: var(--ap-akzent); white-space: nowrap; }
.uv-kette .i { color: var(--ap-blass); }

/* Rollen & Rechte */
.ro-zwei { display: grid; grid-template-columns: 11.6em minmax(0, 1fr); gap: 0.7em; align-items: start; }
.ro-rollen { padding-bottom: 0.5em; }
.ro-rollen .ap-kt { padding-bottom: 0.35em; }
.ro-r { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; margin: 0 0.45em 0.15em; padding: 0.4em 0.55em; border-radius: 0.5em; font-size: 0.72em; transition: background-color 0.3s var(--ruhig); }
.ro-r b { font-weight: 600; }
.ro-r em { font-style: normal; font-size: 0.9em; color: var(--ap-text-3); }
.ro-lehr { background: var(--ap-zart); box-shadow: inset 0.22em 0 0 var(--ap-akzent); }
.ab-1 .ro-lehr { background: none; box-shadow: none; }
.ro-ko { display: none; }
.ro-ko.da { display: flex; background: var(--ap-zart); box-shadow: inset 0.22em 0 0 var(--ap-akzent); animation: ap-rein 0.5s var(--weich); }
.ab-2 .ro-ko .alt { display: none; }
.ab-2 .ro-ko .neu { display: inline; }
.ro-badge { display: inline-block; margin-left: 0.5em; padding: 0 0.45em; border-radius: 0.35em; background: #6d4ad1; color: #fff; font-size: 0.72em; font-weight: 700; line-height: 1.55; letter-spacing: 0.04em; vertical-align: 0.1em; }
.ro-rechte { min-height: 20.6em; padding: 0.8em 0.9em; }
.ro-seite { display: none; }
[data-phase="0"] .ro-p0, [data-phase="1"] .ro-p1, [data-phase="2"] .ro-p1, .ab-3 .ro-p3 { display: block; animation: ap-rein 0.45s var(--weich); }
[data-phase="2"] .ro-p1 { animation: none; }
html:not(.js) .ro-p0 { display: block; }
.ro-kopf b { display: block; font: 400 1.15em/1.2 var(--ap-titel); }
.ro-kopf .ro-badge { font-family: var(--geraet); font-size: 0.5em; vertical-align: 0.35em; }
.ro-kopf em { display: block; margin-top: 0.15em; font-style: normal; font-size: 0.66em; color: var(--ap-text-3); }
.ro-modul { margin: 0.75em 0 0.3em; font-size: 0.58em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ap-text-3); }
.ro-recht { display: flex; align-items: center; justify-content: space-between; gap: 0.8em; padding: 0.38em 0; border-top: 1px solid var(--ap-linie); line-height: 1.3; }
.ro-recht b { display: block; font-size: 0.72em; font-weight: 650; }
.ro-recht em { display: block; font-style: normal; font-size: 0.62em; color: var(--ap-text-3); }
.ro-drei { flex: none; display: flex; gap: 0.15em; padding: 0.15em; border-radius: 0.5em; background: var(--ap-grau-2); font-size: 0.6em; font-weight: 650; color: var(--ap-text-3); }
.ro-drei i { padding: 0.28em 0.6em; border-radius: 0.38em; font-style: normal; }
.ro-drei i.an { background: var(--ap-weiss); color: var(--ap-text); box-shadow: 0 1px 2px rgba(16, 27, 44, 0.12); }
.ro-drei i.gut { background: var(--ap-gut); color: #fff; }
.ro-konto, .ro-pruef { display: flex; align-items: center; gap: 0.7em; }
.ro-konto { margin-top: 0.7em; padding: 0.55em 0.7em; border: 1px solid #a8cdd8; border-radius: 0.6em; background: var(--ap-zart); }
.ro-konto > .i { flex: none; color: var(--ap-akzent); }
.ro-konto > span:nth-child(2), .ro-pruef > span { flex: 1; min-width: 0; line-height: 1.3; }
.ro-konto b, .ro-pruef b { display: block; font-size: 0.74em; font-weight: 650; }
.ro-konto em, .ro-pruef em { display: block; font-style: normal; font-size: 0.64em; color: var(--ap-text-3); }
.ro-pruef { padding: 0.5em 0; border-top: 1px solid var(--ap-linie); }
.ro-kopf + .ro-pruef { margin-top: 0.8em; }
.ro-pruef .i { flex: none; width: 1.5em; height: 1.5em; padding: 0.28em; border-radius: 50%; stroke-width: 3; }
.ro-pruef .ja { background: var(--ap-gut-h); color: var(--ap-gut); }
.ro-pruef .nein { background: var(--ap-grau-2); color: var(--ap-text-3); }

/* Einstellungen, Dashboard (klein) */
.xg-reiter { display: flex; gap: 0.2em; font-size: 0.61em; font-weight: 650; }
.xg-reiter i { flex: 1; padding: 0.35em 0.1em; border-radius: 0.45em; background: var(--ap-grau-2); font-style: normal; text-align: center; white-space: nowrap; color: var(--ap-text-3); }
.xg-reiter i.an { background: var(--ap-akzent); color: #fff; }
.xd-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4em; }
.xd-kpis span { display: grid; padding: 0.45em 0.6em; border: 1px solid var(--ap-linie); border-radius: 0.5em; background: #fff; font-size: 0.66em; line-height: 1.25; color: var(--ap-text-3); }
.xd-kpis b { font: 400 1.9em/1.1 var(--ap-titel); color: var(--ap-text); }
.xd-kurve { display: flex; align-items: flex-end; gap: 0.25em; height: 3.2em; padding: 0.4em 0.6em 0; border: 1px solid var(--ap-linie); border-radius: 0.5em; background: #fff; }
.xd-kurve i { flex: 1; height: var(--h); border-radius: 0.2em 0.2em 0 0; background: #0f87a6; opacity: 0.85; }
.xd-ok { display: flex; align-items: center; justify-content: center; gap: 0.45em; font-size: 0.78em; font-weight: 650; color: var(--ap-gut); }
.xd-ok .i { font-size: 1.2em; }

/* ---------------------------------------------------------
   Alle Bereiche: je Kapitel eine Karte, rechts die Gruppe
   der Leiste, unter der der Bereich im Admin-Panel steht
   --------------------------------------------------------- */
.ap-alle .ke-alle-kopf { grid-template-columns: minmax(0, 1fr); }
.ap-alle .ke-gruppe li { padding: 0; }
.ap-alle .ke-gruppe li a { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 0.6em; padding: 0.5rem 0; color: inherit; transition: color var(--ease) 140ms; }
.ap-alle .ke-gruppe li a:hover { color: var(--kap); }
.ap-alle .ke-gruppe li small { font-size: 0.74rem; font-weight: 500; color: var(--tinte-3); white-space: nowrap; }
.ap-alle .ke-gruppe li.bald a { font-weight: 400; }

/* ---------------------------------------------------------
   Schmal
   --------------------------------------------------------- */
@media (max-width: 1100px) {
  .ap-fahrplan { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ap-fahrplan::before { display: none; }
}
@media (max-width: 980px) {
  .ap-einstieg { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .ap-auftakt p.lead { max-width: 60ch; }
}
@media (max-width: 760px) {
  .ap-auftakt { padding-bottom: 3rem; }
  .ap-einstieg { margin-top: 2rem; }
  .ap-ordnung { padding-top: 3rem; }
  .ap-blatt { margin-top: 3rem; }
  .ap-fahrplan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-fahrplan a { grid-template-columns: auto 1fr; align-items: center; gap: 0.7rem; padding: 0.7rem 0.8rem; }
}
@media (max-width: 420px) {
  .ap-fahrplan { grid-template-columns: minmax(0, 1fr); }
}

/* Schmale Behälter: Szenen auf das Wesentliche */
@container (max-width: 560px) {
  .tg-zwei, .km-zwei, .km-stat .km-zwei, .kd-zwei, .im-zwei, .sm-zwei, .uv-zwei { grid-template-columns: minmax(0, 1fr); }
  .tg-rechts { position: absolute; left: 0.9em; right: 0.9em; bottom: 0; z-index: 6; min-height: 0; border-radius: 0.75em 0.75em 0 0; box-shadow: 0 -0.8em 2em -1em rgba(16, 27, 44, 0.5); transform: translateY(105%); transition: transform 0.5s var(--weich); }
  [data-phase="2"] .tg-rechts, [data-phase="3"] .tg-rechts { transform: none; }
  .tg-rechts .tg-leer, .tg-opt, .tg-gr + .tg-kand + .tg-kand + .tg-kand { display: none; }
  .kn-drei { grid-template-columns: minmax(0, 1fr); }
  .kn-detail { position: absolute; left: 0.9em; right: 0.9em; bottom: 0; z-index: 6; min-height: 0; border-radius: 0.75em 0.75em 0 0; box-shadow: 0 -0.8em 2em -1em rgba(16, 27, 44, 0.5); transform: translateY(105%); transition: transform 0.5s var(--weich); }
  [data-phase="2"] .kn-detail, [data-phase="3"] .kn-detail { transform: none; }
  .kn-dialog { left: 50%; }
  .kd-detail, .sm-detail { display: none; }
  .ab-2 .sm-detail { display: block; min-height: 0; }
  .ab-2 .sm-liste { display: none; }
  .kd-dialog { left: 50%; width: 31em; }
  .kd-raster > span { min-height: 3.6em; }
  .kd-segment span { padding-inline: 0.6em; }
  .fl-zwei, .wl-zwei, .ro-zwei { grid-template-columns: minmax(0, 1fr); }
  .fl-flaeche, .fl-kanten { width: 37.2em; }
  .fl-dialog { width: 32em; }
  .fl-vorlagen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-leiste, .ro-rollen { display: none; }
  .uv-quellen { grid-template-columns: minmax(0, 1fr); }
  .uv-quellen span { min-height: 0; grid-template-columns: auto 1fr; gap: 0.1em 0.7em; }
  .uv-quellen .i { grid-row: 1 / 3; }
  .uv-kette { display: none; }
  .sm-statistik { top: 11.4em; left: 0.9em; right: 0.9em; }
  .ap-kpis { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .im-version { margin-top: -0.2em; }
}

/* Ohne JavaScript: Standbild mit Inhalt statt leerer Flächen */
html:not(.js) .tg-zeile, html:not(.js) .fl-k, html:not(.js) .fl-kanten, html:not(.js) .fl-kante { opacity: 1; transform: none; }
html:not(.js) .tg-abw-chip { display: inline-flex; }
html:not(.js) .tg-niemand { display: none; }
html:not(.js) :where(.m-schirm.ap [data-an]):not(.ap-dialog, .ap-toast, .ap-handy, .sm-statistik, .fl-insp, .tg-quali, .wl-neu, .ro-ko) { opacity: 1; transform: none; }
