/* UntPlanWeb – Erscheinungsbild im Stil des Vorbilds (Original-Icons aus dem Paket des Kollegen unter img/wu, Hausschrift Avenir Next per Upload, freie Ersatzschrift Lato, eigenes Logo).
   Aufbau: Farben & Maße · Grundlagen · Bootstrap-Bausteine · Hülle (Navigation, Konto) · Seitenaufbau & Werkzeugleiste · Heute ·
   Listen, Tabellen & Filter · Anmeldung · Stundenplan · Legende · Tagesübersicht · Vertretungsplan · Stundendetails · Mitteilungen ·
   Klassenbuch · Verwaltung · Monitor · Druck · Schmale Bildschirme */

/* ------------------------------------------------------------------ Farben & Maße */

:root {
  --bs-body-font-weight: 400;

  /* Grundpalette des Gestaltungsleitfadens. Vorrang haben die an den Referenzbildern gemessenen Werte darunter
     (z. B. Akzent #f56b2a, Titel #24323d, Grau #8a96a1); die Palette füllt nur Lücken und ersetzt Messwerte, die höchstens ±2 abweichen. */
  --u-primaer: #ff6033;        /* Primärfarbe; gemessen #fe6033 im aktiven Menüpunkt */
  --u-dunkelblau: #26396a;
  --u-tuerkis: #98d7e4;
  --u-graustufe-1: #293035;
  --u-graustufe-2: #414d55;
  --u-graustufe-3: #67747e;
  --u-graustufe-4: #919da6;
  --u-graustufe-5: #bfc8cf;
  --u-graustufe-6: #dcdfe5;
  /* Linien-Icons: 24 × 24 px, gleich starke Striche, grau */
  --u-icon: 24px;
  --u-icon-farbe: var(--u-graustufe-3);

  --u-verlauf: linear-gradient(165deg, #f6f7f9 0%, #eef0f3 45%, #e2e5e9 100%);
  --u-akzent: #f56b2a;
  --u-akzent-dunkel: #dd5718;
  --u-akzent-hell: #fff1ea;
  --u-akzent-rgb: 245, 107, 42;
  --u-titel: #24323d;
  --u-text: var(--u-graustufe-2);
  --u-grau: var(--u-graustufe-3);
  --u-grau-2: #8a96a1;
  --u-grau-3: var(--u-graustufe-5);
  --u-linie: var(--u-graustufe-6);
  --u-linie-2: #e9ecef;
  --u-grund: #f3f5f7;
  --u-flaeche: #fff;
  --u-hover: #f3f5f7;
  --u-dunkel: var(--u-graustufe-3);
  --u-dunkel-2: #545f68;
  --u-gruen: #1f9d55;
  --u-gruen-hell: #dcf5e8;
  --u-gruen-label: #199c5f;
  --u-rot: #f03e3e;
  --u-rot-hell: #fde0e2;
  --u-gelb: #f7c600;
  --u-gelb-hell: #fdf3d3;
  --u-blau: #2d6fa3;
  --u-ferien: #cbdcea;
  --u-schatten: 0 1px 2px rgba(0, 5, 10, .06), 0 2px 6px rgba(0, 5, 10, .06);
  --u-schatten-karte: 0 -8px 16px -4px rgba(0, 5, 10, .05), 0 16px 32px -8px rgba(0, 5, 10, .24), 0 2px 8px rgba(0, 5, 10, .08);
  --u-schatten-hoch: 0 10px 30px rgba(36, 50, 61, .2);
  --u-radius: 4px;
  --u-leiste: 280px;
  --u-leiste-zu: 76px;
  --u-kopf: 56px;
  --u-zeile: 80px;
  --u-schrift: "AvenirNextPro", "Avenir Next", "Lato", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Bootstrap auf die eigenen Farben stellen */
  --bs-primary: var(--u-akzent);
  --bs-primary-rgb: 245, 107, 42;
  --bs-primary-text-emphasis: #b5451a;
  --bs-primary-bg-subtle: var(--u-akzent-hell);
  --bs-primary-border-subtle: #fcc4a9;
  --bs-link-color: #dd5718;
  --bs-link-color-rgb: 221, 87, 24;
  --bs-link-hover-color: #b5451a;
  --bs-link-hover-color-rgb: 181, 69, 26;
  --bs-body-font-family: var(--u-schrift);
  --bs-body-font-size: .9375rem;
  --bs-body-color: var(--u-text);
  --bs-body-color-rgb: 65, 77, 85;
  --bs-body-bg: var(--u-grund);
  --bs-secondary-color: var(--u-grau);
  --bs-tertiary-color: var(--u-grau-2);
  --bs-border-color: var(--u-linie);
  --bs-border-radius: var(--u-radius);
  --bs-border-radius-sm: 3px;
  --bs-border-radius-lg: 6px;
  --bs-success: var(--u-gruen);
  --bs-success-rgb: 31, 157, 85;
  --bs-danger: var(--u-rot);
  --bs-danger-rgb: 240, 62, 62;
  --bs-focus-ring-color: rgba(245, 107, 42, .25);
  --bs-heading-color: var(--u-titel);

  /* Stundenplan (Altnamen bleiben für Monitor/Erweiterungen) */
  --tt-text: var(--u-text); --tt-linie: #dfe3e8; --tt-zeit: var(--u-grau-2);
  --tt-aenderung: var(--u-gruen-hell); --tt-entfall: var(--u-rot-hell); --tt-gruen: var(--u-gruen); --tt-rot: var(--u-rot);
}

/* ------------------------------------------------------------------ Grundlagen */

/* Gleiche Schriftstärken auf allen Geräten (Windows, macOS, iOS, Android; Chrome, Firefox, Safari): nur die Gewichte 400 (Regular)
   und 600 (Medium; 500 ebenfalls Medium), keine Demi-/Bold-Schnitte und keine künstlichen Fettschnitte. 700+ fällt in schrift.css ebenfalls auf Medium. Alle Gewichte 100–900 sind in schrift.css fest belegt.
   Bewusst kein -webkit-font-smoothing/-moz-osx-font-smoothing: „antialiased“ macht Schrift unter macOS deutlich dünner – die
   Standard-Kantenglättung des Systems ergibt überall dieselbe Strichstärke. */
html { -webkit-text-size-adjust: 100%; font-synthesis: none; font-synthesis-weight: none; font-synthesis-style: none; }
body {
  background: var(--u-verlauf) fixed; color: var(--u-text); font-family: var(--u-schrift); font-weight: 400;
  min-height: 100vh;
}
b, strong, dt, th, legend, optgroup { font-weight: 600; }
.alert-link, .nav-underline .nav-link.active, .nav-underline .show > .nav-link { font-weight: 600; }
.badge { --bs-badge-font-weight: 600; }
.fw-bold, .fw-bolder { font-weight: 600 !important; }
.fw-semibold, .fw-medium { font-weight: 600 !important; }
.fw-normal, .fw-light, .fw-lighter { font-weight: 400 !important; }
.lead, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 { font-weight: 400; }
.badge { font-weight: 600; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--u-titel); font-weight: 600; letter-spacing: 0; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(245, 107, 42, .22); }
.text-body-secondary { color: var(--u-grau) !important; }
.text-body-tertiary { color: var(--u-grau-2) !important; }
.alt { text-decoration: line-through; color: var(--u-grau); margin-right: .25rem; }
.logo { width: 32px; height: 32px; flex: none; color: #8a96a1; }
.zaehler { font-size: .7rem; }
.fw-semibold { font-weight: 600 !important; }
.small, small { font-size: .8125rem; }
:focus-visible { outline: 2px solid rgba(245, 107, 42, .55); outline-offset: 2px; }
.u-sym { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; }
.btn .u-sym, .rundknopf .u-sym { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ Bootstrap-Bausteine im Portal-Stil */

/* Knöpfe: Pillen mit 1,5-px-Rand und kräftiger Schrift; Hauptaktion orange, „Heute“ dunkelgrau */
.btn {
  --bs-btn-font-weight: 600; --bs-btn-border-radius: 999px; --bs-btn-border-width: 1.5px;
  --bs-btn-padding-x: 1.05rem; --bs-btn-padding-y: .36rem; --bs-btn-font-size: .9375rem;
  --bs-btn-focus-box-shadow: 0 0 0 .2rem rgba(245, 107, 42, .25);
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { --bs-btn-padding-x: .8rem; --bs-btn-padding-y: .2rem; --bs-btn-font-size: .8125rem; }
.btn-lg { --bs-btn-padding-x: 1.5rem; --bs-btn-padding-y: .6rem; }
.btn-primary {
  --bs-btn-bg: var(--u-akzent); --bs-btn-border-color: var(--u-akzent); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--u-akzent-dunkel); --bs-btn-hover-border-color: var(--u-akzent-dunkel); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #c84c12; --bs-btn-active-border-color: #c84c12; --bs-btn-active-color: #fff;
  --bs-btn-disabled-bg: var(--u-akzent); --bs-btn-disabled-border-color: var(--u-akzent);
}
.btn-outline-primary {
  --bs-btn-color: #dd5718; --bs-btn-border-color: var(--u-akzent);
  --bs-btn-hover-bg: var(--u-akzent-hell); --bs-btn-hover-border-color: var(--u-akzent); --bs-btn-hover-color: #c84c12;
  --bs-btn-active-bg: var(--u-akzent); --bs-btn-active-border-color: var(--u-akzent); --bs-btn-active-color: #fff;
}
.btn-outline-secondary, .btn-light {
  --bs-btn-color: var(--u-text); --bs-btn-bg: transparent; --bs-btn-border-color: var(--u-grau-3);
  --bs-btn-hover-bg: rgba(255, 255, 255, .7); --bs-btn-hover-border-color: var(--u-grau-2); --bs-btn-hover-color: var(--u-titel);
  --bs-btn-active-bg: #e7ebee; --bs-btn-active-border-color: var(--u-grau-2); --bs-btn-active-color: var(--u-titel);
  --bs-btn-disabled-color: var(--u-grau-2); --bs-btn-disabled-border-color: var(--u-linie);
}
.card .btn-outline-secondary, .modal .btn-outline-secondary, .u-panel .btn-outline-secondary { --bs-btn-bg: #fff; --bs-btn-hover-bg: var(--u-hover); }
.btn-dunkel { --bs-btn-bg: var(--u-dunkel); --bs-btn-border-color: var(--u-dunkel); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--u-dunkel-2); --bs-btn-hover-border-color: var(--u-dunkel-2); --bs-btn-hover-color: #fff; --bs-btn-active-bg: #414d55; --bs-btn-active-color: #fff; }
.btn-outline-danger { --bs-btn-color: #c8363b; --bs-btn-border-color: #f0a5a8; --bs-btn-hover-bg: var(--u-rot-hell); --bs-btn-hover-color: #b02a2f; --bs-btn-hover-border-color: var(--u-rot); }
.btn-outline-success { --bs-btn-color: #13784a; --bs-btn-border-color: #8fd3b2; --bs-btn-hover-bg: var(--u-gruen-hell); --bs-btn-hover-color: #0f6b40; --bs-btn-hover-border-color: var(--u-gruen); }
.btn-danger { --bs-btn-bg: var(--u-rot); --bs-btn-border-color: var(--u-rot); --bs-btn-hover-bg: #d73232; --bs-btn-hover-border-color: #d73232; }
.btn-link { --bs-btn-color: #dd5718; --bs-btn-hover-color: #b5451a; --bs-btn-font-weight: 600; text-decoration: none; }
.btn-group > .btn { --bs-btn-border-radius: 999px; }
.btn-group > .btn-check:checked + .btn, .btn-group > .btn.active, .btn-check:checked + .btn-outline-secondary {
  background: var(--u-dunkel); border-color: var(--u-dunkel); color: #fff;
}
.btn-close { --bs-btn-close-focus-shadow: 0 0 0 .2rem rgba(245, 107, 42, .25); opacity: .55; }

/* Eingabefelder (Rahmen grau, Fokus orange) */
.form-control, .form-select {
  border-color: var(--u-grau-3); border-radius: var(--u-radius); color: var(--u-titel); min-height: 40px; font-size: .9375rem; background-color: #fff;
}
.form-control-sm, .form-select-sm { min-height: 32px; font-size: .8125rem; }
.form-control::placeholder { color: var(--u-grau-2); }
.form-control:hover, .form-select:hover { border-color: var(--u-grau-2); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--u-akzent); box-shadow: 0 0 0 .15rem rgba(245, 107, 42, .16); }
.form-control[readonly] { background: var(--u-grund); }
.form-label { font-weight: 600; font-size: .8125rem; color: var(--u-text); margin-bottom: .3rem; }
.form-text { color: var(--u-grau-2); font-size: .78rem; }
.form-check-input { border-color: var(--u-grau-3); border-width: 1.5px; }
.form-check-input:checked { background-color: var(--u-akzent); border-color: var(--u-akzent); }
.form-check-label { color: var(--u-titel); }
.form-switch { padding-left: 3.1em; }
.form-switch .form-check-input { width: 2.4em; height: 1.3em; margin-left: -3.1em; margin-top: .1em; }
.input-group > .btn { --bs-btn-border-radius: var(--u-radius); }
input[type=search].form-control { padding-left: 2.1rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238a96a1' stroke-width='1.4'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") no-repeat .7rem 50% / 15px; }

/* Karten = Bereiche („Panels“) */
.card {
  --bs-card-border-width: 0; --bs-card-border-radius: var(--u-radius); --bs-card-inner-border-radius: var(--u-radius);
  --bs-card-cap-bg: transparent; --bs-card-cap-padding-y: .85rem; --bs-card-cap-padding-x: 1.1rem; --bs-card-spacer-x: 1.1rem; --bs-card-spacer-y: 1rem;
  box-shadow: var(--u-schatten); background: var(--u-flaeche);
}
.card-header { font-weight: 600; font-size: 1rem; color: var(--u-titel); border-bottom: 1px solid var(--u-linie-2); }
.card-footer { background: transparent; border-top: 1px solid var(--u-linie-2); }

/* Tabellen wie im Original: kleine fette Spaltenköpfe, ruhige Zeilen mit feinen Linien */
.table { --bs-table-bg: transparent; --bs-table-border-color: var(--u-linie-2); --bs-table-hover-bg: #f7f8fa; --bs-table-active-bg: var(--u-akzent-hell); font-size: .875rem; color: var(--u-text); margin-bottom: 0; }
.table > thead th { font-weight: 600; color: var(--u-text); font-size: .75rem; white-space: nowrap; border-bottom-color: var(--u-linie); background: transparent; }
.table > :not(caption) > * > * { padding: .62rem .65rem; }
.table-sm > :not(caption) > * > * { padding: .45rem .55rem; }
.table-card > :not(caption) > * > *:first-child { padding-left: 1.1rem; }
.table-card > :not(caption) > * > *:last-child { padding-right: 1.1rem; }
.table-active, .table > tbody > tr.table-active > * { --bs-table-bg-state: var(--u-akzent-hell); }
tr[role=button] { cursor: pointer; }

/* Kennzeichen */
.badge { --bs-badge-font-weight: 600; --bs-badge-padding-x: .5em; --bs-badge-padding-y: .32em; border-radius: 3px; }
.badge.rounded-pill { border-radius: 999px; }
.text-bg-primary { background-color: var(--u-akzent) !important; }
.text-bg-success { background-color: var(--u-gruen) !important; }
.text-bg-danger { background-color: var(--u-rot) !important; }
.text-bg-warning { background-color: #f6c343 !important; color: #3d2f00 !important; }
.text-bg-light { background: var(--u-grund) !important; color: var(--u-text) !important; }
.text-bg-secondary { background: #8a96a1 !important; }
.text-bg-info { background: #4c9bd6 !important; color: #fff !important; }

/* Hinweise */
.alert { --bs-alert-border-radius: var(--u-radius); --bs-alert-padding-x: 1rem; --bs-alert-padding-y: .7rem; border: 0; border-left: 4px solid; font-size: .875rem; }
.alert-warning { --bs-alert-bg: #fff6e0; --bs-alert-color: #6b4e00; border-left-color: #f0b429; }
.alert-danger { --bs-alert-bg: #fdecec; --bs-alert-color: #8f1f23; border-left-color: var(--u-rot); }
.alert-success { --bs-alert-bg: #e8f7ef; --bs-alert-color: #0f5c39; border-left-color: var(--u-gruen); }
.alert-secondary, .alert-info { --bs-alert-bg: #fff; --bs-alert-color: var(--u-text); border-left-color: var(--u-grau-3); box-shadow: var(--u-schatten); }
.alert-link { color: inherit; }

/* Reiter: orange Unterstreichung wie im Original */
.nav-tabs, .nav-pills, .u-reiter {
  --bs-nav-link-color: var(--u-grau); --bs-nav-link-hover-color: var(--u-titel); --bs-nav-link-font-weight: 600;
  display: flex; flex-wrap: nowrap; gap: 2rem; border-bottom: 1px solid var(--u-linie); overflow-x: auto; scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar, .nav-pills::-webkit-scrollbar, .u-reiter::-webkit-scrollbar { display: none; }
.nav-tabs .nav-link, .nav-pills .nav-link, .u-reiter a {
  border: 0; border-radius: 0; background: none; padding: .6rem .1rem .5rem; margin-bottom: -1px; border-bottom: 3px solid transparent;
  color: var(--u-titel); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem;
}
.nav-tabs .nav-link:hover, .nav-pills .nav-link:hover, .u-reiter a:hover { color: var(--u-akzent-dunkel); text-decoration: none; }
.nav-tabs .nav-link.active, .nav-pills .nav-link.active, .u-reiter a.aktiv { color: var(--u-akzent-dunkel); background: none; border-bottom-color: var(--u-akzent); }
.card-header-tabs { margin: 0; }

/* Listen */
.list-group { --bs-list-group-border-color: var(--u-linie-2); --bs-list-group-action-hover-bg: #f7f8fa; --bs-list-group-active-bg: var(--u-akzent-hell); --bs-list-group-active-color: var(--u-titel); --bs-list-group-active-border-color: var(--u-linie-2); }
.list-group-item.active { border-left: 3px solid var(--u-akzent); }

/* Dialoge: großer Titel, Fuß mit Pillen (Abbrechen umrandet, Speichern orange) */
.modal { --bs-modal-bg: #fff; --bs-modal-border-radius: 6px; --bs-modal-border-width: 0; --bs-modal-header-border-color: var(--u-linie-2); --bs-modal-footer-border-color: var(--u-linie-2); --bs-modal-padding: 1.5rem; --bs-modal-header-padding: 1.2rem 1.5rem; }
.modal-content { box-shadow: var(--u-schatten-hoch); }
.modal-title { font-weight: 600; font-size: 1.35rem; color: var(--u-titel); }
.modal-footer { gap: .5rem; }
.modal-footer > * { margin: 0; }
.modal-footer .btn { --bs-btn-padding-x: 1.4rem; --bs-btn-padding-y: .45rem; }
.modal-backdrop { --bs-backdrop-bg: #24323d; --bs-backdrop-opacity: .4; }

/* Benachrichtigungen unten mittig, dunkle Pillen */
.u-toasts { position: fixed; left: 50%; bottom: 5.5rem; transform: translateX(-50%); z-index: 1090; display: flex; flex-direction: column; align-items: center; gap: .5rem; pointer-events: none; width: max-content; max-width: calc(100vw - 2rem); }
.u-toasts .toast { --bs-toast-max-width: 520px; --bs-toast-border-radius: 999px; --bs-toast-font-size: .9rem; width: auto; pointer-events: auto; background: #414d55; color: #fff; box-shadow: var(--u-schatten-hoch); border: 0; }
.u-toasts .toast.fehler { background: #c8363b; }
.u-toasts .toast-body { padding: .6rem 1.1rem; font-weight: 600; display: flex; align-items: center; gap: .6rem; }
.u-toasts .toast .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .7; margin: 0 .5rem 0 0; }

.dropdown-menu { --bs-dropdown-border-color: var(--u-linie); --bs-dropdown-link-active-bg: var(--u-akzent); border-radius: 6px; box-shadow: var(--u-schatten-hoch); border: 0; }
.spinner-border { color: var(--u-akzent) !important; }

/* ------------------------------------------------------------------ Hülle: linke Navigationsleiste wie im Original */

.u-app { min-height: 100vh; }
.u-leiste {
  position: fixed; inset: 0 auto 0 0; width: var(--u-leiste); z-index: 1040; background: #fff; display: flex; flex-direction: column;
  box-shadow: 1px 0 0 #e5e8ec, 3px 0 14px rgba(0, 5, 10, .03); transition: width .18s ease, transform .2s ease;
}
.u-haupt { margin-left: var(--u-leiste); min-width: 0; min-height: 100vh; transition: margin-left .18s ease; }

/* Kopf: Bildmarke, Name, Schule */
.u-marke { display: flex; align-items: flex-start; gap: 11px; padding: 8px 14px 0 10px; color: var(--u-titel); text-decoration: none !important; }
.u-marke .logo { width: 48px; height: 48px; margin-top: 1px; }
.u-marke span { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; padding-top: 5px; }
.u-marke b { font-size: 1.32rem; font-weight: 600; letter-spacing: -.005em; color: var(--u-titel); }
.u-marke small { font-size: .85rem; color: var(--u-grau); text-transform: uppercase; margin-top: 3px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: .01em; }

/* Untermenü-Kopf: runder Zurück-Knopf und Titel */
.u-unterkopf { display: flex; align-items: center; gap: 16px; padding: 13px 14px 0 15px; min-height: 60px; }
.u-unterkopf b { font-size: 1.2rem; font-weight: 600; color: var(--u-titel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-zurueck {
  width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: #fff; color: var(--u-grau); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 5, 10, .1), 0 4px 12px rgba(0, 5, 10, .1);
}
.u-zurueck .u-sym { width: 22px; height: 22px; }
.u-zurueck:hover { background: var(--u-hover); color: var(--u-titel); }

/* Schuljahr-Pille */
/* zwischen Logo bzw. Untermenü-Kopf und Schuljahr-Pille etwas Luft (+7px) */
.u-jahrzeile { padding: 15px 0 22px 71px; min-height: 59px; }
.mit-unter .u-jahrzeile { padding-left: 76px; padding-top: 19px; }
.u-jahr {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e3e6ea; background: #f3f5f7; color: var(--u-text); border-radius: 999px;
  padding: 3px 16px; font-weight: 600; font-size: .9rem; cursor: default; letter-spacing: .01em;
}
.u-jahr.mit-pfeil { background: #fff; border: 1.5px solid var(--u-grau-2); padding: 3px 14px; }
.u-jahr .bi { font-size: .78rem; color: var(--u-text); -webkit-text-stroke: .4px; }

/* Menüpunkte: Linien-Symbole, aktiver Punkt orange mit Balken links */
.u-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 0 1rem; scrollbar-width: thin; }
.u-nav-punkt {
  position: relative; display: flex; align-items: center; gap: 20px; min-height: 50px; padding: 0 12px 0 19px;
  color: var(--u-text); font-weight: 600; font-size: 1.04rem; text-decoration: none !important; border: 0; background: none; width: 100%; text-align: left;
}
.u-nav-sym { width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--u-grau-2); }
.u-nav-sym .u-sym { width: 30px; height: 30px; stroke-width: 1.35; }
.u-nav-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-nav-punkt:hover { background: #f6f7f9; color: var(--u-titel); }
.u-nav-punkt:hover .u-nav-sym { color: var(--u-grau); }
.u-nav-punkt.aktiv, .u-nav-punkt.aktiv:hover { color: var(--u-akzent); background: none; }
.u-nav-punkt.aktiv .u-nav-sym { color: var(--u-akzent); }
.u-nav-punkt.aktiv::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 4px; border-radius: 0 3px 3px 0; background: var(--u-akzent); }
/* Wechselanimation der Seitenleiste: Momentaufnahme des bisherigen Menüs gleitet hinaus (siehe leistenWechsel in app.js) */
.u-leiste-bild { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.u-nav-unter .u-nav-punkt { font-size: .95rem; gap: 16px; padding-left: 21px; }
.u-nav-unter .u-nav-sym .u-sym { width: 28px; height: 28px; }
.u-zahl { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--u-akzent); color: #fff; font-size: .72rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }

/* Fuß: Griff zum Einklappen, Benutzer mit Avatar, Abmelden */
.u-fuss { padding: 0 0 12px; position: relative; }
.u-griff { display: block; width: 100%; height: 34px; border: 0; background: none; position: relative; margin-bottom: 22px; }
.u-griff span, .u-griff span::after { position: absolute; left: 50%; width: 24px; height: 2.5px; border-radius: 2px; background: #c3cbd2; transform: translateX(-50%); }
.u-griff span { top: 13px; }
.u-griff span::after { content: ""; top: 6px; }
.u-griff:hover span, .u-griff:hover span::after { background: var(--u-grau-2); }
.u-benutzer { display: flex; align-items: center; gap: 19px; padding: 6px 12px 6px 14px; color: var(--u-titel); border: 0; background: none; width: 100%; text-align: left; }
.u-benutzer:hover, .u-benutzer.aktiv { background: #f6f7f9; }
.u-avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1.5px solid #d6dbe0; color: var(--u-grau); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .95rem; flex: none; }
.u-benutzer-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.u-benutzer b { font-weight: 600; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--u-text); }
.u-benutzer small { color: var(--u-grau-2); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-abmelden { display: flex; align-items: center; gap: 24px; border: 0; background: none; color: #67747e; font-weight: 600; font-size: .8125rem; padding: 8px 12px 4px 21px; width: 100%; text-align: left; }
.u-abmelden .u-sym { width: 26px; height: 26px; color: var(--u-grau-2); }
.u-abmelden:hover { color: var(--u-akzent-dunkel); }
.u-abmelden:hover .u-sym { color: var(--u-akzent); }

/* Kontomenü (Profil, Konto wechseln, weiteres Konto) */
.u-kontomenue { position: absolute; left: 12px; right: 12px; bottom: calc(100% - 46px); background: #fff; border-radius: 8px; box-shadow: var(--u-schatten-hoch); padding: 6px 0; z-index: 5; }
.u-kontomenue a, .u-kontomenue button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 8px 14px; color: var(--u-titel); font-weight: 600; font-size: .9rem; text-align: left; text-decoration: none !important; }
.u-kontomenue a:hover, .u-kontomenue button:hover { background: var(--u-hover); }
.u-kontomenue .u-sym { width: var(--u-icon); height: var(--u-icon); color: var(--u-icon-farbe); }
.u-kontokopf { font-size: .72rem; font-weight: 600; color: var(--u-grau-2); text-transform: uppercase; letter-spacing: .04em; padding: 8px 14px 2px; border-top: 1px solid var(--u-linie-2); margin-top: 4px; }
.u-konto { display: flex; align-items: center; }
.u-konto > button:first-child { flex: 1; min-width: 0; }
.u-konto .u-avatar { width: 30px; height: 30px; font-size: .8rem; }
.u-konto span:last-child { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.u-konto small { color: var(--u-grau-2); font-weight: 600; }
.u-konto .u-konto-weg { width: auto; padding: 8px 12px; color: var(--u-grau-2); }
.u-konto-neu { border-top: 1px solid var(--u-linie-2) !important; margin-top: 4px; }

/* Eingeklappt (nur Symbole) */
.u-app.zu .u-leiste { width: var(--u-leiste-zu); }
.u-app.zu .u-haupt { margin-left: var(--u-leiste-zu); }
.u-app.zu .u-marke { padding-left: 14px; }
.u-leiste:not(.mit-unter) .u-jahrzeile { padding-bottom: 12px; }
.u-app.zu .u-marke span, .u-app.zu .u-jahrzeile, .u-app.zu .u-nav-text, .u-app.zu .u-unterkopf b,
.u-app.zu .u-benutzer-text, .u-app.zu .u-abmelden span { display: none; }
.u-app.zu .u-nav-punkt { padding-left: 21px; }
.u-app.zu .u-nav-punkt .u-zahl { position: absolute; top: 4px; left: 44px; min-width: 16px; height: 16px; font-size: .62rem; padding: 0 4px; }
.u-app.zu .u-unterkopf { padding-left: 15px; }
.u-app.zu .u-benutzer { padding-left: 18px; }

/* Kopfleiste nur auf schmalen Bildschirmen */
.u-kopfleiste { display: none; }
.u-schleier { display: none; }

/* ------------------------------------------------------------------ Seitenaufbau und Werkzeugleiste */

.u-inhalt { padding: 28px 32px 7rem; max-width: 1700px; }
.u-seitenkopf { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: 16px; min-height: 38px; }
.u-seitenkopf h1 { font-size: 1.25rem; font-weight: 600; margin: 0; color: var(--u-titel); }
.u-seitenkopf h1 small { font-size: .9rem; color: var(--u-grau-2); font-weight: 600; margin-left: .3rem; }
.u-seitenkopf .u-aktionen { margin-left: auto; display: flex; flex-wrap: wrap; gap: .5rem; }
.u-unterzeile { color: var(--u-grau); font-size: .875rem; margin: -.6rem 0 1.1rem; }

/* Weiße Leiste oben (Klassenbuch): Suche mit Auswahl-Chips, Bereich, Zeitraum-Pille */
/* obere Werkzeugleiste (Suche, Filter) bleibt beim Scrollen sichtbar */
.u-werkzeug { position: sticky; top: 0; z-index: 25; box-shadow: none; transition: box-shadow .15s ease; }
/* Schatten oben nur, wenn nach unten gescrollt ist (app.js setzt body.gescrollt) */
body.gescrollt .u-werkzeug { box-shadow: 0 6px 10px -10px rgba(0, 5, 10, .35); }
@media (max-width: 991.98px) { .u-werkzeug { top: var(--u-kopf); } }
.u-werkzeug { background: #fff; border-bottom: 1px solid #e5e8ec; min-height: 82px; display: flex; align-items: center; gap: 16px; padding: 0 32px 0 96px; flex-wrap: wrap; }
.u-suche { display: flex; align-items: center; gap: 8px; background: #f3f5f7; border-radius: 999px; height: 42px; padding: 0 8px 0 14px; min-width: 300px; flex: 0 1 480px; }
.u-suche > .u-sym { width: var(--u-icon); height: var(--u-icon); color: var(--u-icon-farbe); }
.u-suche > .bi { font-size: 18px; color: var(--u-grau); -webkit-text-stroke: .2px; }
.u-suche input { border: 0; background: transparent; outline: 0; flex: 1; min-width: 60px; font-size: .95rem; color: var(--u-titel); }
.u-suche input::placeholder { color: var(--u-grau-2); }
.u-chip-dunkel { display: inline-flex; align-items: center; gap: 6px; background: #414d55; color: #fff; border-radius: 999px; height: 32px; padding: 0 5px 0 14px; font-weight: 600; font-size: .875rem; white-space: nowrap; }
.u-chip-dunkel button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: #8a96a1; color: #414d55; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; padding: 0; }
.u-suche .u-leeren { width: 24px; height: 24px; border-radius: 50%; border: 0; background: #8a96a1; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.u-suche .u-trenn { width: 1px; height: 18px; background: var(--u-grau-3); margin: 0 6px; }
.u-suche select { field-sizing: content; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23414d55' stroke-width='1.6'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 4px center / 14px;
  appearance: none; font-weight: 600; color: var(--u-titel); padding: 0 26px 0 6px; font-size: 1rem; outline: 0; cursor: pointer; }
.u-zeitraum { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.u-zeitraum > span { color: var(--u-grau-2); font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.u-pillenwahl { position: relative; }
.u-pillenwahl select, .u-pillenwahl .knopf { appearance: none; border: 1.5px solid var(--u-grau-2); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23414d55' stroke-width='1.5'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 15px;
  border-radius: 999px; height: 32px; padding: 0 38px 0 16px; font-weight: 600; color: var(--u-titel); font-size: 1rem; cursor: pointer; outline: 0; }
.u-pillenwahl select:hover { border-color: var(--u-text); }
.u-hilfe-knopf { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--u-grau-2); background: #fff; color: var(--u-text); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.u-mit-werkzeug .u-inhalt { padding-left: 96px; padding-top: 16px; }

/* Bereich mit Kopf (eigene Panels) */
.u-panel { background: var(--u-flaeche); border-radius: var(--u-radius); box-shadow: var(--u-schatten); }
.u-panel > header { display: flex; align-items: center; gap: .6rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--u-linie-2); }
.u-panel > header h2 { font-size: 1rem; margin: 0; font-weight: 600; }
.u-panel > header .u-sym, .u-panel > header .bi { color: var(--u-icon-farbe); font-size: 1.15rem; width: var(--u-icon); height: var(--u-icon); }
.u-panel > header .u-mehr { margin-left: auto; font-size: .8125rem; font-weight: 600; }
.u-panel-rumpf { padding: 1rem 1.1rem; }

/* ------------------------------------------------------------------ Heute (Aufbau wie im Original) */

.heute-titel { font-size: .975rem; margin: 6px 0 12px; font-weight: 400; color: var(--u-akzent); }
.heute-titel span { color: #999; margin-left: 3px; font-size: .8625rem; }
.heute { max-width: 992px; display: flex; flex-direction: column; gap: 16px; }
.heute-karte { background: #fff; box-shadow: 0 1px 3px rgba(0, 5, 10, .08), 0 3px 10px rgba(0, 5, 10, .05); border-radius: 2px; }
/* Vorlage nachgemessen: Text 12 px in #333, Datum im Titel #999 */
.heute-anmeldung { padding: 13px 18px 12px; font-size: .75rem; color: #333; line-height: 1.5; }
.heute-anmeldung div + div { margin-top: 10px; }
.heute-karte > header { display: flex; align-items: center; gap: 6px; padding: 10px 16px 9px; border-bottom: 1px solid #c9ced4; color: var(--u-akzent); font-size: .88rem; }
.heute-karte > header .u-rss { width: 16px; height: 16px; margin-left: 2px; }
.heute-karte > header a { margin-left: auto; font-size: .8125rem; font-weight: 600; }
.heute-nachrichten { padding: 4px 16px 10px; font-size: .75rem; color: #333; }
.heute-nachrichten .leer { padding: 6px 0 2px; }
.heute-nachricht { padding: 8px 0; border-bottom: 1px solid var(--u-linie-2); white-space: pre-wrap; }
.heute-nachricht:last-child { border-bottom: 0; }
.heute-nachricht b { display: block; font-weight: 600; margin-bottom: 2px; }
details.heute-nachricht summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
details.heute-nachricht summary::-webkit-details-marker { display: none; }
details.heute-nachricht summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--u-grau); border-bottom: 1.5px solid var(--u-grau); transform: rotate(-45deg); transition: transform .15s; flex: none; }
details.heute-nachricht[open] summary::before { transform: rotate(45deg); }
details.heute-nachricht > div { padding: 4px 0 0 13px; }
.heute-tabelle { font-size: .8125rem; }
.heute-tabelle > thead th { font-size: .75rem; }
.heute-tabelle td { vertical-align: middle; }
.heute-tabelle .geaendert { background: #e3f6ec; }
.heute-tabelle tr.entfall td { color: var(--u-grau-2); text-decoration: line-through; }
.heute-tabelle .wert-neu { display: inline-block; background: var(--u-gruen-label); color: #fff; font-weight: 600; padding: 0 4px; border-radius: 2px; }
.heute-tabelle .stoff { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-grau); }
.heute-hinweis { font-size: .8125rem; padding: 10px 16px; display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------------ Listen, Filter, Kennzeichen */

.u-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; margin-bottom: 1rem; }
.u-filter .u-feld { display: flex; flex-direction: column; gap: .25rem; }
.u-filter .u-feld > span { font-size: .75rem; font-weight: 600; color: var(--u-text); }
.u-filter .form-control, .u-filter .form-select { width: auto; min-width: 140px; }
.u-filter .u-rechts { margin-left: auto; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

.u-leer { text-align: center; color: var(--u-grau); padding: 2.2rem 1rem; font-size: .9rem; }
.u-leer .bi { display: block; font-size: 2.2rem; color: var(--u-grau-3); margin-bottom: .5rem; }

.u-liste { list-style: none; margin: 0; padding: 0; }
.u-liste > li { display: flex; gap: 1rem; align-items: flex-start; padding: .8rem 1.1rem; border-bottom: 1px solid var(--u-linie-2); }
.u-liste > li:last-child { border-bottom: 0; }
.u-liste > li.klickbar { cursor: pointer; }
.u-liste > li.klickbar:hover { background: #f7f8fa; }
.u-datum { width: 52px; flex: none; text-align: center; line-height: 1.1; border-radius: var(--u-radius); padding: .3rem 0; background: var(--u-grund); }
.u-datum b { display: block; font-size: 1.2rem; color: var(--u-titel); }
.u-datum small { display: block; font-size: .7rem; font-weight: 600; color: var(--u-grau); text-transform: uppercase; letter-spacing: .03em; }
.u-datum.heute { background: var(--u-akzent-hell); }
.u-datum.heute b, .u-datum.heute small { color: var(--u-akzent-dunkel); }
.u-zeilentext { flex: 1; min-width: 0; }
.u-zeilentext .titel { font-weight: 600; color: var(--u-titel); }
.u-zeilentext .unter { font-size: .8125rem; color: var(--u-grau); }
.u-fachbalken { width: 4px; align-self: stretch; border-radius: 2px; background: var(--fach, var(--u-grau-3)); flex: none; }
.u-chip { display: inline-flex; align-items: center; gap: .3rem; background: var(--u-grund); color: var(--u-text); border-radius: 999px; padding: .12rem .65rem; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.u-chip.orange { background: var(--u-akzent-hell); color: #b5451a; }
.u-chip.gruen { background: var(--u-gruen-hell); color: #0f6b40; }
.u-chip.rot { background: var(--u-rot-hell); color: #a1262b; }
.u-chip.gelb { background: var(--u-gelb-hell); color: #6b4e00; }
.u-chip.lila { background: #efe8fb; color: #5b3fa0; }
/* Kennzahlen über der Abwesenheitsliste (neues Vorbild-Design: Kacheln als Schnellfilter) */
.abw-kennzahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.abw-kz { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border: 1px solid var(--u-linie, #e3e7eb); border-left: 4px solid #3b78c2;
  border-radius: 8px; background: var(--u-flaeche, #fff); color: inherit; text-align: left; font: inherit; transition: box-shadow .15s, transform .15s; }
button.abw-kz:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); transform: translateY(-1px); }
.abw-kz b { font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.abw-kz span { font-size: .8rem; color: var(--u-grau-2, #67747e); }
.abw-kz.rot { border-left-color: #d64545; } .abw-kz.gelb { border-left-color: #f0b429; } .abw-kz.lila { border-left-color: #8e6bd1; } .abw-kz.still { border-left-color: #9aa5ae; }
.abw-kz.aktiv { background: #eef4fb; border-color: #3b78c2; }
.u-chip .bi { font-size: .8rem; color: var(--u-grau-2); }

/* Status-Pillen in Tabellen („Geprüft“, „Prüfen“, „Eingeben“) */
.u-statuspille { display: inline-flex; align-items: center; justify-content: center; min-width: 80px; height: 32px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--u-grau-3); background: #fff;
  color: var(--u-text); font-weight: 600; font-size: .9375rem; white-space: nowrap; }
button.u-statuspille:hover { border-color: var(--u-grau); color: var(--u-titel); }
.u-statuspille.ok { border-color: #33c47a; color: #1f9d55; }
.u-auswahl { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--u-grau-2); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: none; }
.u-auswahl.an { border-color: var(--u-akzent); background: var(--u-akzent); }
.u-auswahl.an::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.u-tabelle-karte { background: #fff; box-shadow: var(--u-schatten); border-radius: 2px; overflow-x: auto; }
.u-tabelle { width: 100%; border-collapse: collapse; font-size: .9375rem; color: var(--u-titel); }
.u-tabelle th { font-size: .75rem; font-weight: 600; color: var(--u-text); padding: 14px 12px 12px; border-bottom: 1px solid var(--u-linie); white-space: nowrap; text-align: left; }
.u-tabelle td { padding: 9px 12px; border-bottom: 1px solid var(--u-linie-2); height: 50px; vertical-align: middle; }
.u-tabelle tr:last-child td { border-bottom: 0; }
.u-tabelle th:first-child, .u-tabelle td:first-child { padding-left: 17px; width: 56px; }
.u-tabelle tbody tr:hover td { background: #fafbfc; }

/* Kennzahlen (Übersicht) */
.u-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.u-kennzahl { background: #fff; border-radius: var(--u-radius); box-shadow: var(--u-schatten); padding: 1rem 1.1rem; display: flex; gap: .9rem; align-items: center; color: var(--u-text); text-decoration: none !important; }
.u-kennzahl:hover { box-shadow: 0 2px 10px rgba(36, 50, 61, .12); }
.u-kennzahl > .bi, .u-kennzahl > .u-sym { font-size: 1.5rem; color: var(--u-akzent); width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: var(--u-akzent-hell); display: flex; align-items: center; justify-content: center; flex: none; }
.u-kennzahl b { display: block; font-size: 1.45rem; color: var(--u-titel); line-height: 1.1; }
.u-kennzahl small { color: var(--u-grau); font-weight: 600; }

/* Elementwahl (Suchliste) */
.elementwahl .wahl-menue { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 1000; width: 300px; border-radius: 6px !important; box-shadow: var(--u-schatten-hoch) !important; border: 0 !important; overflow: hidden; }
.elementwahl .wahl-menue.show { display: block; }
.elementwahl .liste { max-height: 360px; overflow-y: auto; padding: 4px; }
.elementwahl .list-group-item { display: flex; gap: .75rem; font-size: .95rem; border-radius: 4px !important; padding: .45rem .75rem; }
.elementwahl .list-group-item b { min-width: 3.2rem; font-weight: 600; color: var(--u-titel); }
.elementwahl .list-group-item span { color: var(--u-grau); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
.elementwahl .list-group-item.active { background: #e9ecef; border-left: 0; }
.elementwahl .wahl-knopf { min-width: 110px; justify-content: center; }

/* ------------------------------------------------------------------ Anmeldung */

.anmeldung { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem; }
.anmeldung .karte { width: 100%; max-width: 420px; background: #fff; border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 5, 10, .06), 0 16px 40px rgba(0, 5, 10, .12); padding: 2.2rem 2.2rem 1.8rem; }
.anmeldung .kopf { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .45rem; margin-bottom: 1.6rem; }
.anmeldung .kopf .logo { width: 64px; height: 64px; }
.anmeldung .kopf b { font-size: 1.55rem; color: var(--u-titel); font-weight: 600; }
.anmeldung .kopf small { color: var(--u-grau); font-size: .85rem; text-transform: uppercase; }
.anmeldung h1 { font-size: 1.05rem; text-align: center; margin-bottom: 1.2rem; color: var(--u-titel); }
.anmeldung .form-control { min-height: 44px; }
.anmeldung .btn-primary { min-height: 44px; font-size: 1rem; }
.anmeldung .fuss { text-align: center; color: var(--u-grau-2); font-size: .78rem; margin-top: 1.4rem; }

/* ------------------------------------------------------------------ Stundenplan: Kopfzeile (Element, Woche mittig, „Heute“) */

.planleiste { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; margin: -14px 0 6px; min-height: 44px; }
.planleiste .links { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; min-width: 0; }
.planleiste .rechts { display: flex; justify-content: flex-end; align-items: center; gap: .5rem; }
.planleiste .mitte { display: flex; align-items: center; gap: 24px; }
.planleiste .zeitraum { font-weight: 600; font-size: .98rem; text-align: center; color: var(--u-titel); font-variant-numeric: tabular-nums; cursor: pointer; position: relative; margin: 0; white-space: nowrap; letter-spacing: .01em; }
.planleiste .zeitraum small { font-weight: 600; font-size: .78rem; color: var(--u-grau-2); margin-left: .5rem; }
.planleiste .zeitraum input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rundknopf { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--u-grau-2); display: inline-flex; align-items: center; justify-content: center; text-decoration: none !important; font-size: 1rem; }
.rundknopf:hover { background: rgba(255, 255, 255, .8); color: var(--u-titel); }
.rundknopf:disabled { opacity: .35; }
.rundknopf.aktiv { color: var(--u-akzent); background: var(--u-akzent-hell); }
.planleiste .rundknopf .bi { -webkit-text-stroke: .3px; }
.heute-pill { border-radius: 999px; background: var(--u-dunkel); color: #fff; border: 0; padding: 0 22px; height: 34px; font-weight: 600; font-size: .9375rem; text-decoration: none !important; display: inline-flex; align-items: center; box-shadow: 0 1px 3px rgba(0, 5, 10, .12); }
.heute-pill:hover { background: var(--u-dunkel-2); color: #fff; }
.element-pill { display: inline-flex; align-items: center; min-width: 0; }
.element-pill .elementwahl { min-width: 0; }
.element-pill .wahl-knopf { background: #fff !important; border: 1px solid #fff !important; border-radius: 999px !important; height: 34px; padding: 0 16px !important; font-weight: 600; color: var(--u-titel) !important; box-shadow: 0 1px 3px rgba(0, 5, 10, .12) !important; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; gap: 8px; }
.element-pill .wahl-knopf:hover { border-color: var(--u-titel) !important; }
.element-pill .wahl-knopf::after { display: none; }
.wahl-knopf .info { display: inline-flex; width: 15px; height: 15px; border-radius: 50%; background: var(--u-grau); color: #fff; font: italic 600 10px/15px Georgia, serif; align-items: center; justify-content: center; flex: none; }
.u-plantitel { display: none; }

/* ------------------------------------------------------------------ Stundenplan (Raster nach Unterrichtsstunden, Karten wie im Original) */

.tt { position: relative; display: grid; grid-template-columns: 54px repeat(var(--tage), minmax(0, 1fr)); column-gap: 16px; }
.tt-ecke { }
.tt-tag { padding: 0 .5rem 22px; text-align: center; color: var(--u-grau); font-size: 1.04rem; font-weight: 600; white-space: nowrap; }
.tt-tag.heute { color: var(--u-titel); font-weight: 600; }
.tt-leiste { padding: 0 1px 8px; display: flex; flex-direction: column; gap: 3px; }
.tt-ereignis {
  position: relative; background: #f4f6f8; color: var(--tt-text); font-size: 14px; font-weight: 600; line-height: 30px;
  padding: 0 8px 0 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tt-ereignis::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 4px; border-radius: 2px; background: #c45ce0; }
.tt-ereignis.hinweis::before { background: #e8a33a; }
.tt-ereignis.hinweis { color: #6b5a3a; }
.tt-achse { position: relative; }
.tt-zeit { position: absolute; left: 4px; font-size: 14px; line-height: 14px; font-weight: 600; color: var(--u-grau-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-zeit.beginn { transform: translateY(1px); }
.tt-zeit.ende { transform: translateY(-15px); }
.tt-nr { position: absolute; left: 14px; font-size: 12px; font-weight: 600; color: var(--u-grau-2); transform: translateY(30px); }
.tt-spalte { position: relative; }
.tt-linie { position: absolute; left: -8px; right: -8px; border-top: 1px solid var(--tt-linie); }
.tt-achse + .tt-spalte .tt-linie, .tt-achse + .tt-spalte .tt-jetzt:not(.heute) { left: -16px; }
.tt-spalte.frei { background: repeating-linear-gradient(-45deg, transparent, transparent 7px, rgba(0, 5, 10, .025) 7px, rgba(0, 5, 10, .025) 14px); }
.tt-spalte.frei.ferien, .tt-spalte.frei.feiertag, .tt-spalte.frei.frei { background: none; }
.tt-ferien { position: absolute; inset: 0 3px; z-index: 3; background: var(--u-ferien); color: #24323d; pointer-events: none; }
.tt-ferien .inhalt { position: absolute; left: 0; right: 0; top: 66%; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 .5rem; text-align: center; font-size: 14px; font-weight: 600; }
.tt-ferien .art .bi { font-size: 11px; vertical-align: 1px; }
/* Eigene Abwesenheit: graue Fläche HINTER den Stunden (Karten voll sichtbar darüber), Text dezent im freien Bereich */
/* eigene Abwesenheit: graue, halbdurchsichtige Fläche über den Karten (Karten bleiben anklickbar) */
.tt-abw { position: absolute; z-index: 3; pointer-events: none; left: -4px; width: calc(100% + 8px); border-radius: 4px; background: rgba(65, 77, 85, .22); }
.tt-abw-text { position: absolute; left: 0; right: 0; transform: translateY(-50%); padding: 0 .5rem; text-align: center; font-size: 12px; font-weight: 500;
  line-height: 16px; color: #5c6a74; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
@media (max-width: 767.98px) { .tt-abw { left: 0; width: 100%; } }
.tt.ohne-abwesenheiten .tt-abw { display: none; }
@media print { .tt-abw { background: #e6e9ec; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.tt-frei { position: absolute; top: 30%; left: 0; right: 0; text-align: center; color: var(--u-grau); font-size: .9rem; font-weight: 600; padding: 0 .5rem; }
/* Jetzt-Linie: dünn über alle Tage, am heutigen Tag kräftig, Uhrzeit links in dunkler Marke */
.tt-jetzt { position: absolute; left: -8px; right: -8px; border-top: 1px solid #414d55; z-index: 6; pointer-events: none; }
.tt-jetzt.heute { left: 0; right: 0; border-top-width: 3px; margin-top: -1px; }
.tt-jetzt-zeit { position: absolute; left: -3px; z-index: 7; transform: translateY(-50%); background: #414d55; color: #fff; font-size: 14px; font-weight: 600; line-height: 25px; width: 52px; text-align: center; border-radius: 4px; font-variant-numeric: tabular-nums; }

/* Stundenkarte */
.std {
  position: absolute; z-index: 2; overflow: hidden; cursor: pointer; background: #fff; color: var(--u-text);
  padding: 8px 24px 8px 18px; text-align: left; border-radius: 4px;
}
.std::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: var(--fach, #c3cbd2); }
.std:focus-visible { z-index: 5; outline: 2px solid rgba(245, 107, 42, .55); outline-offset: 1px; }
/* Beginn/Ende links in der Karte (Einstellung „Uhrzeiten auf den Karten“) */
.std.mit-zeit { padding-left: 44px; }
.std.mit-zeit::before { left: 34px; }
.std .zt { position: absolute; left: 6px; font-size: 10px; line-height: 12px; font-weight: 600; color: var(--u-grau-2); font-variant-numeric: tabular-nums; }
.std .zt.o { top: 8px; }
.std .zt.u { bottom: 8px; }
.std .z1 { font-size: 14px; font-weight: 600; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #414d55; }
.std .z2 { font-size: 12px; font-weight: 600; line-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #414d55; }
.std .z3 { font-size: 11.5px; line-height: 15px; color: var(--u-grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.std .lbl { display: inline-block; padding: 0 3px; background: var(--u-gruen-label); color: #fff; font-weight: 500; line-height: 16px; font-size: 12px; border-radius: 1px; }
.z1 .lbl { font-size: 14px; line-height: 16px; } /* wie Vorlage: Label in Zeile 1 genauso hoch wie die übrigen (16 px), nur größere Schrift */
.std .lbl.offen { background: var(--u-rot); }
.std .lbl.weg { text-decoration: line-through; text-decoration-thickness: 1px; }
.std .mks { position: absolute; top: 9px; right: 9px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.std .info { position: absolute; right: 9px; bottom: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--u-grau-2); color: #fff; font: italic 600 9px/12px Georgia, serif; text-align: center; }
.std.vergangen { background: #f3f5f7; }
.std.vergangen .z1, .std.vergangen .z2 { color: #5b6770; }

/* Marker (Karten und Legende) */
.mk-quadrat, .mk-kreis, .mk-dreieck, .mk-plus { display: inline-block; width: 12px; height: 12px; flex: none; }
/* Symbole wie im Original (SVG): Viereck grün mit runden Ecken */
.mk-quadrat { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-50 -50 300 300'%3E%3Cpolygon points='0,0 200,0 200,200 0,200' fill='%23199c5f' stroke='%23199c5f' stroke-width='100' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 12px 12px; }
.mk-plus { background: var(--u-gruen); border-radius: 2px; position: relative; }
.mk-plus::before, .mk-plus::after { content: ""; position: absolute; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.mk-plus::before { width: 8px; height: 1.8px; }
.mk-plus::after { width: 1.8px; height: 8px; }
.mk-kreis { background: var(--u-gelb); border-radius: 50%; }
.mk-dreieck { width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-50 -50 300 300'%3E%3Cpolygon points='100,0 0,173 200,173' fill='%23ff4040' stroke='%23ff4040' stroke-width='100' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 12px 12px; }

/* Zustände (mit schwebendem Schatten wie im Original) */
.std.geaendert, .std.offen, .std.buchung { background: var(--u-gruen-hell); box-shadow: var(--u-schatten-karte); }
/* Entfall wie im Original (Plan-Vorlage nachgemessen): Fläche #ffe5e5, Schrift durchgestrichen, rotes Dreieck #ff4040 */
.std.entfall, .std.abwesend { background: #ffe5e5; box-shadow: var(--u-schatten-karte); }
/* Durchstreichung genau auf halber Höhe der Großbuchstaben: eigener 0,75-px-Strich statt line-through (dessen Lage hängt von der Schrift ab
   und saß gut ½ px zu tief); die Zeile ist nur so breit wie ihr Text (gekürzt mit „…“ höchstens kartenbreit) */
/* nur bei echtem Entfall (Abwesenheit, die die Stunde entfallen lässt, trägt ebenfalls .entfall) – nicht bei abwesender Lehrkraft, deren
   Stunde stattfindet; macOS zeichnet die Linie selbst (karten.css) */
html:not(.is-mac) .std.entfall :is(.z1, .z2, .zt) {
  width: fit-content; max-width: 100%; --strich: .75px;
  /* Strich genau auf halber Höhe der Großbuchstaben (Einheit cap, unabhängig von Schrift und Zeilenhöhe) */
  text-decoration-line: underline; text-decoration-style: solid; text-decoration-skip-ink: none; text-decoration-thickness: var(--strich);
  text-underline-offset: calc(-.5cap - var(--strich) / 2); }
/* Zeile 1 (fett): 1-px-Strich, damit er neben der fetten Schrift deutlich zu sehen ist */
.std.entfall .z1 { --strich: 1px; }
.std.klausur { background: var(--u-gelb-hell); box-shadow: var(--u-schatten-karte); }
.std.bereitschaft { background: #f3f5f7; outline: 1px dashed #8d99a3; outline-offset: -1px; }
.std.bereitschaft::before { background: #20e0ee; }
.std.veranstaltung { background: var(--u-gruen-hell); box-shadow: var(--u-schatten-karte); }
.std.vorgemerkt { background: #fff; outline: 1px dashed #8d99a3; outline-offset: -1px; }
/* Raumsperre (Administration → Raumsperren): graue Fläche über die gesperrten Stunden, mittig „Gesperrt“ */
.std.gesperrt { display: flex; align-items: center; justify-content: center; background: #c8d0d7; box-shadow: none; cursor: default; }
.std.gesperrt::before { display: none; }
.std.gesperrt .z-gesperrt { padding: 0 6px; font-size: 12px; font-weight: 600; color: #24323d; text-align: center; white-space: normal; }
/* nicht bestätigte Buchung (in UntPlan noch nicht übernommen): gestrichelt grau wie „vorgemerkt“, oben rechts grünes Quadrat mit „?“ */
.std.buchung.unbestaetigt { background: #f1f5f8; box-shadow: none; outline: 1px dashed #8d99a3; outline-offset: -1px; }
.std.buchung.unbestaetigt::before { background: #b9c3cc; }
.mk-frage { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; flex: none; border-radius: 2px; background: #199c5f; }
.mk-frage::after { content: "?"; color: #fff; font: 700 10px/1 var(--u-schrift); }
.std.vorgemerkt::before { background: #8d99a3; }
/* Legende: ausgeblendete Statusfarben zeigen die Karte wie eine normale Stunde */
.tt.ohne-entfall .std.entfall, .tt.ohne-entfall .std.abwesend,
.tt.ohne-pruefung .std.klausur,
.tt.ohne-aenderung .std.geaendert, .tt.ohne-aenderung .std.offen, .tt.ohne-aenderung .std.buchung, .tt.ohne-aenderung .std.veranstaltung { background: #fff; box-shadow: none; }
.tt.ohne-entfall .std.entfall .mk-dreieck, .tt.ohne-entfall .std.abwesend .mk-dreieck, .tt.ohne-pruefung .std.klausur .mk-kreis,
.tt.ohne-aenderung .std .mk-quadrat, .tt.ohne-aenderung .std .mk-plus { visibility: hidden; }

/* Pausenzeile mit Aufsichten (trennt Blöcke) */
.tt-pause { position: absolute; left: 0; right: 0; background: transparent; border-top: 1px solid var(--tt-linie); }
.aufsicht {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 6px;
  background: #fff; color: var(--tt-text); padding: 0 8px 0 18px; overflow: hidden; white-space: nowrap;
  font-size: 12px; font-weight: 600;
}
.aufsicht span { overflow: hidden; text-overflow: ellipsis; }
.aufsicht::before { content: ""; position: absolute; left: 8px; top: 5px; bottom: 5px; width: 4px; border-radius: 2px; background: #b26cd8; }
/* Vertretung: grün mit grünem Label; im Plan der abwesenden Lehrkraft grau gestrichelt (wie abwesende Stunden) */
.aufsicht.vertreten { background: #f1f5f8; outline: 1px dashed #9aa7af; outline-offset: -1px; box-shadow: none; color: #5b6770; }
.aufsicht.vertreten::before { background: #b26cd8; }   /* vertretene Aufsicht behält den lila Aufsichtsbalken */
.aufsicht.vertretung { background: var(--u-gruen-hell); }
.aufsicht .lbl-auf { margin-left: auto; flex: none; font-size: 10.5px; line-height: 14px; font-weight: 600; color: #fff; background: var(--u-gruen-label); border-radius: 2px; padding: 0 4px; }
.aufsicht .mk-plus { order: 2; margin-left: auto; }

/* Tagesauswahl (Mobil) */
.tt-tagwahl { display: none; gap: 4px; margin-bottom: .6rem; overflow-x: auto; }
.tt-tagwahl button { flex: 1; border: 0; background: #fff; border-radius: 999px; padding: .3rem .4rem; font-weight: 600; font-size: .8125rem; color: var(--u-grau); box-shadow: var(--u-schatten); line-height: 1.15; }
.tt-tagwahl button small { display: block; font-weight: 600; font-size: .7rem; }
.tt-tagwahl button.aktiv { background: var(--u-dunkel); color: #fff; }

/* Liste eines Tages */
.tt-liste { display: flex; flex-direction: column; gap: 6px; }
.tt-liste .eintrag { display: flex; gap: .75rem; align-items: stretch; }
.tt-liste .zeit { width: 64px; flex: none; font-size: 12px; color: var(--u-grau-2); padding-top: 8px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.tt-liste .zeit b { display: block; color: #414d55; font-size: 13px; font-weight: 600; }
.std.ohne-details { cursor: default; }
.tt-liste .std { position: relative; flex: 1; min-width: 0; min-height: 52px; box-shadow: none; border: 1px solid #e3e7eb; }
.tt-liste .std.geaendert, .tt-liste .std.offen, .tt-liste .std.entfall, .tt-liste .std.klausur, .tt-liste .std.veranstaltung, .tt-liste .std.abwesend { border-color: transparent; }
.tt-liste .aufsicht { position: relative; left: auto; right: auto; flex: 1; height: 30px; font-size: 12px; box-shadow: none; border: 1px solid #e3e7eb; }
.tt-liste .tt-ereignis { border: 1px solid #e3e7eb; line-height: 32px; }
.tt-liste .eintrag.jetzt .zeit b { color: var(--u-akzent-dunkel); }
.tt-liste .eintrag.jetzt .std { box-shadow: 0 0 0 2px rgba(245, 107, 42, .45); }

/* ------------------------------------------------------------------ Legende unten mittig, Hilfe unten rechts */

.u-legende-leiste {
  position: fixed; bottom: 16px; left: calc(var(--u-leiste) + (100vw - var(--u-leiste)) / 2); transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 26px; padding: 7px 8px; box-shadow: 0 2px 6px rgba(0, 5, 10, .1), 0 8px 24px rgba(0, 5, 10, .12);
}
.u-app.zu .u-legende-leiste { left: calc(var(--u-leiste-zu) + (100vw - var(--u-leiste-zu)) / 2); }
.u-legende-pille { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px 0 10px; border-radius: 999px; border: 1.5px solid var(--u-dunkel); background: var(--u-dunkel); color: #fff; font-weight: 600; font-size: .95rem; }
.u-legende-pille.aus { background: #fff; color: var(--u-text); border-color: var(--u-grau-3); }
.u-legende-pille .lg-mk { width: 21px; height: 20px; flex: none; }
.u-legende-mehr { width: 30px; height: 34px; border: 0; background: none; color: var(--u-grau); font-size: 1.15rem; border-radius: 50%; }
.u-legende-mehr:hover { background: var(--u-hover); }
.u-legende-menue { position: absolute; bottom: calc(100% + 10px); right: 0; width: 290px; background: #fff; border-radius: 8px; box-shadow: var(--u-schatten-hoch); padding: 8px 0; font-size: .875rem; }
.u-legende-menue .eintrag { display: flex; align-items: center; gap: 10px; padding: 6px 16px; color: var(--u-text); }
.u-legende-menue .eintrag i.feld { width: 22px; height: 16px; border-radius: 2px; display: inline-block; flex: none; }
.u-legende-menue hr { margin: 6px 0; border-color: var(--u-linie-2); opacity: 1; }
.u-legende-menue button.eintrag { width: 100%; border: 0; background: none; text-align: left; font-weight: 600; }
.u-legende-menue button.eintrag:hover { background: var(--u-hover); }
.std-lbl { display: inline-block; padding: 0 3px; background: var(--u-gruen-label); color: #fff; font-weight: 600; line-height: 15px; font-size: 11px; border-radius: 1px; }
.std-lbl.weg { text-decoration: line-through; }
.u-hilfe-rund { position: fixed; right: 22px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--u-text); z-index: 30;
  box-shadow: 0 2px 6px rgba(0, 5, 10, .12), 0 6px 18px rgba(0, 5, 10, .1); display: inline-flex; align-items: center; justify-content: center; }
.u-hilfe-rund .u-sym { width: 30px; height: 30px; stroke-width: 1.3; }
.u-hilfe-rund:hover { color: var(--u-akzent); }
.u-legende { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .78rem; color: var(--u-grau); margin-top: .75rem; align-items: center; }
.u-legende span { display: inline-flex; align-items: center; gap: .4rem; }
.u-legende i.feld { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

/* ------------------------------------------------------------------ Tagesübersicht */

.tagplan { overflow-x: auto; background: #fff; border-radius: 2px; box-shadow: var(--u-schatten); }
.tagplan-gitter { display: grid; min-width: 900px; }
.tagplan-kopf { border-bottom: 1px solid var(--tt-linie); border-left: 1px solid var(--tt-linie); padding: .45rem .3rem; font-size: 11px; text-align: center; color: var(--u-grau-2); background: #fff; }
.tagplan-kopf b { display: block; font-size: 13px; color: #414d55; font-weight: 600; }
.tagplan-element { padding: .5rem .75rem; border-bottom: 1px solid var(--tt-linie); font-weight: 600; font-size: 14px; color: var(--u-titel); position: sticky; left: 0; background: #fff; z-index: 3; }
.tagplan-element small { display: block; font-weight: 400; color: var(--u-grau-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tagplan-zelle { border-bottom: 1px solid var(--tt-linie); border-left: 1px solid var(--tt-linie); padding: 3px; display: grid; gap: 3px; align-content: start; background: #f4f6f8; }
.tagplan .std { position: relative; min-height: 58px; }

/* ------------------------------------------------------------------ Vertretungsplan */

.vt-zeile.entfall td { color: var(--u-grau); }
.vt-zeile.offen .vt-lehrer { color: var(--u-rot); font-weight: 600; }
.vt-zeile .lbl-neu { display: inline-block; padding: 0 4px; border-radius: 2px; background: var(--u-gruen-label); color: #fff; font-weight: 600; font-size: .8125rem; line-height: 18px; }
.vt-zeile .lbl-neu.weg { text-decoration: line-through; }
.vt-tagkopf { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.vt-tagkopf b { font-size: 1.05rem; }

/* ------------------------------------------------------------------ Stundendetails (Fläche rechts der Navigation wie im Original) */

.fachpunkt { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.anw-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; max-height: 360px; overflow-y: auto; }
.raum-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.raum-wahl .btn { border-radius: var(--u-radius); flex-direction: column; align-items: flex-start; }
.raum-wahl .btn.active { background: var(--u-akzent); border-color: var(--u-akzent); color: #fff; }
.raum-wahl .btn.active small { color: rgba(255, 255, 255, .8) !important; }

.stundendetails.modal { padding: 0 !important; }
.stundendetails .modal-dialog { position: fixed; top: 0; bottom: 0; right: 0; left: var(--u-leiste); max-width: none; width: auto; margin: 0; height: 100%; transform: none !important; }
.u-app.zu ~ .stundendetails .modal-dialog, body.leiste-zu .stundendetails .modal-dialog { left: var(--u-leiste-zu); }
.stundendetails .modal-content { border: 0; border-radius: 0; height: 100%; max-height: none; box-shadow: -4px 0 18px rgba(0, 5, 10, .08); }
.stundendetails.fade .modal-dialog { transition: opacity .15s ease; }
.sd-kopf { display: flex; align-items: flex-start; gap: 1rem; padding: 18px 28px 6px 166px; }
.sd-kopf.grau { background: #f3f5f7; }
.sd-kopf .sd-knoepfe { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.sd-kopf .sd-knoepfe button { border: 0; background: none; color: var(--u-grau-2); padding: 0; font-size: 1.35rem; line-height: 1; }
.sd-kopf .sd-knoepfe button:hover { color: var(--u-titel); }
.sd-titel h2 { font-size: 1.4rem; font-weight: 600; margin: 0 0 .35rem; color: var(--u-titel); display: flex; flex-wrap: wrap; align-items: center; gap: .1rem; }
.sd-titel .trenn { color: #b8c1c9; font-weight: 400; margin: 0 .55rem; }
.sd-zeile { font-size: .9375rem; color: var(--u-titel); }
.sd-zeile .trenn { color: #b8c1c9; margin: 0 .55rem; }
.sd-zeile .lbl { display: inline-block; padding: 0 4px; border-radius: 1px; background: var(--u-gruen-label); color: #fff; font-weight: 600; line-height: 18px; }
.sd-badge { margin-left: .75rem; font-size: .68rem; font-weight: 600; letter-spacing: .04em; border: 1.5px solid var(--u-titel); border-radius: 999px; padding: .1rem .55rem; }
.sd-leiste { background: var(--u-rot); color: #fff; font-weight: 600; font-size: .8rem; letter-spacing: .06em; padding: .3rem 166px; }
.sd-leiste.gruen { background: var(--u-gruen); }
.sd-reiter { gap: 1.8rem; padding: 0 0 0 150px; border-bottom: 1px solid var(--u-linie); flex-wrap: nowrap; }
.sd-reiter button { border: 0; background: none; padding: .55rem 1rem .5rem; font-weight: 600; color: var(--u-titel); border-bottom: 3px solid transparent; margin-bottom: -1px; font-size: 1.02rem; }
.sd-reiter button:hover { color: var(--u-akzent-dunkel); }
.sd-reiter button.aktiv { color: var(--u-akzent-dunkel); border-bottom-color: var(--u-akzent); }
.sd-rumpf { padding: 32px 100px 32px 100px; }
.sd-abschnitt { margin-bottom: 2rem; max-width: 1420px; }
.sd-abschnitt-kopf { display: flex; align-items: center; gap: .9rem; padding-bottom: .65rem; margin-bottom: 1rem; border-bottom: 1px solid var(--u-linie); font-weight: 600; color: var(--u-titel); font-size: .98rem; }
.sd-abschnitt-kopf > .bi, .sd-abschnitt-kopf > .u-sym { font-size: 1.2rem; color: var(--u-grau-2); width: 26px; height: 26px; }
.sd-zahl { background: #eef1f4; border-radius: 999px; min-width: 26px; padding: 0 .45rem; text-align: center; font-size: .85rem; line-height: 26px; font-weight: 600; }
.sd-text { margin: 0; white-space: pre-wrap; color: var(--u-text); }
.sd-stift { border: 1.5px solid #9aa5ae; border-radius: 50%; width: 32px; height: 32px; background: #fff; color: #5b6770; display: inline-flex; align-items: center; justify-content: center; }
.sd-stift:hover { border-color: var(--u-akzent); color: var(--u-akzent); }
.sd-pille { border: 1.5px solid var(--u-grau-3); background: #fff; color: var(--u-text); border-radius: 999px; padding: .45rem 1.35rem; font-weight: 600; font-size: 1rem; display: inline-flex; align-items: center; gap: .5rem; }
.sd-pille:hover:not(:disabled) { border-color: var(--u-grau-2); color: var(--u-titel); }
.sd-pille:disabled { opacity: .45; }
.sd-pille.klein { padding: .3rem 1rem; font-size: .9rem; }
.sd-pille.grau { background: #e9edf0; border-color: #e9edf0; color: #8a96a1; }
.sd-pille.grau:not(:disabled) { color: var(--u-titel); }
.sd-pille.primaer { background: var(--u-akzent); border-color: var(--u-akzent); color: #fff; }
.sd-pille.primaer:hover:not(:disabled) { background: var(--u-akzent-dunkel); border-color: var(--u-akzent-dunkel); color: #fff; }
.sd-fuss { display: flex; flex-wrap: wrap; gap: .6rem; padding: 14px 100px; border-top: 1px solid var(--u-linie); }
.sd-fuss.rechts { justify-content: flex-end; }
.sd-kacheln { display: grid; grid-template-columns: repeat(auto-fill, 160px); gap: 4px; }
.sd-kachel { position: relative; display: grid; grid-template-columns: 50px 1fr; grid-template-rows: auto auto; column-gap: .5rem; padding: .55rem .55rem .45rem; border: 1px solid #e3e7eb; border-radius: 1px; background: #fff; min-height: 84px; cursor: pointer; user-select: none; }
.sd-kachel.weg, .sd-kachel.spaet { background: #fff; }
.sd-kachel.da { background: #f2f4f6; }
.sd-kachel.befreit { background: #fff; outline: 1px dashed var(--u-grau-3); outline-offset: -1px; }
.sd-kachel.gewaehlt { outline: 2px solid var(--u-akzent); outline-offset: -2px; }
.sd-kachel .sd-avatar { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--u-graustufe-6); color: #8d99a3; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 600; align-self: start; }
.sd-kachel .sd-name { display: flex; flex-direction: column; font-size: .875rem; line-height: 1.2; color: var(--u-titel); min-width: 0; }
.sd-kachel .sd-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-kachel .sd-statusbild.frueh { border-radius: 50%; background: #8e6bd1; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 9px; }
.sd-kachel .sd-minuten { position: absolute; top: 4px; right: 6px; font-size: 11px; font-weight: 600; color: #a8730b; background: #fff4d6; border-radius: 8px; padding: 0 6px; line-height: 16px; }
.sd-kachel.frueh .sd-minuten { color: #5b3fa0; background: #efe8fb; }
.sd-kachel .sd-minuten.gewertet { color: #fff; background: #d64545; }
.sd-kachel.weg .sd-name { color: #9aa5ae; }
.sd-kachel.spaet .sd-name, .sd-kachel.frueh .sd-name { color: #5d6a74; }
.sd-kachel.spaet { background: #fffaf0; border-color: #f3dca5; }
.sd-kachel.frueh { background: #f8f5fd; border-color: #ddd0f3; }
.vs-schnell { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 10px; }
.ad-pille.klein { padding: 1px 10px; font-size: 11.5px; }
.vs-vorschau { font-size: 12px; padding: 7px 10px; border-radius: 6px; background: #eef4fb; color: #1e3f66; margin-bottom: 10px; display: flex; gap: 8px; align-items: flex-start; }
.vs-vorschau.warnung { background: #fdecec; color: #8a1f1f; }
.ad-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin: 2px 0 10px; }
.sd-kachel .sd-status { position: absolute; top: 6px; left: 6px; width: 15px; height: 15px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 9px; z-index: 1; }
.sd-kachel.da .sd-status { background: #1f9d55; }
.sd-kachel.weg .sd-status { background: var(--u-rot); }
.sd-kachel.spaet .sd-status { background: #f0b429; }
.sd-umschalten { grid-column: 2; justify-self: start; border: 0; background: none; padding: 0; color: var(--u-grau-2); font-size: 1rem; line-height: 1; margin-top: .25rem; }
.sd-umschalten:hover { color: var(--u-akzent); }
.sd-tabelle { font-size: .82rem; }
.sd-tabelle > thead th { font-size: .78rem; color: var(--u-titel); }
.sd-kontrolle { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2rem; padding-top: .75rem; color: var(--u-grau-2); font-size: 1rem; }
.sd-kontrolle .ok { color: var(--u-titel); }
.sd-kontrolle .ok .bi { color: #1f9d55; }
.sd-detail { display: flex; gap: 1.2rem; padding: .9rem 0; }
.sd-detail > .bi, .sd-detail > .u-sym { font-size: 1.2rem; color: var(--u-grau-2); width: 24px; height: 24px; text-align: center; flex: none; }
.sd-detail-titel { font-weight: 600; color: var(--u-titel); margin-bottom: .3rem; font-size: .9rem; }
.sd-wert { display: inline-block; background: #eef1f4; border-radius: 999px; padding: .15rem .7rem; font-size: .85rem; margin-right: .3rem; margin-bottom: .3rem; }
.sd-wert.neu { background: var(--u-gruen-hell); color: #0f6b40; }
.sd-plus { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #9aa5ae; background: #fff; color: #5b6770; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.sd-plus:hover { border-color: var(--u-akzent); color: var(--u-akzent); }
.sd-notiz { max-width: 1260px; }
.sd-formular { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr); gap: 1rem 2rem; align-items: start; max-width: 860px; margin: 0 auto; }
.sd-formular label { font-weight: 600; padding-top: .45rem; color: var(--u-titel); }
.sd-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.sd-chip { border: 0; border-radius: 999px; background: #eef1f4; color: #9aa5ae; padding: .3rem .85rem; font-size: .875rem; font-weight: 600; }
.sd-chip.an { color: var(--u-titel); background: #e3e8ec; }

/* ------------------------------------------------------------------ Mitteilungen */

.mt-raster { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.mt-liste { max-height: calc(100vh - 220px); overflow-y: auto; }
.mt-eintrag { display: flex; gap: .8rem; padding: .85rem 1rem; border-bottom: 1px solid var(--u-linie-2); cursor: pointer; border-left: 3px solid transparent; background: none; width: 100%; text-align: left; border-top: 0; border-right: 0; }
.mt-eintrag:hover { background: #f7f8fa; }
.mt-eintrag.aktiv { background: #f3f5f7; border-left-color: var(--u-akzent); }
.mt-eintrag .u-avatar { width: 36px; height: 36px; font-size: .78rem; }
.mt-eintrag .rumpf { flex: 1; min-width: 0; }
.mt-eintrag .kopf { display: flex; gap: .5rem; font-size: .8125rem; color: var(--u-grau); }
.mt-eintrag .kopf span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-eintrag .betreff { font-weight: 600; color: var(--u-titel); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-eintrag .vorschau { font-size: .8125rem; color: var(--u-grau-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-eintrag.neu .betreff, .mt-eintrag.neu .kopf span:first-child { font-weight: 600; color: var(--u-titel); }
.mt-eintrag.neu::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--u-akzent); flex: none; margin-top: .35rem; }
.mt-lesen { padding: 1.4rem 1.6rem; min-height: 320px; }
.mt-lesen h2 { font-size: 1.3rem; margin-bottom: .6rem; }
.mt-meta { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--u-linie-2); font-size: .875rem; color: var(--u-grau); }
.mt-meta b { color: var(--u-titel); }
.mt-text { white-space: pre-wrap; line-height: 1.55; color: var(--u-text); }
.mt-anhaenge { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.mt-anhang { display: inline-flex; align-items: center; gap: .45rem; border: 1.5px solid var(--u-grau-3); border-radius: 999px; padding: .25rem .85rem; font-weight: 600; font-size: .85rem; color: var(--u-titel); background: #fff; }
.mt-anhang:hover { border-color: var(--u-grau-2); text-decoration: none; }
.mt-empfaenger { display: flex; flex-wrap: wrap; gap: .35rem; }

/* ------------------------------------------------------------------ Klassenbuch: Dienste, Sitzplan, Berichte */

.kd-raster { overflow-x: auto; }
.kd-raster table { border-collapse: collapse; font-size: .875rem; background: #fff; }
.kd-raster th, .kd-raster td { border: 1px solid var(--u-linie-2); padding: 6px 8px; text-align: center; white-space: nowrap; }
.kd-raster th:first-child, .kd-raster td:first-child { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; min-width: 190px; }
.kd-raster thead th { font-size: .75rem; color: var(--u-text); background: #f7f8fa; }
.kd-raster td.summe, .kd-raster th.summe { font-weight: 600; background: #f7f8fa; }
.kd-raster tfoot td { font-weight: 600; background: #f7f8fa; }
/* Sitzplan: eigene Stildatei css/sitzplan.css (von js/ansichten/sitzplan.js geladen) */
.br-gruppe { margin-bottom: 1.4rem; }
.br-gruppe h3 { font-size: .98rem; font-weight: 600; margin: 0 0 .5rem; display: flex; align-items: center; gap: .5rem; }
.br-gruppe h3 .u-sym { width: var(--u-icon); height: var(--u-icon); color: var(--u-icon-farbe); }
.br-zeile { display: flex; align-items: center; gap: 1rem; padding: .55rem 1rem; background: #fff; border-bottom: 1px solid var(--u-linie-2); }
.br-zeile:first-of-type { border-radius: 2px 2px 0 0; }
.br-zeile .name { flex: 1; font-weight: 600; color: var(--u-titel); }
.br-zeile.aktiv { background: var(--u-akzent-hell); }
.br-vorschau { background: #fff; box-shadow: var(--u-schatten); border-radius: 2px; }
.br-vorschau h2 { font-size: 1.1rem; margin: 0; }
.br-druckkopf { display: none; }

/* ------------------------------------------------------------------ Monitor */

.monitor { background: #0f1c26; color: #e7edf1; min-height: 100vh; padding: 1.5rem 0; font-size: 1.15rem; }
.monitor-kopf { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.monitor-kopf .logo { width: 48px; height: 48px; color: var(--u-graustufe-5); }
.monitor-kopf h1 { font-size: 1.8rem; margin: 0; font-weight: 600; color: #fff; }
.monitor-kopf .uhr { margin-left: auto; font-size: 2.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.monitor .card { background: #16283a; --bs-card-bg: #16283a; --bs-card-border-color: #24394d; --bs-card-cap-bg: #1b3046; color: #e7edf1; box-shadow: none; }
.monitor .card-header { font-size: 1.25rem; color: #fff; border-bottom-color: #24394d; }
.monitor .table { --bs-table-bg: transparent; --bs-table-color: #e7edf1; --bs-table-hover-bg: rgba(255,255,255,.04); --bs-table-border-color: #24394d; font-size: 1.05rem; color: #e7edf1; }
.monitor .table > thead th { color: #8fa9bc; font-size: .85rem; }
.monitor .entfall td { color: #8fa9bc; }
.monitor .alt { color: #7f97a8; }
.monitor .offen .vt-lehrer { color: #ff8f86; }
.monitor .nachricht { background: rgba(255, 255, 255, .06); border-left: 3px solid var(--u-akzent); padding: .6rem .9rem; margin-bottom: .6rem; }
.monitor-rollbereich { max-height: calc(100vh - 230px); overflow: hidden; }
.monitor-ticker { position: fixed; left: 0; right: 0; bottom: 0; background: #16283a; color: #fff; font-size: 1.2rem; font-weight: 600; padding: .5rem 0; overflow: hidden; white-space: nowrap; border-top: 2px solid var(--u-akzent); }
.monitor-ticker span { display: inline-block; padding-left: 100%; animation: ticker 40s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ------------------------------------------------------------------ Druck */

@media print {
  body { background: #fff; }
  .u-leiste, .u-kopfleiste, .u-schleier, .nicht-drucken, .tt-tagwahl, .u-toasts, .u-aktionen, .u-filter .btn, .u-legende-leiste, .u-hilfe-rund, .u-werkzeug { display: none !important; }
  .u-haupt, .u-app.zu .u-haupt { margin-left: 0 !important; }
  .u-inhalt { padding: 0 !important; max-width: none; }
  .card, .u-panel, .tagplan, .u-tabelle-karte, .br-vorschau, .heute-karte { box-shadow: none !important; border: 1px solid #dfe3e8; }
  .std { box-shadow: none !important; border: 1px solid #cfd6dc; }
  .tt-jetzt, .tt-jetzt-zeit { display: none; }
  .std, .tagplan-zelle, .card { break-inside: avoid; }
  .tt { --tage: 5; }
  .tt .tt-tag, .tt .tt-spalte, .tt .tt-leiste { display: block !important; }
  .u-plantitel { display: flex; margin: 0 0 .5rem; }
  .u-plantitel h2 { font-size: 1.1rem; }
  .br-druckkopf { display: block; margin-bottom: .5rem; }
  .br-seite { break-after: page; }
  body.mt-druck [data-listenspalte] { display: none !important; }
  body.mt-druck .mt-raster { display: block; }
}

/* ------------------------------------------------------------------ Schmale Bildschirme */

@media (max-width: 991.98px) {
  .u-kopfleiste {
    display: flex; align-items: center; gap: .6rem; position: sticky; top: 0; z-index: 1030; height: var(--u-kopf); padding: 0 .75rem;
    background: #fff; box-shadow: none; transition: box-shadow .15s ease;
  }
  body.gescrollt .u-kopfleiste { box-shadow: 0 1px 0 var(--u-linie), 0 2px 8px rgba(36, 50, 61, .05); }
  .u-kopfleiste .logo { width: 30px; height: 30px; }
  .u-kopfleiste b { font-size: 1.05rem; color: var(--u-titel); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
  .u-kopfleiste .rundknopf { width: 40px; height: 40px; color: var(--u-text); }
  .u-kopfleiste .rundknopf .u-sym { width: 24px; height: 24px; }
  .u-leiste, .u-app.zu .u-leiste { width: min(300px, 86vw); transform: translateX(-102%); box-shadow: var(--u-schatten-hoch); }
  .u-app.offen .u-leiste { transform: none; }
  .u-app.offen .u-schleier { display: block; position: fixed; inset: 0; z-index: 1035; background: rgba(36, 50, 61, .4); }
  .u-haupt, .u-app.zu .u-haupt { margin-left: 0; }
  .u-griff { display: none; }
  .u-fuss { padding-top: 10px; border-top: 1px solid var(--u-linie-2); }
  /* eingeklappte Darstellung gilt nicht für das Ausklappmenü */
  .u-app.zu .u-marke span, .u-app.zu .u-unterkopf b, .u-app.zu .u-abmelden span { display: revert; }
  .u-app.zu .u-jahrzeile { display: block; }
  .u-app.zu .u-benutzer-text { display: flex; }
  .u-app.zu .u-nav-text { display: block; }
  .u-app.zu .u-nav-punkt .u-zahl { position: static; }
  .u-inhalt { padding: 1rem 1rem 6rem; }
  .u-seitenkopf { margin-bottom: 1rem; }
  .u-seitenkopf h1 { font-size: 1.15rem; }
  .mt-raster { grid-template-columns: 1fr; }
  .mt-liste { max-height: none; }
  .u-legende-leiste, .u-app.zu .u-legende-leiste { left: 50%; bottom: 12px; }
  .u-hilfe-rund { display: none; }
  .stundendetails .modal-dialog, .u-app.zu ~ .stundendetails .modal-dialog { left: 0; }
  .sd-kopf { padding: 14px 16px 6px 16px; }
  .sd-reiter { padding: 0 6px; }
  .sd-leiste { padding-left: 16px; }
  .sd-rumpf { padding: 18px 16px; }
  .sd-fuss { padding: 10px 16px; }
  .u-werkzeug { padding: 12px 16px; min-height: 0; }
  .u-mit-werkzeug .u-inhalt { padding-left: 1rem; }
  .u-suche { min-width: 0; flex: 1 1 100%; }
  .u-zeitraum { margin-left: 0; flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 1199.98px) {
  .planleiste { grid-template-columns: auto 1fr auto; }
  .planleiste .mitte { justify-content: center; gap: 4px; }
}

@media (max-width: 767.98px) {
  .tt-tagwahl { display: flex; }
  .tt { grid-template-columns: 58px 1fr; }
  .tt .tt-tag:not(.gewaehlt), .tt .tt-spalte:not(.gewaehlt), .tt .tt-leiste:not(.gewaehlt) { display: none; }
  .tt-tag { padding-bottom: 12px; }
  .elementwahl .wahl-menue { width: calc(100vw - 2rem); }
  .monitor { padding: .75rem 0; font-size: 1rem; }
  .sd-formular { grid-template-columns: 1fr; gap: .4rem; }
  .u-filter .form-control, .u-filter .form-select { min-width: 0; width: 100%; }
  .u-filter .u-feld { flex: 1 1 140px; }
  .u-filter .u-rechts { margin-left: 0; width: 100%; }
  .planleiste { grid-template-columns: 1fr auto; margin: 0 0 8px; row-gap: 6px; }
  .planleiste .links { grid-column: 1 / -1; order: 3; justify-content: center; }
  .planleiste .mitte { justify-content: flex-start; }
  .planleiste .zeitraum { font-size: .9rem; }
  .planleiste .zeitraum small { display: none; }
  .element-pill .wahl-knopf { max-width: 60vw; }
  .table-responsive-stapel thead { display: none; }
  .u-liste > li { padding: .75rem 1rem; gap: .75rem; }
  .card-header { padding-left: 1rem; padding-right: 1rem; }
  .table-card > :not(caption) > * > *:first-child { padding-left: 1rem; }
  .table-card > :not(caption) > * > *:last-child { padding-right: 1rem; }
  .u-legende-pille { padding: 0 10px 0 8px; font-size: .85rem; gap: 6px; height: 32px; }
  .u-legende-leiste { gap: 4px; padding: 5px 6px; }
  .sd-kacheln { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .u-tabelle { font-size: .875rem; }
  .u-statuspille { min-width: 0; height: 30px; padding: 0 11px; font-size: .85rem; }
}

@media (max-width: 991.98px) {
  /* Titel steht in der Kopfleiste */
  .u-seitenkopf:has(.u-aktionen:empty) h1:empty { display: none; }
  .u-seitenkopf .u-aktionen { margin-left: 0; width: 100%; justify-content: flex-start; }
  .u-aktionen .btn { --bs-btn-padding-x: .8rem; --bs-btn-padding-y: .26rem; --bs-btn-font-size: .8125rem; }
  .u-unterzeile { margin-top: 0; }
}
@media (max-width: 767.98px) {
  .u-aktionen [data-drucken] { display: none; }
}
@media (max-width: 575.98px) {
  .u-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .6rem; }
  .u-kennzahl { padding: .75rem; gap: .6rem; }
  .u-kennzahl > .bi, .u-kennzahl > .u-sym { width: 36px; height: 36px; font-size: 1.15rem; }
  .u-kennzahl b { font-size: 1.2rem; }
  .u-kennzahl small { font-size: .74rem; }
}

/* ------------------------------------------------------------------ Ergänzungen */

.std .mehr { color: var(--u-grau); font-weight: 600; }
.nav-tabs .nav-link .bi { font-size: 1rem; }
.u-raster-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.u-einstellungen { max-width: 760px; }
.u-einstellungen .form-check { margin-bottom: .55rem; }
.u-rechte th, .u-rechte td { text-align: center; }
.u-rechte th:first-child, .u-rechte td:first-child { text-align: left; }
.u-rechte .ja { color: var(--u-gruen); font-weight: 600; }
.u-rechte .nein { color: var(--u-grau-3); }
.u-import-fehler td { background: #fdecec !important; }

/* ------------------------------------------------------------------ Feinabgleich nach den Portal-Screenshots (53–62) */

/* Original-Icons als Maske: grau, im aktiven Menüpunkt orange */
.u-sym.wu { display: inline-block; background-color: currentColor; -webkit-mask: var(--wu) center / contain no-repeat; mask: var(--wu) center / contain no-repeat; }
.u-rss { color: var(--u-akzent); font-size: 15px; line-height: 1; }

/* Menü wie die Vorlage (bei 125 % Zoom nachgemessen: Leiste 280 px, Punkte 50 px hoch, Symbol ab 27 px, Text ab 79 px):
   aktiver Punkt orange mit 4-px-Balken links über die ganze Höhe; beim Überfahren eine hellorange Fläche (#ffeae6) vom linken Rand
   bis 16 px vor den rechten Rand, rechts voll abgerundet, Text und Symbol orange */
.u-nav-punkt { padding-left: 21.5px; gap: 23px; }
.u-nav-punkt.aktiv, .u-nav-punkt.aktiv:hover { background: none; }
.u-nav-punkt.aktiv::before { top: 0; bottom: 0; border-radius: 0; }
.u-nav-punkt:hover, .u-nav-punkt.aktiv:hover { background: #ffeae6; color: var(--u-akzent); border-radius: 0 999px 999px 0; width: calc(100% - 16px); }
.u-nav-punkt:hover .u-nav-sym { color: var(--u-akzent); }
.u-nav-unter .u-nav-punkt { gap: 16px; padding-left: 21px; }

/* Kopfzeile des Plans: weißer „Heute“-Knopf (54.png), Elementwahl- und Datums-Pille (57.png) */
.heute-pill { background: #fff; color: var(--u-titel); box-shadow: 0 1px 3px rgba(0, 5, 10, .1), 0 2px 8px rgba(0, 5, 10, .05); padding: 0 32px; }
.heute-pill:hover { background: #fff; color: var(--u-titel); box-shadow: 0 0 0 1.5px var(--u-grau-3); }
/* aktuelle Woche bzw. heutiger Tag: „Heute“ dunkelgrau mit weißer Schrift (Vorlage) */
.heute-pill.aktuell, .heute-pill.aktuell:hover { background: var(--u-dunkel); color: #fff; box-shadow: none; }
.heute-pill.aktuell:hover { background: var(--u-dunkel-2); }
.planleiste .zeitraum { border: 0; background: none; padding: 4px 6px; border-radius: 999px; }
.planleiste .zeitraum.pille { border: 1.5px solid var(--u-grau-2); background: #fff; padding: 3px 14px; height: 32px; }
.planleiste .zeitraum.pille:hover { border-color: var(--u-text); }
/* Klassen-/Lehrkraft-/Raumwahl im Kopf des Stundenplans: rahmenlos, Rahmen nur beim Überfahren, bei Fokus und bei offener Liste */
.element-pill .wahl-knopf { background: transparent !important; border: 1.5px solid transparent !important; box-shadow: none !important; height: 32px; min-width: 110px; padding: 0 14px !important; overflow: visible;
  transition: border-color .15s ease, background-color .15s ease; }
.element-pill .wahl-knopf:is(:hover, :focus-visible, [aria-expanded="true"]) { border-color: var(--u-text) !important; background: rgba(255, 255, 255, .55) !important; }
.wahl-info { position: relative; display: inline-flex; width: 16px; height: 16px; flex: none; }
.wahl-info img { width: 16px; height: 16px; opacity: .6; }
.wahl-info::after { content: attr(data-tip); position: absolute; left: -48px; top: calc(100% + 12px); background: #5c6670; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; padding: 5px 9px; border-radius: 4px; display: none; z-index: 40; box-shadow: 0 2px 6px rgba(0, 5, 10, .15); }
.wahl-info:hover::after, .wahl-knopf:focus-visible .wahl-info::after { display: block; }
.wahl-info:hover img { opacity: 1; }

/* Datumsbereich-Pille im Kopf des Stundenplans (öffnet den eigenen Kalender, js/kalender.js – Stile in kalender.css).
   Rahmenlos; der Rahmen erscheint erst beim Überfahren, bei Tastaturfokus und bei offenem Kalender. */
.zeitraum.kal-pille, .planleiste .zeitraum.kal-pille { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--u-titel); font-size: .875rem; font-weight: 500; letter-spacing: .02em; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease; }
.zeitraum.kal-pille:hover, .zeitraum.kal-pille[aria-expanded="true"] { border-color: #67747e; background: rgba(255, 255, 255, .55); }
.zeitraum.kal-pille:focus-visible { border-color: #67747e; outline: 2px solid var(--u-akzent); outline-offset: 2px; }

/* Stundenkarten: weiß, leicht abgerundet, keine Hover-Reaktion; Uhrzeiten klein links wie 57.png */
.std, .tagplan .std, .tt-liste .std { border-radius: 4px; }
.std.mit-zeit { padding-left: 46px; }
.std.mit-zeit::before { left: 38px; }
.std .zt { left: 7px; font-size: 10px; color: #8a96a1; }
.std .z1 { font-weight: 600; color: #24323d; }
.std .z2 { color: #414d55; }
/* Symbole unten rechts: fällige Hausaufgabe, Info (Notizen, Vertretungstext) */
.std .ecke { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 3px; z-index: 1; }
.std .ecke img { width: 16px; height: 16px; display: block; }
.tt.ohne-symbole .std .mks, .tt.ohne-symbole .std .ecke { display: none; }
/* Lehrkraft abwesend (wie im Paket des Kollegen): gestrichelt, grau, ohne Schatten und ohne Entfall-Dreieck; eigenes Kürzel durchgestrichen */
.std.lehrer-abwesend { background: #eff3f6 !important; outline: 1px dashed #a3adb5; outline-offset: -1px; box-shadow: none !important; border-radius: 5px; }
.std.lehrer-abwesend::before { background: #c3cbd2; }
.std.lehrer-abwesend .z1, .std.lehrer-abwesend .z2, .std.lehrer-abwesend .zt { text-decoration: none; }
.std.lehrer-abwesend .z1 { color: #414d55; }
.std.lehrer-abwesend .z2 { color: #57626b; }
.std.lehrer-abwesend .zt { color: var(--u-grau-2); }
.std.lehrer-abwesend .lbl.weg { background: var(--u-gruen-label); color: #fff; font-weight: 600; padding: 0 3px; border-radius: 2px; text-decoration: line-through; text-decoration-thickness: 1px; }
.tt.ohne-abwesenheiten .std.lehrer-abwesend { display: none; }
.tt.ohne-abwesenheiten .tt-ereignis.hinweis { display: none; }
.hilfe-gestrichelt { display: inline-block; width: 22px; height: 14px; background: #f1f5f8; outline: 1px dashed #9aa7af; outline-offset: -1px; border-radius: 3px; flex: none; }

/* Legenden-Menü wie 56.png */
.u-legende-menue { width: 300px; padding: 14px 0 10px; border-radius: 6px; }
.u-legende-menue .kopf { font-size: 14px; font-weight: 600; color: var(--u-grau); padding: 8px 18px 6px; }
.u-legende-menue button.eintrag { padding: 8px 18px; font-weight: 600; color: var(--u-titel); gap: 12px; font-size: 14px; }
.u-legende-menue button.eintrag.ohne { padding-left: 24px; }
.u-legende-menue .haken { color: var(--u-akzent); font-size: 20px; line-height: 1; -webkit-text-stroke: .3px; }
.u-legende-menue .haken.leer { color: var(--u-grau-3); }
.u-legende-menue .haken.punkt { font-size: 19px; -webkit-text-stroke: 0; }
.u-hilfe-rund .bi { font-size: 28px; line-height: 1; }

/* Stundendetails wie 59/62 */
.sd-leiste.grau { background: #8a96a1; }
.sd-rumpf { padding: 40px 120px 40px 166px; } /* linksbündig mit dem Reiter „Klassenbuch“ (Kopf 166px) */
.sd-abschnitt { margin-bottom: 2.4rem; max-width: 1440px; }
.sd-abschnitt-kopf { font-weight: 600; font-size: 15px; gap: 16px; padding-bottom: 14px; margin-bottom: 18px; }
.sd-abschnitt-rumpf { padding-left: 42px; }
.kb-icon { width: 26px; height: 26px; flex: none; object-fit: contain; color: #8a96a1; }
.sd-detail > .kb-icon { width: 24px; height: 24px; }
.sd-werkzeug { border: 0; background: none; color: #67747e; font-size: 22px; line-height: 1; padding: 0; }
.sd-werkzeug:hover { color: var(--u-titel); }
.sd-stift { width: 34px; height: 34px; border-color: #8a96a1; color: #67747e; }
.sd-plus { width: 34px; height: 34px; font-size: 18px; border-color: #8a96a1; color: #67747e; }
.sd-kacheln { grid-template-columns: repeat(auto-fill, 160px); gap: 4px; }
.sd-kachel { grid-template-columns: 52px 1fr; padding: 8px 8px 6px; border: 1px solid #e3e7eb; min-height: 84px; }
.sd-kachel.da { background: #f2f4f6; }
.sd-kachel .sd-avatar { width: 48px; height: 48px; border: 0; background: #fff; overflow: hidden; }
.sd-kachel .sd-avatar img { width: 100%; height: 100%; }
.sd-kachel .sd-statusbild { position: absolute; top: 6px; left: 6px; width: 16px; height: 16px; z-index: 1; }
.sd-kachel .sd-statusbild.spaet { border-radius: 50%; background: #f0b429; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 9px; }
.sd-kachel .sd-name { font-size: 14px; padding-top: 6px; }
.sd-kachel.weg .sd-name { color: #9aa5ae; }
.sd-umschalten { font-size: 15px; margin-top: 2px; }
.sd-pille.gross { font-size: 1.05rem; padding: .5rem 1.6rem; }
.sd-fuss { padding: 14px 100px 14px 164px; }
.sd-fuss.sd-status { justify-content: flex-end; gap: 2.4rem; padding-right: 60px; font-size: 1.1rem; color: var(--u-grau-2); }
.sd-status .ok { color: #67747e; display: inline-flex; align-items: center; gap: .45rem; }
.sd-status .ok .bi { color: #2bb673; font-size: 1.45rem; }
.sd-statusknopf { border: 1.5px solid var(--u-akzent); background: #fff; color: var(--u-akzent-dunkel); border-radius: 999px; padding: .35rem 1.2rem; font-weight: 600; font-size: .95rem; }
.sd-statusknopf:hover { background: var(--u-akzent-hell); }
/* orange Pille wie im Vorbild („Lehrstoff eingeben“), daneben zweizeilig „Abwesenheitskontrolle ab:“ */
.sd-orange { border: 0; background: var(--u-akzent); color: #fff; border-radius: 999px; padding: .62rem 1.15rem; font-weight: 600; font-size: .95rem; line-height: 1.2; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.sd-orange:hover { background: var(--u-akzent-dunkel); }
.sd-orange:disabled { opacity: .55; }
.sd-kontrolle { display: inline-flex; flex-direction: column; align-items: flex-start; font-size: 1.05rem; color: #67747e; line-height: 1.55; }
.sd-fuss.sd-status { align-items: center; }
.sd-detail { gap: 1.4rem; padding: 1.1rem 0; max-width: 1360px; }
.sd-detail-titel { font-size: .95rem; font-weight: 600; }
.sd-notiz { min-height: 56px; }
.sd-notiz-knoepfe { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .5rem; }
.sd-leer { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 3rem 1rem; color: var(--u-grau); }
.sd-leer b { color: var(--u-titel); }

/* Alte Listenelemente des Klassenbuchs (60/61.png): Zellen grau gestreift mit weißen Fugen */
.alt-liste { border-collapse: separate; border-spacing: 2px; font-size: 12.5px; color: #24323d; }
.alt-liste th { font-size: 11px; font-weight: 600; color: #24323d; padding: 2px 6px; vertical-align: bottom; white-space: nowrap; text-align: center; }
.alt-liste td { padding: 3px 7px; white-space: nowrap; line-height: 16px; }
.alt-liste tbody tr:nth-child(odd) td { background: #dfe3e9; }
.alt-liste tbody tr.editor td { background: transparent !important; white-space: normal; padding: 6px 0 10px; }
.alt-liste td.mitte, .alt-liste th.mitte { text-align: center; }
.alt-liste td.text { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.alt-liste input[type=checkbox] { width: 13px; height: 13px; vertical-align: middle; }
.alt-liste img { vertical-align: middle; }
.alt-liste tr.vorstunde td { color: #5b6770; font-style: italic; }
.kb-stift, .kb-zeitknopf { border: 0; background: none; padding: 0 2px; line-height: 1; }
.kb-stift img, .kb-zeitknopf img { width: 16px; height: 16px; }
.kb-eintraege td.text { max-width: 200px; }
.kb-editor { background: #f7f8fa; border: 1px solid #e3e7eb; border-radius: 4px; padding: 12px 14px; margin: 8px 0; max-width: 760px; }
.kb-editor-titel { font-weight: 600; color: var(--u-titel); margin-bottom: .6rem; display: flex; align-items: center; gap: .4rem; }
.kb-formular { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: .5rem 1rem; align-items: start; }
.kb-formular label { font-size: .85rem; font-weight: 600; padding-top: .3rem; color: var(--u-text); }
.kb-hw { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; padding: .25rem 0; font-size: .9rem; color: var(--u-titel); }
.kb-hw .faellig { color: var(--u-grau); font-size: .82rem; white-space: nowrap; }
.kb-hw small { flex-basis: 100%; color: var(--u-grau); }
.kb-hw.erledigt .text { text-decoration: line-through; color: var(--u-grau-2); }
.kb-hw-knoepfe { margin-left: auto; display: inline-flex; gap: .6rem; }
.kb-hw-knoepfe button { border: 0; background: none; color: var(--u-grau); padding: 0; }
.kb-hw-knoepfe button:hover { color: var(--u-akzent); }
.kb-hw-faellig { margin-top: .8rem; padding-top: .6rem; border-top: 1px dashed var(--u-linie); }

@media (max-width: 991.98px) {
  .sd-rumpf { padding: 18px 16px; }
  .sd-abschnitt-rumpf { padding-left: 0; }
  .sd-fuss, .sd-fuss.sd-status { padding: 10px 16px; gap: 1rem; font-size: .95rem; }
  .kb-formular { grid-template-columns: 1fr; }
  .u-nav-punkt.aktiv, .u-nav-punkt:hover { width: 100%; }
}

/* ================================================================== Überarbeitung nach dem Anforderungskatalog (UW-03 … UW-17) */

/* UW-03: Die Navigation bleibt sichtbar und bedienbar – kein Overlay und kein Schatten über der Leiste.
   Stundendetails und Dialoge beginnen rechts der Navigation; der Dialoghintergrund lässt die Leiste frei. */
@media (min-width: 992px) {
  .stundendetails.modal { left: var(--u-leiste); width: auto; right: 0; }
  body.leiste-zu .stundendetails.modal { left: var(--u-leiste-zu); }
  .stundendetails .modal-dialog, body.leiste-zu .stundendetails .modal-dialog, .u-app.zu ~ .stundendetails .modal-dialog { left: 0; position: absolute; }
  .modal:not(.stundendetails) { left: var(--u-leiste); width: auto; right: 0; }
  body.leiste-zu .modal:not(.stundendetails) { left: var(--u-leiste-zu); }
  .modal-backdrop { left: var(--u-leiste); width: auto; right: 0; }
  body.leiste-zu .modal-backdrop { left: var(--u-leiste-zu); }
}
.stundendetails .modal-content { box-shadow: none; border-left: 1px solid #e5e8ec; position: relative; }
.u-leiste { box-shadow: 1px 0 0 #e5e8ec; }
@media (max-width: 991.98px) {
  /* Telefon: Details unter der Kopfleiste, ausgeklapptes Menü liegt über den Details */
  .stundendetails.modal, .stundendetails .modal-dialog { top: var(--u-kopf) !important; height: calc(100% - var(--u-kopf)) !important; }
  .u-kopfleiste { z-index: 1056; }
  .u-app.offen .u-leiste { z-index: 1062; }
  .u-app.offen .u-schleier { z-index: 1061; }
}

/* UW-04: Schrift überall aus --u-schrift (AvenirNextPro, sonst Lato) – auch in Dialogen, Tabellen und Eingaben */
button, input, select, textarea, .modal, .tooltip, .dropdown-menu, .u-hover-label { font-family: var(--u-schrift); }

/* UW-17: Hover nur auf Labels und Symbolen unten rechts – grünes Label „B070 → C197“ über dem geänderten Wert */
.std .lbl[data-hover], .std .ecke [data-hover] { cursor: inherit; }
.u-hover-label {
  position: fixed; z-index: 2000; display: none; pointer-events: none; background: #1d9a5c; color: #fff; font-weight: 600; font-size: 15px; line-height: 1.2;
  padding: 7px 12px; border-radius: 3px; box-shadow: 0 2px 8px rgba(0, 5, 10, .25); white-space: pre-line; max-width: 360px;
}
.u-hover-label.dunkel { background: #5c6670; font-size: 13px; font-weight: 600; padding: 6px 10px; }
/* Klassen einer Kopplung als Pillen über der Karte */
.u-hover-label.pillen { background: none; box-shadow: none; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; max-width: 420px; }
.u-hover-label.pillen span { background: #5c6670; color: #fff; font-size: 13px; font-weight: 600; padding: 5px 9px; border-radius: 4px; box-shadow: 0 2px 6px rgba(0, 5, 10, .2); }

/* UW-16: Ferien leicht abgerundet; Aufsichten ohne Trennlinie und ohne Aufschrift, Schrift wie der oberste Wert einer Karte */
.tt-ferien { border-radius: 6px; inset: 1px 3px; }
.tt-spalte.frei .tt-linie, .tt-spalte.frei .tt-pause { display: none; }
.tt-pause { border-top: 0; }
.aufsicht { font-size: 14px; font-weight: 600; color: #24323d; border-radius: 4px; }
.tt-liste .aufsicht { font-size: 14px; }

/* UW-11/12: Kopf der Stundendetails – Links auf die Stundenpläne, Änderungen ohne Label (alter Wert grau durchgestrichen) */
.sd-link { color: inherit; text-decoration: none; }
.sd-link:hover, .sd-link:focus-visible { text-decoration: none; color: var(--u-akzent-dunkel); }
.sd-alt { color: #b3bcc4; text-decoration-color: #b3bcc4; }
.sd-pfeil { color: var(--u-titel); margin: 0 .15rem; }
.sd-zeile .lbl { background: none; color: inherit; padding: 0; font-weight: inherit; }
.sd-badge { margin-left: 0; font-size: .64rem; padding: .12rem .6rem; align-self: center; letter-spacing: .03em; }
.sd-badge.voll { background: #5c6670; border-color: #5c6670; color: #fff; }

/* UW-13: Raumbuchung am Desktop – Raum-Chip mit Menü, Plus für einen weiteren Raum, Auswahlliste */
.sd-raeume { align-items: center; }
.sd-raumchip { position: relative; }
.sd-chipknopf { border: 0; background: #eef1f4; color: var(--u-titel); border-radius: 999px; min-width: 64px; height: 40px; padding: 0 18px; font-weight: 600; font-size: .95rem; }
.sd-chipknopf:hover, .sd-chipknopf[aria-expanded=true] { background: #e2e7eb; }
.sd-raum-plus { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #8a96a1; background: #fff; color: #5b6770; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; padding: 0; }
.sd-raum-plus:hover { border-color: var(--u-akzent); color: var(--u-akzent); }
.sd-raummenue { position: absolute; top: calc(100% + 4px); left: 0; z-index: 20; min-width: 130px; background: #fff; border-radius: 4px; box-shadow: 0 4px 16px rgba(0, 5, 10, .18); padding: 4px 0; }
.sd-raummenue button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 16px; font-weight: 600; color: var(--u-titel); font-size: .95rem; }
.sd-raummenue button:hover, .sd-raummenue button:focus-visible { background: #e9edf0; }
.sd-raumwahl { max-width: 900px; margin: 0 auto; }
.sd-raumwahl h3 { font-size: 1.6rem; font-weight: 400; color: var(--u-text); margin: 0 0 1.4rem; }
.sd-raumsuche { display: flex; align-items: center; gap: 10px; background: #f3f5f7; border-radius: 999px; height: 38px; padding: 0 16px; margin-bottom: .7rem; }
.sd-raumsuche .bi { color: var(--u-grau); }
.sd-raumsuche input { border: 0; background: transparent; outline: 0; flex: 1; font-size: .9rem; color: var(--u-titel); }
.sd-raumfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.2rem; }
.sd-filterpille { border: 1.5px solid #9aa5ae; background: #fff; color: var(--u-titel); border-radius: 999px; height: 30px; padding: 0 14px; font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; }
.sd-filterpille.an { background: #5c6670; border-color: #5c6670; color: #fff; }
.sd-filterpille.wahl { padding: 0; position: relative; }
.sd-filterpille.wahl select { appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23414d55' stroke-width='1.5'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center / 13px; height: 100%; padding: 0 30px 0 14px; font-weight: 600; font-size: .85rem; color: inherit; border-radius: 999px; outline: 0; cursor: pointer; }
.sd-filterpille.wahl.an select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.5'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E"); }
.sd-raumliste { list-style: none; margin: 0; padding: 0; }
.sd-raumliste li { border-bottom: 1px solid #e5e8ec; }
.sd-raumzeile { display: flex; align-items: center; gap: 18px; width: 100%; border: 0; background: none; padding: 14px 16px 14px 8px; text-align: left; color: var(--u-titel); font-size: .9rem; }
.sd-raumzeile:hover, .sd-raumzeile.gewaehlt { background: #f3f5f7; }
.sd-raumzeile .u-sym { width: 22px; height: 22px; color: #8a96a1; }
.sd-raumzeile .name { flex: 1; font-weight: 600; }
.sd-raumzeile .name small { display: block; font-weight: 400; color: var(--u-grau-2); font-size: .78rem; }
.sd-raumzeile .radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #9aa5ae; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.sd-raumzeile.gewaehlt .radio { border-color: var(--u-akzent); }
.sd-raumzeile.gewaehlt .radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--u-akzent); }
.sd-raumleer { padding: 1.2rem .5rem; color: var(--u-grau); font-size: .9rem; }

/* UW-10: Dialoge Lehrstoff, Abwesenheit, Klassenbucheintrag (alte Klassenbuch-Fenster über den abgedunkelten Details) */
.sd-overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(36, 50, 61, .45); display: flex; align-items: flex-start; justify-content: center; padding: 28px 12px; overflow-y: auto; }
.sd-altdialog { background: #fff; border: 1px solid #9cb6d3; box-shadow: 0 6px 24px rgba(0, 5, 10, .3); font-size: 12px; color: #24323d; }
.sd-altdialog-kopf { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(#e6f0fb, #c8dcf2); border-bottom: 1px solid #9cb6d3; padding: 3px 8px 3px 8px; color: #1e3f66; font-size: 12.5px; font-weight: 600; }
.sd-altdialog-kopf button { border: 0; background: none; color: #1e3f66; font-size: 17px; line-height: 1; padding: 0 2px; }
.sd-altdialog-rumpf { padding: 10px 12px 10px; }
.ad-kopf { display: grid; grid-template-columns: auto 1fr; gap: 1px 12px; margin: 0 0 10px; }
.ad-kopf dt { font-weight: 600; }
.ad-kopf dd { margin: 0; }
.ad-feld { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; font-size: 11.5px; color: #24323d; flex: 1; min-width: 0; }
.ad-feld input, .ad-feld select, .ad-feld textarea { font-size: 12px; border: 1px solid #a8b3bd; border-radius: 1px; padding: 2px 4px; min-height: 22px; color: #24323d; background: #fff; width: 100%; }
.ad-feld textarea { resize: vertical; }
.ad-feld input:focus, .ad-feld select:focus, .ad-feld textarea:focus { outline: 1px solid #3b78c2; border-color: #3b78c2; }
.ad-feld input:disabled, .ad-feld input[readonly] { background: #f3f5f7; color: #67747e; }
.ad-feld select[multiple] { padding: 0; }
.ad-reihe { display: flex; gap: 10px; }
.ad-reihe .ad-feld.breit { flex: 1.6; }
.ad-liste { width: 100%; border-collapse: separate; border-spacing: 1px; font-size: 11.5px; }
.ad-liste td { padding: 1px 5px; white-space: nowrap; }
.ad-liste tr:nth-child(odd) td { background: #dfe3e9; }
.ad-liste td.text { max-width: 170px; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.ad-liste td.leer { color: #67747e; background: none !important; }
.ad-liste button { border: 0; background: none; padding: 0; line-height: 1; }
.ad-liste img { width: 14px; height: 14px; }
.ad-info { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 11.5px; }
.ad-info img { width: 18px; height: 14px; object-fit: contain; }
.ad-zeichen { font-size: 11px; margin: -2px 0 8px; }
.ad-zeichen input { width: 44px; font-size: 11px; border: 1px solid #a8b3bd; padding: 0 3px; }
.ad-knoepfe { display: flex; gap: 6px; margin-top: 10px; }
.ad-pille { border: 1.5px solid #9aa5ae; background: #fff; color: #24323d; border-radius: 999px; padding: 3px 14px; font-size: 12px; font-weight: 600; }
.ad-pille:hover { border-color: #3b78c2; color: #1e3f66; }
.ad-fuss { margin-top: 10px; font-size: 10.5px; color: #414d55; line-height: 1.5; }

/* Stundenplan: obere Leiste (Elementwahl, Zeitraum, Heute) und Tageskopf Mo–Fr bleiben beim Scrollen oben stehen, mit leichtem Schatten */
[data-ansicht="plan"] { --plan-grund: #f4f5f7; --plankopf: 58px; --plan-oben: 0px; }
[data-ansicht="plan"] .planleiste { position: sticky; top: var(--plan-oben); z-index: 20; margin-top: -28px; padding-top: 14px; padding-bottom: 4px; }
/* Hintergrund von Leiste und Tageskopf: derselbe fixierte Farbverlauf wie die Seite, durchgehend bis an die Ränder (auch über die Lücken) */
[data-ansicht="plan"] .planleiste::before, [data-ansicht="plan"] .tt > .tt-tag::before, [data-ansicht="plan"] .tt > .tt-ecke:first-child::before {
  content: ""; position: absolute; z-index: -1; inset: 0 calc(var(--tt-spalt) / -2); background: var(--u-verlauf) fixed; pointer-events: none;
}
[data-ansicht="plan"] .planleiste::before { inset: -20px -40px 0; }
[data-ansicht="plan"] .tt > .tt-ecke:first-child::before { left: -40px; }
[data-ansicht="plan"] .tt > .tt-tag.letzter::before { right: -40px; }
[data-ansicht="plan"] .tt > .tt-tag, [data-ansicht="plan"] .tt > .tt-ecke:first-child {
  position: sticky; top: calc(var(--plan-oben) + var(--plankopf)); z-index: 19; padding-top: 4px;
}
/* Schatten unter dem Tageskopf: ein durchgehendes Band über die ganze Breite, nur wenn gescrollt ist */
[data-ansicht="plan"] .tt > .tt-tag::after, [data-ansicht="plan"] .tt > .tt-ecke:first-child::after {
  content: ""; position: absolute; top: 100%; left: calc(var(--tt-spalt) / -2); right: calc(var(--tt-spalt) / -2); height: 10px;
  background: linear-gradient(rgba(0, 5, 10, .14), rgba(0, 5, 10, 0)); opacity: 0; pointer-events: none;
}
[data-ansicht="plan"] .tt > .tt-tag.letzter::after { right: -40px; }
[data-ansicht="plan"] .tt > .tt-ecke:first-child::after { left: -40px; }
body.plan-gescrollt [data-ansicht="plan"] .tt > .tt-tag::after, body.plan-gescrollt [data-ansicht="plan"] .tt > .tt-ecke:first-child::after { opacity: 1; }
/* Stundenraster breiter: weniger Rand links und rechts, schmalere Lücken zwischen den Tagen */
.tt { --tt-spalt: 16px; }
@media (min-width: 992px) {
  .u-app[data-ansicht="plan"] .u-inhalt { padding-left: 14px; padding-right: 14px; max-width: none; }
  .u-app.u-mit-werkzeug[data-ansicht="plan"] .u-inhalt { padding-left: 78px; }
  [data-ansicht="plan"] .tt { --tt-spalt: 10px; column-gap: var(--tt-spalt); grid-template-columns: 50px repeat(var(--tage), minmax(0, 1fr)); }
}
@media (max-width: 991.98px) { [data-ansicht="plan"] { --plan-oben: var(--u-kopf); } [data-ansicht="plan"] .planleiste { margin-top: -1rem; padding-top: .5rem; } }
@media print { [data-ansicht="plan"] .planleiste, [data-ansicht="plan"] .tt > .tt-tag, [data-ansicht="plan"] .tt > .tt-ecke:first-child { position: static; box-shadow: none; } [data-ansicht="plan"] .tt > .tt-tag::after { display: none; } }

/* Klasse abwesend: die Klasse steht durchgestrichen im grünen Label (.lbl.weg), die Karte ist eine Änderung; im Plan der Klasse selbst wie bei abwesender Lehrkraft */
.std .lbl.abw { background: #8a96a1; }
.std .abw-label { display: inline-block; font-size: 10.5px; line-height: 14px; font-weight: 600; color: #fff; background: #67747e; border-radius: 2px; padding: 0 4px; margin-top: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Offene Raumvertretung: wie offene Lehrervertretung (rotes Label „???“) */
.std .lbl.offen-raum { background: var(--u-rot); }

/* Pausenaufsichten halbiert (Legendenmenü); neben einer durchgängigen Karte (Block, Veranstaltung) steht die Aufsicht in ihrer eigenen
   Spur wie eine parallele Stunde (Lage aus plangitter.js, die Karte ist halbiert) – nur kleinere Schrift */
.tt.aufsicht-schmal .aufsicht { left: auto !important; right: 0 !important; width: 50% !important; font-size: 11px; padding-left: 14px; }
.aufsicht.schmal { font-size: 11px; padding-left: 14px; }
.aufsicht.schmal::before { left: 5px; }
.tt.aufsicht-aus .aufsicht { display: none; }

/* UW-05: Startseite – „Mein nächster Unterricht“ als alte Liste (Entfall grau durchgestrichen, Änderung lila) */
.heute-karte > header .h-stift img { width: 16px; height: 16px; }
.heute-karte > header .h-stift { margin-left: 4px; }
.heute-karte > header .h-tag { color: #999; font-size: .85rem; margin-left: 6px; }
.heute-liste { width: 100%; border-collapse: separate; border-spacing: 0 2px; font-size: 12.5px; color: #24323d; margin: 4px 0 8px; }
.heute-liste th { font-size: 11.5px; font-weight: 600; padding: 8px 8px 4px; white-space: nowrap; text-align: left; }
.heute-liste td { padding: 6px 8px; background: #fff; white-space: nowrap; vertical-align: middle; }
.heute-liste tbody tr:nth-child(odd) td { background: #e4e8ee; }
.heute-liste tr { cursor: pointer; }
.heute-liste tr:hover td { background-color: #f7f9fa; }
.heute-liste tr.entfall td { background: #b9bec4 !important; color: #3b444b; }
.heute-liste tr.entfall td:not(.art):not(:first-child) { text-decoration: line-through; }
.heute-liste tr.aenderung td { background: #b392c9 !important; color: #fff; }
.heute-liste tr.gewaehlt td { outline: 1px solid var(--u-akzent); }
.heute-liste .mitte { text-align: center; }
.heute-liste img { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; }
.heute-liste .art img.x { width: 14px; height: 14px; margin-left: 2px; }
.heute-liste .symbole { display: flex; gap: 4px; align-items: center; min-height: 18px; }
.heute-liste .h-online { width: 18px; height: 18px; border-radius: 50%; background: #2d6fa3; color: #fff; font-weight: 600; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.heute-liste .stoff { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.heute-liste img.blass { opacity: .35; }
.heute-nachricht span[style] { font-weight: inherit; }

/* UW-09: Schuljahr-Pille mit Auswahl und Hinweis „Aktuelles Schuljahr“ */
.u-jahrwahl { position: relative; display: inline-block; }
.u-jahrwahl .u-jahr { cursor: pointer; }
.u-jahrwahl .u-jahr.anders { border-color: var(--u-akzent); color: var(--u-akzent-dunkel); }
.u-jahr-tipp { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); background: #5c6670; color: #fff; font-weight: 600; font-size: .85rem; padding: 6px 10px; border-radius: 3px; white-space: nowrap; display: none; z-index: 30; }
.u-jahrwahl:hover .u-jahr-tipp, .u-jahrwahl .u-jahr:focus-visible + .u-jahr-tipp { display: block; }
.u-jahrliste { position: absolute; left: 0; top: calc(100% + 6px); z-index: 31; background: #fff; border-radius: 4px; box-shadow: 0 4px 16px rgba(0, 5, 10, .18); padding: 4px 0; min-width: 190px; max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; }
.u-jahrliste.d-none { display: none; }
.u-jahrliste button { border: 0; background: none; text-align: left; padding: 6px 16px; font-weight: 600; color: var(--u-titel); }
.u-jahrliste button:hover, .u-jahrliste button.an { background: #e9edf0; }

/* UW-09: Klassenbuch-Übersicht */
/* Klassenbuch-Übersicht: volle Breite; Spalten Lehrstoff/Hausaufgaben teilen sich den Platz */
.kb-uebersicht { max-width: none; width: 100%; }
.kb-uebersicht .kb-tagliste .u-tabelle { table-layout: fixed; width: 100%; }
.kb-uebersicht .kb-stoff { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-mehr { display: block; margin: 0 auto 18px; border: 0; background: none; font-weight: 600; color: var(--u-titel); font-size: 1rem; }
.kb-mehr:hover { color: var(--u-akzent-dunkel); }
.kb-tagkopf { display: flex; align-items: center; gap: 12px; margin: 26px 0 10px; }
.kb-tagkopf .kw { width: 44px; font-weight: 600; color: var(--u-titel); font-size: .85rem; }
.kb-tagkopf .linie { flex: 1; height: 1px; background: #cdd3d9; }
.kb-tagpille { border: 1.5px solid #9aa5ae; background: #fff; border-radius: 999px; padding: 3px 16px; font-weight: 600; font-size: .85rem; color: var(--u-titel); }
.kb-tagliste { margin-left: 56px; }
.kb-tagliste .u-tabelle td { height: 44px; font-size: .82rem; }
.kb-tagliste .u-tabelle th { font-size: .72rem; }
.kb-tagliste tr.entfall td { color: var(--u-grau-2); text-decoration: line-through; }
.kb-tagliste tr[role=button]:hover td { background: #f7f8fa; }
.kb-stoff { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--u-text); }
.kb-abwpille { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #f0a5a8; border-radius: 999px; padding: 1px 12px; font-size: .78rem; color: var(--u-titel); }
.kb-abwpille.ok { border-color: #8fd3b2; }
.kb-abwpille b { font-weight: 600; }
.kb-abwpille span { color: var(--u-grau-3); }

/* Alte Listenansichten (Mein Unterricht, Klassendienste, Fehlzeiten): orange Überschrift, weiße Karte, grau gestreifte Liste */
.alt-seite { max-width: 1250px; }
.alt-kopf { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.alt-kopf h1 { font-size: 1rem; font-weight: 400; color: var(--u-akzent); margin: 0; }
.alt-hilfe { width: 22px; height: 22px; border-radius: 50%; border: 0; background: none; color: var(--u-titel); font-weight: 600; font-size: 1rem; }
.alt-karte { background: #fff; box-shadow: 0 1px 3px rgba(0, 5, 10, .08), 0 3px 10px rgba(0, 5, 10, .05); border-radius: 2px; padding: 12px 14px; margin-bottom: 14px; }
.alt-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; font-size: 11.5px; }
.alt-filter label { display: flex; flex-direction: column; gap: 2px; color: #24323d; }
.alt-filter select, .alt-filter input { font-size: 12px; border: 1px solid #a8b3bd; border-radius: 1px; padding: 1px 4px; min-height: 22px; color: #24323d; background: #fff; }
.alt-filterknopf { border: 0; background: none; color: #5c6670; padding: 0 4px; }
.alt-link { color: var(--u-akzent-dunkel); text-decoration: underline; font-size: 11.5px; }
.alt-liste.alt-breit { width: 100%; }
.alt-liste tbody tr.lila td { background: #b392c9 !important; color: #fff; }
.alt-liste a img, .alt-liste td > img { width: 16px; height: 16px; object-fit: contain; }
.alt-fussleiste { padding: 10px 14px; }

/* UW-08: Prüfungsliste, Hausaufgaben, Prüfungskalender */
.pr-liste td, .pr-liste th { font-size: .8rem; }
.pr-liste tr.vergangen td { color: var(--u-grau); }
.u-statuspille.klein { height: 26px; min-width: 0; font-size: .78rem; padding: 0 10px; }
.ha-text { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.pk-filter { background: #fff; box-shadow: var(--u-schatten); padding: 12px; font-size: .8rem; display: flex; flex-direction: column; gap: 10px; }
.pk-filter label > span, .pk-gruppe > span { display: block; font-size: .72rem; color: var(--u-grau); margin-bottom: 2px; }
.pk-gruppe h3 { font-size: .85rem; color: var(--u-akzent); font-weight: 400; margin: 6px 0; }
.pk-gruppe .form-check { margin-bottom: 4px; font-size: .78rem; }
.pk-raster { border-collapse: collapse; width: 100%; font-size: 10.5px; table-layout: fixed; }
.pk-raster th { font-weight: 600; padding: 2px; text-align: center; border: 1px solid #c9ced4; background: #fff; }
.pk-raster tbody th { width: 26px; text-align: right; padding-right: 4px; }
.pk-raster td { border: 1px solid #c9ced4; padding: 1px 3px; height: 17px; background: #fff; white-space: nowrap; }
.pk-raster td.leer { background: var(--u-graustufe-3); }
.pk-raster td.we { background: #d4d8dc; color: #e03131; }
.pk-raster td.ferien { background: #9aa1a8; color: #fff; }
.pk-raster td.heute { outline: 2px solid var(--u-akzent); outline-offset: -2px; }
.pk-raster td sup { font-size: 8px; margin-left: 1px; }
.p-eigen-art { background: #f4a0a0 !important; color: #24323d !important; }
.p-eigen-andere { background: #fbd7d7 !important; color: #24323d !important; }
.p-fremd-art { background: #a9c8ef !important; color: #24323d !important; }
.p-fremd { background: #dbe8f8 !important; color: #24323d !important; }
.p-eigen-klassen { background: #f7d6a7 !important; color: #24323d !important; }
.pk-legende { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 16px; font-size: .75rem; margin-top: 10px; background: #fff; padding: 8px 12px; box-shadow: var(--u-schatten); }
.pk-legende i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border: 1px solid #c9ced4; }
.pk-legende i.ferien { background: #9aa1a8; }
@media (max-width: 991.98px) { .pk { grid-template-columns: 1fr; } .pk-raster { font-size: 9px; } .pk-legende { grid-template-columns: 1fr; } }

/* UW-09: Berichte mit Abschnitten und PDF-/Seiten-/Excel-Symbolen */
.br-alt h3 { color: var(--u-akzent); font-weight: 400; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.br-alt h3 img { width: 18px; height: 18px; }
.br-alt .br-zeile { display: grid; grid-template-columns: minmax(150px, 1fr) auto; gap: 2px 10px; align-items: center; padding: 3px 0; font-size: .82rem; }
.br-alt .br-param { grid-column: 1 / -1; }
.br-alt .br-param:empty { display: none; }
.br-symbole { display: inline-flex; gap: 3px; }
.br-symbole button { border: 0; background: none; padding: 0 1px; font-size: 1.15rem; line-height: 1; }
.br-pdf { color: #d63b3b; }
.br-html { color: #2d6fa3; }
.br-xls { color: #1f8a4c; }
.br-symbole button:hover { filter: brightness(1.2); transform: translateY(-1px); }
.heute-nachricht .h-html { white-space: normal; }
.heute-nachricht .h-html b { display: inline; margin: 0; }
.heute-nachricht .h-html p { margin: 0 0 .3rem; }

@media (min-width: 992px) { .u-app[data-ansicht="klassenbuch"] .u-inhalt { max-width: none; padding-right: 24px; } }
.kb-tagkopf { position: sticky; top: 82px; z-index: 5; background: var(--plan-grund, #f4f5f7); padding: 4px 0; margin: 18px 0 8px; }
@media (max-width: 991.98px) { .kb-tagkopf { top: calc(var(--u-kopf) + 64px); } }
/* Überhang von Kopf und Schatten nicht seitlich scrollen lassen (clip statt hidden, damit sticky erhalten bleibt) */
[data-ansicht="plan"] .u-haupt, .u-app[data-ansicht="plan"] .u-haupt { overflow-x: clip; }

/* keine Lade- und Öffnungsanimationen */
.u-laedt { min-height: 120px; }
.stundendetails, .stundendetails .modal-dialog, .modal-backdrop { transition: none !important; animation: none !important; }
/* Durchstreichung überall etwas feiner */
.alt, .std-lbl.weg, .vt-zeile .lbl-neu.weg, .std.lehrer-abwesend .lbl.weg, .heute-tabelle tr.entfall td, .heute-liste tr.entfall td, .kb-tagliste tr.entfall td, .wert-alt, s, del { text-decoration-thickness: .75px; }

/* ---------------------------------------------------------------- Neue Listen (Abwesenheiten, Fehlzeiten): Suche, Filterpillen,
   runde Auswahl, Avatare mit Initialen, Chips – Grunddesign der neuen Oberfläche */
.nl-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.nl-suche { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; max-width: 480px; height: 42px; padding: 0 16px; border: 1.5px solid #c9d0d6;
  border-radius: 999px; background: #fff; color: #67747e; }
.nl-suche:focus-within { border-color: var(--u-akzent); }
.nl-suche input { border: 0; outline: 0; flex: 1; min-width: 0; font: inherit; font-size: 1rem; background: transparent; color: var(--u-text); }
.nl-pille { position: relative; display: inline-flex; align-items: center; height: 42px; padding: 0 14px; border: 1.5px solid #c9d0d6; border-radius: 999px;
  background: #fff; color: var(--u-text); font-size: .95rem; cursor: pointer; }
.nl-pille.aktiv { border-color: var(--u-akzent); background: #fff6f1; }
.nl-pille select, .nl-pille input { border: 0; outline: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; padding-right: 4px; }
.nl-pille select { appearance: none; -webkit-appearance: none; padding-right: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2324323d' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right center; }
.nl-hinzu { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--u-akzent); color: #fff;
  font-weight: 600; font-size: 1rem; }
.nl-hinzu:hover { filter: brightness(.95); }
.nl-knopf { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1.5px solid #c9d0d6; border-radius: 999px; background: #fff;
  color: var(--u-text); font-size: .9rem; font-weight: 600; text-decoration: none; }
.nl-knopf:hover { border-color: #8a96a1; color: var(--u-text); }
.nl-knopf.gruen { color: #0f6b40; border-color: #9fd3b6; } .nl-knopf.rot { color: #a1262b; border-color: #e8a7aa; }
.nl-zahlen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.nl-zahl { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: #eef1f4; color: #414d55; font-size: .85rem; }
.nl-zahl b { font-weight: 600; color: var(--u-text); }
.nl-zahl.rot { background: #fdecec; } .nl-zahl.gelb { background: #fff4d6; } .nl-zahl.lila { background: #efe8fb; }
.nl-zahl.aktiv { outline: 2px solid var(--u-akzent); }
.nl-tabelle { background: #fff; border: 1px solid #dfe3e7; border-radius: 10px; overflow: hidden; }
.nl-tabelle table { width: 100%; border-collapse: collapse; }
.nl-tabelle th { padding: 14px 12px; font-weight: 600; font-size: .95rem; color: #414d55; border-bottom: 1px solid #e3e7eb; text-align: left; white-space: nowrap; }
.nl-tabelle td { padding: 10px 12px; border-bottom: 1px solid #edf0f2; vertical-align: middle; }
.nl-tabelle tbody tr:last-child td { border-bottom: 0; }
.nl-tabelle tbody tr:hover { background: #f7f9fa; }
.nl-wahl { width: 44px; padding-left: 16px !important; }
.nl-rund { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border: 1.8px solid #4a5560; border-radius: 50%; background: #fff; cursor: pointer; display: inline-grid; place-content: center; vertical-align: middle; }
.nl-rund:checked { border-color: var(--u-akzent); background: var(--u-akzent); }
.nl-rund:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.nl-avatar-zelle { width: 52px; }
.nl-avatar { display: inline-grid; place-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px dashed #c9d0d6; color: #67747e; font-size: .78rem; font-weight: 600; background: #fff; }
.nl-avatar.voll { border: 0; background: #56616b; color: #fff; }
.nl-name { font-weight: 600; font-size: 1.02rem; color: var(--u-text); }
.nl-unter { font-size: .82rem; color: #67747e; }
.nl-tag { display: inline-block; padding: 3px 10px; border-radius: 6px; background: #eef1f4; color: #24323d; font-size: .8rem; font-weight: 600; }
.nl-text { max-width: 240px; font-size: .85rem; color: #414d55; }
.nl-icon { border: 0; background: none; width: 32px; height: 32px; border-radius: 50%; color: #67747e; opacity: 0; transition: none; }
.nl-tabelle tr:hover .nl-icon, .u-tabelle tr:hover .nl-icon, .nl-icon:focus-visible { opacity: 1; }
.nl-icon:hover { background: #eef1f4; color: var(--u-text); } .nl-icon.rot:hover { color: #a1262b; }
.nl-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid #e3e7eb; background: #fbfcfd; }
.nl-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 6px; font-size: .8rem; font-weight: 600; }
.nl-chip.rot { background: #fdecec; color: #c62828; } .nl-chip.gruen { background: #e5f6ec; color: #0f7b47; } .nl-chip.gelb { background: #fff4d6; color: #8a5a00; }
.nl-chip.lila { background: #efe8fb; color: #5b3fa0; } .nl-chip.grau { background: #eef1f4; color: #414d55; }
@media (max-width: 767.98px) { .nl-tabelle { overflow-x: auto; } .nl-icon { opacity: 1; } }
.nl-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #e3e7eb; font-weight: 600; color: var(--u-titel); }
.nl-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.nl-tabelle tr.nl-gewaehlt td { background: #fff6f1; }
/* Neuigkeiten (Entwicklungsnews) */
.u-neuigkeiten { text-decoration: none; position: relative; }
.nw-zahl { display: inline-grid; place-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--u-akzent); color: #fff; font-size: .7rem; font-weight: 600; }
.nw-liste { max-width: 860px; display: grid; gap: 14px; }
.nw-eintrag { background: #fff; border: 1px solid #dfe3e7; border-radius: 10px; padding: 18px 22px; }
.nw-eintrag.neu { border-left: 4px solid var(--u-akzent); }
.nw-eintrag h3 { font-size: 1.15rem; font-weight: 600; color: var(--u-titel); margin: 4px 0 10px; }
.nw-eintrag ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 4px; color: #414d55; }
.nw-datum { font-size: .85rem; color: #67747e; display: flex; align-items: center; gap: 8px; }
.nw-neu { padding: 1px 8px; border-radius: 999px; background: #fff0e8; color: #c2410c; font-weight: 600; font-size: .75rem; }
/* Elementwahl: „Alle anzeigen“ – Schalter oben, alle Elemente als Pillen in einem breiten Feld */
.wahl-alle-schalter { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; margin: 0; border-bottom: 1px solid #edf0f2; font-size: .92rem; cursor: pointer; }
.wahl-alle-schalter input { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; border-radius: 11px; background: #c9d0d6; position: relative; cursor: pointer; }
.wahl-alle-schalter input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.wahl-alle-schalter input:checked { background: var(--u-akzent); }
.wahl-alle-schalter input:checked::after { left: 21px; }
.elementwahl .wahl-alle { display: none; position: absolute; top: calc(100% + 6px); z-index: 1000; max-height: 70vh; overflow: auto; padding: 10px 12px;
  background: rgba(244, 245, 247, .97); border-radius: 8px; box-shadow: var(--u-schatten-hoch); flex-wrap: wrap; gap: 6px 4px; align-content: flex-start; }
.elementwahl .wahl-alle.show { display: flex; }
.wahl-pille { border: 0; background: transparent; border-radius: 999px; padding: 3px 10px; font: inherit; font-size: .9rem; color: var(--u-text); }
.wahl-pille:hover { background: #e3e7eb; }
.wahl-pille.aktiv { background: #56616b; color: #fff; }
@media (max-width: 767.98px) { .elementwahl .wahl-alle { display: none !important; } .wahl-alle-schalter { display: none; } }
/* Administration und Stammdaten: Untermenü ohne Symbole, etwas schmaler; Hintergrund nur beim Überfahren, gewählter Punkt orange */
.u-nav-kompakt .u-nav-sym { display: none; }
.u-nav-kompakt .u-nav-punkt { padding-top: 7px; padding-bottom: 7px; padding-left: 28px; font-size: .92rem; min-height: 0; width: calc(100% - 28px); }
.u-nav-kompakt .u-nav-punkt:hover { background: #f1f3f5; }
.u-nav-kompakt .u-nav-punkt.aktiv, .u-nav-kompakt .u-nav-punkt.aktiv:hover { background: #fff0ea; color: var(--u-akzent); }
.u-nav-punkt:not(:hover):not(.aktiv) { background: none; }

/* Fehlzeiten: eine Tabelle, je Schüler*in aufklappbar */
.fz-tabelle tr.fz-schueler { cursor: pointer; }
.fz-tabelle tr.fz-schueler.auf td { background: #f7f9fa; border-bottom-color: transparent; }
.fz-tabelle tr.fz-stunde td { background: #fbfcfd; padding-top: 7px; padding-bottom: 7px; font-size: .88rem; }
.fz-zahl { display: inline-block; min-width: 28px; padding: 2px 8px; border-radius: 6px; background: #eef1f4; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.fz-zahl.fett { font-weight: 600; } .fz-zahl.gelb { background: #fff4d6; } .fz-zahl.gruen { background: #e3f4ea; color: #0f6b40; } .fz-zahl.rot { background: #fdecec; color: #a1262b; }
.fz-null { color: #b3bcc3; }
.abw-details-titel { margin-top: 4px; padding-top: 12px; border-top: 1px solid #e3e7eb; font-weight: 600; font-size: .9rem; color: #414d55; }
.modal-body .row > .col-12:first-child .abw-details-titel { border-top: 0; padding-top: 0; margin-top: 0; }

/* Unterer Bereich der Seitenleiste: Profil, Neuigkeiten und Abmelden mit derselben Hover-Fläche wie die Navigation, ohne Unterstreichung */
.u-benutzer, .u-abmelden { border-radius: 0 999px 999px 0; width: calc(100% - 14px); text-decoration: none !important; }
.u-benutzer:hover, .u-benutzer.aktiv, .u-abmelden:hover, .u-abmelden:focus-visible { background: #fff0ea; color: var(--u-akzent); text-decoration: none !important; }
.u-benutzer:hover b, .u-benutzer.aktiv b { color: var(--u-akzent); }
.u-abmelden { padding-top: 8px; padding-bottom: 8px; margin-top: 2px; }
.u-abmelden:hover .u-sym { color: var(--u-akzent); }
a.u-abmelden, a.u-abmelden:hover, a.u-abmelden:focus { text-decoration: none !important; }

/* Seitenbreite ausnutzen (neben der Seitenleiste): Inhalt ohne feste Höchstbreite, Einstellungskarten über die volle Breite */
.u-inhalt { max-width: none; }
.u-einstellungen { max-width: none; }
.heute { max-width: none; }
.kb-editor { max-width: none; }

.sd-ursprung { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #e3f4ea; color: #0f6b40; font-size: .75rem; font-weight: 600; vertical-align: middle; }
.sd-pille.rot { color: #a1262b; border-color: #e8a7aa; } .sd-pille.rot:hover { background: #fdecec; }

/* Schriftstärken und -größen wie in der Vorlage (Avenir: 400 = Regular, 500/600 = Medium – keine Demi-/Bold-Schnitte):
   Navigation kleiner und kräftiger, Kartenkopf Medium, Kartenzeilen Regular, Stundendetails-Kopf und Reiter Medium */
.u-nav-punkt { font-size: .9rem; font-weight: 600; min-height: 50px; color: #67747e; }
/* Vorlage bei 100 % nachgemessen: Text #67747e ab 77 px, Symbol 21 px breit ab 26 px, aktiver Punkt #fe6033 (= Primärfarbe #ff6033) */
.u-nav-punkt { padding-left: 19.5px; }
.u-nav-sym .u-sym { width: 27.5px; height: 27.5px; }
.u-nav-punkt.aktiv, .u-nav-punkt.aktiv:hover, .u-nav-punkt.aktiv .u-nav-sym { color: var(--u-primaer); }
.u-nav-punkt.aktiv::before { background: var(--u-primaer); }
.u-nav-unter .u-nav-punkt { font-size: .875rem; }
.u-nav-kompakt .u-nav-punkt { font-weight: 600; }
/* Zeilenabstand wie in der Plan-Vorlage: Kopf und Zeilen je 15px (Versalien 118/133/148 px bei Kartenoberkante 108) */
.std .z1 { font-size: 13px; font-weight: 600; color: #24323d; line-height: 15px; }
.std .z2 { font-size: 12px; font-weight: 400; color: #414d55; line-height: 15px; }
.sd-titel h2 { font-size: 1.3rem; font-weight: 600; }
.sd-zeile { font-size: .875rem; }
.sd-reiter button { font-size: .95rem; font-weight: 600; }
.sd-abschnitt-kopf { font-size: .875rem; font-weight: 600; }
.u-benutzer b { font-size: 1rem; font-weight: 600; }
.u-abmelden { font-size: .75rem; font-weight: 600; }

/* Verlegung: eigenes Symbol (zwei Pfeile) – grün an der neuen Stelle, rot an der alten */
/* Verlegung wie im Original: an der neuen Stelle grünes Viereck mit Pfeil (12 px), an der alten Stelle rotes Dreieck mit Pfeil
   auf hellrotem Feld (16 px) */
.mks .mk-verlegung { display: inline-block; width: 12px; height: 12px; flex: none; border-radius: 2px; background: rgb(25, 156, 95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-1 -1 12 10'%3E%3Cpath fill='%23ffffff' d='M5.53033 0.21967L8.78033 3.46967C9.07322 3.76256 9.07322 4.23744 8.78033 4.53033L5.53033 7.78033C5.23744 8.07322 4.76256 8.07322 4.46967 7.78033C4.17678 7.48744 4.17678 7.01256 4.46967 6.71967L6.439 4.75H0.75C0.335786 4.75 0 4.41421 0 4C0 3.58579 0.335786 3.25 0.75 3.25H6.439L4.46967 1.28033C4.17678 0.987437 4.17678 0.512563 4.46967 0.21967C4.76256 -0.0732233 5.23744 -0.0732233 5.53033 0.21967Z'/%3E%3C/svg%3E") no-repeat center / 12px 12px; }
.mks .mk-verlegung.weg { width: 16px; height: 16px; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Crect width='16' height='16' rx='4' fill='%23FFE5DE'/%3E%3Cpath d='M6.23704 3.29086C6.99101 1.88345 9.00899 1.88345 9.76296 3.29086L13.9226 11.0556C14.6364 12.3879 13.6711 14 12.1597 14H3.84034C2.32887 14 1.36363 12.3879 2.07738 11.0556L6.23704 3.29086Z' fill='%23FF4040'/%3E%3Cpath d='M8.53033 6.21967L10.7803 8.46967C11.0732 8.76256 11.0732 9.23744 10.7803 9.53033L8.53033 11.7803C8.23744 12.0732 7.76256 12.0732 7.46967 11.7803C7.17678 11.4874 7.17678 11.0126 7.46967 10.7197L8.439 9.75H5.75C5.33579 9.75 5 9.41421 5 9C5 8.58579 5.33579 8.25 5.75 8.25H8.439L7.46967 7.28033C7.17678 6.98744 7.17678 6.51256 7.46967 6.21967C7.76256 5.92678 8.23744 5.92678 8.53033 6.21967Z' fill='%23FFE5DE'/%3E%3C/svg%3E") no-repeat center / 16px 16px; }
.tt.ohne-aenderung .std .mk-verlegung:not(.weg), .tt.ohne-entfall .std .mk-verlegung.weg { display: none; }
/* vergangene Pausenaufsichten ausgegraut wie vergangene Stunden */
.aufsicht.vergangen { opacity: .55; filter: grayscale(.6); }
/* Ferien/freie Tage: kaum gerundet */
.tt-ferien { border-radius: 2px; }
/* Seitenleiste: weichere Schriftfarbe, Avenir sicher auch in Knöpfen */
.u-leiste, .u-leiste button, .u-leiste a { font-family: var(--u-schrift); }
.u-nav-punkt { color: #414d55; }
.u-nav-punkt .u-nav-sym { color: #7b8892; }
.u-benutzer small { color: #8a96a1; }
/* Stundendetails unten rechts: Lehrstoff/Abwesenheiten breiter und enger beieinander */
.sd-fuss.sd-status { gap: .75rem; }
/* „Lehrstoff eingeben“ / „Abwesenheiten kontrollieren“: schmaler, aber höher; „Abwesenheitskontrolle ab:“ direkt über dem Datum */
.sd-fuss.sd-status .sd-orange { min-width: 0; height: 54px; min-height: 54px; padding: 0 22px; font-weight: 500; text-align: center; }
.sd-fuss.sd-status .sd-kontrolle { gap: 0; padding-top: 0; line-height: 1.3; }
/* Doppel-/Blockstunden: Auswahl „Ganzer Block“ / Einzelstunde (Pfeil-runter neben dem Schließen-Knopf) */
.sd-blockwahl { position: relative; display: flex; }
.sd-blockwahl-menue { position: absolute; top: calc(100% + 10px); right: -8px; z-index: 30; min-width: 250px; background: #fff; border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 5, 10, .18); padding: 6px 0; }
.sd-kopf .sd-knoepfe .sd-blockwahl-menue button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 16px; font-size: .95rem; font-weight: 400; color: var(--u-titel); white-space: nowrap; }
.sd-kopf .sd-knoepfe .sd-blockwahl-menue button:hover, .sd-kopf .sd-knoepfe .sd-blockwahl-menue button:focus-visible { background: #eef1f4; }
.sd-blockwahl-menue button .bi { visibility: hidden; color: var(--u-akzent); font-size: 1rem; }
.sd-blockwahl-menue button.an { font-weight: 500; }
.sd-blockwahl-menue button.an .bi { visibility: visible; }
.sd-blockwahl-punkt { display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--u-akzent); vertical-align: middle; }
.sd-einzelpille { background: var(--u-akzent-hell); color: var(--u-akzent-dunkel); }
.sd-ebene { color: #67747e; margin-top: 4px; }
.sd-ebene-marke { display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 999px; background: #e9edf0; color: #4a5662; font-size: .75rem; font-weight: 500; line-height: 18px; vertical-align: 1px; }
@media (max-width: 575.98px) { .sd-blockwahl-menue { min-width: 220px; } }

.nl-hinweis { display: block; margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; background: #f1f5f8; color: #57626b; font-size: .85rem; line-height: 1.45; }
.nl-hinweis .bi { color: #7b8892; margin-right: 6px; }
.nl-hinweis a { color: var(--u-akzent-dunkel); }
.nl-icon.sichtbar { opacity: 1; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* Ältere Listenseiten (Klassendienste u. a.) im neuen Design: Seitentitel, weiße Karte mit Rand, Filter als Pillen, ruhige Tabelle */
.u-inhalt .alt-seite { max-width: none; }
.u-inhalt .alt-seite .alt-kopf h1 { font-size: 1.45rem; font-weight: 400; color: var(--u-titel); margin: 0 0 18px; }
.u-inhalt .alt-seite .alt-hilfe { display: none; }
.u-inhalt .alt-seite .alt-karte { background: #fff; border: 1px solid #dfe3e7; border-radius: 10px; box-shadow: none; padding: 16px 18px; margin-bottom: 14px; }
.u-inhalt .alt-seite .alt-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.u-inhalt .alt-seite .alt-filter label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 600; color: #67747e; }
.u-inhalt .alt-seite .alt-filter select, .u-inhalt .alt-seite .alt-filter input {
  height: 40px; padding: 0 14px; border: 1.5px solid #c9d0d6; border-radius: 999px; background: #fff; font-size: .92rem; color: var(--u-text); }
.u-inhalt .alt-seite .alt-liste { width: 100%; border-collapse: collapse; font-size: .9rem; }
.u-inhalt .alt-seite .alt-liste th { background: none; padding: 12px; font-weight: 600; color: #414d55; border-bottom: 1px solid #e3e7eb; text-align: left; }
.u-inhalt .alt-seite .alt-liste td { background: none !important; padding: 10px 12px; border-bottom: 1px solid #edf0f2; }
.u-inhalt .alt-seite .alt-liste tbody tr:hover td { background: #f7f9fa !important; }
.u-inhalt .alt-seite .ad-pille, .u-inhalt .alt-seite .sd-pille { height: 34px; padding: 0 14px; border: 1.5px solid #c9d0d6; border-radius: 999px; background: #fff; font-weight: 600; font-size: .9rem; }
.u-inhalt .alt-seite .alt-link { color: var(--u-akzent-dunkel); font-weight: 600; text-decoration: none; }

/* Labels und Plaketten (z. B. grün „entschuldigt“) ändern beim Überfahren nie ihre Farbe */
.lbl, .lbl:hover, .std-lbl:hover, .lbl-neu:hover, .lbl-auf:hover, .wert-neu:hover, .u-chip:hover, .badge:hover, .nl-tag:hover, .fz-label, .fz-label:hover,
a .lbl:hover, a:hover .lbl, a:hover .u-chip, a:hover .fz-label, tr:hover .lbl, tr:hover .u-chip, tr:hover .fz-label, tr:hover .badge { filter: none !important; opacity: 1; }

/* Startseite „Heute“ wie im Original: begrenzte Inhaltsbreite links neben der Navigation, nicht die volle Breite */
.u-inhalt .heute, .u-inhalt .heute-titel { max-width: 992px; }

/* ------------------------------------------------------------------ Meine Daten (Schüler*innen, Erziehungsberechtigte) und Fehlzeitenliste */
.fm-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 22px; }
.fm-titel { font-size: 1.07rem; font-weight: 400; color: var(--u-akzent); margin: 0 0 18px; }
.fm-kopf .fm-titel { margin: 0; }
.fm-karte { background: #fff; box-shadow: 0 1px 3px rgba(0, 5, 10, .08), 0 3px 10px rgba(0, 5, 10, .05); border-radius: 2px; }
.fm-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; padding-top: 22px; }
.fm-uebersicht > header { display: flex; align-items: center; gap: 8px; padding: 14px 16px 6px; }
.fm-uebersicht .titel { color: var(--u-akzent); font-size: .95rem; }
.fm-uebersicht .unter { color: var(--u-grau); font-size: .78rem; margin-left: 8px; }
.fm-sym { width: 26px; height: 17px; color: var(--u-akzent); font-size: 1.1rem; display: inline-flex; align-items: center; }
.fm-pfeil { margin-left: auto; color: var(--u-akzent); font-size: 1.15rem; line-height: 1; padding: 2px 4px; }
.fm-pfeil:hover { color: var(--u-akzent-dunkel); }
.fm-inhalt { padding: 6px 16px 18px; }
.fm-leer { text-align: center; color: var(--u-grau); font-size: .85rem; padding: 18px; }
.fm-leer.gross { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 4px; }
.fm-leer.gross svg { width: 84px; height: 54px; color: #b5b5b5; }
.fm-leer.gross .bi { font-size: 62px; line-height: 1; color: #b5b5b5; }
.fm-liste { list-style: none; margin: 0; padding: 0; }
.fm-liste li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #edf0f2; font-size: .875rem; }
.fm-liste li:last-child { border-bottom: 0; }
.fm-hwtext { color: #414d55; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fm-reiter { margin: -6px 0 26px; }
.fm-reiter a { font-size: 1rem; padding: 10px 16px; }
.fm-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 24px; margin-bottom: 16px; }
.fm-pfeiltaste { border: 0; background: none; color: #a3adb5; font-size: 1.1rem; width: 32px; height: 32px; border-radius: 50%; }
.fm-pfeiltaste:hover { background: #f1f4f6; color: var(--u-text); }
.fm-datum input { border: 0; border-bottom: 1px dotted #b9c1c8; background: transparent; height: 36px; padding: 0 10px; font: inherit; font-size: .875rem; color: var(--u-text); width: 150px; outline: 0; }
.fm-datum input:focus { border-bottom-color: var(--u-akzent); }
.fm-wahl select { appearance: none; -webkit-appearance: none; border: 0; border-bottom: 1px solid #c9d0d6; background: #f3f5f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%2324323d'/%3E%3C/svg%3E") no-repeat right 12px center / 10px 6px;
  height: 36px; min-width: 150px; padding: 0 34px 0 12px; font: inherit; font-size: .875rem; color: var(--u-text); cursor: pointer; outline: 0; }
.fm-export { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: #8a96a1; font-size: 1.2rem; border-radius: 50%; }
.fm-export:hover { background: #f1f4f6; color: var(--u-text); }
.fm-tabelle { overflow-x: auto; margin-bottom: 16px; min-height: 55vh; }
.fm-fuss { background: #e9ecef; padding: 10px 16px; font-size: .82rem; color: var(--u-text); }
.fm-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px; }
.fm-pille { height: 44px; padding: 0 18px; border: 1.5px solid #c9d0d6; border-radius: 999px; background: #fff; color: #5b6770; font-weight: 600; font-size: 1rem; display: inline-flex; align-items: center; gap: 6px; }
.fm-pille:hover { border-color: #8a96a1; color: var(--u-text); }
.fm-check { width: 15px; height: 15px; accent-color: var(--u-akzent); cursor: pointer; vertical-align: middle; }
.fz-tabelle-neu { width: 100%; border-collapse: collapse; font-size: .82rem; }
.fz-tabelle-neu thead th { background: #e9ecef; color: var(--u-text); font-weight: 400; font-size: .72rem; padding: 12px 14px; text-align: left; white-space: nowrap; }
.fz-tabelle-neu td { padding: 11px 14px; border-bottom: 1px solid #e9ecef; color: var(--u-text); vertical-align: middle; }
.fz-tabelle-neu tbody tr:hover td { background: #fafbfc; }
.fz-tabelle-neu .zahl { text-align: left; font-variant-numeric: tabular-nums; }
.fz-tabelle-neu .mitte { text-align: center; }
.fz-tabelle-neu tr.fz-erledigt td { color: #8a96a1; }
.fz-grau { color: #8a96a1; }
.fz-datum { color: var(--u-text); margin-left: 3px; }
.fz-klein { font-size: .72rem; color: #8a96a1; margin-top: 2px; }
.fz-text { max-width: 260px; color: #414d55; } .fz-text.breit { max-width: 520px; }
.fz-sort { font-size: .6rem; margin-right: 4px; }
.fz-leer { padding: 28px 16px; text-align: center; color: var(--u-grau); font-size: .875rem; }
.fz-label { display: inline-block; padding: 1px 6px; border-radius: 2px; font-size: .68rem; font-weight: 600; line-height: 15px; color: #fff; white-space: nowrap; background: #8a96a1; }
.fz-label.gruen { background: #3fae49; } .fz-label.rot { background: #d9534f; } .fz-label.gelb { background: #f0ad4e; }
.fz-kaestchen { display: inline-block; width: 17px; height: 17px; border-radius: 1px; background: #fff; border: 1.5px solid #c9d0d6; vertical-align: middle; }
.fz-kaestchen.an { background: #f5845c; border-color: #f5845c; }
/* Abwesenheiten (Schüler*innen, Eltern): „bis“-Datum, aufklappbare Stunden je Abwesenheit */
.fm-bis { display: inline-flex; align-items: center; gap: 4px; }
.fm-abw tr.fm-zeile { cursor: pointer; }
.fm-abw tr.fm-zeile.auf td { background: #f7f9fa; border-bottom-color: transparent; }
.fm-abw .fm-auf { color: #a3adb5; width: 28px; }
.fm-abw tr.fm-zeile.auf .fm-auf .bi { display: inline-block; transform: rotate(180deg); }
.fm-abw tr.fm-details > td { background: #f7f9fa; padding-top: 0; }
.fm-stunden { width: auto; border-collapse: collapse; font-size: .78rem; }
.fm-stunden td { padding: 5px 22px 5px 0; border-bottom: 1px solid #e9ecef; }
.fm-stunden tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) { .fm-filter { padding: 12px; gap: 8px; } .fm-raster { grid-template-columns: 1fr; } }

/* Dialoge über den Stundendetails (Abwesenheit, Lehrstoff, Klassenbucheintrag, Prüfung) im neuen Design */
.sd-altdialog { border: 0; border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 5, 10, .25); font-size: .875rem; overflow: hidden; }
.sd-altdialog-kopf { background: #fff; border-bottom: 1px solid #e3e7eb; padding: 14px 18px; color: var(--u-titel); font-size: 1.05rem; font-weight: 600; }
.sd-altdialog-kopf button { color: #67747e; font-size: 24px; }
.sd-altdialog-rumpf { padding: 16px 18px 18px; }
.ad-kopf { font-size: .82rem; color: #414d55; }
.ad-kopf dt { font-weight: 600; }
.ad-feld { font-size: .8rem; font-weight: 600; color: #414d55; gap: 4px; margin-bottom: 12px; }
.ad-feld input, .ad-feld select, .ad-feld textarea { font-size: .875rem; font-weight: 400; border: 1.5px solid #c9d0d6; border-radius: 6px; padding: 6px 10px; min-height: 36px; }
.ad-feld input:focus, .ad-feld select:focus, .ad-feld textarea:focus { outline: 0; border-color: var(--u-akzent); }
.ad-info { font-size: .82rem; color: #57626b; }
.ad-fuss { font-size: .78rem; color: #8a96a1; margin-top: 8px; }
.ad-knoepfe { gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.ad-pille { height: 38px; padding: 0 18px; border: 1.5px solid #c9d0d6; font-size: .9rem; color: var(--u-text); }
.ad-pille:hover { border-color: #8a96a1; color: var(--u-text); }
.ad-pille.klein { height: 28px; padding: 0 11px; font-size: .78rem; }
.ad-pille.rot { color: #a1262b; border-color: #e8a7aa; } .ad-pille.rot:hover { background: #fdecec; }
.ad-liste { font-size: .82rem; }
/* Abwesenheitsdialog: klares Formular mit Beschriftungen links */
.ab-formular { display: grid; grid-template-columns: 140px 1fr; gap: 12px 16px; align-items: center; }
.ab-formular > label { font-weight: 600; color: #414d55; font-size: .85rem; margin: 0; }
.ab-wert { font-weight: 600; color: var(--u-titel); }
.ab-zeile { display: flex; gap: 8px; flex-wrap: wrap; }
.ab-formular input, .ab-formular select { font: inherit; font-size: .9rem; border: 1.5px solid #c9d0d6; border-radius: 6px; padding: 6px 10px; min-height: 38px; color: var(--u-text); background: #fff; }
.ab-formular input:focus, .ab-formular select:focus { outline: 0; border-color: var(--u-akzent); }
.ab-formular input:disabled { background: #f3f5f7; color: #67747e; }
.ab-zeile input[type=date] { width: 170px; } .ab-zeile input[type=time] { width: 120px; }
.ab-formular select, .ab-formular #ab-text { width: 100%; }
.ab-schnell { display: flex; gap: 6px; flex-wrap: wrap; }
.ab-formular .vs-vorschau { margin: 0; }
.ab-status { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.ab-radio { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .9rem; }
.ab-radio input { accent-color: var(--u-akzent); width: 16px; height: 16px; min-height: 0; }
.ab-hinweis { flex-basis: 100%; font-size: .75rem; color: #8a96a1; }
.ab-ganz { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; cursor: pointer; }
.ab-ganz input { margin: 0; width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--u-akzent); cursor: pointer; }
.ab-ganz .ab-hinweis { flex-basis: auto; }
.ab-knoepfe { justify-content: flex-end; border-top: 1px solid #e3e7eb; padding-top: 14px; }
@media (max-width: 560px) { .ab-formular { grid-template-columns: 1fr; gap: 6px; } }
/* Fehlzeiten aufgeklappt: Untertabelle je Schüler*in leicht eingerückt auf hellgrauer Fläche, feine Linien, klare Chevrons */
.fz-tabelle tr.fz-stunde > td { padding: 0 16px 14px 56px !important; background: #f7f9fa; border-bottom: 1px solid #e3e7eb; }
.fz-unter { background: #fff; border: 1px solid #e3e7eb; border-radius: 6px; overflow: hidden; }
.fz-eingebettet { background: #fff; font-size: .8125rem; }
.fz-eingebettet thead th { background: #f1f3f5; color: #57626b; font-size: .72rem; padding: 9px 12px; border-bottom: 1px solid #e3e7eb; }
.fz-eingebettet td { padding: 8px 12px; border-bottom: 1px solid #eef0f2; }
.fz-eingebettet tbody tr:last-child td { border-bottom: 0; }
.fz-eingebettet tbody tr:hover td { background: #f9fafb; }
.fz-eingebettet .nl-wahl { width: 40px; padding-left: 12px !important; padding-right: 0 !important; }
.fz-eingebettet .nl-rund { width: 18px; height: 18px; }
.fz-eingebettet .fz-zeit { color: #8a96a1; }
.fz-eingebettet .fz-datum { margin-left: 2px; }
.fz-eingebettet .fz-kaestchen { width: 16px; height: 16px; }
.fz-eingebettet .nl-icon { width: 28px; height: 28px; }
.fz-auf { display: inline-grid; place-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: #67747e; font-size: .95rem; line-height: 1; }
.fz-auf .bi { transition: transform .15s ease; }
.fz-auf[aria-expanded="true"] .bi { transform: rotate(180deg); }
.fz-schueler:hover .fz-auf, .fz-auf:focus-visible { background: #e9ecef; color: var(--u-text); }
.fz-tabelle tr.fz-schueler.auf td { background: #f7f9fa; border-bottom: 0; }
@media (max-width: 767.98px) { .fz-tabelle tr.fz-stunde > td { padding: 0 8px 10px 8px !important; } .fz-unter { overflow-x: auto; } }

/* Karte: Stunde findet online statt */
.ecke .ecke-online { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 14px; color: #2d6fa3; font-size: 13px; line-height: 1; margin-right: 3px; vertical-align: middle; }
.ecke .ecke-online .bi { display: block; line-height: 1; }
/* Stundendetails: Link zum Online-Unterricht */
.sd-online-feld { margin-top: .6rem; max-width: 560px; }
.sd-online-feld input[type="url"] { flex: 1 1 260px; min-width: 0; }
.sd-online-link { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem 1rem; border-radius: 999px; background: var(--u-akzent); color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none; }
.sd-online-link:hover, .sd-online-link:focus-visible { background: var(--u-akzent-dunkel); color: #fff; }
.sd-online-ohne { color: var(--u-grau-2); }

/* ------------------------------------------------------------------ Vertretungs-Labels außerhalb der Karten (Stundendetails, Heute)
   Offene Vertretung: abwesende Lehrkraft durchgestrichen im grünen Label; eingeteilte Vertretung: neue Lehrkraft als grünes Label. */
.v-lbl { display: inline-block; padding: 0 4px; border-radius: 2px; background: var(--u-gruen-label); color: #fff; font-weight: 600; line-height: 1.45; white-space: nowrap; }
.v-lbl.weg { text-decoration: line-through; text-decoration-thickness: 1px; }
.v-lbl a, .v-lbl a:hover, .sd-zeile .v-lbl .sd-link, .sd-zeile .v-lbl .sd-link:hover { color: #fff !important; text-decoration: inherit; }
.v-alt { color: #8a96a1; text-decoration-thickness: .75px; }
.v-trenn { color: #b8c1c9; margin-right: .1rem; }
.monitor .v-trenn { color: #7f97a8; margin-right: .25rem; }
.v-lbl, .v-lbl:hover, tr:hover .v-lbl, a:hover .v-lbl, .nl-chip, .nl-chip:hover, tr:hover .nl-chip { filter: none !important; opacity: 1; }

/* Startseite „Mein nächster Unterricht“ im neuen Listen-Design */
.heute-karte > .nl-tabelle { border: 0; border-radius: 0 0 2px 2px; }
.heute-unterricht th { padding: 12px; font-size: .85rem; }
.heute-unterricht td { padding: 10px 12px; font-size: .875rem; color: var(--u-titel); white-space: nowrap; }
.heute-unterricht tbody tr { cursor: pointer; }
.heute-unterricht tbody tr:focus-visible { outline: 2px solid var(--u-akzent); outline-offset: -2px; }
.heute-unterricht .hu-zeit .nl-name { display: block; font-size: .95rem; line-height: 1.2; }
.heute-unterricht .hu-zeit .nl-unter { display: block; line-height: 1.2; }
.heute-unterricht .hu-std { width: 1%; }
.heute-unterricht .hu-fach { position: relative; padding-left: 20px; }
.heute-unterricht .hu-balken { position: absolute; left: 8px; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: var(--fach, #c9d0d6); }
.heute-unterricht .hu-fach .hu-wert { font-weight: 600; }
.heute-unterricht .hu-fach .nl-unter { display: block; line-height: 1.2; }
.heute-unterricht .hu-kb { flex-wrap: nowrap; align-items: center; }
.heute-unterricht .hu-lehrstoff { min-width: 140px; max-width: 320px; }
.heute-unterricht .hu-stoff { display: block; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #414d55; font-size: .875rem; }
.heute-unterricht .hu-stoff .bi { color: #0f7b47; }
.heute-unterricht .nl-chip .bi { font-size: .85em; }
.heute-unterricht .hu-info { width: 1%; color: #67747e; }
.heute-unterricht tr.entfall td { color: #8a96a1; }
.heute-unterricht tr.entfall .hu-wert, .heute-unterricht tr.entfall .hu-zeit .nl-name { text-decoration: line-through; text-decoration-thickness: .75px; }
.heute-unterricht tr.entfall .hu-balken { opacity: .4; }

/* Hinweis „Update verfügbar“ (Administration): schwebend, schließbar, ohne Layoutverschiebung */
.up-hinweis { position: fixed; right: 24px; bottom: 24px; z-index: 1070; display: flex; align-items: flex-start; gap: 12px; max-width: 400px; padding: 14px 14px 14px 16px;
  background: #fff; border: 1px solid #dfe3e7; border-left: 4px solid var(--u-akzent); border-radius: 10px; box-shadow: 0 6px 24px rgba(0, 5, 10, .14); font-size: .875rem; color: var(--u-text); }
.up-hinweis > .bi { font-size: 1.3rem; color: var(--u-akzent); line-height: 1; margin-top: 1px; }
.up-hinweis strong { display: block; font-weight: 600; color: var(--u-titel); }
.up-hinweis a { color: var(--u-akzent-dunkel); font-weight: 600; }
.up-hinweis .btn-close { flex: none; margin-left: 4px; font-size: .7rem; }
@media (max-width: 575.98px) { .up-hinweis { left: 16px; right: 16px; bottom: 16px; max-width: none; } }

/* ===== Stundendetails: einheitliche graue Umriss-Symbole, weiche Abwesend-Symbole in den Schülerkacheln ===== */
.sd-rumpf .kb-icon.wu { color: #a9b3bb; }
.sd-linie { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; display: block; }
.sd-umschalten { color: #b3bcc4; font-size: 17px; }
.sd-umschalten:hover, .sd-umschalten:focus-visible { color: #c96a6a; }
.sd-kachel:not(.da) .sd-umschalten:hover, .sd-kachel:not(.da) .sd-umschalten:focus-visible { color: #3f9a6c; }
/* „Aufgestanden“: Bett mit Pfeil nach oben (Abwesenheit endet jetzt) */
.sd-bett { width: 1.25em; height: 1em; fill: none; stroke-linecap: round; stroke-linejoin: round; display: block; }
.sd-bett .bett { stroke: #8a6a3a; stroke-width: 1.3; }
.sd-bett .pfeil { stroke: #d64545; stroke-width: 1.7; }
.sd-aufgestanden-rund { margin-right: 4px; font-size: 15px; }
.sd-aufgestanden-rund:hover, .sd-aufgestanden-rund:focus-visible { border-color: #d64545; background: #fff6f6; }
.sd-aufgestanden-rund:disabled { opacity: .5; }
.sd-aufgestanden-rund .sd-bett { margin: auto; }
.sd-kachel .sd-statusbild.weg { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: #cf6b6b; font-size: 16px; }

/* ===== Infocenter (runder Knopf unten rechts mit Panel) ===== */
.ic-knopf { position: fixed; right: 22px; bottom: 18px; z-index: 1035; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--u-grau);
  box-shadow: 0 2px 6px rgba(0, 5, 10, .12), 0 6px 18px rgba(0, 5, 10, .10); display: grid; place-content: center; font-size: 22px; transition: color .15s, transform .15s; }
.ic-knopf:hover, .ic-knopf[aria-expanded="true"] { color: var(--u-akzent); }
.ic-knopf:focus-visible { outline: 2px solid var(--u-akzent); outline-offset: 2px; }
.ic-zahl { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--u-akzent); color: #fff;
  font-size: .7rem; font-weight: 600; display: grid; place-content: center; border: 2px solid #fff; }
.ic-zahl[hidden] { display: none; }
body:has(.u-app[data-ansicht="plan"]) .ic-knopf { bottom: 76px; }
body:has(.ic-knopf) .up-hinweis { bottom: 88px; }
.ic-panel { position: fixed; right: 22px; bottom: 82px; z-index: 1036; width: 400px; max-height: min(640px, calc(100vh - 110px)); display: flex; flex-direction: column;
  background: #f6f7f9; border-radius: 14px; box-shadow: 0 8px 30px rgba(0, 5, 10, .18), 0 2px 6px rgba(0, 5, 10, .08); overflow: hidden; transform-origin: bottom right;
  animation: ic-auf .16s ease-out; }
.ic-panel[hidden] { display: none; }
body:has(.u-app[data-ansicht="plan"]) .ic-panel { bottom: 140px; }
@keyframes ic-auf { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.ic-panel-kopf { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 18px; background: #fff; border-bottom: 1px solid #e6e9ec; }
.ic-panel-kopf h2 { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--u-titel); }
.ic-link { margin-left: auto; border: 0; background: none; color: var(--u-akzent-dunkel); font-size: .8rem; font-weight: 600; padding: 2px 4px; }
.ic-link:disabled { color: #b7c0c7; }
.ic-zu { border: 0; background: none; color: var(--u-grau-2); font-size: 1rem; padding: 2px 4px; line-height: 1; }
.ic-zu:hover { color: var(--u-titel); }
.ic-liste { overflow-y: auto; padding: 0; display: block; background: #fff; }
.ic-panel-fuss { display: flex; justify-content: space-between; padding: 10px 18px; background: #fff; border-top: 1px solid #e6e9ec; font-size: .82rem; }
.ic-panel-fuss a { color: var(--u-akzent-dunkel); font-weight: 600; text-decoration: none; }
.ic-panel-fuss a[hidden] { display: none; }
/* Einträge im Infocenter und auf „Neuigkeiten“: gleich aufgebaute Listeneinträge (Kategorie, Datum, Titel, gekürzter Text) */
.ic-karte { position: relative; background: #fff; padding: 12px 16px 12px 18px; border-bottom: 1px solid #edf0f2; }
.ic-karte:last-child { border-bottom: 0; }
.ic-karte.neu { cursor: pointer; }
.ic-karte.neu::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--u-akzent); }
.ic-karte h3 { margin: 6px 0 4px; font-size: .95rem; font-weight: 600; color: var(--u-titel); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ic-koerper { max-height: calc(3 * 1.5em); overflow: hidden; font-size: .85rem; line-height: 1.5; color: var(--u-text); }
.ic-karte.auf .ic-koerper { max-height: none; }
.ic-karte.gekuerzt:not(.auf) .ic-koerper { -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.ic-text { margin: 0; white-space: normal; }
.ic-punkte { margin: 0; padding-left: 1.1rem; display: grid; gap: 0; }
.ic-mehr { border: 0; background: none; padding: 2px 0 0; color: var(--u-akzent-dunkel); font-size: .8rem; font-weight: 600; }
.ic-mehr:hover { text-decoration: none; color: var(--u-akzent); }
.ic-mehr[hidden] { display: none; }
.ic-meta { display: flex; align-items: center; gap: 8px; min-height: 18px; font-size: .75rem; color: var(--u-grau); }
.ic-datum { margin-left: auto; white-space: nowrap; }
.ic-kat { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: .68rem; line-height: 18px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; background: #eef1f4; color: #4a5560; }
.ic-kat.wichtig { background: #fde8e8; color: #b42318; }
.ic-kat.info { background: #e8f1fd; color: #1d5fae; }
.ic-kat.update { background: #fff1ea; color: #c2410c; }
.ic-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--u-akzent); flex: none; margin-left: auto; }
.ic-meta .ic-datum + .ic-punkt { margin-left: 0; }
.ic-meta .nw-werkzeuge { margin-left: 8px; }
.ic-leer { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 0; color: var(--u-grau); font-size: .9rem; }
.ic-leer .bi { font-size: 56px; color: var(--u-graustufe-5); line-height: 1; }
.ic-hinweis { position: fixed; right: 84px; bottom: 22px; z-index: 1037; display: flex; align-items: center; gap: 4px; max-width: 320px; background: var(--u-titel); color: #fff;
  border-radius: 12px; padding: 8px 8px 8px 14px; box-shadow: 0 6px 18px rgba(0, 5, 10, .22); animation: ic-auf .2s ease-out; }
body:has(.u-app[data-ansicht="plan"]) .ic-hinweis { bottom: 80px; }
.ic-hinweis-text { border: 0; background: none; color: inherit; text-align: left; display: flex; flex-direction: column; min-width: 0; padding: 0; font-size: .82rem; }
.ic-hinweis-text b { font-weight: 600; }
.ic-hinweis-text span { opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 250px; }
.ic-hinweis-zu { border: 0; background: none; color: #fff; opacity: .7; padding: 4px 6px; font-size: .8rem; }
.ic-hinweis-zu:hover { opacity: 1; }
@media (max-width: 575.98px) {
  .ic-knopf { right: 14px; bottom: 14px; width: 48px; height: 48px; }
  .ic-panel { right: 8px; left: 8px; width: auto; bottom: 72px; max-height: calc(100vh - 96px); }
  .ic-hinweis { right: 70px; left: 12px; bottom: 16px; max-width: none; }
}
@media print { .ic-wurzel, .ic-hinweis { display: none !important; } }
/* Glocke (Infocenter) nur auf der Startseite „Heute“ */
body:has(.u-app:not([data-ansicht="heute"])) :is(.ic-wurzel, .ic-hinweis), body:not(:has(.u-app)) :is(.ic-wurzel, .ic-hinweis) { display: none !important; }

/* ===== Neuigkeiten (Seite) ===== */
.nw-liste-karte { max-width: 920px; margin-top: 18px; padding: 4px 0; }
.nw-liste-karte .ic-karte { padding: 16px 22px 16px 24px; }
.nw-liste-karte .ic-karte h3 { font-size: 1rem; }
.nw-liste-karte .ic-karte.neu::before { top: 16px; bottom: 16px; }
.nw-hinweis { color: var(--u-grau); font-size: .88rem; margin: -6px 0 16px; }
.nw-tabelle td .nw-grau { color: var(--u-grau); font-size: .82rem; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-sichtbar { background: #e3f5ea; color: #0f6b40; }
.nw-symbol { border: 0; background: none; color: var(--u-grau-2); font-size: 1.05rem; padding: 4px 6px; line-height: 1; }
.nw-symbol:hover { color: var(--u-akzent-dunkel); }
.nl-knopf.nw-primaer { background: var(--u-akzent); border-color: var(--u-akzent); color: #fff; text-decoration: none; }
.nl-knopf.nw-primaer:hover { background: var(--u-akzent-dunkel); border-color: var(--u-akzent-dunkel); color: #fff; }
.nw-formular { display: grid; gap: 4px; }
.nw-formular .form-label { margin: 8px 0 2px; font-weight: 600; font-size: .88rem; }
.nw-formular .form-switch { margin-top: 12px; }
.nw-zeitraum { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .nw-liste-karte .ic-karte { padding: 14px 16px 14px 18px; } .nw-tabelle { overflow-x: auto; } }

/* Übersicht (für alle Rollen): Stile in css/uebersicht.css (lädt js/ansichten/uebersicht.js). */
@media (max-width: 575.98px) { .ic-panel { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); } }
/* Stundendetails wie im Original: bei Entfall Kopf hellgrau, darunter roter Balken „ENTFÄLLT“ (bündig mit dem Inhalt);
   Prüfung/Veranstaltung als dezente graue Kapsel im Kopf; „Abwesende Schüler*innen“ als Tabelle im neuen Design */
/* Vorlage: roter Balken ganz oben (#ff4040, 28px, „ENTFÄLLT“ fett weiß auf Linie mit dem Titel), Kopf samt Reitern #dcdfe5 */
.sd-kopf.grau { background: #dcdfe5; padding-bottom: 16px; }
.sd-reiter.grau { background: #dcdfe5; }
.sd-entfall-leiste { background: #ff4040; color: #fff; font-size: .875rem; font-weight: 700; letter-spacing: .01em; line-height: 28px; padding: 0 16px; text-align: center; }
/* Leiste durchgängig über die volle Breite; der Text „ENTFÄLLT“ steht linksbündig auf Linie mit Kopf und Inhalt (Einzug 166px wie .sd-kopf/.sd-rumpf) */
.modal .sd-entfall-leiste { margin: 0; border-radius: 0; text-align: left; padding-left: 166px; padding-right: 28px; }
@media (max-width: 991.98px) { .modal .sd-entfall-leiste { padding-left: 16px; padding-right: 16px; } }
.sd-kopf.grau + .sd-reiter.grau { margin-top: 0; }
.sd-statuspille { display: inline-block; margin-left: .75rem; padding: 1px 10px; border-radius: 999px; background: #e6e9ed; color: #4a5662; font-size: .8125rem; font-weight: 400; line-height: 20px; vertical-align: 1px; }
.sd-kopf.grau .sd-statuspille { background: #fff; }
.sd-strich { color: #b8c1c9; margin: 0 .2rem; }
.nl-tabelle.sd-abw { border-radius: 6px; font-size: .875rem; overflow-x: auto; }
.sd-abw thead th { background: #f3f5f7; padding: 10px 12px; font-size: .82rem; font-weight: 600; color: #414d55; }
.sd-abw td { padding: 8px 12px; background: #fff; }
.sd-abw tbody tr:hover td { background: #f7f9fa; }
.sd-abw tbody tr.nl-gewaehlt td { background: #fff6f1; }
.sd-abw tr.vorstunde td { color: var(--u-grau); }
.sd-abw .nl-wahl { width: 48px; padding-left: 14px !important; }
.sd-abw .nl-rund { width: 20px; height: 20px; }
.sd-abw-name { font-weight: 600; color: var(--u-text); white-space: nowrap; }
.sd-abw-zeit { color: var(--u-grau); margin-left: 4px; }
.sd-abw-zusatz { display: inline-block; margin-left: 8px; color: var(--u-grau); font-size: .8rem; }
.sd-abw-text { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-abw .nl-fuss { padding: 8px 12px 8px 16px; background: #fff; }
.sd-abw-anzahl { color: var(--u-grau); font-size: .82rem; }
.sd-abw .nl-knopf { height: 32px; font-size: .85rem; }
.sd-abw .nl-knopf:disabled { opacity: .45; cursor: default; }
.sd-kreisknopf { display: inline-grid; place-content: center; width: 32px; height: 32px; padding: 0; border: 1.5px solid #c9d0d6; border-radius: 50%; background: #fff; color: #414d55; font-size: .9rem; line-height: 1; vertical-align: middle; }
.sd-kreisknopf:hover { border-color: #8a96a1; color: var(--u-text); background: #f7f9fa; }
.sd-kreisknopf:focus-visible { outline: 2px solid var(--u-akzent); outline-offset: 1px; }
.sd-kreisknopf.klein { width: 24px; height: 24px; font-size: .78rem; border-width: 1px; margin: 0 6px; }
@media (max-width: 767.98px) { .nl-tabelle.sd-abw { overflow-x: auto; } }

/* Stundendetails wie die Vorlagen: leerer Reiter „Keine weiteren Details“ groß und grau mittig mit Abstand nach oben, darunter der
   Hinweis halbfett (ohne Punkt); Details-Zeilen mit 26-px-Symbolen, Titel 13 px über dem Notizfeld, Notizfelder 68 px hoch */
.sd-leer { padding: 6.5rem 1rem 3rem; gap: 1.7rem; text-align: center; }
.sd-leer b { font-size: 1.45rem; font-weight: 600; color: #56636e; }
.sd-leer span { font-size: .95rem; font-weight: 600; color: #3f4a54; }
.sd-detail { gap: 1.8rem; padding: 1.2rem 0 1.1rem; }
.sd-detail > .u-sym, .sd-detail > .kb-icon { width: 26px; height: 26px; margin-top: 1px; }
.sd-detail-titel { margin-bottom: .8rem; color: #5b6670; }
.sd-schalter .sd-detail-titel { margin-bottom: 0; }
.sd-notiz { min-height: 68px; border-color: #c9ced4; border-radius: 4px; }

/* Seitenleiste nach Vorlage nachgemessen (Bild bei 125 %, Fenster 797 px hoch): Logo 46 px ab 14/16, Name und Schule ab 76 px,
   Schuljahr-Pille ab 76 px (oben 78, 32 px hoch), erster Menüpunkt ab 126 px, Punkte 50 px hoch, Schrift 16,2 px;
   Benutzer: Bild 38 px ab 20 px, Name ab 78 px; Abmelden: Symbol ab 27 px, Text ab 78 px */
.u-marke { padding: 16px 14px 0 14px; gap: 16px; }
.u-marke .logo { width: 46px; height: 46px; margin-top: 0; }
.u-marke span { padding-top: 0; margin-top: -9px; }
.u-marke small { line-height: 1.3; }
.u-leiste:not(.mit-unter) .u-jahrzeile { padding: 8px 0 16px 76px; min-height: 0; }
.u-leiste:not(.mit-unter) .u-jahr { padding-top: 4.2px; padding-bottom: 4.2px; }
.u-nav-punkt { font-size: 16.2px; }
.u-benutzer { padding-left: 20px; gap: 20px; }
.u-benutzer .u-avatar { width: 38px; height: 38px; }
.u-abmelden { padding-left: 27px; gap: 27px; }
.u-abmelden .u-sym { width: 24px; height: 24px; }
/* Abmelden und Neuigkeiten wie in der Vorlage: Hover-Fläche gleich lang wie bei den Menüpunkten, aber niedriger (32 px statt 40 px) */
.u-benutzer { width: calc(100% - 16px); }
.u-abmelden { width: calc(100% - 16px); padding-top: 4px; padding-bottom: 4px; margin-top: 0; min-height: 32px; }

/* Einheitliche Menülogik in allen Menüs (Hauptmenü, Stammdaten, Administration): Überfahren hellorange (#ffeae6) mit orangem
   Text/Symbol bis 16 px vor den rechten Rand, rechts voll abgerundet; aktiver Punkt orange mit Balken links, ohne Fläche.
   Höhere Spezifität, damit spätere Stildateien (nl-design.css) das Überfahren nicht grau färben. */
.u-leiste .u-nav .u-nav-punkt:hover,
.u-leiste .u-nav .u-nav-punkt.aktiv:hover { background: #ffeae6; color: var(--u-akzent); border-radius: 0 999px 999px 0; width: calc(100% - 16px); }
.u-leiste .u-nav .u-nav-punkt:hover .u-nav-sym { color: var(--u-akzent); }
.u-leiste .u-nav .u-nav-punkt.aktiv { background: none; color: var(--u-akzent); }
.u-leiste .u-nav-kompakt .u-nav-punkt { width: calc(100% - 16px); }
.u-leiste .u-nav-kompakt .u-nav-punkt.aktiv::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 0; background: var(--u-akzent); }

/* Schriften der Seitenleiste wie im Original (Textbreiten der Vorlage mit Avenir Next LT Pro nachgemessen):
   Menüpunkte Demi 16 px, Titel Demi 22 px, Schulname Regular 14,2 px, Schuljahr Demi 13,8 px, Benutzername Demi 16 px,
   Rolle Regular 14 px, Abmelden/Neuigkeiten Demi 12 px */
.u-leiste .u-nav .u-nav-punkt { font-size: 16px; font-weight: 600; }
/* Untermenü (z. B. Weitere Stundenpläne: Klasse, Raum, Ressource) wie Original (Bild 279): kleiner und Medium */
.u-leiste .u-nav-unter .u-nav-punkt { font-size: 14px; font-weight: 600; gap: 23px; } /* Untermenü wie Original (Bild 284): 14 px Demi, Text bei x ≈ 99 px */
/* aktiver Punkt im Untermenü wie Original (Bild 284): hell-orange Fläche, rechts rund, bis 15 px vor den Rand, 50 px hoch */
.u-leiste .u-nav-unter .u-nav-punkt.aktiv { background: #ffeae6; border-radius: 0 999px 999px 0; width: calc(100% - 15px); min-height: 50px; }
.u-leiste .u-marke b { font-size: 22px; font-weight: 600; }
.u-leiste .u-marke small { font-size: 14.2px; font-weight: 400; }
.u-leiste .u-jahr { font-size: 13.8px; font-weight: 600; }
.u-leiste .u-benutzer b { font-size: 16px; font-weight: 600; }
.u-leiste .u-benutzer small { font-size: 14px; font-weight: 400; }
.u-leiste .u-abmelden { font-size: 12px; font-weight: 600; } /* Vorlage (Bild 281, gleicher Zoom wie Bild 282): Abmelden grau, Demi */

/* Seitenleiste wie in der Vorlage: Titel mittig neben dem Logo, Schulname in normaler Schreibweise einzeilig darunter */
.u-leiste .u-marke span { margin-top: -1px; }
.u-leiste .u-marke b { font-size: 21px; font-weight: 500; line-height: 1.2; }
.u-leiste .u-marke small { display: block; margin-top: 2px; font-size: 14.2px; text-transform: none; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; }
.u-leiste:not(.mit-unter) .u-jahrzeile { padding-top: 15px; padding-bottom: 13px; }

/* Tag - Klassen/Lehrkräfte/Räume wie in der Vorlage: Elemente als Spalten (mind. 140 px, waagrecht scrollbar), Knopf „leere Spalten“ oben links */
.tag-huelle { overflow-x: auto; padding-bottom: 8px; }
.tag-huelle .tt.tt-spalten { grid-template-columns: 54px repeat(var(--tage), minmax(140px, 1fr)); min-width: calc(54px + var(--spalten) * 152px); }
.tt-spalten .tt-tag { font-size: 1rem; font-weight: 500; color: #8a96a1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-spalten > .tt-ecke { display: flex; align-items: center; justify-content: center; }
.tt-leer-knopf { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: #8a96a1; font-size: 1rem; cursor: pointer; }
.tt-leer-knopf:hover, .tt-leer-knopf.aus { background: #dfe3e7; color: #414d55; }
.tag-filter { width: 200px; border-radius: 999px; }

/* Menüpunkte der Seitenleiste wie in der Vorlage: grau (#67747e) und Medium statt dunkel und fett; aktiv orange */
.u-leiste .u-nav .u-nav-punkt { color: #67747e; font-weight: 500; }
.u-leiste .u-nav .u-nav-punkt .u-nav-sym { color: #67747e; }
.u-leiste .u-nav .u-nav-punkt.aktiv, .u-leiste .u-nav .u-nav-punkt.aktiv .u-nav-sym { color: var(--u-primaer); }
.u-leiste .u-nav .u-nav-punkt:hover, .u-leiste .u-nav .u-nav-punkt:hover .u-nav-sym { color: var(--u-akzent); }

/* Seitenleiste mit Untermenü (Stundenpläne) nachgemessen an Vorlage 295 (Windows, 100 %): 279px weiß mit 1px-Kante #dce0e5,
   Zurück-Knopf 44px (oben 16px) mit kräftigerem Schatten und Pfeil 16 × 8 px in #8a96a1; Schuljahr-Pille 124 × 32 px ab 75/76 px mit
   1px-Rand #bfc8cf, Schrift #67747e, Winkel 14 × 8 px #8a96a1; erster Menüpunkt mittig bei 148px; aktiver Punkt ohne Fläche (nur
   beim Überfahren hellorange), Balken 3px breit über die ganze Zeilenhöhe */
.u-leiste { box-shadow: inset -1px 0 0 #dce0e5; }
.u-leiste.mit-unter .u-zurueck { position: relative; top: 1px; }
.u-leiste.mit-unter .u-zurueck { width: 44px; height: 44px; box-shadow: 0 3px 4px rgba(20, 45, 65, .24), 0 4px 12px rgba(20, 45, 65, .12); color: #8a96a1; }
.u-leiste.mit-unter .u-zurueck .u-sym { width: 27px; height: 27px; }
.u-leiste.mit-unter .u-jahrzeile { padding-top: 16px; padding-bottom: 16px; padding-left: 75px; }
.u-leiste.mit-unter .u-jahr.mit-pfeil { height: 32px; padding: 0 9px 0 17px; gap: 3px; border: 1px solid #bfc8cf; color: #67747e; }
.u-leiste.mit-unter .u-jahr.mit-pfeil .bi { font-size: 17.6px; color: #8a96a1; -webkit-text-stroke: 0; }
.u-leiste .u-nav-unter .u-nav-punkt.aktiv:not(:hover) { background: none; }
.u-leiste .u-nav-unter .u-nav-punkt.aktiv::before { width: 3px; border-radius: 0 3px 3px 0; }
.u-leiste .u-nav-unter .u-nav-punkt:not(.aktiv):not(:hover) .u-nav-sym { color: #8a96a1; } /* Symbole heller als der Text (Vorlage 295) */
.u-leiste .u-benutzer b { color: #67747e; }
.u-leiste .u-benutzer .u-avatar { border-color: #bfc8cf; }
/* Fuß der Seitenleiste wie Vorlage 289/295 (Fenster 947 px hoch, ohne Neuigkeiten): Griff 794/801 px, Avatar 40px bei 846–885 px
   (links 18px), Abmelden-Text 909 px, Symbol in Originalgröße 28px (Strich 20 × 20 px bei 28/904 px) */
@media (min-width: 992px) {
  .u-leiste .u-fuss { padding-bottom: 18px; }
  .u-leiste .u-griff { margin-bottom: 25px; }
  .u-leiste .u-griff span, .u-leiste .u-griff span::after { left: calc(50% - 1px); }
  .u-leiste .u-griff span::after { left: 50%; top: 7px; }
  .u-leiste .u-benutzer { padding-left: 18px; gap: 19px; margin-bottom: 5px; }
  .u-leiste .u-benutzer .u-avatar { width: 40px; height: 40px; }
  .u-leiste .u-abmelden { padding: 2px 12px 2px 24px; gap: 25px; }
  .u-leiste .u-abmelden .u-sym { width: 28px; height: 28px; }
}

/* Startseite „Mein nächster Unterricht“ auf kleineren Monitoren: die Lehrstoff-Spalte nimmt nur den Restplatz und kürzt mit „…“
   (vollständig im Hover), alle anderen Spalten bleiben vollständig; im Notfall waagrecht scrollbar statt abgeschnitten */
.nl-tabelle.heute-unterricht { overflow-x: auto; }
.heute-unterricht td.hu-lehrstoff { width: 100%; min-width: 120px; max-width: 0; }
.heute-unterricht .hu-stoff { max-width: 100%; }
.heute-unterricht .hu-lehrstoff .nl-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1500px) {
  .heute-unterricht th, .heute-unterricht td { padding-left: 8px; padding-right: 8px; }
  .heute-unterricht .hu-fach { padding-left: 18px; }
  .heute-unterricht .hu-balken { left: 6px; }
}
@media (max-width: 1300px) {
  .heute-unterricht .hu-fach .nl-unter { display: none; }
  .heute-unterricht td.hu-lehrstoff { min-width: 90px; }
  .heute-unterricht .hu-kb .nl-chip { padding-left: 8px; padding-right: 8px; }
}
/* Leiste am aktiven Menüpunkt: abgerundete Enden */
.u-leiste .u-nav-punkt.aktiv::before, .u-nav-punkt.aktiv::before { border-radius: 0 4px 4px 0; }

/* Unterricht → Mein Unterricht (unterricht.js) wie in der Vorlage: Abwesenheiten und Knöpfe unter der Tabelle */
.mu-tabelle th.mu-sortiert { color: var(--u-akzent); }
.mu-tabelle tr.mu-geaendert td { background: #f4f8e6; }
.mu-art { color: #3b6fb6; }
.mu-abwesenheiten { margin-top: 18px; padding: 16px 20px; background: #fff; border-radius: 8px; box-shadow: var(--u-schatten); }
.mu-abwesenheiten h3 { margin: 0 0 8px; font-size: .95rem; font-weight: 500; color: var(--u-akzent); }
.mu-liste { margin: 0; padding-left: 18px; color: var(--u-titel); }
.mu-fuss { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.nl-tabelle .mu-tabelle th, .nl-tabelle .mu-tabelle td { padding: 8px 7px; white-space: nowrap; font-size: .84rem; }
.nl-tabelle .mu-tabelle .nl-icon { width: 26px; height: 26px; }

/* Kopf der Seitenleiste wie in der Vorlage: Logo-Kachel 48 px, daneben der Schulname fett in Versalien (bis zwei Zeilen),
   darunter die Schuljahr-Pille (grau, Rand #dcdfe5) bündig mit dem Namen; die Pille bleibt die Schuljahrwahl. */
.u-leiste .u-marke.u-marke-schule { padding: 14px 14px 0 14px; gap: 14px; align-items: center; }
.u-leiste .u-marke.u-marke-schule .logo { width: 48px; height: 48px; border-radius: 11px; }
.u-leiste .u-marke.u-marke-schule span { margin-top: 0; padding-top: 0; }
.u-leiste .u-marke.u-marke-schule b { font-size: 16px; font-weight: 600; line-height: 1.3; color: #3f525f; text-transform: uppercase; letter-spacing: .01em;
  white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.u-leiste:not(.mit-unter) .u-jahrzeile { padding: 16px 0 18px 76px; }
.u-leiste:not(.mit-unter) .u-jahr.mit-pfeil { background: #f3f5f7; border: 1px solid #dcdfe5; color: #5b6770; font-size: 13.5px; font-weight: 600; padding: 5px 15px; }
.u-leiste:not(.mit-unter) .u-jahr.mit-pfeil:hover { border-color: #c3cad1; }
.u-leiste:not(.mit-unter) .u-jahr.mit-pfeil .bi { display: none; }
.u-leiste:not(.mit-unter) .u-jahr.mit-pfeil.anders { border-color: var(--u-akzent); color: var(--u-akzent-dunkel); }
.u-app.zu .u-marke-schule .logo { visibility: visible; }
