/* =========================================================
   SchulServ – Kurzeinführung, Teil „Onlineplan“
   Die Vorführungen der sieben Kapitel. Grundlage und
   Baukasten: kurzeinfuehrung.css
   ========================================================= */

/* ---------------------------------------------------------
   Einstieg: eine Startseite, drei Sichten
   --------------------------------------------------------- */
[data-zeigt="L"] .nur-S:not(.nur-L),
[data-zeigt="L"] .nur-E:not(.nur-L),
[data-zeigt="S"] .nur-L:not(.nur-S),
[data-zeigt="S"] .nur-E:not(.nur-S),
[data-zeigt="E"] .nur-L:not(.nur-E),
[data-zeigt="E"] .nur-S:not(.nur-E) { display: none !important; }

.op-start .op-profil { display: grid; justify-items: center; gap: 0.15em; }
.op-elternmarke {
  padding: 0.1em 0.7em;
  border-radius: 1em;
  background: #e8f4ff;
  color: #1a6ca8;
  font-size: 0.68em;
  font-weight: 700;
}
.op-kinder { display: inline-flex; gap: 0.4em; margin: 0.25em 0 0.1em; }
.op-kinder i {
  padding: 0.2em 0.9em;
  border: 0.1em solid #c9d2e0;
  border-radius: 1em;
  font-style: normal;
  font-size: 0.74em;
  font-weight: 600;
  color: #4b5563;
}
.op-kinder i.an { background: #223e6d; border-color: #223e6d; color: #fff; }

.ke-legende { margin-top: 1.6rem; font-size: 0.94rem; }
.ke-legende .ke-rollen { margin-inline: 4px; }

/* Sprungmarken zu den sieben Kapiteln: Pillen wie die Schlagworte der Startseite (.buzz-chip) */
.ke-kapitelleiste {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-bottom: 3.5rem;
}
.ke-kapitelleiste a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 1rem 0.42rem 0.48rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: transform var(--ease) 160ms, border-color var(--ease) 160ms, color var(--ease) 160ms;
}
.ke-kapitelleiste a i {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--kap-a) 0%, var(--kap) 100%);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  font-style: normal;
}
.ke-kapitelleiste a:hover { transform: translateY(-3px); border-color: var(--kap-r); color: var(--kap); }
@media (max-width: 760px) {
  .ke-kapitelleiste { padding-bottom: 2.4rem; }
}

/* ---------------------------------------------------------
   Kapitel 1: Der Plan
   --------------------------------------------------------- */

/* Arbeitsauftrag: bleibt an der Stunde, auch wenn die Vertretung wechselt */
.v-bild.va .v-zeile .op-marke { margin-left: 0; }
.va-wer { font-size: 0.95em; color: #4b5563; white-space: nowrap; }
.va-wer b { color: #223e6d; }
.va-wer .neu { display: none; }
.ab-2 .va-wer .neu { display: inline; background: var(--marker); padding: 0 0.25em; border-radius: 0.2em; }
.ab-2 .va-wer .alt { display: none; }
.va-hinweis { font-size: 0.74em; font-weight: 600; color: #6b7280; text-align: center; }

/* Raumbuchung */
.vr-raster,
.vs-raster { display: grid; gap: 0.22em; text-align: center; font-size: 0.74em; }
.vr-raster { grid-template-columns: 1.3em repeat(5, minmax(0, 1fr)); }
.vs-raster { grid-template-columns: 1.3em repeat(3, minmax(0, 1fr)); }
.vr-raster > *,
.vs-raster > * { display: grid; place-items: center; min-height: 1.95em; border-radius: 0.3em; font-style: normal; font-weight: 700; }
.vr-raster > b,
.vs-raster > b { color: #5d6a80; font-weight: 600; }
.vr-raster > span,
.vs-raster > span { background: #e1e6ee; color: #5d6a80; transition: background-color 0.4s var(--ruhig), color 0.4s var(--ruhig); }
.vr-raster > .voll,
.vs-raster > .voll { background: #223e6d; color: #fff; }
.v-bild .vr-ziel { opacity: 1; transform: none; }
.vr-ziel em { font-style: normal; opacity: 0; transition: opacity 0.3s var(--ruhig); }
.vr-ziel.da { background: var(--raum-h); color: var(--raum); box-shadow: inset 0 0 0 0.12em rgba(21, 87, 36, 0.4); }
.vr-ziel.da em { opacity: 1; }

/* Stundenpläne nebeneinander */
.vs-suche {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.42em 0.65em;
  border: 0.1em solid #c9d2e0;
  border-radius: 0.5em;
  background: #fff;
  font-size: 0.84em;
  font-weight: 600;
  min-height: 2.25em;
}
.vs-suche .i { color: #8a93a3; font-size: 1.1em; }
.ab-1 .vs-raster > span.frei { background: var(--raum-h); box-shadow: inset 0 0 0 0.1em rgba(21, 87, 36, 0.35); }
.ab-1 .vs-raster > b.frei { color: var(--raum); font-weight: 800; }

/* Verzeichnisse */
.vv-leiste {
  display: flex;
  justify-content: space-around;
  margin: -0.7em -0.7em 0.1em;
  padding: 0.5em 0.2em;
  background: #162544;
  color: #fff;
}
.vv-leiste span { display: grid; justify-items: center; gap: 0.15em; padding: 0.2em 0.35em; border-radius: 0.4em; font-size: 0.6em; transition: background-color 0.3s var(--ruhig); }
.vv-leiste .i { font-size: 1.9em; stroke-width: 1.6; }
.ab-1 .vv-an { background: rgba(255, 255, 255, 0.2); }
.v-bild .vv-an { opacity: 1; transform: none; }
.vv-karte { padding: 0.6em 0.7em; border-radius: 0.5em; background: #fff; box-shadow: 0 0.08em 0.25em rgba(0, 0, 0, 0.1); font-size: 0.86em; }
.vv-karte b { display: block; color: #223e6d; }
.vv-karte em { display: block; font-style: normal; font-size: 0.86em; color: #6b7280; }
.vv-knoepfe { display: flex; gap: 0.4em; margin-top: 0.55em; }
.vv-knoepfe span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.35em; padding: 0.4em 0.2em; border-radius: 0.45em; background: #223e6d; color: #fff; font-size: 0.82em; font-weight: 700; white-space: nowrap; }

/* Freunde */
.vf-knoepfe { display: flex; gap: 0.4em; font-size: 0.8em; font-weight: 700; }
.vf-knoepfe > span { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0.45em 0.2em; border-radius: 0.45em; text-align: center; }
.vf-ja { background: #223e6d; color: #fff; transition: background-color 0.3s var(--ruhig), color 0.3s var(--ruhig); }
.vf-nein { background: #e1e6ee; color: #5d6a80; transition: opacity 0.3s var(--ruhig); }
.vf-ja .neu { display: none; }
.ab-1 .vf-ja { background: #dcfce7; color: #166534; }
.ab-1 .vf-ja .alt { display: none; }
.ab-1 .vf-ja .neu { display: inline-flex; align-items: center; gap: 0.3em; }
.ab-1 .vf-nein { opacity: 0.35; }
.vf-plan { display: flex; align-items: center; gap: 0.6em; padding: 0.45em 0.65em; border-radius: 0.5em; background: #fff; box-shadow: 0 0.08em 0.25em rgba(0, 0, 0, 0.1); }
.vf-plan em { font-style: normal; font-size: 0.78em; font-weight: 600; color: #223e6d; white-space: nowrap; }
.vf-plan span { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.2em; }
.vf-plan i { display: grid; place-items: center; height: 1.7em; border-radius: 0.3em; background: #e7edf7; color: #223e6d; font-style: normal; font-size: 0.72em; font-weight: 700; }

/* ---------------------------------------------------------
   Kapitel 2: Nachrichten
   --------------------------------------------------------- */

/* Newspage */
.np-liste { display: grid; gap: 0.6em; margin: 0.7em 0.9em 0; }
.np-karte {
  padding: 0.75em 0.8em;
  border-radius: 0.6em;
  background: #fff;
  box-shadow: 0 0.12em 0.35em rgba(0, 0, 0, 0.1);
  font-size: 0.86em;
}
.np-karte header { display: flex; align-items: center; gap: 0.6em; }
.np-karte header b { display: block; color: #223e6d; font-size: 1.06em; line-height: 1.2; }
.np-karte header em { display: block; font-style: normal; font-size: 0.86em; color: #6b7280; }
.np-karte header .op-marke { margin-left: auto; align-self: flex-start; font-size: 0.8em; background: #e11d48; color: #fff; }
.np-karte p { margin-top: 0.5em; line-height: 1.4; color: #374151; }
.np-anhang {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.5em;
  padding: 0.3em 0.7em;
  border: 0.08em solid #d5dce8;
  border-radius: 0.5em;
  font-weight: 600;
  color: #223e6d;
}
.np-anhang .i { font-size: 1.2em; }

/* Der Elternbrief schiebt sich oben in die Liste */
.np-brief {
  max-height: 0;
  margin-bottom: -0.6em;
  padding-block: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.8s var(--weich), padding 0.8s var(--weich), margin 0.8s var(--weich), opacity 0.4s var(--ruhig), box-shadow 0.4s var(--ruhig);
}
.np-brief.da { max-height: 34em; margin-bottom: 0; padding-block: 0.75em; opacity: 1; }
.np-brief.frisch { box-shadow: 0 0 0 0.16em var(--marker), 0 0.12em 0.35em rgba(0, 0, 0, 0.1); }
.np-frage { margin-top: 0.65em; padding: 0.6em 0.65em; border-radius: 0.5em; background: #f3f5f8; }
.np-frage b { display: block; font-size: 0.96em; color: #1c2333; }
.np-wahl { display: flex; gap: 0.5em; margin-top: 0.45em; }
.np-option {
  flex: 1;
  padding: 0.4em;
  border: 0.1em solid #c9d2e0;
  border-radius: 0.45em;
  background: #fff;
  text-align: center;
  font-weight: 600;
  transition: background-color 0.25s var(--ruhig), color 0.25s var(--ruhig), border-color 0.25s var(--ruhig);
}
.ab-2 .np-ja { background: #223e6d; border-color: #223e6d; color: #fff; }
.np-folge {
  max-height: 0;
  margin-top: 0;
  padding-block: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--weich), padding 0.6s var(--weich), margin 0.6s var(--weich), opacity 0.4s var(--ruhig);
}
.np-folge.da { max-height: 7em; margin-top: 0.5em; padding-block: 0.6em; opacity: 1; }
.np-eingabe {
  display: block;
  min-height: 2.15em;
  margin-top: 0.45em;
  padding: 0.4em 0.6em;
  border: 0.1em solid #c9d2e0;
  border-radius: 0.45em;
  background: #fff;
}
.np-senden { margin-top: 0.65em; transition: background-color 0.3s var(--ruhig), color 0.3s var(--ruhig); }
.np-senden .neu { display: none; }
.ab-3 .np-senden { background: #dcfce7; color: #166534; }
.ab-3 .np-senden .alt { display: none; }
.ab-3 .np-senden .neu { display: inline-flex; align-items: center; gap: 0.35em; }
.np-wer-lehrer { display: none; }
.ab-4 .np-wer-lehrer { display: inline; }
.ab-4 .np-wer-eltern { display: none; }

/* Auswertung des Elternbriefs */
.np-auswertung { padding: 1.3em 1.2em 1.6em; }
.np-aus-titel { display: block; color: #223e6d; font-size: 1.1em; }
.np-aus-unter { display: block; margin-bottom: 0.9em; font-style: normal; font-size: 0.82em; color: #6b7280; }
.np-balken {
  display: grid;
  grid-template-columns: 6.4em 1fr auto;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.55em;
  font-size: 0.86em;
}
.np-balken i { position: relative; height: 0.75em; border-radius: 1em; background: #e6eaf1; overflow: hidden; }
.np-balken i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w);
  border-radius: 1em;
  background: #223e6d;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s var(--weich) 0.2s;
}
.da .np-balken i::after,
.np-balken.da i::after { transform: none; }
.np-balken b { color: #223e6d; font-variant-numeric: tabular-nums; white-space: nowrap; }
.np-ergebnis { margin-top: 1em; padding: 0.75em 0.8em; border-radius: 0.6em; background: #f3f5f8; }
.np-ergebnis > b { font-size: 0.9em; }
.np-balken.klein { grid-template-columns: 2.6em 1fr 1.6em; }
.np-balken.grau i::after { background: #9aa3b2; }
.np-export { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4em; margin-top: 1em; font-size: 0.8em; color: #4b5563; }
.np-export span { width: 100%; }
.np-export i { padding: 0.3em 0.8em; border: 0.1em solid #c9d2e0; border-radius: 0.45em; font-style: normal; font-weight: 700; color: #223e6d; }

/* Messenger: Liste */
.ch-liste {
  margin: 0.7em 0.9em 0;
  border-radius: 0.6em;
  background: #fff;
  box-shadow: 0 0.12em 0.35em rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.ch-zeile {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.65em 0.75em;
  border-bottom: 1px solid #eef0f3;
  transition: background-color 0.4s var(--ruhig);
}
.ch-mitte { flex: 1; min-width: 0; }
.ch-mitte b { display: block; font-size: 0.92em; color: #1c2333; }
.ch-mitte em { display: block; font-style: normal; font-size: 0.8em; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-rechts { display: grid; justify-items: end; gap: 0.2em; }
.ch-rechts small { font-size: 0.7em; color: #8a93a3; }
.ch-rechts i {
  display: grid;
  place-items: center;
  width: 1.5em; height: 1.5em;
  border-radius: 50%;
  background: #e11d48;
  color: #fff;
  font-style: normal;
  font-size: 0.72em;
  font-weight: 700;
  transform: scale(0);
  transition: transform 0.4s var(--weich);
}
.ch-rechts i.da { transform: scale(1); }
.ch-neu .neu { display: none; }
.ab-1 .ch-neu .neu { display: inline; }
.ab-1 .ch-neu .alt { display: none; }
.ab-1 .ch-neu { background: #fff8d6; }
.ab-1 .ch-neu .ch-mitte em { color: #1c2333; font-weight: 600; }
.v-bildchen.eltern { background: #fde7c7; color: #92400e; }
.v-bildchen.gruppe { background: #223e6d; color: #fff; }

/* Messenger: Chat */
.ch-chat { display: flex; flex-direction: column; background: #eef1f6; }
.ch-kopf { display: flex; align-items: center; gap: 0.6em; padding: 0.7em 0.8em; background: #223e6d; color: #fff; }
.ch-kopf > .i { font-size: 1.3em; }
.ch-kopf b { display: block; font-size: 0.95em; }
.ch-kopf em { display: block; font-style: normal; font-size: 0.76em; opacity: 0.85; }
.ch-kopf .neu { display: none; }
[data-phase="4"] .ch-kopf .neu { display: inline; }
[data-phase="4"] .ch-kopf .alt { display: none; }
.ch-verlauf { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.55em; padding: 0.9em 0.8em; }
.ch-blase {
  max-width: 84%;
  padding: 0.55em 0.75em;
  border-radius: 1em;
  font-size: 0.88em;
  line-height: 1.38;
  box-shadow: 0 0.06em 0.2em rgba(0, 0, 0, 0.1);
}
.ch-blase small { display: block; margin-top: 0.2em; font-size: 0.74em; text-align: right; opacity: 0.75; }
.ch-blase.ein { align-self: flex-start; background: #fff; border-bottom-left-radius: 0.3em; }
.ch-blase.aus { align-self: flex-end; background: #223e6d; color: #fff; border-bottom-right-radius: 0.3em; }
.ch-blase[data-an] { display: none; }
.ch-blase[data-an].da { display: block; animation: ch-ein 0.45s var(--weich); }
@keyframes ch-ein {
  from { opacity: 0; transform: translateY(0.7em) scale(0.95); }
  to { opacity: 1; transform: none; }
}
.ch-haken { display: inline; width: 1.3em; height: 1.3em; vertical-align: -0.28em; color: rgba(255, 255, 255, 0.5); transition: color 0.3s var(--ruhig); }
.ab-4 .ch-haken { color: #7dd3fc; }
.ch-eingabe { display: flex; align-items: center; gap: 0.5em; padding: 0.6em 0.7em 0.9em; background: #fff; }
.ch-feld { flex: 1; min-height: 2.3em; padding: 0.5em 0.85em; border-radius: 1.2em; background: #eef1f6; font-size: 0.86em; line-height: 1.3; }
.ch-platz { display: none; color: #9aa3b2; }
.ab-3 .ch-text { display: none; }
.ab-3 .ch-platz { display: inline; }
.ch-senden { flex: none; display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%; background: #223e6d; color: #fff; }

/* Mail-Client */
.v-bild.vm { grid-template-columns: 6.8em minmax(0, 1fr); gap: 0.5em; align-content: stretch; }
.vm-ordner { display: grid; align-content: start; gap: 0.15em; font-size: 0.74em; }
.vm-ordner b,
.vm-ordner > span { padding: 0.4em 0.55em; border-radius: 0.4em; color: #4b5563; }
.vm-ordner b { display: flex; justify-content: space-between; background: #223e6d; color: #fff; }
.vm-ordner i { font-style: normal; }
.vm-ordner .neu { display: none; }
.ab-1 .vm-ordner .neu { display: inline; }
.ab-1 .vm-ordner .alt { display: none; }
.vm-liste { display: grid; align-content: start; gap: 0.3em; min-width: 0; }
.vm-post {
  padding: 0.4em 0.6em;
  border-left: 0.25em solid transparent;
  border-radius: 0.45em;
  background: #fff;
  box-shadow: 0 0.08em 0.25em rgba(0, 0, 0, 0.1);
  font-size: 0.78em;
  min-width: 0;
}
.vm-post b { display: block; color: #1c2333; }
.vm-post span { display: block; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-post.ungelesen,
.vm-post.neu-post { border-left-color: #0369a1; }
.v-bild .neu-post { max-height: 0; margin-bottom: -0.3em; padding-block: 0; overflow: hidden; transition: max-height 0.6s var(--weich), padding 0.6s var(--weich), margin 0.6s var(--weich), opacity 0.35s var(--ruhig); }
.v-bild .neu-post.da { max-height: 4em; margin-bottom: 0; padding-block: 0.4em; }

/* Aushänge */
.vh-kopf { text-align: center; padding: 0.55em; font-size: 0.86em; }
.vh-kopf small { display: block; font-weight: 400; font-size: 0.82em; opacity: 0.9; }
.vh-band {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.5em 0.7em;
  border: 0.08em solid #fcd34d;
  border-radius: 0.5em;
  background: #fef3c7;
  color: #78350f;
  font-size: 0.8em;
  line-height: 1.3;
}
.vh-band b { display: block; }
.vh-band .i { flex: none; font-size: 1.7em; }
.v-bild .vh-band { max-height: 0; margin-bottom: -0.45em; padding-block: 0; border-width: 0; overflow: hidden; transition: max-height 0.6s var(--weich), padding 0.6s var(--weich), margin 0.6s var(--weich), opacity 0.35s var(--ruhig); }
.v-bild .vh-band.da { max-height: 5em; margin-bottom: 0; padding-block: 0.5em; border-width: 0.08em; }
.vh-profil { padding: 0.5em; border-radius: 0.5em; background: #fff; box-shadow: 0 0.08em 0.25em rgba(0, 0, 0, 0.1); text-align: center; color: #223e6d; font-weight: 700; font-size: 0.82em; }
.vh-kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4em; }
.vh-kacheln i { height: 2.1em; border-radius: 0.5em; background: #223e6d; }
.vf-plan span { grid-template-columns: repeat(6, 1fr); }
.ch-tag { align-self: center; padding: 0.15em 0.9em; border-radius: 1em; background: #dfe5ee; color: #5d6a80; font-size: 0.7em; font-weight: 600; }
.ch-haken { width: 1.5em; height: 1.5em; stroke-width: 2.6; }
.ch-haken.gelesen { color: #7dd3fc; }

/* ---------------------------------------------------------
   Kapitel 3: Anwesenheit
   --------------------------------------------------------- */
.ke-zwei { gap: clamp(12px, 2.4vw, 30px); }
.ke-randnotiz { margin-top: 1.1rem; font-size: 0.9rem; color: var(--tinte-3); }

/* Formular Krankmelden */
.fo-karte {
  display: grid;
  gap: 0.55em;
  margin: 0.7em 0.9em 0;
  padding: 0.8em;
  border-radius: 0.6em;
  background: #fff;
  box-shadow: 0 0.12em 0.35em rgba(0, 0, 0, 0.1);
}
.fo-titel { color: #223e6d; font-size: 0.98em; }
.fo-person { display: flex; align-items: center; gap: 0.6em; font-size: 0.9em; }
.fo-person b { display: block; }
.fo-person em { display: block; font-style: normal; font-size: 0.86em; color: #6b7280; }
.fo-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em; }
.fo-feld {
  position: relative;
  display: block;
  padding: 1.3em 0.7em 0.4em;
  border: 0.1em solid #c9d2e0;
  border-radius: 0.5em;
  background: #fff;
  font-size: 0.88em;
  font-weight: 600;
}
.fo-feld em { position: absolute; left: 0.7em; top: 0.3em; font-style: normal; font-size: 0.74em; font-weight: 500; color: #6b7280; }
.fo-feld .i { position: absolute; right: 0.6em; top: 50%; margin-top: -0.5em; color: #8a93a3; }
.fo-haken { display: flex; align-items: center; gap: 0.5em; font-size: 0.88em; font-weight: 600; }
.fo-haken i { display: grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 0.3em; background: #223e6d; color: #fff; }
.fo-haken .i { font-size: 0.95em; stroke-width: 3; }
.fo-senden { transition: background-color 0.3s var(--ruhig), color 0.3s var(--ruhig); }
.fo-senden .neu { display: none; }
.ab-1 .fo-senden { background: #dcfce7; color: #166534; }
.ab-1 .fo-senden .alt { display: none; }
.ab-1 .fo-senden .neu { display: inline-flex; align-items: center; gap: 0.35em; }
.fo-erfolg {
  max-height: 0;
  margin-top: -0.55em;
  padding-block: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--weich), padding 0.6s var(--weich), margin 0.6s var(--weich), opacity 0.35s var(--ruhig);
}
.fo-erfolg.da { max-height: 4em; margin-top: 0; padding-block: 0.55em; opacity: 1; }

/* Fehlstunden: Tagesansicht */
.fs-stunde { margin: 0.7em 0.9em 0; border-radius: 0.6em; background: #fff; box-shadow: 0 0.12em 0.35em rgba(0, 0, 0, 0.1); overflow: hidden; }
.fs-kopf { display: flex; align-items: center; gap: 0.6em; padding: 0.6em 0.7em; background: #f3f5f8; }
.fs-kopf b { display: block; color: #223e6d; font-size: 0.92em; }
.fs-kopf em { display: block; font-style: normal; font-size: 0.76em; color: #6b7280; }
.fs-kopf .vp-std { width: 1.9em; height: 1.9em; font-size: 0.9em; }
.fs-zeile { display: flex; align-items: center; gap: 0.55em; padding: 0.55em 0.7em; border-top: 1px solid #eef0f3; font-size: 0.9em; transition: background-color 0.5s var(--ruhig); }
.fs-name { flex: 1; min-width: 0; }
.fs-name b { display: block; }
.fs-name em { display: block; font-style: normal; font-size: 0.82em; color: #6b7280; }
.fs-knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 0.4em 0.65em;
  border-radius: 0.5em;
  background: #223e6d;
  color: #fff;
  font-size: 0.78em;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.3s var(--ruhig), color 0.3s var(--ruhig);
}
.fs-knopf .i { stroke-width: 3; }
.fs-knopf.fertig,
.ab-3 .fs-neu .fs-knopf { background: #dcfce7; color: #166534; }
.fs-knopf .neu { display: none; }
.ab-3 .fs-neu .fs-knopf .alt { display: none; }
.ab-3 .fs-neu .fs-knopf .neu { display: inline-flex; align-items: center; gap: 0.25em; }
.fs-neu {
  max-height: 0;
  padding-block: 0;
  border-top-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.7s var(--weich), padding 0.7s var(--weich), opacity 0.4s var(--ruhig), background-color 0.5s var(--ruhig);
}
.fs-neu.da { max-height: 5em; padding-block: 0.55em; border-top-width: 1px; opacity: 1; overflow: visible; }
.fs-neu.frisch { background: #fff8d6; }
.fs-tag { padding: 1.3em 1.2em 1.6em; }
.fs-raster { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.3em; }
.fs-raster span { display: grid; justify-items: center; gap: 0.1em; padding: 0.45em 0; border-radius: 0.45em; background: #223e6d; color: #fff; font-weight: 700; font-size: 0.9em; }
.fs-raster span b { font-size: 0.72em; font-weight: 500; opacity: 0.8; }
.fs-raster span.aus { background: var(--entfall-h); color: var(--entfall); text-decoration: line-through; }
.fs-summe { margin-top: 0.7em; font-size: 0.95em; color: #374151; }
.fs-summe b { margin-right: 0.2em; font: 700 2em/1 var(--titel); color: #223e6d; }

/* Schmal: von zwei Geräten nur das zeigen, um das es gerade geht */
@media (max-width: 620px) {
  .ke-zwei > .m { max-width: 300px; }
  .ke-zwei > .m:last-child { display: none; }
  .ab-2 .ke-zwei[data-wechsel="2"] > .m:first-child,
  .ab-1 .ke-zwei[data-wechsel="1"] > .m:first-child { display: none; }
  .ab-2 .ke-zwei[data-wechsel="2"] > .m:last-child,
  .ab-1 .ke-zwei[data-wechsel="1"] > .m:last-child { display: block; }
}

/* Beurlaubung, Klausur */
.vb-antrag { display: grid; gap: 0.15em; padding: 0.6em 0.7em; border-radius: 0.5em; background: #fff; box-shadow: 0 0.08em 0.25em rgba(0, 0, 0, 0.1); font-size: 0.86em; }
.vb-antrag b { color: #223e6d; }
.vb-antrag em { font-style: normal; font-size: 0.9em; color: #6b7280; }
.vb-antrag .vf-knoepfe { margin-top: 0.45em; font-size: 0.92em; }
.v-zeile .op-marke { margin-left: auto; }
.vk-marke { transition: background-color 0.3s var(--ruhig), color 0.3s var(--ruhig); }
.vk-marke .neu { display: none; }
.ab-1 .vk-marke { background: var(--sonder-h); color: var(--sonder); }
.ab-1 .vk-marke .alt { display: none; }
.ab-1 .vk-marke .neu { display: inline; }
.vk-band { padding: 0.5em 0.7em; border-left: 0.3em solid var(--sonder); border-radius: 0.5em; background: var(--sonder-h); color: var(--sonder); font-size: 0.82em; }
.vk-band b,
.vk-band span { display: block; }

/* ---------------------------------------------------------
   Kapitel 4: Unterricht
   --------------------------------------------------------- */

/* Klassenbuch */
.kb-tage { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.3em; margin: 0.6em 0.9em 0; font-size: 0.78em; font-weight: 700; text-align: center; }
.kb-tage span { padding: 0.4em 0; border-radius: 0.5em; background: #fff; color: #5d6a80; box-shadow: 0 0.08em 0.2em rgba(0, 0, 0, 0.08); }
.kb-tage span.an { background: #223e6d; color: #fff; }
.kb-karte {
  display: grid;
  grid-template-columns: 3.7em minmax(0, 1fr);
  margin: 0.6em 0.9em 0;
  border-radius: 0.6em;
  background: #fff;
  box-shadow: 0 0.12em 0.35em rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.kb-links { display: grid; align-content: center; justify-items: center; gap: 0.05em; padding: 0.5em 0.2em; background: #f3f5f8; font-size: 0.72em; color: #5d6a80; text-align: center; }
.kb-links b { font-size: 1.75em; line-height: 1.1; color: #223e6d; }
.kb-links .op-marke { margin-top: 0.25em; padding: 0.1em 0.5em; font-size: 0.86em; }
.kb-rechts { position: relative; padding: 0.5em 0.7em 0.9em; font-size: 0.84em; min-width: 0; }
.kb-rechts em { display: block; margin-top: 0.15em; font-style: normal; font-size: 0.76em; font-weight: 700; color: #8a93a3; }
.kb-rechts p { min-height: 1.3em; line-height: 1.3; }
.kb-leer,
.kb-feld span:empty::before { color: #a8b0bd; }
.kb-feld span:empty::before { content: attr(data-leer); }
.kb-balken { position: absolute; left: 0.7em; right: 0.7em; bottom: 0.35em; height: 0.28em; border-radius: 1em; background: #e1e6ee; overflow: hidden; }
.kb-balken.voll { background: #223e6d; }
.kb-balken.laeuft::after { content: ""; position: absolute; inset: 0; width: 58%; border-radius: 1em; background: #f5b800; animation: kb-lauf 16s linear infinite; }
@keyframes kb-lauf {
  from { width: 40%; }
  to { width: 74%; }
}
.kb-jetzt { box-shadow: 0 0 0 0.12em #f5b800, 0 0.12em 0.35em rgba(0, 0, 0, 0.1); }
.ab-1 .kb-jetzt .kb-feld { margin: 0.1em -0.3em; padding: 0.2em 0.3em; border-radius: 0.3em; background: #f3f6fb; box-shadow: inset 0 0 0 0.08em #c9d2e0; }
.kb-fuss {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
  padding: 1.6em 0.9em 1em;
  background: linear-gradient(rgba(245, 245, 245, 0), #f5f5f5 45%);
}
.kb-modus { transition: background-color 0.3s var(--ruhig), color 0.3s var(--ruhig); }
.ab-1 .kb-modus { background: #223e6d; color: #fff; }
.ab-3 .kb-modus { background: #e6eaf1; color: #223e6d; }
.kb-speichern { transition: background-color 0.3s var(--ruhig), color 0.3s var(--ruhig); }
.kb-speichern .neu { display: none; }
.ab-3 .kb-speichern { background: #dcfce7; color: #166534; }
.ab-3 .kb-speichern .alt { display: none; }
.ab-3 .kb-speichern .neu { display: inline-flex; align-items: center; gap: 0.35em; }
.kb-wer-s { display: none; }
.ab-4 .kb-wer-s { display: inline; }
.ab-4 .kb-wer-l { display: none; }
.kb-schueler mark { padding: 0 0.1em; background: linear-gradient(transparent 50%, var(--marker) 50%); color: inherit; }
.kb-frisch { box-shadow: 0 0 0 0.14em var(--marker), 0 0.12em 0.35em rgba(0, 0, 0, 0.1); }

/* Klassenarbeiten: Planer (Rechneransicht) */
.m-schirm.kp { padding: 0.9em 1em; background: #f5f6f9; }
.kp-leiste { display: flex; justify-content: space-between; align-items: center; gap: 1em; font-size: 0.82em; }
.kp-reiter { display: inline-flex; gap: 0.2em; padding: 0.2em; border-radius: 0.6em; background: #e6eaf1; }
.kp-reiter i { padding: 0.3em 0.9em; border-radius: 0.45em; font-style: normal; font-weight: 600; color: #5d6a80; }
.kp-reiter i.an { background: #223e6d; color: #fff; }
.kp-fuer { color: #5d6a80; white-space: nowrap; }
.kp-fuer b { display: inline-flex; align-items: center; gap: 0.3em; margin-left: 0.4em; padding: 0.3em 0.7em; border: 0.1em solid #c9d2e0; border-radius: 0.5em; background: #fff; color: #223e6d; }
.kp-fuer .neu { display: none; }
.ab-1 .kp-fuer .neu { display: inline; }
.ab-1 .kp-fuer .alt { display: none; }
.kp-raster { display: grid; grid-template-columns: 2.8em repeat(10, minmax(0, 1fr)); gap: 0.3em; margin-top: 0.9em; font-size: 0.8em; }
.kp-raster > b { display: grid; place-items: center; height: 2em; border-radius: 0.35em; background: #223e6d; color: #fff; font-weight: 600; font-size: 0.86em; white-space: nowrap; }
.kp-raster > b.kp-klasse { height: auto; font-size: 1em; font-weight: 700; }
.kp-raster > span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 3.9em;
  border-radius: 0.4em;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e1e6ee;
  transition: background-color 0.5s var(--ruhig), box-shadow 0.5s var(--ruhig);
}
.kp-a { display: grid; place-items: center; min-width: 2.1em; padding: 0.25em 0.4em; border-radius: 0.4em; font-style: normal; font-weight: 700; font-size: 0.92em; }
.kp-a.eigen { background: #223e6d; color: #fff; }
.kp-a.fremd { background: #fde68a; color: #78350f; }
.kp-raster > .kp-sperre,
.kp-legende i.kp-sperre { background: repeating-linear-gradient(135deg, #dfe4ec 0 0.3em, #f5f6f9 0.3em 0.6em); }
.ab-1 .kp-raster > [data-ampel="gut"] { background: #dcfce7; box-shadow: inset 0 0 0 1px #86efac; }
.ab-1 .kp-raster > [data-ampel="hinweis"] { background: #fef3c7; box-shadow: inset 0 0 0 1px #fcd34d; }
.ab-1 .kp-raster > [data-ampel="nein"] { background: #fde8e8; box-shadow: inset 0 0 0 1px #f5b5b5; }
.kp-stern { position: absolute; top: 0.25em; right: 0.25em; font-size: 0.95em; color: #15803d; fill: #15803d; opacity: 0; transition: opacity 0.4s var(--ruhig); }
.ab-1 .kp-stern { opacity: 1; }
.kp-ziel .kp-a { transform: scale(0); transition: transform 0.5s var(--weich), box-shadow 0.4s var(--ruhig); }
.kp-ziel .kp-a.da { transform: none; }
.kp-ziel .kp-a.frisch { box-shadow: 0 0 0 0.22em var(--marker); }
.kp-legende { display: flex; flex-wrap: wrap; gap: 0.4em 1.4em; margin-top: 0.9em; font-size: 0.74em; color: #5d6a80; }
.kp-legende span { display: inline-flex; align-items: center; gap: 0.4em; }
.kp-legende i { width: 1.2em; height: 1.2em; min-width: 0; padding: 0; border-radius: 0.3em; }
.kp-leg-ampel i + i,
.kp-leg-ampel i:not(:first-child) { margin-left: 0.7em; }
.kp-leg-ampel i.gut { background: #86efac; }
.kp-leg-ampel i.hinweis { background: #fcd34d; }
.kp-leg-ampel i.nein { background: #f5b5b5; }
.kp-dialog {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 10;
  width: 25em;
  padding: 1.1em 1.2em 1.2em;
  border-radius: 0.8em;
  background: #fff;
  box-shadow: 0 1.2em 3em -0.8em rgba(17, 31, 55, 0.55), 0 0 0 1px rgba(17, 31, 55, 0.08);
  font-size: 0.86em;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -44%) scale(0.95);
  transition: opacity 0.3s var(--ruhig), transform 0.45s var(--weich), visibility 0s linear 0.3s;
}
.kp-dialog.da { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition: opacity 0.3s var(--ruhig), transform 0.45s var(--weich); }
.kp-dialog > b { display: block; font-size: 1.15em; color: #223e6d; }
.kp-dialog > em { display: block; font-style: normal; font-size: 0.9em; color: #6b7280; }
.kp-dialog ul { display: grid; gap: 0.45em; margin: 0.8em 0 1em; }
.kp-dialog li { display: flex; align-items: center; gap: 0.5em; }
.kp-dialog li .i { flex: none; padding: 0.15em; border-radius: 50%; background: #dcfce7; color: #166534; font-size: 1.3em; stroke-width: 3; }
.kp-meldung {
  position: absolute;
  left: 50%; bottom: 1em;
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 1em;
  border-radius: 0.6em;
  background: #dcfce7;
  color: #166534;
  font-size: 0.84em;
  font-weight: 700;
  box-shadow: 0 0.5em 1.2em -0.5em rgba(17, 31, 55, 0.4);
  opacity: 0;
  transform: translate(-50%, 0.8em);
  transition: opacity 0.3s var(--ruhig), transform 0.45s var(--weich);
}
.kp-meldung.da { opacity: 1; transform: translate(-50%, 0); }
.kp-schueler {
  position: absolute;
  right: 0.9em; top: 0.9em; bottom: 0.9em;
  z-index: 12;
  width: 17.5em;
  padding: 1em;
  border-radius: 1.2em;
  background: #fff;
  box-shadow: 0 1.2em 3em -0.8em rgba(17, 31, 55, 0.6), 0 0 0 0.35em #0d1830;
  font-size: 0.84em;
  transform: translateX(125%);
  transition: transform 0.6s var(--weich);
}
.kp-schueler.da { transform: none; }
.kp-schueler > em { display: block; font-style: normal; font-size: 0.82em; color: #6b7280; }
.kp-schueler > b { display: block; margin-bottom: 0.6em; font-size: 1.15em; color: #223e6d; }
.kp-arbeit { display: flex; align-items: center; gap: 0.7em; margin-top: 0.45em; padding: 0.55em; border-radius: 0.6em; background: #f3f5f8; }
.kp-arbeit > span { display: grid; justify-items: center; width: 2.9em; padding: 0.3em 0; border-radius: 0.5em; background: #223e6d; color: #fff; font-size: 0.72em; line-height: 1.1; }
.kp-arbeit > span b { font-size: 1.7em; }
.kp-arbeit div b { display: block; color: #1c2333; }
.kp-arbeit div em { font-style: normal; font-size: 0.86em; color: #6b7280; }
.kp-arbeit.neu { box-shadow: 0 0 0 0.16em var(--marker); }

/* Planer in schmalen Behältern: nur die erste Woche, dafür größer */
@container (max-width: 540px) {
  .m.fenster .m-geraet { font-size: calc(100cqw / 36); }
  .m.fenster .m-schirm { height: 30em; }
  .kp .w2,
  .kp-leg-ampel { display: none; }
  .kp-raster { grid-template-columns: 2.8em repeat(5, minmax(0, 1fr)); }
  .kp-dialog { width: 23em; }
  .kp-schueler { width: 16em; }
}

/* Nachschriften, Noten, Listen, Lernplattform */
.vg-tab { display: grid; grid-template-columns: 3.4em repeat(4, minmax(0, 1fr)); gap: 0.22em; font-size: 0.8em; text-align: center; }
.vg-tab > * { display: grid; place-items: center; min-height: 2.05em; border-radius: 0.3em; background: #fff; }
.vg-tab > b { background: none; color: #5d6a80; font-weight: 600; font-size: 0.86em; line-height: 1.1; }
.vg-tab > b small { display: block; font-weight: 400; font-size: 0.8em; }
.vg-tab > .vg-name { justify-items: start; padding-left: 0.4em; background: none; font-weight: 600; }
.vg-tab > span.vg-schnitt { background: #223e6d; color: #fff; font-weight: 700; }
.vg-tab > b.vg-schnitt { color: #223e6d; font-weight: 700; }
.v-bild .vg-schnitt { transform: none; }

.v-bild.vo { gap: 0.5em; align-content: center; }
.vo-zeile { display: grid; grid-template-columns: 5.8em 1fr 2.2em; align-items: center; gap: 0.5em; font-size: 0.84em; }
.vo-zeile b { color: #1c2333; }
.vo-zeile i { position: relative; height: 0.6em; border-radius: 1em; background: #e1e6ee; overflow: hidden; }
.vo-zeile i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 1em; background: #223e6d; transition: width 0.7s var(--weich); }
.vo-zeile span { text-align: right; font-weight: 700; color: #223e6d; }
.vo-zeile em { font-style: normal; }
.vo .neu { display: none; }
.ab-2 .vo .neu { display: inline; background: var(--marker); padding: 0 0.15em; border-radius: 0.2em; }
.ab-2 .vo .alt { display: none; }
.ab-2 .vo-zeile:first-child i::after { width: 88%; }
.vo-gesamt { font-size: 0.82em; color: #5d6a80; text-align: right; }
.vo-gesamt b { margin-left: 0.3em; font-size: 1.2em; color: #223e6d; }

.vl-tab { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 0.22em; font-size: 0.8em; text-align: center; }
.vl-tab > * { display: grid; place-items: center; min-height: 1.95em; border-radius: 0.3em; background: #fff; }
.vl-tab > b { background: none; color: #5d6a80; font-weight: 600; font-size: 0.86em; white-space: nowrap; }
.vl-tab > .vl-name { justify-items: start; padding-left: 0.55em; font-weight: 600; white-space: nowrap; }
.vl-tab .i { color: #15803d; stroke-width: 3; font-size: 1.2em; }
.v-bild .vl-neu { transform: none; }

.vp-abgaben { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.6em; padding: 0 0.2em; font-size: 0.82em; }
.vp-abgaben i { height: 0.6em; border-radius: 1em; background: #e1e6ee; overflow: hidden; }
.vp-abgaben u { display: block; height: 100%; width: 46%; border-radius: 1em; background: #223e6d; transition: width 0.9s var(--weich); }
.ab-1 .vp-abgaben u { width: 73%; }
.vp-abgaben b { color: #223e6d; }

/* ---------------------------------------------------------
   Kapitel 5: Klasse und Schuljahr
   --------------------------------------------------------- */

/* Klassengeld */
.kg-projekt em,
.es-tag em { margin-top: -0.4em; font-style: normal; font-size: 0.84em; color: #6b7280; }
.kg-stand { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.6em; font-size: 0.84em; }
.kg-stand i { height: 0.6em; border-radius: 1em; background: #e1e6ee; overflow: hidden; }
.kg-stand u { display: block; width: 0; height: 100%; border-radius: 1em; background: #15803d; transition: width 1s var(--weich); }
.ab-3 .kg-stand u { width: 81%; }
.kg-stand b { color: #223e6d; white-space: nowrap; }
.kg-senden,
.kg-erinnern { transition: background-color 0.3s var(--ruhig), color 0.3s var(--ruhig); }
.kg-senden .neu,
.kg-erinnern .neu,
.kg-st .neu,
.kg-offen .neu { display: none; }
.ab-1 .kg-senden,
.ab-4 .kg-erinnern { background: #dcfce7; color: #166534; }
.ab-1 .kg-senden .alt,
.ab-4 .kg-erinnern .alt { display: none; }
.ab-1 .kg-senden .neu,
.ab-4 .kg-erinnern .neu { display: inline-flex; align-items: center; gap: 0.35em; }
.kg-liste { margin: 0.7em 0.9em 0; border-radius: 0.6em; background: #fff; box-shadow: 0 0.12em 0.35em rgba(0, 0, 0, 0.1); overflow: hidden; font-size: 0.88em; }
.kg-liste > div { display: flex; justify-content: space-between; align-items: center; padding: 0.5em 0.75em; border-bottom: 1px solid #eef0f3; transition: background-color 0.5s var(--ruhig); }
.kg-liste b { font-weight: 600; }
.kg-st,
.kg-offen { transition: background-color 0.4s var(--ruhig), color 0.4s var(--ruhig); }
.ab-3 .kg-st { background: #dcfce7; color: #166534; }
.ab-3 .kg-st .alt { display: none; }
.ab-3 .kg-st .neu { display: inline; }
.ab-4 .kg-offen { background: var(--vertretung-h); color: var(--vertretung); }
.ab-4 .kg-offen .alt { display: none; }
.ab-4 .kg-offen .neu { display: inline; }
[data-phase="3"] .kg-jonas { background: #fff8d6; }
.kg-fuss { margin: 0.7em 0.9em 0; }
.kg-betrag { display: flex; align-items: center; justify-content: space-between; }
.kg-betrag > b { font: 700 1.9em/1 var(--titel); color: #223e6d; }
.kg-daten { margin: 0; display: grid; grid-template-columns: 5.4em 1fr; font-size: 0.8em; }
.kg-daten dt,
.kg-daten dd { margin: 0; padding: 0.35em 0; border-bottom: 1px solid #eef0f3; }
.kg-daten dt { color: #8a8f99; }
.kg-daten dd { font-weight: 600; }
.kg-scan { display: grid; grid-template-columns: 6.6em 1fr; align-items: center; gap: 0.8em; font-size: 0.78em; line-height: 1.35; color: #4b5563; }
.kg-qr { width: 100%; height: auto; border: 0.12em solid #e1e6ee; border-radius: 0.4em; }

/* Klassendienste, Projektwoche, Unterrichtsverteilung, Abi-Organizer */
.vd .neu { display: none; }
.ab-1 .vd .neu { display: inline; padding: 0 0.2em; border-radius: 0.2em; background: var(--marker); color: #1c2333; }
.ab-1 .vd .alt { display: none; }
.vd-knopf { padding: 0.5em; font-size: 0.8em; }
.vw-nr {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9em; height: 1.9em;
  border: 0.12em dashed #c0cad9;
  border-radius: 50%;
  color: transparent;
  font-style: normal;
  font-weight: 700;
  transition: background-color 0.3s var(--ruhig), border-color 0.3s var(--ruhig), color 0.3s var(--ruhig);
}
.v-bild .vw-nr { opacity: 1; transform: none; }
.v-bild .vw-nr.da { border: 0.12em solid #b45309; background: #b45309; color: #fff; }
.vu-zeile { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0.6em; padding: 0.42em 0.65em; border-radius: 0.5em; background: #fff; box-shadow: 0 0.08em 0.25em rgba(0, 0, 0, 0.1); font-size: 0.84em; }
.vu-zeile b { color: #223e6d; }
.vu-zeile > span { color: #6b7280; }
.vu-zeile i { padding: 0.2em 0.7em; border-radius: 1em; background: #223e6d; color: #fff; font-style: normal; font-size: 0.86em; font-weight: 700; transition: background-color 0.3s var(--ruhig), color 0.3s var(--ruhig); }
.vu-zeile .neu { display: none; }
.vu-zeile i.vu-ja,
.ab-1 .vu-wunsch[data-ab="1"],
.ab-2 .vu-wunsch[data-ab="2"] { background: #dcfce7; color: #166534; }
.ab-1 .vu-wunsch[data-ab="1"] .alt,
.ab-2 .vu-wunsch[data-ab="2"] .alt { display: none; }
.ab-1 .vu-wunsch[data-ab="1"] .neu,
.ab-2 .vu-wunsch[data-ab="2"] .neu { display: inline; }
.vu-deputat u { width: 79%; }
.ab-1 .vu-deputat u { width: 92%; }
.ab-2 .vu-deputat u { width: 100%; }
.vu-zahl .b,
.vu-zahl .c,
.ab-1 .vu-zahl .a { display: none; }
.ab-1 .vu-zahl .b { display: inline; }
.ab-2 .vu-zahl .b { display: none; }
.ab-2 .vu-zahl .c { display: inline; }
.vabi-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4em; }
.vabi-raster > span { padding: 0.5em 0.6em; border-radius: 0.5em; background: #fff; box-shadow: 0 0.08em 0.25em rgba(0, 0, 0, 0.1); font-size: 0.8em; }
.vabi-raster b { display: block; color: #223e6d; }
.vabi-raster em { display: block; font-style: normal; font-size: 0.9em; line-height: 1.3; color: #6b7280; }
.vabi-auf em { display: flex; align-items: center; gap: 0.4em; }
.vabi-auf i { flex: none; display: grid; place-items: center; width: 1.25em; height: 1.25em; border: 0.12em solid #c0cad9; border-radius: 0.3em; }
.vabi-auf .i { color: #15803d; stroke-width: 3.5; }
.v-bild .vabi-auf .i { transform: scale(0.4); }
.v-bild .vabi-auf .i.da { transform: none; }

/* ---------------------------------------------------------
   Kapitel 6: Termine
   --------------------------------------------------------- */
.es-fenster { padding: 0.45em 0.7em; border-radius: 0.5em; background: #e8f4ff; color: #1a6ca8; font-size: 0.84em; }
.es-lehrer { margin: 0.6em 0.9em 0; border-radius: 0.6em; background: #fff; box-shadow: 0 0.12em 0.35em rgba(0, 0, 0, 0.1); overflow: hidden; }
.es-kopf { display: flex; align-items: center; gap: 0.6em; padding: 0.6em 0.7em; font-size: 0.9em; }
.es-kopf > span:nth-child(2) { flex: 1; }
.es-kopf b { display: block; }
.es-kopf em { display: block; font-style: normal; font-size: 0.82em; color: #6b7280; }
.es-pfeil { color: #8a93a3; font-size: 1.2em; transition: transform 0.4s var(--weich); }
.ab-1 .offen-ab-1 .es-pfeil { transform: rotate(180deg); }
.es-gebucht { transform: scale(0); transition: transform 0.45s var(--weich); }
.es-gebucht.da { transform: none; }
.es-zeiten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35em; max-height: 0; padding: 0 0.7em; overflow: hidden; transition: max-height 0.6s var(--weich), padding 0.6s var(--weich); }
.ab-1 .offen-ab-1 .es-zeiten { max-height: 7em; padding: 0 0.7em 0.7em; overflow: visible; }
.es-zeiten span { padding: 0.4em 0; border: 0.1em solid #c9d2e0; border-radius: 0.45em; text-align: center; font-size: 0.8em; font-weight: 700; color: #223e6d; transition: background-color 0.25s var(--ruhig), color 0.25s var(--ruhig), border-color 0.25s var(--ruhig); }
.es-zeiten .belegt { border-color: #eef0f3; background: #eef0f3; color: #aab2bf; text-decoration: line-through; }
.ab-2 .es-wahl { border-color: #223e6d; background: #223e6d; color: #fff; }
.es-notiz { max-height: 0; margin: 0 0.7em; padding: 0 0.6em; border-radius: 0.45em; background: #f3f5f8; font-size: 0.82em; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--weich), padding 0.6s var(--weich), margin 0.6s var(--weich), opacity 0.4s var(--ruhig); }
.es-notiz.da { max-height: 4em; margin: 0 0.7em 0.7em; padding: 0.45em 0.6em; opacity: 1; }
.es-notiz em { display: block; font-style: normal; font-size: 0.86em; color: #6b7280; }
.es-notiz span { display: block; min-height: 1.3em; font-weight: 600; }
.es-zettel { padding: 1.3em 1.2em 1.5em; }
.es-zettel .kp-arbeit > span { width: 4.2em; font-size: 0.7em; }
.es-zettel .kp-arbeit > span b { font-size: 1.45em; }
.es-druck { margin-top: 0.9em; }

.vsp-knopf { margin-left: auto; padding: 0.3em 0.8em; border-radius: 0.45em; background: #223e6d; color: #fff; font-size: 0.86em; font-weight: 700; transition: background-color 0.3s var(--ruhig), color 0.3s var(--ruhig); }
.vsp-knopf .neu { display: none; }
.ab-1 .vsp-knopf { background: #e1e6ee; color: #5d6a80; }
.ab-1 .vsp-knopf .alt { display: none; }
.ab-1 .vsp-knopf .neu { display: inline; }
.ab-2 .vsp-knopf { background: #dcfce7; color: #166534; }

/* Kalender: Monat als Liste, Schalter, Suche, Termin im Stundenplan */
.tk-monat { display: flex; align-items: center; gap: 0.45em; margin: 0.7em 0.9em 0; font-size: 0.86em; }
.tk-monat > span { display: grid; place-items: center; min-width: 2.1em; height: 2.1em; border-radius: 0.55em; background: #fff; box-shadow: 0 0.08em 0.25em rgba(0, 0, 0, 0.1); color: #223e6d; }
.tk-monat .tk-heute { padding: 0 0.75em; font-size: 0.92em; font-weight: 600; }
.tk-monat b { flex: 1; text-align: center; color: #223e6d; font-size: 1.14em; }
.tk-modus span { transition: background-color 0.3s var(--ruhig), color 0.3s var(--ruhig); }
.tk-modus .tk-m-eigen,
.ab-2 .tk-modus .tk-m-alle { background: #223e6d; color: #fff; }
.ab-2 .tk-modus .tk-m-eigen { background: none; color: #5d6a80; }
.tk-suche { display: flex; align-items: center; gap: 0.5em; min-height: 2.5em; margin: 0.6em 0.9em 0; padding: 0.45em 0.75em; border: 0.1em solid #c9d2e0; border-radius: 0.6em; background: #fff; font-size: 0.84em; transition: border-color 0.3s var(--ruhig), box-shadow 0.3s var(--ruhig); }
.tk-suche .i { color: #8a93a3; font-size: 1.1em; }
.tk-platz { color: #9aa3b2; }
.tk-suche b { display: none; font-weight: 600; }
.ab-3 .tk-suche { border-color: #223e6d; box-shadow: 0 0 0 0.2em rgba(34, 62, 109, 0.14); }
.ab-3 .tk-platz { display: none; }
.ab-3 .tk-suche b { display: inline; }
.tk-liste { margin: 0.65em 0.7em 0; }
.tk-treffer { max-height: 0; padding: 0 0.2em; font-size: 0.76em; font-weight: 600; color: #5d6a80; opacity: 0; overflow: hidden; transition: max-height 0.5s var(--weich), padding 0.5s var(--weich), opacity 0.3s var(--ruhig); }
.ab-3 .tk-treffer { max-height: 2.4em; padding-bottom: 0.45em; opacity: 1; }
.tk-gruppe { max-height: 7.6em; padding: 0 0.2em 0.5em; overflow: hidden; transition: max-height 0.6s var(--weich), padding 0.6s var(--weich), opacity 0.35s var(--ruhig); }
.tk-gruppe[data-an] { max-height: 0; padding-bottom: 0; opacity: 0; }
.tk-gruppe[data-an].da { max-height: 7.6em; padding-bottom: 0.5em; opacity: 1; }
.ab-3 .tk-gruppe:not(.tk-fund) { max-height: 0; padding-bottom: 0; opacity: 0; }
.tk-tag { margin-bottom: 0.3em; font-size: 0.74em; font-weight: 700; color: #223e6d; }
.tk-karte { position: relative; display: grid; gap: 0.1em; padding: 0.45em 0.7em 0.5em 1em; border-radius: 0.6em; background: #fff; box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.1); overflow: hidden; transition: box-shadow 0.5s var(--ruhig); }
.tk-karte::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 0.32em; background: var(--tk); }
.tk-zeit { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; font-size: 0.74em; font-weight: 600; color: #5d6a80; }
.tk-kat { padding: 0.1em 0.65em; border-radius: 1em; background: #eef1f6; background: color-mix(in srgb, var(--tk) 13%, #fff); color: var(--tk); font-style: normal; font-weight: 700; }
.tk-karte b { font-size: 0.95em; line-height: 1.2; }
.tk-ort { display: flex; align-items: center; gap: 0.3em; font-size: 0.76em; color: #6b7280; }
.tk-ort .i { flex: none; font-size: 1.05em; color: #8a93a3; }
.tk-gruppe.frisch .tk-karte { box-shadow: 0 0 0 0.16em var(--marker), 0 0.1em 0.3em rgba(0, 0, 0, 0.1); }
.tk-mark { border-radius: 0.2em; background: #fde68a; box-shadow: 0 0 0 0.08em #fde68a; }
.op-plan .tk-kopf { background: var(--sonder); }
.op-plan .ist-termin { position: relative; background: var(--sonder-h); box-shadow: inset 0 0 0 0.09em rgba(107, 33, 168, 0.3); }
.op-plan .ist-termin::after { content: "!"; position: absolute; top: 0.25em; right: 0.25em; display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--sonder); color: #fff; font-size: 0.54em; font-weight: 800; line-height: 1; }
.tk-hinweis { display: flex; align-items: flex-start; gap: 0.6em; margin: 0.7em 0.9em 0; padding: 0.6em 0.75em; border-radius: 0.6em; background: var(--sonder-h); color: var(--sonder); font-size: 0.84em; }
.tk-hinweis i { flex: none; display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--sonder); color: #fff; font-style: normal; font-weight: 800; font-size: 0.9em; }
.tk-hinweis b { display: block; }
.tk-hinweis em { display: block; font-style: normal; font-size: 0.9em; opacity: 0.85; }

/* ---------------------------------------------------------
   Kapitel 7: Persönliches
   --------------------------------------------------------- */
.ko-karte { gap: 0.1em; }
.ko-zeile { display: flex; justify-content: space-between; align-items: center; gap: 0.6em; padding: 0.42em 0; border-bottom: 1px solid #eef0f3; font-size: 0.86em; }
.ko-zeile i { position: relative; flex: none; width: 2.3em; height: 1.3em; border-radius: 1em; background: #cfd6e1; transition: background-color 0.3s var(--ruhig); }
.ko-zeile i::before { content: ""; position: absolute; left: 0.15em; top: 0.15em; width: 1em; height: 1em; border-radius: 50%; background: #fff; box-shadow: 0 0.05em 0.15em rgba(0, 0, 0, 0.3); transition: transform 0.35s var(--weich); }
.ko-zeile i.an,
.ab-1 .ko-wischen i { background: #223e6d; }
.ko-zeile i.an::before,
.ab-1 .ko-wischen i::before { transform: translateX(1em); }
.ko-karte .op-knopf { margin-top: 0.6em; }

/* Startbildschirm des Handys */
.hs { padding: 5em 1.1em 1.2em; background: linear-gradient(160deg, #36598f, #1a2d52 55%, #0f1b33); color: #fff; }
.hs-widget { padding: 0.8em 0.9em; border-radius: 1.2em; background: rgba(255, 255, 255, 0.97); color: #1c2333; opacity: 0; transform: scale(0.9); transition: opacity 0.4s var(--ruhig), transform 0.6s var(--weich); }
.hs-widget.da { opacity: 1; transform: none; }
.hs-widget em { display: block; margin-bottom: 0.4em; font-style: normal; font-size: 0.74em; font-weight: 700; color: #223e6d; }
.hs-widget div { display: flex; align-items: center; gap: 0.6em; padding: 0.3em 0; font-size: 0.9em; }
.hs-widget .vp-std { width: 1.7em; height: 1.7em; font-size: 0.8em; }
.hs-widget b { flex: 1; }
.hs-widget i { font-style: normal; font-size: 0.86em; color: #1d4ed8; }
.hs-widget .aus b { color: var(--entfall); text-decoration: line-through; }
.hs-widget .aus i { color: var(--entfall); }
.hs-widget .aus .vp-std { background: var(--entfall); }
.hs-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2em 0.6em; margin-top: 1.5em; text-align: center; font-size: 0.68em; }
.hs-apps span { display: grid; justify-items: center; gap: 0.4em; }
.hs-apps i { display: grid; place-items: center; width: 3.9em; height: 3.9em; border-radius: 0.95em; background: var(--f); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.hs-op i { background: #223e6d; box-shadow: 0 0 0 0.14em #fff; }
.hs-op svg { width: 72%; height: 72%; }
.hs-op { transform: scale(0); transition: transform 0.6s var(--weich) 0.45s; }
.ab-2 .hs-op { transform: none; }

/* Formulare und Anträge: der Stand eines Vorgangs */
.vwf .v-zeile .neu { display: none; }
.ab-2 .vwf .v-zeile .alt { display: none; }
.ab-2 .vwf .v-zeile .neu { display: inline-block; }
.vwf-stufe { margin-left: auto; font-size: 0.8em; font-weight: 600; color: #6b7280; white-space: nowrap; }

/* Schüler+, Private Notizen */
.vplus .vv-leiste span { transition: background-color 0.4s var(--ruhig), opacity 0.4s var(--ruhig); }
.vplus .vv-leiste .zu { opacity: 0.4; }
.ab-1 .vplus .vv-leiste .auf { background: rgba(255, 255, 255, 0.22); }
.v-bild.vnotiz { align-content: center; gap: 0.7em; padding: 1.2em 1.5em; }
.vnotiz span { height: 0.5em; border-radius: 1em; background: #dce3ed; }
.vnotiz span:nth-child(2) { width: 82%; }
.vnotiz span:nth-child(3) { width: 93%; }
.vnotiz span:nth-child(4) { width: 55%; }
.vnotiz b { justify-self: start; margin-top: 0.4em; padding: 0.2em 0.8em; border: 0.1em dashed #9aa3b2; border-radius: 1em; color: #5d6a80; font-size: 0.8em; }
.ke-liste > li.ke-bald { background: transparent; border-style: dashed; box-shadow: none; }
.ke-bald h3 { color: var(--ink-soft); }
