/* =====================================================================
   Stundenplan PWA — Mobile
   Werte (Raster, Farben, Abstände) sind aus den Screenshots vermessen:
   Referenzgerät 402 x 874 CSS-px (iPhone @3x = 1206 x 2622).
   ===================================================================== */

/* ---------- Tokens ---------- */
:root{
  /* Flächen */
  --c-bar:            #ffffff;
  --c-grid-top:       #f2f4f7;
  --c-grid-bottom:    #e7e9ef;
  /* Eine Stärke und eine Farbe für alle Rasterlinien. */
  --c-line:           #ccd3d9;
  --c-line-soft:      var(--c-line);
  /* Fläche für Listen und Eingabefelder in den Mitteilungen. */
  --c-surface:        #ffffff;
  --c-chip:           #eef1f4;
  --c-col-line:       #dcdee2;

  /* Text */
  --c-ink:            #253746;
  --c-ink-2:          #48606f;
  --c-muted:          #6b7a85;
  --c-gutter:         #65717a;

  /* Karten */
  --card-bg:          #ffffff;
  --card-bg-past:     #f2f4f6;
  --shadow-past:      0 1px 2px rgba(31,47,61,.23), 0 2px 5px rgba(31,47,61,.21);
  --card-accent:      #bfc7d2;
  --card-radius:      3px;
  /* Linke Kante der Plakette. Der Fließtext rückt davon noch einmal um das
     Polster der Plakette ein, damit beides bündig steht. Werte aus dem
     Muster: Balken bei 3 px, Text bei 12,5 px. */
  --card-pad-left:    11px;
  --card-pad-top:     4.5px;
  --card-pad-edge:    4px;      /* rechts und unten */
  --bar-left:         4px;      /* alles von der Außenkante gemessen */
  --bar-top:          4px;

  /* Am Muster ausgemessen: Fläche #e3fff2, Rahmen #019169. */
  --chg-bg:           #e3fff2;
  --chg-accent:       #cde5df;
  --chg-border:       #019169;

  --cnc-bg:           #fff3f2;
  --cnc-accent:       #f0c3ce;
  --cnc-border:       #e00047;

  --exam-bg:          #fff6d5;
  --exam-border:      #a1512c;

  --evt-bg:           #dffef5;
  --evt-accent:       #cfeee4;

  --hol-bg:           #d5ebfe;
  --hol-line:         #b3d6f6;
  --hol-ink:          #2b3f52;

  /* Vorbild-Farbtöne (aus der Vorlage abgenommen) */
  --u-orange:         #f07c00;   /* Vorbild-Orange — Akzent der Oberfläche */
  --u-orange-soft:    #fff1e2;
  --u-orange-ink:     #a85400;
  --u-green:          #0b7d65;   /* Plaketten und Änderungen im Plan */
  --u-green-soft:     #dcfff3;
  --u-blue:           #d5ebfe;   /* Ferien */
  --u-ink:            #2b3f52;
  --u-ink-2:          #5d727f;
  --u-slate:          #5f7180;   /* Eckklammern */
  --u-magenta:        #d379e9;   /* Aufsicht */
  --u-cyan:           #01ffff;   /* Bereitschaft mit abwesender Lehrkraft */
  --u-red:            #f40041;   /* Abwesenheit */

  /* Akzente */
  --green:            var(--u-green);
  --green-ink:        #ffffff;
  --today:            #ef5a2a;
  --nowline:          #e65d35;
  --absent:           var(--u-red);

  /* Raster */
  --gutter-w:         45px;
  --day-gap:          3px;      /* Luft zwischen den Tagesspalten */
  --ppm:              1.2704;      /* px pro Minute — ergibt 57,17px je 45-Min-Stunde */
  --grid-pad-top:     15px;
  --grid-pad-bottom:  120px;

  /* Chrome */
  --tabbar-h:         62px;
  --sat:              env(safe-area-inset-top, 0px);
  --sab:              env(safe-area-inset-bottom, 0px);
  --kb:               0px;          /* Höhe der eingeblendeten Tastatur */

  --strike:           1px;       /* Stärke aller Durchstreichungen */

  /* Am Muster gemessen: ein knapper, weicher Schatten dicht unter der
     Kachel — keine ausladende Wolke. Die alten Werte (32 % auf 3px, 26 %
     auf 18px Weichzeichnung) legten einen grauen Saum um jede Kachel, der
     bei eng stehenden Karten wie eine Umrandung wirkte. */
  --shadow-card:      0 1px 2px rgba(31,47,61,.30), 0 2px 6px rgba(31,47,61,.29);
  --shadow-bar:       0 6px 28px rgba(31,47,61,.16);
  --shadow-sheet:     0 -8px 40px rgba(21,33,44,.22);

  --ease:             cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
/* Schrift nur Regular (400) und Medium (500) – wie im Original, nie fett. */
b,strong,h1,h2,h3,h4,h5,h6,th{ font-weight:500; }

/* Klassen wie .row setzen display und heben damit hidden auf — deshalb
   hier ausdrücklich. Sonst blieben ausgeblendete Zeilen sichtbar. */
[hidden]{ display:none !important; }

/* Keine sichtbaren Rollbalken — gerollt wird mit dem Finger, und auf dem
   Rechner stören die grauen Streifen die abgemessenen Breiten. Die
   Bedienbarkeit bleibt: Tastatur, Rad und Wischen wirken unverändert. */
*{ scrollbar-width:none; -ms-overflow-style:none; }
*::-webkit-scrollbar{ width:0; height:0; display:none; }
/* Die Seite selbst scrollt nie. Ohne das schiebt iOS beim Tippen in ein
   Eingabefeld das ganze Fenster hoch, und vom Sheet bleibt weiße Fläche. */
html,body{ height:100%; overflow:hidden; position:fixed; inset:0; width:100%; }
body{
  margin:0;
  /* Kein Textmarkieren, kein Lupen-Popup, kein Gummiband am Rand — das
     unterscheidet eine App von einer Webseite. */
  -webkit-user-select:none; user-select:none;
  -webkit-touch-callout:none;
  overscroll-behavior:none;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Inter,Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:15px;
  color:var(--c-ink);
  background:var(--c-bar);
  -webkit-font-smoothing:antialiased;
  -webkit-tap-highlight-color:transparent;
  overscroll-behavior-y:none;
}
button{
  font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer;
  touch-action:manipulation;          /* kein Doppeltipp-Zoom */
}
input, textarea, [contenteditable]{ -webkit-user-select:text; user-select:text; }
input{ font:inherit; }
h1,h2,h3,p,ul{ margin:0; }
ul{ padding:0; list-style:none; }

.ico{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; display:block; }

/* Symbole aus der Vorbild-Sammlung.
   Sie sind anders gebaut als die selbst gezeichneten: reine Füllflächen
   ohne Konturlinie. Deshalb müssen die Vorgaben von `.ico` — Kontur an,
   Füllung aus — hier genau umgekehrt stehen, sonst bliebe die Fläche
   unsichtbar und der Umriss erschiene doppelt. */
.uic{
  width:22px; height:22px; display:block;
  fill:currentColor; stroke:none;
}
.tab .uic{ width:24px; height:24px; }
/* Trägt ein Element beide Klassen, gewinnt die Füllung: `.ico` steht
   weiter oben in der Datei und würde sonst Kontur und leere Fläche
   erzwingen. */
.uic.ico{ fill:currentColor; stroke:none; }

/* =====================================================================
   App-Gerüst
   ===================================================================== */
.app{
  position:fixed; inset:0;
  display:flex; flex-direction:column;
  background:var(--c-bar);
}

/* ---------- Topbar ---------- */
.topbar{
  flex:0 0 auto;
  padding:calc(var(--sat) + 13px) 12px 0;
  display:grid;
  grid-template-columns:44px 1fr auto;
  align-items:center;
  gap:8px;
  background:var(--c-bar);
}
.icon-btn{
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius:999px;
  color:var(--c-ink-2);
  transition:background .15s var(--ease), transform .12s var(--ease);
}
.icon-btn:active{ transform:scale(.92); }
.icon-btn--solo{ background:#f1f3f5; }

.topbar__actions{
  display:flex; align-items:center;
  background:#f1f3f5;
  border-radius:999px;
  padding:0 2px;
}
.topbar__actions .icon-btn{ width:42px; height:44px; }

.topbar__title{
  display:flex; align-items:center; justify-content:center; gap:5px;
  font-size:17.5px; font-weight:500; letter-spacing:-.005em;
  color:#5d727f;
  min-width:0;
  padding:6px 4px;
}
.topbar__title > span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ico--chev{ width:16px; height:16px; stroke-width:2.2; flex:0 0 auto; }

/* =====================================================================
   Screens
   ===================================================================== */
.screen{ display:none; flex:1 1 auto; min-height:0; }
.screen.is-active{ display:flex; flex-direction:column; }

/* ---------- Wochenkopf ---------- */
.weekhead{
  position:relative;
  flex:0 0 auto;
  display:grid;
  grid-template-columns:var(--gutter-w) 1fr;
  align-items:end;
  padding:2px 0 6px;
  background:var(--c-bar);
}
.weekhead__kw{ padding-left:6px; line-height:1.05; }
.weekhead__kw-no{ display:block; font-size:11px; font-weight:500; color:var(--c-ink-2); }
.weekhead__month{ display:block; margin-top:3px; font-size:17px; font-weight:500; color:var(--c-ink); letter-spacing:-.01em; }

/* Der Streifen ragt über drei Wochen; die Spalte wird deshalb selbst zum
   Rahmen und schneidet ab, was links neben der Woche liegt. */
.weekhead__days{
  overflow:hidden;
  display:block;
  min-width:0;
}
/* Ladebalken: kräftig (4 px) und satt orange, oben an der Tagesleiste — also direkt
   unter der Kopfzeile, wo der Blick beim Wechseln ohnehin ist. Er läuft
   unbestimmt von links nach rechts (zwei Abschnitte, wie bei den
   Systemleisten) und erscheint erst, wenn das Laden wirklich dauert. */
.loadbar{
  position:absolute; left:0; right:0; top:0; height:4px;
  overflow:hidden; pointer-events:none; z-index:3;
  background:color-mix(in srgb, #ff7a00 22%, transparent);
  opacity:0; transition:opacity .2s var(--ease);
}
.loadbar.is-on{ opacity:1; }
.loadbar span, .loadbar::after{
  content:""; position:absolute; top:0; bottom:0; left:0;
  background:#ff7a00; border-radius:2px;
  width:38%; transform:translateX(-110%);
  will-change:transform;
}
.loadbar::after{ width:22%; }
.loadbar.is-on span{ animation:laden 1.35s cubic-bezier(.65,.05,.36,1) infinite; }
.loadbar.is-on::after{ animation:laden2 1.35s cubic-bezier(.4,0,.2,1) .55s infinite; }
@keyframes laden{
  0%   { transform:translateX(-110%); }
  100% { transform:translateX(280%); }
}
@keyframes laden2{
  0%   { transform:translateX(-110%); }
  100% { transform:translateX(470%); }
}
@media (prefers-reduced-motion: reduce){
  .loadbar.is-on span{ animation:none; transform:none; width:100%; opacity:.7; }
  .loadbar.is-on::after{ animation:none; display:none; }
}

.weekhead__strip{
  display:grid;
  will-change:transform;
  transition:transform .38s cubic-bezier(.32,.72,0,1);
}
.weekhead__strip.is-dragging{ transition:none; }


.dayhead{ text-align:center; line-height:1.05; }
.dayhead__name{ display:block; font-size:12px; font-weight:500; color:var(--c-ink-2); }
.dayhead__num{ display:block; margin-top:3px; font-size:16px; font-weight:500; color:var(--c-ink); letter-spacing:-.02em; }
.dayhead.is-today .dayhead__name,
.dayhead.is-today .dayhead__num{ color:var(--today); }
.dayhead{ padding:2px 0 3px; border-radius:9px; transition:background .15s var(--ease); }
.dayhead.is-picked{ background:var(--u-orange-soft); }
.dayhead.is-picked .dayhead__num{ color:var(--u-orange-ink); }

/* ---------- Rasterfläche ---------- */
.gridscroll{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  touch-action:pan-y;                 /* waagerechte Gesten gehören der App */
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  background:linear-gradient(180deg,var(--c-grid-top) 0%,var(--c-grid-bottom) 100%);
  background-attachment:local;
}
/* Waagerechte Wischgeste erkannt: bis zum Loslassen kein senkrechtes
   Rollen (auch kein Schwung-Nachlauf in Safari). Die Rollposition bleibt
   bei overflow:hidden erhalten. */
.gridscroll.is-wischsperre{ overflow-y:hidden; }
.gridpane{
  position:relative;
  padding-top:var(--grid-pad-top);
  padding-bottom:calc(var(--grid-pad-bottom) + var(--sab));
  transition:transform .38s cubic-bezier(.32,.72,0,1);
  will-change:transform;
}
/* Pille vor der ersten Stunde: Sie steht direkt über der ersten Linie;
   der Rand darüber schrumpft, damit sie nicht hoch oben schwebt. */
.gridpane.has-pre{ padding-top:8px; }
/* Während des Wischens folgt der Streifen dem Finger, ohne Nachlauf. */
.gridpane.is-dragging{ transition:none; }

.grid{ position:relative; }

/* Zeitspalte */
.slotrow{
  position:absolute; left:var(--gutter-w); right:0;
  border-top:1px solid var(--c-line);
  pointer-events:none;
}
/* Pausenzeilen tragen dieselbe Linie wie die Stundenzeilen — der
   Unterschied liegt allein in der Höhe des Abschnitts. */

/* Startzeit steht unter ihrer Linie … */
.slotrow__time{
  position:absolute; left:calc(8px - var(--gutter-w)); top:2px;
  font-size:11.5px; font-weight:500; color:var(--c-gutter);
  letter-spacing:.01em; line-height:1;
}
/* … die Endzeit vor einer Pause darüber. */
.slotrow--pause .slotrow__time{ top:auto; bottom:3px; }

.slotrow__no{
  position:absolute; left:calc(14px - var(--gutter-w)); top:22px;
  font-size:15px; font-weight:400; color:var(--c-ink-2);
  letter-spacing:-.01em; line-height:1;
}

/* Jetzt-Linie */
.nowline{
  position:absolute;
  background:var(--nowline);
  z-index:6; pointer-events:none;
}
.nowline--week{ height:1.5px; }
.nowline--today{ height:3px; border-radius:1.5px; margin-top:-0.75px; }

/* =====================================================================
   Karten
   ===================================================================== */
/* Rahmen ab der Zeitspalte; alles, was darüber hinausragt, wird
   abgeschnitten. Darin der Streifen, der beim Wischen wandert. */
.colclip{ position:absolute; left:var(--gutter-w); top:0; bottom:0; overflow:hidden; }
.colstrip{
  position:absolute; inset:0;
  will-change:transform;
  transition:transform .38s cubic-bezier(.32,.72,0,1);
}
/* Während der Finger liegt: kein Übergang, und der Streifen bekommt eine
   eigene Ebene. So schiebt der Browser beim Ziehen nur noch eine fertige
   Fläche und zeichnet nichts neu — das ist es, was eine langsame Bewegung
   flüssig aussehen lässt. */
.colstrip.is-dragging{
  transition:none;
  will-change:transform;
  backface-visibility:hidden;
}
.weekhead__strip.is-dragging{ will-change:transform; backface-visibility:hidden; }
/* Außerhalb der Bewegung wieder freigeben — eine dauerhaft eigene Ebene
   kostet Speicher und bringt dann nichts. */
.colstrip:not(.is-dragging){ will-change:auto; }
/* Während der Geste bleibt der Streifen eine Schicht für sich — dann muss
   der Browser beim Ziehen nichts neu zeichnen. */
.colstrip.is-dragging .card,
.colstrip.is-dragging .daycol{ transition:none; }
/* Kein overflow:hidden hier — das schnitt die Schatten der Kacheln an
   den Spaltenrändern ab. Die Breite allein genügt als Sicherung. */
.daycol{ position:absolute; top:0; bottom:0; }
.daycol .card{ max-width:100%; }

.card{
  position:absolute;
  display:flex; flex-direction:column;
  /* Alle Maße zählen ab der Außenkante. Gerahmte Kacheln ziehen ihre
     Rahmenstärke ab, damit Balken und Text überall gleich sitzen. */
  --bw:0px;
  padding:calc(var(--card-pad-top) - var(--bw))
          calc(var(--card-pad-edge) - var(--bw))
          calc(var(--card-pad-edge) - var(--bw))
          calc(var(--card-pad-left) - var(--bw));
  border-radius:var(--card-radius);
  background:var(--card-bg);
  box-shadow:var(--shadow-card);
  overflow:hidden;
  text-align:left;
  width:100%;
  z-index:2;
}
.card::before{
  content:"";
  position:absolute;
  left:calc(var(--bar-left) - var(--bw));
  top:calc(var(--bar-top) - var(--bw));
  bottom:calc(var(--card-pad-edge) - var(--bw));
  width:4px; min-width:4px; border-radius:2px;
  background:var(--bar, var(--card-accent));
}

/* Alle Zeilen gleich groß; nur die erste ist fett. Maße aus der Vorlage
   abgenommen: Versalhöhe 9 px, Zeilenabstand 14,5 px. */
.card__line{
  padding-left:1.5px;
  font-size:12.4px; line-height:14.3px;
  color:var(--c-ink);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.card__line--primary{
  /* Eine Spur weniger fett als zuvor: Mit 700 stach die erste Zeile im
     Vergleich zum Vorbild zu stark heraus, dort ist sie nur halbfett. */
  font-weight:500;
}
.card__line--badge{
  padding-left:0;
  /* Eine Spur Luft nach unten: Der Kasten reicht optisch bis an die
     Zeilenkante, dadurch rückte die nächste Zeile dichter heran als bei
     zwei gewöhnlichen Zeilen. */
  padding-bottom:1px;
}

/* grün hinterlegter Wert = das, was sich geändert hat */
.badge{
  display:inline-block;
  /* Der Kasten beginnt dort, wo auch die Textzeilen beginnen, und ist so
     hoch wie eine Zeile. Nachgemessen am Vorbild (Maßstab 3): Die Schrift
     steht mittig im Kasten — oben wie unten knapp drei Punkte Luft — und
     seitlich bleiben gut zweieinviertel Punkte. Ohne das obere Polster saß
     unsere Schrift einen Gerätepunkt zu hoch. Dieselben Werte gelten für
     das oberste Label wie für das am Raum. */
  padding:0.33px 2.27px 0;
  margin-left:0;
  border-radius:2px;
  background:var(--green);
  color:var(--green-ink);
  font-weight:500;
  /* Gleiche Größe wie der Zeilentext. Kleiner gesetzt fiel das Kürzel im
     Kasten gegen die Zeilen darunter ab; im Vorbild ist es genauso groß.
     Wird eine Zeile dadurch zu lang, kürzt sie sich als Ganzes. */
  font-size:inherit;
  line-height:inherit;
  /* Die Plakette kürzt sich nicht selbst. Mit `max-width:100%` und eigener
     Ellipse wurde aus „Online“ auf einer schmalen Kachel ein „Onli…“,
     obwohl daneben noch Platz war. Gekürzt wird — wenn überhaupt — die
     ganze Zeile am Kachelrand. */
  max-width:none;
  overflow:visible; text-overflow:clip; white-space:nowrap;
  vertical-align:baseline;
}
/* Kopplungen — mehrere Kürzel in einer Zeile
   ---------------------------------------------------------------------
   Die Plaketten sehen aus wie auf jeder anderen Kachel — gleiche Größe,
   gleiches Polster, gleiche Farbe. Nur eines ist anders: Sie dürfen sich
   nicht selbst kürzen. `.badge` steht sonst auf `max-width:100%` mit
   eigener Ellipse und schrumpft zu „K…“ zusammen, während der Rest der
   Zeile weiterläuft. Gekürzt wird die ganze Zeile auf einmal, wie bei
   jeder anderen Kartenzeile auch. */
.card__line--kopp .badge{
  max-width:none;
  overflow:visible;
  text-overflow:clip;
}
/* Ein Kürzel bleibt mit seinem Komma zusammen. */
.tok{ white-space:nowrap; }
.tok i{ font-style:normal; }

/* Im Detailfenster steht die Kopplung in voller Länge und darf umbrechen.
   Die Kürzel sind durch „|“ getrennt. Wer fehlt, steht durchgestrichen da —
   aber in derselben Farbe wie die übrigen, nicht blasser: Es ist eine
   Angabe wie jede andere und soll nicht zurücktreten. */
.dline--kopp{ white-space:normal; }
.dline--kopp s{ text-decoration-thickness:var(--strike); }

/* Wegfallender Wert — etwa eine noch offene Vertretung */
/* Eine Stärke für alle Durchstreichungen — Plakette, Kachel, Detail. */
.badge--removed{ text-decoration:line-through; text-decoration-thickness:var(--strike); }
/* Abwesende bzw. wegfallende Lehrkraft: nur durchgestrichen, ohne grüne Fläche – grün hinterlegt
   ist allein der neue Wert (z. B. die vertretende Lehrkraft). */
.badge.badge--removed{ background:transparent; color:inherit; font-weight:inherit; }
/* Das oberste Label trägt dieselbe Stärke wie die Zeile selbst — nicht
   mehr. Mit 700 stand das Kürzel im Kasten fetter da als derselbe Wert auf
   einer Kachel ohne Label; im Vorbild ist beides gleich. */
.card__line--primary .badge{ font-weight:inherit; }

/* Info-Punkt und das Kürzungszeichen sitzen auf demselben hellen,
   abgerundeten Feld — wie in der Vorlage (Screenshots 2/3/4). Der Info-
   Punkt ist eine graue Scheibe mit weißem "i", das Kürzungszeichen drei
   graue Punkte. Maße am Muster abgenommen. */
.card__cut,
.card__info{
  /* So weit in die Ecke, wie der Rundungsradius es zulässt — jedes Pixel
     dort ist eines mehr für den Text daneben. */
  position:absolute; right:2px; bottom:2px;
  /* Eine Spur kleiner als zuvor — Form und Farbe bleiben. */
  width:14.5px; height:14.5px;
  display:grid; place-items:center;
  border-radius:4px;
  background:#f2f4f6;                 /* helles Feld */
  z-index:4;
}
.card__cut svg{ width:11px; height:11px; display:block; }
.card__cut circle{ fill:#838d9d; }     /* drei graue Punkte, mittig */

/* Info: graue Scheibe mit weißem "i" auf dem Feld (Screenshot 2/4).
   Nur wenn der Punkt die letzte Zeile erreicht, wird rechts Platz gemacht —
   dann kürzt sich der Raum (oder das Vertretungslabel) mit …, sonst nicht. */
/* Rückfall, solange nichts zu messen ist: Begrenzt wird die Breite, nicht
   das Polster rechts. `overflow:hidden` schneidet an der Polsterkante ab —
   ein Polster verschöbe die Schnittstelle also gar nicht, und eine
   Plakette liefe weiter unter das Zeichen. */
.card.pad-last .card__line--last{ max-width:calc(100% - 16px); }

/* Das Kürzungszeichen liegt mitten in der Fläche der Kachel, deshalb nimmt
   es auf einer Vertretung deren Grün an — ein graues Kästchen sah dort aus
   wie hineingefallen. Gewählt ist derselbe Ton wie beim Menüzeichen der
   Aufsichtspille: dunkelgrünes Feld, weiße Punkte. Zwei Zeichen, die im
   selben Plan nebeneinander stehen, sollen nicht in zwei verschiedenen
   Grüns erscheinen.

   Es ist außerdem eine Spur eckiger als die runde Info-Scheibe: Drei
   Punkte sind kein Symbol, sondern ein Hinweis auf abgeschnittenen Text,
   und der darf kantiger wirken.

   Der Info-Punkt bleibt dagegen überall grau. Er ist ein eigenständiges
   Zeichen mit fester Bedeutung — färbte er sich mit der Kachel um, wäre
   er nicht mehr auf einen Blick derselbe. */
.card__cut{ border-radius:3px; }
/* Dieselben Werte wie eine Plakette: `--green` und `--green-ink` sind je
   Modus belegt, im Hellen dunkelgrün mit weißen Punkten, im Dunkeln der
   helle Ton mit dunklen Punkten. Damit trägt das Zeichen automatisch die
   Farbe, die auf derselben Kachel auch die Plaketten haben — ein fester
   Wert hätte im Dunkeln daneben gelegen. */
.card--change .card__cut,
/* Auch im Plan der abwesenden Lehrkraft. Die Kachel ist dort durchsichtig
   und trägt Eckklammern statt grüner Fläche — sie hat deshalb kein
   `card--change` mehr, und das Zeichen wäre grau geblieben. Vertretung
   ist es trotzdem: Die Stunde läuft, nur ohne sie. */
.card--released .card__cut{ background:var(--green); }
.card--change .card__cut circle,
.card--released .card__cut circle{ fill:var(--green-ink); }
.card__info{
  color:#fff; font-size:7.5px; font-weight:500; font-style:normal;
  line-height:1;
}
.card__info::before{
  content:""; position:absolute; inset:2.3px;
  border-radius:50%; background:#828e9b;
}
/* das "i" liegt über der Scheibe */
.card__info span{ position:relative; z-index:1; }

/* ---- Zustände ---- */
/* Vergangene Stunden
   ---------------------------------------------------------------------
   Reguläre Stunden treten allein über die Fläche zurück.

   Farbige Kacheln — Vertretung und Entfall — verlieren jeweils die Hälfte
   ihrer Kennzeichnung: im Hellen den Rahmen, im Dunklen die farbige
   Fläche. Übrig bleibt genau so viel, dass man die Art noch erkennt.
   Künftige Stunden bleiben unangetastet. */
/* Vergangene Stunden tragen einen flachen, dünnen Schatten — gerade so
   viel, dass sie sich vom Raster abheben, ohne zu schweben. */
.card.is-past{ background:var(--card-bg-past); box-shadow:var(--shadow-past); }
.card.is-past::before{ opacity:.7; }
/* Auch die Schrift tritt zurück — leicht, nicht bis zur Unleserlichkeit.
   Zurückgenommen wird über die **Farbe**, nicht über `opacity`: Die wirkt
   auf die ganze Zeile samt Plakette, und ein Kind kann sie nicht wieder
   aufheben. Die Plakette behält so ihre volle Kraft; sie trägt den Kern
   der Aussage. */
.card.is-past .card__line{ color:var(--c-ink-2); }
.card.is-past .card__line--primary{ color:var(--c-ink-2); }

.card--change.is-past,
.card--cancelled.is-past{
  border:0; --bw:0px;
  box-shadow:var(--shadow-past);
}
.card--change.is-past   { background:var(--chg-bg); }
.card--cancelled.is-past{ background:var(--cnc-bg); }

/* Vergangene GS und AK treten genauso zurück wie eine vergangene Vertretung:
   Der Rahmen fällt weg, die farbige Fläche bleibt, und ein flacher Schatten
   hebt die Kachel vom Raster ab. AK und GS teilen sich hier die Klasse
   `card--gs`; `card--absence` steht der Vollständigkeit halber daneben. */
.card--gs.is-past,
.card--absence.is-past{
  border:0; --bw:0px;
  box-shadow:var(--shadow-past);
  background:var(--chg-bg);
}

.card--change{
  background:var(--chg-bg);
  border:2px solid var(--chg-border);
  --bw:2px;
}
/* Der Balken links steht allein für die Fachfarbe — Art der Stunde
   erkennt man an Fläche und Rahmen, nicht am Balken. */

.card--cancelled{
  background:var(--cnc-bg);
  border:2px solid var(--cnc-border);
  box-shadow:none;
  --bw:2px;
  /* Der Balken behält die Fachfarbe, sofern eine hinterlegt ist — sie kommt
     als Stilangabe an der Kachel. Ohne Farbe fällt er wie überall auf
     `--card-accent` zurück. */
}
/* Der Text bleibt voll schwarz — erkennbar ist der Entfall am Rahmen und
   am Strich, nicht an blasser Schrift. */
.card--cancelled .card__line{ text-decoration:line-through; text-decoration-thickness:var(--strike); color:var(--c-ink); }
.card--cancelled .badge{ background:transparent; color:var(--c-ink-2); padding-left:0; margin-left:0; }

.card--exam{
  background:var(--exam-bg); box-shadow:none;
  border:2px solid var(--exam-border);
  --bw:2px;
}

.card--event{
  background:var(--evt-bg);
  border:1.5px solid #7fd4b6;
  box-shadow:none;
  padding:3.5px 3.5px 3.5px 13.5px;
}
.card--event .card__line--primary{ color:#00654c; }

.card.is-highlight{ border-width:2.5px; --bw:2.5px; }

/* Parallelspalten */
.card.is-half-left { width:calc(50% - 1px); left:0; }
.card.is-half-right{ width:calc(50% - 1px); right:0; }

/* Parallele Stunden: eine Karte normal, daneben eine schmale Karte mit der Anzahl */
/* Der Balken links ist überall gleich stark — nur der Innenabstand
   schrumpft, wenn eine Zählkarte danebensteht. */
.card.has-count{ padding-left:calc(var(--card-pad-left) - var(--bw) - 2px); padding-right:3px; }

.parcount{
  position:absolute; right:0;
  width:12px;
  border-radius:3px;
  /* Nicht ganz weiß: Auf dem hellen Raster verschwand die farblose
     Zählkarte fast, ihr Rand war nur am Schatten zu ahnen. Ein Hauch
     Grau genügt, damit sie als eigene Fläche lesbar ist — mehr würde
     sie zur Aussage machen, und das ist sie nicht. */
  background:#f4f6f7;
  color:#3f5666;
  display:grid; place-items:center;
  font-size:11px; font-weight:500;
  box-shadow:var(--shadow-card);
  z-index:3;
  transition:transform .12s var(--ease);
}
.parcount:active{ transform:scale(.94); }
/* Vergangenes tritt zurück — aber nur die farblose Zählerkarte. Steckt
   eine Vertretung oder ein Entfall dahinter, bleibt sie kräftig: Ihre
   Farbe ist die Aussage, und die soll auch nachmittags noch ins Auge
   fallen. */
.parcount.is-past:not(.parcount--change):not(.parcount--cancel){
  opacity:.55;
  box-shadow:none;
}
.parcount--change{ background:var(--chg-bg); color:#00654c; box-shadow:none; border:1.5px solid var(--chg-border); }
.parcount--cancel{ background:var(--cnc-border); color:#fff; box-shadow:none; border:0; border-radius:3px; }

/* Eckklammern: die Stunde läuft, aber ohne die betrachtete Lehrkraft */
.card--released{
  background:transparent;
  box-shadow:none;
  border-radius:0;
  border:0;
}
/* Der Text bleibt normal — durchgestrichen ist allein das Kürzel der
   abwesenden Lehrkraft in der Plakette. Der Balken bleibt grau; hellblau
   ist er nur bei einer Bereitschaft mit abwesender Lehrkraft. */
/* Eine freigegebene Stunde bleibt durchsichtig, auch wenn sie vorbei ist:
   Sie hat nie zu meinem Plan gehört, und ein gedämpfter Grund ließe sie
   wie vergangenen eigenen Unterricht aussehen. */
.card--released.is-past{
  background:transparent;
  box-shadow:none;
  border:0;
}
.card--released .card__line{ text-decoration:none; }
.card--released .card__line .badge--removed{ text-decoration:line-through; text-decoration-thickness:var(--strike); }
.corners{ position:absolute; inset:0; pointer-events:none; }
.corners i{
  position:absolute; width:13px; height:13px;
  border:1.8px solid var(--u-slate);
}
/* Etwas eckiger als zuvor (4 statt 7 px), damit die Eckklammern dieselbe
   knappe Rundung tragen wie die gewöhnlichen Stundenkacheln. */
.corners i:nth-child(1){ top:0; left:0;  border-right:0; border-bottom:0; border-radius:4px 0 0 0; }
.corners i:nth-child(2){ top:0; right:0; border-left:0;  border-bottom:0; border-radius:0 4px 0 0; }
.corners i:nth-child(3){ bottom:0; left:0;  border-right:0; border-top:0; border-radius:0 0 0 4px; }
.corners i:nth-child(4){ bottom:0; right:0; border-left:0;  border-top:0; border-radius:0 0 4px 0; }

/* Aufsicht — kurze Kachel wie eine normale Stunde: gleiche Rundung, gleicher
   schmaler Balken (nur magenta), nur niedriger. Keine Pille mehr. */
.card--supervision{
  /* Die Pille ist nur gut 20 Pixel hoch. Mit dem Innenabstand der großen
     Kacheln rutschte der Text nach unten aus dem Feld heraus — er stand zu
     tief und wurde unten abgeschnitten. Hier zählt jede Zeile: kein
     Abstand oben und unten, senkrecht zentriert. */
  min-height:0;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  /* Rechts nur so viel Luft, wie der Rand braucht. Der Platz für das
     Menüzeichen wird erst frei gemacht, wenn es wirklich eines gibt —
     sonst wurde einer gewöhnlichen Aufsicht ihr Name gekürzt („Einfahr…“),
     obwohl daneben Platz leer stand. */
  padding:0 3px 0 10.5px;
  overflow:visible;
}
/* Vertretung oder abgegebene Aufsicht: jetzt steht rechts das Zeichen,
   also bekommt es seinen Platz — aber nur so viel, wie es wirklich
   braucht, damit auch hier möglichst viel vom Namen stehen bleibt. */
.card--supervision.is-sub,
.card--supervision.is-absent{ padding-right:20px; }
.card--supervision .card__line{
  font-weight:500;
  line-height:1;
  padding:0; margin:0;
  /* Ohne `min-width:0` weigert sich ein Flex-Element zu schrumpfen: Der
     Name wuchs über die Kachel hinaus und ragte — weil die Pille nach
     außen offen ist — über die Trennlinie in die Nachbarspalte. Jetzt
     schrumpft die Zeile und kürzt sich selbst mit „…“. */
  min-width:0; flex:0 1 auto;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.card--supervision::before{ background:var(--u-magenta); }
.card--supervision .card__times{ display:none; }
/* Die Pille sitzt in einer 20-Minuten-Lücke, mit knapp anderthalb Pixeln
   Luft zu den Kacheln darüber und darunter. Der Schatten der großen
   Karten streut 6 px weit und legte sich als dunkler Streifen an deren
   Kanten. Hier trägt sie einen eigenen, flacheren: nah an der Kante,
   deutlich genug, dass die Pille auf dem Raster aufliegt, aber zu kurz,
   um in den Spalt zu greifen. */
.card--supervision{
  box-shadow:0 -1px 2px rgba(31,47,61,.10), 0 1px 3px rgba(31,47,61,.20);
}

/* Aufsichtsvertretung und abgegebene Aufsicht sehen gleich aus: grüne
   Füllung mit grünem Rand, solange sie bevorsteht — wie jede andere
   Vertretung. Ist sie vorbei, bleibt nur der Rand auf gewöhnlichem Grund.

   Der Balken links ist in **beiden** Fällen magenta. Er sagt, dass es eine
   Aufsicht ist, nicht was mit ihr geschehen ist. Er steht hier ausdrücklich
   noch einmal, damit ihn keine spätere Regel für Entfall oder Vertretung
   umfärbt. */
/* Die eingesprungene Aufsicht ist grün gefüllt wie jede andere Vertretung;
   ist sie vorbei, bleibt nur der Rand. */
.card--supervision.is-sub{
  background:var(--chg-bg);
  border:1.5px solid var(--chg-border);
}
/* Vergangene Aufsichtsvertretung: derselbe Weg wie bei einer vergangenen
   Stunde — der Rahmen fällt weg, die Fläche bleibt. Nicht abblenden: Die
   übrigen Kacheln tun das auch nicht, und eine halbdurchsichtige Pille
   zwischen kräftigen Karten sähe nach einem Fehler aus. */
.card--supervision.is-sub.is-past{
  border:0; --bw:0px;
  background:var(--chg-bg);
}
/* Im Dunkeln ist es genau umgekehrt, und zwar aus demselben Grund wie bei
   den Kacheln: Dort bleibt bei einer vergangenen Vertretung der farbige
   Rand stehen und die Fläche wird neutral. Eine grün gefüllte Pille sähe
   im Dunkeln aus, als stünde sie noch bevor — auf dunklem Grund trägt die
   Fläche mehr Gewicht als im Hellen, der Rand weniger. */
.is-dark .card--supervision.is-sub.is-past{
  background:var(--card-bg-past);
  border:1.5px solid var(--chg-border);
}

/* Die abgegebene Aufsicht wird durchsichtig — dieselbe Sprache wie bei
   jeder anderen Stunde, die ohne einen selbst läuft: keine Fläche, dafür
   Eckklammern. Balken und Menüzeichen behalten ihre Farbe, denn sie sagen,
   *was* dort stattfindet, nicht ob man selbst dabei ist. */
/* Kein Rahmen — auch kein unsichtbarer. Die Eckklammern liegen innerhalb
   des Rahmens (`inset:0` misst ab der Innenkante). Ein durchsichtiger
   1,5-px-Rahmen rückte sie deshalb links und rechts nach innen, und die
   Pille stand schmaler da als die Stunden darüber und darunter. Ohne
   Rahmen sitzen die Klammern an der Außenkante — genau wie bei jeder
   freigegebenen Stunde und bei der Bereitschaft der abwesenden Lehrkraft. */
.card--supervision.is-absent{
  background:transparent;
  border:0;
  --bw:0px;
  box-shadow:none;
}
.card--supervision.is-sub::before,
.card--supervision.is-absent::before{ background:var(--u-magenta); }
/* Der Aufsichtsort wird nicht durchgestrichen: Die Aufsicht findet statt,
   nur eben ohne mich. Durchgestrichen wäre die Aussage, dass dort niemand
   ist — das sagen Eckklammern und Durchsichtigkeit bereits. */
.card--supervision.is-absent .card__line{ color:var(--c-ink-2); }

/* Das Menüzeichen steht bei einer Vertretung immer auf Grün — es ist der
   Hinweis, dass hier etwas zu sehen ist. */
.card--supervision .sup-menu{
  /* Etwas eckiger und ein wenig breiter als hoch — wie das Menüzeichen im
     Muster. Der rechte Abstand ist größer, damit zwischen dem Zeichen und
     einer daneben liegenden Stunde eine Lücke bleibt. */
  position:absolute; right:3px; top:50%; transform:translateY(-50%);
  width:15px; height:13px;
  display:grid; place-items:center;
  border-radius:3px;
  background:var(--u-green);
}
.card--supervision.is-sub .sup-menu,
.card--supervision.is-absent .sup-menu{ background:var(--u-green); }
.card--supervision .sup-menu svg{ width:11px; height:11px; display:block; }
.card--supervision .sup-menu circle{ fill:#fff; }
/* Beim Abwesenden steht dasselbe Zeichen — die Aufsicht findet ja statt,
   nur ohne einen selbst. Platz dafür ist durch den Innenabstand rechts
   ohnehin frei. */
.card--supervision.is-absent .sup-menu{ display:grid; }

.card--standby{
  /* Verfügungsstunden liegen jetzt auf demselben Feld wie normale Kacheln,
     nur mit gestricheltem Rand statt Schatten. */
  background:var(--card-bg);
  box-shadow:none;
  border:2px dashed var(--u-slate);
  border-radius:5px;
  align-items:center; justify-content:center;
  padding:6px 5px;
}
/* Vergangene Verfügung: derselbe Grund wie bei den übrigen vergangenen
   Kacheln, der gestrichelte Rand tritt zurück. Ein Schatten kommt hier
   nicht dazu — die Kachel trägt ohnehin keinen. */
/* Ist die Bereitschaft vorbei, wird die Kachel durchsichtig. Der
   gestrichelte Rahmen bleibt — er kennzeichnet die Bereitschaft, unabhängig
   davon, ob sie noch aussteht. */
.card--standby.is-past{
  background:transparent;
  border-color:var(--u-slate-soft, #b7c2cb);
  box-shadow:none;
}
.card--standby.is-past .card__line{ color:var(--c-muted); }

/* Auf der Kachel wird die Aufzählung gekürzt, im Detail steht sie ganz. */
.card--gs .card__line{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.card--standby::before{ display:none; }
.card--standby .card__line{
  font-size:12.5px; font-weight:400;
  color:var(--u-ink-2);
  text-align:center; white-space:normal;
}

/* Bereitschaft, bei der die Lehrkraft abwesend ist: fester Rahmen mit
   Eckklammern und hellblauem Balken links. */
.card--standby.is-absent{
  border:0;
  border-radius:var(--card-radius);
  background:transparent;
  align-items:flex-start; justify-content:flex-start;
  --bw:0px;
  padding:var(--card-pad-top) var(--card-pad-edge) var(--card-pad-edge) var(--card-pad-left);
}
.card--standby.is-absent::before{
  display:block;
  background:var(--u-cyan);
  top:var(--bar-top); bottom:var(--card-pad-edge); left:var(--bar-left); width:4px; border-radius:2px;
}
.card--standby.is-absent .card__line{
  text-align:left; font-size:11.5px; color:var(--c-ink);
}
.card--standby.is-absent .card__line--primary{ font-weight:500; }
/* Vergangen und abwesend: Die Kachel bleibt durchsichtig, sie wird nicht
   blass. `.card--standby.is-past` legt sonst die Füllung der vergangenen
   Kacheln darunter — dann sähe eine Bereitschaft, die man gar nicht hält,
   am Nachmittag aus wie eine gehaltene. Der Text tritt zurück, der
   Hintergrund bleibt offen. */
.card--standby.is-absent.is-past{
  background:transparent;
  border-color:transparent;
}
.card--standby.is-absent.is-past .card__line{ color:var(--c-muted); }

/* Abwesenheit (AK) und Freisetzung (GS) als eigene Felder */
.card--absence{
  background:#ffe9ed;
  border:2px solid var(--cnc-border);
  box-shadow:none;
  padding:6px 6px 6px 9px;
}
.card--absence::before{ display:none; }
.card--absence .card__line{ color:#98213c; }
.card--gs{
  background:var(--chg-bg);
  border:2px solid var(--chg-border);
  box-shadow:none;
  --bw:2px;
}
.card--gs .card__line--primary{ color:var(--c-ink); }
.card--gs .card__line{ color:var(--c-ink); }
/* Klassenabwesenheit: kein roter Rahmen, nur gekennzeichnet und gedimmt */
.card--class-absent{ background:#f6f2f3; box-shadow:none; opacity:.85; }
.card--class-absent .card__line{ color:#7d8b95; text-decoration:line-through; text-decoration-thickness:var(--strike); text-decoration-color:#c3ccd3; }

/* Ferien und Feiertage: blaues Feld über den ganzen Tag, keine Stunden */
.card--holiday .card__line{ text-align:center; }
.card--holiday{
  background:var(--u-blue);
  border:0; box-shadow:none; border-radius:6px;
  align-items:center; justify-content:center;
  padding:0 3px;
}
.card--holiday::before{ display:none; }
.holiday-inner{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:8px;
  width:100%; height:100%;
}
.card--holiday{ overflow:hidden; }
/* Lange Namen (Herbstferien, Weihnachtsferien) trennen statt mitten im Wort umbrechen */
.holiday-name{ font-weight:500; -webkit-hyphens:auto; hyphens:auto; }
.holiday-range{ font-weight:400; font-size:11.5px !important; margin-top:6px; }
.card--holiday{ cursor:default; pointer-events:none; }
.card--holiday .card__line{
  color:var(--u-ink);
  font-size:13px; font-weight:500;
  text-align:center;
  width:100%;
  padding-left:0; padding-right:0;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  hyphens:auto;
  line-height:1.25;
  max-width:100%;
}
.holiday-mark{
  width:17px; height:17px;
  color:var(--u-ink);
  flex:0 0 auto;
}
.holiday-mark svg{ width:17px; height:17px; display:block; fill:none; stroke:currentColor; stroke-width:2; }

/* Veranstaltung, AK und GS liegen vor den verdrängten Stunden */
.card.is-priority{ z-index:5; }

/* Abwesenheits-Band */
.absband{
  position:absolute;
  width:12px; border-radius:6px;
  background:var(--absent);
  color:#fff;
  display:grid; place-items:center;
  font-size:12px; font-weight:500;
  z-index:4;
}

/* =====================================================================
   Tabbar
   ===================================================================== */
.tabbar{
  backdrop-filter:saturate(180%) blur(22px);
  -webkit-backdrop-filter:saturate(180%) blur(22px);
  position:fixed;
  left:14px; right:14px;
  /* Tiefer gesetzt: Auf einem Gerät mit Home-Indikator lässt der volle
     Sicherheitsabstand die Leiste hoch über dem Rand schweben. Sie rückt
     deshalb 20 Punkte in diesen Abstand hinein — die Beschriftung sitzt
     mittig in der Pille und bleibt dadurch klar über dem Indikator. Wo es
     keinen Sicherheitsabstand gibt, bleiben drei Punkte zum Rand. */
  bottom:max(3px, calc(var(--sab) - 20px));
  height:var(--tabbar-h);
  display:grid; grid-template-columns:repeat(4,1fr);
  align-items:center;
  background:color-mix(in srgb, var(--c-bar) 72%, transparent);
  border:1px solid color-mix(in srgb, var(--c-ink) 8%, transparent);
  border-radius:999px;
  box-shadow:var(--shadow-bar);
  z-index:40;
}
.tab{
  position:relative;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:3px; height:100%;
  color:var(--c-ink);
  font-size:11.5px; font-weight:500;
  border-radius:999px;
  transition:transform .12s var(--ease);
}
.tab:active{ transform:scale(.92); }
.tab .ico{ width:24px; height:24px; stroke-width:1.6; }
.tab .tabnum{ font-size:7.4px; font-weight:500; fill:currentColor; stroke:none; font-family:inherit; }
.tab.is-active::before{
  content:""; position:absolute; inset:4px 6px;
  border-radius:999px; background:#eceff2; z-index:-1;
}
.tab__dot{
  position:absolute; top:9px; right:calc(50% - 20px);
  width:8px; height:8px; border-radius:50%;
  background:var(--absent); border:1.5px solid #fff;
}

/* =====================================================================
   Weitere Screens
   ===================================================================== */
.screen--start,.screen--msg,.screen--profile,.screen--list{ overflow-y:auto; -webkit-overflow-scrolling:touch; background:#f5f6f8; }

/* ---------- Milchglas auf Start-, Profil- und Listenseite ----------
   Die Flächen liegen auf einem weichen Verlauf und lassen ihn durch —
   dieselbe Sprache wie die Leiste unten und die Auswahlfenster. */
.screen--start,.screen--profile,.screen--list{
  /* Ruhiger, gleichmäßiger Grund wie in der Vorlage. */
  background:#eceef1;
}
/* Auf diesen Seiten trägt auch die Kopfleiste denselben Grund — sonst
   reißt oben eine sichtbare Kante zwischen Leiste und Inhalt. */
body:has(.screen--start.is-active) .topbar,
body:has(.screen--profile.is-active) .topbar,
body:has(.screen--list.is-active) .topbar,
body.has-plain-top .topbar{ background:#eceef1; }
.screen--start .rows,
.screen--profile .rows,
.screen--start .daycard,
.screen--list .lstcard{
  background:#fff;
  border:0;
  box-shadow:0 1px 2px rgba(21,33,44,.05), 0 10px 26px rgba(21,33,44,.08);
}
.profpop{
  background:rgba(255,255,255,.78);
  backdrop-filter:saturate(180%) blur(26px);
  -webkit-backdrop-filter:saturate(180%) blur(26px);
  border:1px solid rgba(255,255,255,.55);
}

/* ---------- Profilwechsel ---------- */
.profpop{
  position:fixed; z-index:60;
  top:calc(var(--sat) + 8px); left:10px;
  width:min(320px, calc(100vw - 20px));
  max-height:min(70vh, 560px); overflow-y:auto;
  background:var(--c-bar); border-radius:18px;
  box-shadow:0 14px 44px rgba(21,33,44,.28);
  padding:14px 6px 8px;
}
.profpop[hidden]{ display:none; }
.profpop__title{ margin:0 0 6px 14px; font-size:14.5px; color:#8b9aa5; }
.profpop__hint{ margin:10px 14px 14px; font-size:14.5px; color:#8b9aa5; }

.profrow{
  display:grid; grid-template-columns:30px 1fr 30px; align-items:center; gap:8px;
  width:100%; text-align:left; padding:11px 10px; border-radius:12px;
}
.profrow__mark{ display:grid; place-items:center; color:var(--c-ink); }
.profrow__mark svg{ width:19px; height:19px; fill:none; stroke:currentColor;
  stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.profrow__main b{ display:block; font-size:17px; font-weight:400; color:var(--c-ink); line-height:1.25; }
.profrow__main span{ display:block; font-size:14px; color:#8b9aa5; margin-top:2px; }
.profrow__del{ display:grid; place-items:center; color:#c3ccd3; }
.profrow__del svg{ width:16px; height:16px; fill:none; stroke:currentColor;
  stroke-width:1.9; stroke-linecap:round; }
.profrow.is-on .profrow__main b{ font-weight:500; }


/* ---------- Listen: Termine, Abwesenheiten, Klassenleitung ---------- */
.lsthead{
  position:sticky; top:0; z-index:2;
  display:grid; grid-template-columns:44px 1fr 44px; align-items:center; gap:8px;
  padding:calc(var(--sat) + 10px) 14px 12px;
  /* Derselbe Grund wie die Seite — kein Balken oben. */
  background:#eceef1; border-bottom:0;
}
.lsthead__right{ display:flex; align-items:center; gap:8px; justify-self:end; }
.lstsearch{
  display:none; align-items:center; gap:8px;
  height:44px; padding:0 16px; border-radius:22px;
  background:var(--c-bar); box-shadow:0 1px 3px rgba(21,33,44,.10);
}
.lstsearch .ico{ width:19px; height:19px; color:#8b9aa5; }
.lstsearch input{
  border:0; background:none; outline:none;
  font-size:16px; color:var(--c-ink); width:180px;
}
.lstsearch input::placeholder{ color:#8b9aa5; }
/* Auf breiten Geräten steht das Suchfeld offen daneben. */
@media (min-width:820px){ .lstsearch{ display:flex; } }

.lsthead__when{ text-align:center; line-height:1.2; }
.lsthead__when b{ display:block; font-size:16px; font-weight:500; color:var(--c-ink-2); }
.lsthead__when span{ display:block; font-size:13px; color:#8b9aa5; margin-top:2px; }
.lstbody{ padding:14px 14px calc(var(--sab) + 90px); }

/* Filter als eigene Seite, wie in der Vorlage: Titel, dann Zeilen mit
   Beschriftung links, Wert rechts. */
.lstfilter{ padding:0 0 8px; }
.lstfilter[hidden]{ display:none !important; }
.lstfilter__title{
  margin:0; padding:10px 0 14px; text-align:center;
  font-size:16px; font-weight:500; color:var(--c-ink-2);
}
.frow{
  display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:10px;
  width:100%; text-align:left;
  padding:18px 16px; border-top:1px solid #e3e6ea;
  background:transparent;
}
.frow:last-of-type{ border-bottom:1px solid #e3e6ea; }
.frow__lab{ font-size:17px; color:var(--c-ink); }
.frow__val{ font-size:15px; color:#8b9aa5; }
.frow--toggle{ grid-template-columns:1fr auto; }
.frow--sub{ padding:14px 26px; border-top:0; }
.frow--sub.is-on .frow__lab{ color:var(--u-orange-ink); font-weight:500; }
.frow__pick[hidden]{ display:none !important; }
.frow__pick{ border-bottom:1px solid #e3e6ea; }
/* Reihe mit den eigenen Klassen. */
.lstfilter__row{ display:flex; flex-wrap:wrap; gap:7px; padding:14px 16px; }
.lstfilter__row[hidden]{ display:none !important; }
.lstchip{
  padding:7px 13px; border-radius:999px;
  background:#fff; color:var(--c-ink-2);
  font-size:14px; border:1px solid rgba(21,33,44,.08);
}
.lstchip.is-on{ background:var(--u-orange); color:#fff; border-color:transparent; font-weight:500; }

.lst__group{
  font-size:12.5px; font-weight:500; letter-spacing:.06em; text-transform:uppercase;
  color:#8b9aa5; margin:18px 4px 8px;
}
.lst__group:first-child{ margin-top:2px; }

.lstcard{
  background:var(--c-bar); border-radius:14px; padding:14px 16px; margin-bottom:12px;
  box-shadow:0 1px 3px rgba(21,33,44,.10);
}
.lstcard b{ display:block; font-size:19px; font-weight:400; color:var(--c-ink); }
.lstcard__sub{ margin:3px 0 0; font-size:14px; color:#8b9aa5; }
.lstcard__sm{ color:#8b9aa5; font-size:14px; }
.lstcard__line{
  display:flex; align-items:center; gap:7px;
  margin:7px 0 0; font-size:15px; color:var(--c-ink-2);
}
.lstcard__ico{
  width:17px; height:17px; flex:0 0 17px; color:#9aa7b1;
  fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round;
}
.lstcard__stand--ok  { color:#157d68; } .lstcard__stand--ok .lstcard__ico  { color:#157d68; }
.lstcard__stand--no  { color:#c0113a; } .lstcard__stand--no .lstcard__ico  { color:#c0113a; }
.lstcard__stand--open{ color:#8b9aa5; }

.lstcard__acts{ display:flex; gap:8px; margin-top:12px; }
.lstbtn{
  flex:1 1 0; padding:9px 12px; border-radius:11px;
  background:#eef1f4; color:var(--c-ink-2); font-size:14.5px; font-weight:500;
}
.lstbtn--ok{ background:var(--u-green); color:#fff; }
.lstbtn:active{ transform:scale(.98); }

.lst__empty{ text-align:center; padding:64px 12px; color:var(--c-muted); }
.lst__emptyIco{
  display:grid; place-items:center; width:78px; height:78px; margin:0 auto 22px;
  border-radius:50%; background:rgba(255,255,255,.7);
}
.lst__emptyIco svg{
  width:38px; height:38px; color:#8b9aa5;
  fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round;
}
.lst__empty b{ display:block; font-size:19px; font-weight:500; color:var(--c-ink); margin-bottom:6px; }
.lst__empty span{ font-size:15px; }

.row__main{ display:block; text-align:left; }
.row__main b{ display:block; font-weight:400; }
.row__main i{ display:block; font-style:normal; font-size:13.5px; color:#8b9aa5; margin-top:2px; }
.pad{ padding:calc(var(--sat) + 6px) 18px calc(var(--tabbar-h) + var(--sab) + 44px); }
.h1{ font-size:28px; font-weight:500; letter-spacing:-.02em; margin-bottom:2px; }
.sub{ color:var(--c-muted); font-size:14px; margin-bottom:18px; }

.panel{ margin-bottom:22px; }
.panel__head{ font-size:12.5px; font-weight:500; letter-spacing:.05em; text-transform:uppercase; color:var(--c-muted); margin-bottom:9px; }
.stack{ display:flex; flex-direction:column; gap:9px; }

.tile{
  display:grid; grid-template-columns:52px 1fr auto; align-items:center; gap:12px;
  background:var(--c-bar); border-radius:14px; padding:12px 14px;
  box-shadow:var(--shadow-card);
  text-align:left; width:100%;
}
.tile__time{ font-size:13px; font-weight:500; color:var(--c-ink-2); line-height:1.25; }
.tile__time small{ display:block; font-weight:500; color:var(--c-muted); }
.tile__main b{ display:block; font-size:15px; font-weight:500; }
.tile__main span{ display:block; font-size:13px; color:var(--c-muted); }
.tile__flag{ font-size:11px; font-weight:500; padding:3px 8px; border-radius:999px; }
.flag--change{ background:var(--chg-bg); color:#006b51; }
.flag--cancel{ background:var(--cnc-bg); color:#b03030; }
.flag--exam{ background:var(--exam-bg); color:#8a4626; }
.flag--event{ background:var(--evt-bg); color:#006b51; }

.empty{ background:var(--c-bar); border-radius:14px; padding:18px 16px; color:var(--c-muted); font-size:14px; box-shadow:var(--shadow-card); }

.msg{ background:var(--c-bar); border-radius:14px; padding:14px; box-shadow:var(--shadow-card); }
.msg h3{ font-size:15px; font-weight:500; margin-bottom:3px; }
.msg time{ font-size:12px; color:var(--c-muted); }
.msg p{ font-size:14px; color:var(--c-ink-2); margin-top:6px; line-height:1.45; }
.msg.is-unread{ border-left:3px solid var(--green); }

.profile-card{ display:flex; align-items:center; gap:14px; background:var(--c-bar); border-radius:16px; padding:16px; box-shadow:var(--shadow-card); margin-bottom:20px; }
.avatar{ width:54px; height:54px; border-radius:50%; background:var(--u-orange); color:#fff; display:grid; place-items:center; font-weight:500; font-size:19px; }
.profile-name{ font-size:17px; font-weight:500; }
.profile-role{ font-size:13px; color:var(--c-muted); }

.rows{ background:var(--c-bar); border-radius:14px; overflow:hidden; box-shadow:var(--shadow-card); margin-bottom:16px; }
.row{ display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:14px 15px; font-size:15px; text-align:left; border-bottom:1px solid #eef0f2; }
.row:last-child{ border-bottom:0; }
.row__hint{ font-size:13px; color:var(--c-muted); }
.row--switch input{ position:absolute; opacity:0; pointer-events:none; }
.switch{ width:44px; height:26px; border-radius:999px; background:#d6dade; position:relative; transition:background .18s var(--ease); flex:0 0 auto; }
.switch::after{ content:""; position:absolute; top:2px; left:2px; width:22px; height:22px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.2); transition:transform .18s var(--ease); }
.row--switch input:checked ~ .switch{ background:var(--u-orange); }
.row--switch input:checked ~ .switch::after{ transform:translateX(18px); }
.legalnote{ font-size:12px; color:var(--c-muted); text-align:center; line-height:1.5; }

/* =====================================================================
   Sheets
   ===================================================================== */
.scrim{ position:fixed; inset:0; background:rgba(20,30,40,.36); z-index:50; opacity:0; transition:opacity .22s var(--ease); pointer-events:none; }
.scrim[hidden]{ display:none !important; }
.scrim.is-open{ pointer-events:auto; }
.scrim.is-open{ opacity:1; }

.sheet{
  position:fixed; left:0; right:0; bottom:0; z-index:51;
  max-height:88vh;
  display:flex; flex-direction:column;
  /* Liquid-Glass: milchig-durchscheinend mit Unschärfe dahinter. */
  background:color-mix(in srgb, var(--c-bar) 80%, transparent);
  backdrop-filter:saturate(180%) blur(28px);
  -webkit-backdrop-filter:saturate(180%) blur(28px);
  border-radius:22px 22px 0 0;
  box-shadow:var(--shadow-sheet), inset 0 1px 0 rgba(255,255,255,.16);
  padding-bottom:calc(var(--sab) + 12px + var(--kb));
  transform:translateY(100%);
  /* Das Detailfenster wird gesondert behandelt, siehe unten. */
  transition:transform .28s var(--ease);
}
/* Ohne diese Zeile gewinnt display:flex gegen das hidden-Attribut: das
   Sheet bleibt im Layout, liegt unsichtbar über der Seite und schluckt
   jeden Fingertipp. */
.sheet[hidden]{ display:none !important; }
.sheet{ pointer-events:none; }
.sheet.is-open{ transform:translateY(0); pointer-events:auto; }
.sheet__grab{ width:38px; height:4px; border-radius:2px; background:#d3d8dd; margin:9px auto 6px; flex:0 0 auto; }
.sheet__title{ font-size:19px; font-weight:500; padding:4px 18px 12px; }

/* Auswahl — Aufbau nach Vorlage: Kategorien, dann Liste, Suche unten */
/* Die Suchleiste sitzt oben, also darf das Sheet stehen bleiben; nur der
   Boden weicht der Tastatur, damit die Liste nicht dahinter verschwindet. */
.sheet--picker{
  /* Das Suchfeld sitzt oben — die Tastatur legt sich einfach VOR das
     untere Blatt, statt es hochzuschieben. Feste Höhe/Position. */
  height:86vh;
  bottom:0;
  max-height:92vh;
  padding-bottom:calc(var(--sab) + 6px);
  transition:transform .28s var(--ease);
}

.pk__top{
  flex:0 0 auto;
  display:grid; grid-template-columns:44px 1fr 44px;
  align-items:center; gap:8px;
  padding:12px 14px 10px;
}
.pk__title{ text-align:center; font-size:17px; font-weight:500; color:#5d727f; }

.pk__body{
  position:relative;
  flex:1 1 auto; min-height:0;
  overflow-y:auto; -webkit-overflow-scrolling:touch;
  padding:0 4px 8px;
  overscroll-behavior:contain;
}
.pk__level[hidden]{ display:none; }

.pk__mine{
  display:grid; grid-template-columns:52px 1fr; align-items:center; gap:14px;
  width:100%; padding:8px 14px 14px; text-align:left;
  font-size:20px; color:var(--c-ink);
}
.pk__ava{
  width:52px; height:52px; border-radius:50%;
  background:#8b9aa5; color:#fff;
  display:grid; place-items:center;
}
/* Das runde Feld trug bisher ein Konturzeichen. Das Vorbild-Symbol ist eine
   Füllfläche — mit den alten Vorgaben bliebe es unsichtbar. */
.pk__ava svg{ width:27px; height:27px; fill:currentColor; stroke:none; }

.pk__section{ padding:4px 18px 8px; font-size:14px; color:#8b9aa5; }

.pk__row{
  display:grid; grid-template-columns:34px 1fr 20px; align-items:center; gap:16px;
  width:100%; padding:15px 18px; text-align:left;
  font-size:19px; color:var(--c-ink);
  border-radius:12px;
}
.pk__row > .ico{ width:30px; height:30px; stroke-width:1.5; color:#5d727f; }
.ico--chev2{ width:20px !important; height:20px !important; color:#9aa7b1; stroke-width:2; }

.picker-letter{
  position:sticky; top:0; z-index:2;
  padding:9px 16px 6px;
  font-size:13px; font-weight:500; color:var(--c-muted);
  background:var(--c-bar);
}

/* Buchstabenleiste am rechten Rand */
.pk__index{
  position:absolute; top:118px; right:2px; bottom:12px;
  display:flex; flex-direction:column; justify-content:center; gap:1px;
  padding:0 4px;
  z-index:6;
}
.pk__index[hidden]{ display:none; }
.pk__index button{
  font-size:10.5px; font-weight:500; color:#8b9aa5;
  line-height:1.25; padding:0 2px;
}
.pk__index button:active{ color:var(--u-orange); }

.pk__count{ padding:6px 16px 2px; font-size:12.5px; color:var(--c-muted); }
.picker-item{
  display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:13px;
  width:100%; padding:9px 14px; border-radius:12px; text-align:left;
}
.picker-item__mark{ width:20px; height:20px; color:var(--u-orange); }
.picker-item__mark svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.picker-item__ava{
  width:42px; height:42px; border-radius:50%;
  background:#8b9aa5; color:#fff;
  display:grid; place-items:center;
  font-size:13px; font-weight:500; letter-spacing:.02em;
}
.picker-item__main b{ display:block; font-size:19px; font-weight:400; color:var(--c-ink); }
.picker-item__chip{
  display:inline-block; margin-top:4px; margin-right:6px;
  padding:3px 10px; border-radius:999px;
  /* Im Hellen etwas kräftiger — die Plakette war kaum vom Grund zu
     unterscheiden. */
  background:#d3dae0; color:#40525e;
  font-size:12.5px;
}
/* Die Klassenleitung steht als eigene Plakette daneben. */
.picker-item__chip--kl{ background:#d3dae0; color:#40525e; }
/* Der gewählte Plan wird nicht mehr hinterlegt — nur der Haken rechts
   zeigt ihn an. */
.picker-item.is-active{ background:transparent; }
/* Auch Kreis und Beschriftung bleiben unauffällig — kenntlich ist der
   gewählte Plan allein am Haken. */

/* Suchleiste oben, direkt unter der Kopfzeile — so wie in der Vorlage. */
.pk__search{
  flex:0 0 auto;
  display:grid; grid-template-columns:1fr 48px; align-items:center; gap:10px;
  padding:0 14px 10px;
  background:transparent;
}
/* Der Knopf daneben ist so hoch wie das Suchfeld — sonst wirkt er verloren. */
#pickerClear{ width:48px; height:48px; border-radius:50%; background:#f1f3f5; }
.searchwrap{
  display:flex; align-items:center; gap:9px;
  padding:13px 15px;
  background:#f1f3f5; border-radius:999px;
  color:var(--c-muted);
}
.searchwrap input{ flex:1; border:0; background:none; outline:none; font-size:17px; color:var(--c-ink); min-width:0; }
.searchwrap .ico{ width:21px; height:21px; }
.searchwrap input::-webkit-search-cancel-button{ display:none; }
.searchwrap__clear{
  width:21px; height:21px; flex:0 0 auto;
  color:#8b9aa5;
}
.searchwrap__clear[hidden]{ display:none; }
.searchwrap__clear svg{ width:21px; height:21px; display:block; }

/* Detail — Aufbau nach Vorlage: Kopf mit Datum, dann die Stunde, dann Zeilen */
/* Auf Tablets wird die Auswahl zu einem mittigen Fenster. */
@media (min-width:700px){
  .sheet--picker{
    left:50%; right:auto; bottom:auto; top:50%;
    transform:translate(-50%,-46%) scale(.98);
    width:min(520px, 92vw);
    height:min(80vh, 820px);
    border-radius:20px;
    opacity:0;
    transition:transform .26s var(--ease), opacity .2s var(--ease);
  }
  .sheet--picker.is-open{ transform:translate(-50%,-50%) scale(1); opacity:1; }
}

/* Detailfenster: am Handy ein hohes Blatt, das von ganz unten hochfährt und
   relativ weit nach oben reicht. Feste Höhe, damit es bei Entfall genauso
   lang ist wie bei einer vollen Stunde. Am iPad ein mittiges Modal. */
.sheet--detail{
  height:90vh;
  max-height:90vh;
  padding-top:14px;
  padding-bottom:calc(var(--sab) + 12px);
  /* Das Detailfenster bleibt blickdicht — kein Durchscheinen. */
  background:var(--c-bar);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

@media (min-width:700px){
  .sheet--detail{
    left:50%; right:auto; bottom:auto; top:50%;
    /* Auf dem Tablet darf das Fenster deutlich breiter stehen: Mit 470
       Punkten wirkte es dort wie ein Telefonfenster mitten auf einer
       großen Fläche, und Zeilen wie „FIS4A | FU1_FIS4A_LN" brachen um. */
    width:min(680px, 92vw);
    /* Feste Höhe — unabhängig vom Inhalt (Entfall, volle Stunde …). */
    height:min(74vh, 760px);
    max-height:min(74vh, 760px);
    border-radius:20px;
    padding-top:14px; padding-bottom:12px;
    transform:translate(-50%, -46%) scale(.98);
    opacity:0;
    transition:transform .26s var(--ease), opacity .2s var(--ease);
  }
  .sheet--detail.is-open{ transform:translate(-50%, -50%) scale(1); opacity:1; pointer-events:auto; }
}

/* Untermenü der drei Punkte — mit Kopfzeile „Im Stundenplan anzeigen" und
   milchigem Glas-Hintergrund. */
.dmenu{
  position:absolute; top:58px; right:14px; z-index:6;
  min-width:230px; max-width:78vw;
  background:color-mix(in srgb, var(--c-bar) 78%, transparent);
  backdrop-filter:saturate(180%) blur(24px);
  -webkit-backdrop-filter:saturate(180%) blur(24px);
  border-radius:18px;
  box-shadow:0 12px 40px rgba(21,33,44,.28), 0 0 0 1px rgba(255,255,255,.14) inset;
  padding:8px;
  overflow:hidden;
}
.dmenu[hidden]{ display:none; }
.dmenu__head{ padding:8px 12px 6px; font-size:14px; color:var(--c-muted); }
.dmenu button{
  display:grid; grid-template-columns:26px 1fr; align-items:center; gap:12px;
  width:100%; padding:12px 12px; border-radius:12px;
  font-size:19px; text-align:left; color:var(--c-ink);
}
.dmenu .ico{ width:24px; height:24px; color:var(--c-ink-2); }
.dmenu small{ display:block; font-size:12px; color:#8b9aa5; }
.dmenu__empty{ padding:12px 10px; font-size:14px; color:var(--c-muted); }

.detail__top{
  flex:0 0 auto;
  display:grid; grid-template-columns:44px 1fr 44px;
  align-items:center; gap:8px;
  padding:2px 14px 14px;
}
.rndbtn{
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius:50%;
  background:#f1f3f5;
  color:var(--c-ink-2);
  transition:transform .12s var(--ease);
}
.rndbtn:active{ transform:scale(.92); }
/* Ohne das gewinnt die Klasse gegen [hidden] und der Knopf bleibt stehen —
   im Klassenbuch standen dadurch Haken und Besen gleichzeitig da. */
.rndbtn[hidden]{ display:none; }
.rndbtn .ico{ width:21px; height:21px; }

.detail__when{ text-align:center; line-height:1.2; }
.detail__when b{ display:block; font-size:15px; font-weight:500; color:#5d727f; }
.detail__when span{ display:block; font-size:12.5px; color:#8b9aa5; margin-top:1px; }

/* Im Stundendetail sind die runden Schaltflächen und die Kopfzeile eine
   Spur größer als sonst in der App — dort wird getippt, nicht gelesen. */
.sheet--detail .detail__top,
.sheet--detail .dsub__top{ grid-template-columns:48px 1fr 48px; }
.sheet--detail .rndbtn{ width:48px; height:48px; }
.sheet--detail .rndbtn .ico{ width:23px; height:23px; }
.sheet--detail .detail__when b{ font-size:16.5px; }

/* Bei einem Block lässt sich die Zeitangabe antippen — dann erscheint ein
   Pfeil, wie bei der Auswahl der Klasse. */
.detail__when{ border-radius:12px; padding:4px 8px; }
.detail__when.is-pick b::after{
  content:""; display:inline-block; vertical-align:2px; margin-left:7px;
  width:0; height:0;
  border-left:4.5px solid transparent; border-right:4.5px solid transparent;
  border-top:5px solid currentColor; opacity:.7;
}

/* Die Auswahl der Einzelstunde */
.dpart{
  position:absolute; z-index:8;
  top:64px; left:50%; transform:translateX(-50%);
  min-width:200px; max-width:calc(100% - 36px);
  background:var(--c-bar); border-radius:16px;
  box-shadow:0 10px 34px rgba(21,33,44,.26);
  padding:6px;
}
.dpart[hidden]{ display:none; }
.dpart button{
  display:block; width:100%; text-align:left;
  padding:11px 14px; border-radius:11px;
}
.dpart button b{ display:block; font-size:16px; font-weight:500; color:var(--c-ink); }
.dpart button span{ display:block; font-size:14px; color:#8b9aa5; margin-top:2px; }
.dpart button.is-on b{ color:var(--u-orange-ink); font-weight:500; }
.dpart button.is-on span{ color:var(--u-orange-ink); opacity:.75; }
.sheet--detail .detail__when span{ font-size:14px; }

.detail{ flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:0; }

.dhead{ padding:6px 18px 20px; }
.dhead.is-off{ background:#dcdfe4; padding-bottom:26px; }

.dtitle{
  font-size:20px; font-weight:400; letter-spacing:-.01em;
  color:var(--c-ink); line-height:1.25;
  overflow-wrap:anywhere;
}
.dtitle i{ font-style:normal; color:#b7c1c9; padding:0 4px; }
.dline{ font-size:15.5px; color:var(--c-ink); margin-top:11px; }
.dline--big{ font-size:20px; }
.dline--muted{ color:#5d727f; }
/* Der alte Wert steht durchgestrichen da, aber in derselben Farbe wie der
   Rest: Es ist eine Angabe wie jede andere und soll nicht zurücktreten.
   Im Dunkeln fiel das Grau ohnehin fast mit dem Hintergrund zusammen. */
.dline s{ color:inherit; text-decoration-thickness:var(--strike); }
.dline .arrow{ color:#93a0aa; padding:0 5px; }
.dline .sep{ color:#b3bdc5; padding:0 7px; font-weight:400; }

/* Volle Leiste statt Plakette — wie in der Vorlage */
.dbanner{
  background:#fe0000; color:#fff;
  text-align:center;
  padding:9px 12px;
  font-size:13.5px; font-weight:500; letter-spacing:.06em;
}

/* Plakette neben der Klasse im Detailkopf, etwa bei einer Veranstaltung.
   Die Überschrift ist 20 px groß; ohne eigene Schriftgröße, Zeilenhöhe und
   mittige Ausrichtung säße die Plakette schief. */
.dpill{
  display:inline-flex; align-items:center;
  margin-left:10px; vertical-align:middle;
  height:24px; padding:0 12px; border-radius:999px;
  background:#5d727f; color:#fff;
  font-size:12.5px; font-weight:500; line-height:1;
  letter-spacing:.02em; text-transform:uppercase;
  white-space:nowrap;
}

.detail__sep{ height:1px; background:#e8ebee; }

.drows{ display:flex; flex-direction:column; padding:0 18px; }
/* Die Zeilen sind Schaltflächen — Schrift und Trefferfläche entsprechend
   großzügig, wie in der Vorlage. */
/* Beim Tippen wird nichts hinterlegt: Die kurze helle Fläche unter dem
   Finger brachte nichts — auf dem Telefon sieht man sie unter der eigenen
   Hand kaum, und wenn ein Fenster aufgeht, blieb sie stehen. Zeilen und
   Knöpfe in allen Menüs reagieren deshalb ohne Hintergrund. */
.drow2{
  display:grid; grid-template-columns:34px 1fr auto;
  align-items:center; gap:16px;
  padding:16px 0;
  text-align:left; width:100%;
  border-radius:12px;
}
.drow2__ico{ color:#8b9aa5; }
.drow2__ico .ico{ width:27px; height:27px; stroke-width:1.5; }
/* Ohne min-width:0 wächst eine Rasterspalte mit ihrem Inhalt — ein langer
   Lehrstoff hätte die Zeile auseinandergezogen, statt gekürzt zu werden. */
.drow2__main{ min-width:0; }
/* Nur lesbare Zeile: kein Antippen, kein Pfeil. */
.drow2.is-readonly{ pointer-events:none; }
.drow2__main b{
  display:block; font-size:17px; font-weight:400; color:var(--c-ink);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.drow2__main span{
  display:block; font-size:15px; color:#7d8b95; margin-top:3px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.drow2__end{ display:flex; align-items:center; gap:12px; color:#b7c1c9; }
.drow2__count{
  min-width:30px; height:30px; padding:0 9px;
  border-radius:999px; background:#8b9aa5; color:#fff;
  display:grid; place-items:center; font-size:15px; font-weight:500;
}
.drow2__end .ico{ width:25px; height:25px; stroke-width:1.8; color:#8b9aa5; }
.drow2__count.is-red{ background:transparent; color:#e0113f; position:relative; }
.drow2__count.is-checked{ position:relative; }
.drow2__count.is-checked::after{
  content:""; position:absolute; top:-4px; right:-4px;
  width:14px; height:14px; border-radius:50%;
  background:var(--u-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3 3 7-7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
  box-shadow:0 0 0 2px var(--c-bar);
}
.drow2__done{ color:var(--u-green) !important; }
.dtoggle{
  width:52px; height:31px; border-radius:999px; background:#d6dade; position:relative;
  transition:background-color .16s var(--ease);
}
.dtoggle::after{
  content:""; position:absolute; top:2px; left:2px;
  width:27px; height:27px; border-radius:50%; background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.2);
  transition:transform .16s var(--ease);
}
.dtoggle.is-on{ background:var(--u-orange); }
.dtoggle.is-on::after{ transform:translateX(21px); }

.detail__nav{ display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:12px 18px 4px; border-top:1px solid #eef0f2; flex:0 0 auto; }
.navbtn{ display:flex; align-items:center; justify-content:center; gap:6px; padding:12px; border-radius:12px; background:#f1f3f5; font-size:14px; font-weight:500; color:var(--c-ink-2); }
.navbtn:disabled{ opacity:.4; }
.navbtn .ico{ width:18px; height:18px; }

/* Menü — Aufbau nach Muster: eine Reihe „Gehe zu Datum", darunter der
   Abschnitt „Ansicht" mit Haken bei der laufenden Ansicht, dann „Legende". */
.menu-list{ padding:6px; }
.menu-item{
  display:flex; align-items:center; gap:12px;
  width:100%; padding:11px 12px; border-radius:11px;
  font-size:16px; text-align:left; color:var(--c-ink);
}
.menu-item__ico{
  width:24px; height:24px; flex:0 0 auto;
  display:grid; place-items:center; color:var(--c-ink-2);
}
.menu-item__ico .ico{ width:22px; height:22px; }
.menu-item__label{ flex:1 1 auto; min-width:0; }

/* Haken links vom Zeichen — nur bei der laufenden Ansicht sichtbar, sonst
   hält die Spalte bloß den Platz, damit die Zeichen bündig stehen. */
.menu-item__check{
  width:20px; flex:0 0 auto;
  display:grid; place-items:center;
  color:var(--u-orange); opacity:0;
}
.menu-item__check svg{
  width:18px; height:18px; fill:none; stroke:currentColor;
  stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round;
}
.menu-item--view.is-active .menu-item__check{ opacity:1; }
.menu-item--view.is-active .menu-item__label{ font-weight:500; }

/* Feine Trennlinie und stiller Abschnittstitel zwischen den Gruppen. */
.menu-sep{ height:1px; margin:5px 12px; background:rgba(120,132,143,.24); }
.menu-section{ padding:7px 14px 3px; font-size:13px; color:var(--c-muted); }

/* Kalender */
.cal__head{ display:flex; align-items:center; justify-content:space-between; padding:2px 18px 10px; font-size:16px; font-weight:500; }
.calnav{ width:36px; height:36px; display:grid; place-items:center; border-radius:50%; background:#f1f3f5; color:var(--c-ink-2); }
/* Gewählt wird die Woche, nicht der Tag — deshalb ist die Zeile das
   anfassbare Element. Links die Wochennummer, dann Mo bis So. */
.cal__dow{
  display:grid; grid-template-columns:34px repeat(7,1fr);
  padding:0 14px; font-size:11.5px; font-weight:500;
  color:var(--c-muted); text-align:center;
}
.cal__dow .cal__kw{ font-size:10.5px; letter-spacing:.04em; }
.cal__grid{ display:flex; flex-direction:column; gap:2px; padding:4px 14px 10px; }

.calweek{
  display:grid; grid-template-columns:34px repeat(7,1fr);
  align-items:center;
  border-radius:12px; padding:2px 0;
  transition:background-color .14s var(--ease);
}
.calweek__kw{
  font-size:11.5px; font-weight:500; color:#9aa7b1;
  display:grid; place-items:center;
}
.calday{
  aspect-ratio:1; display:grid; place-items:center;
  font-size:14.5px; color:var(--c-ink);
}
.calday.is-out{ color:#c2c9cf; }
.calday.is-weekend{ color:#b3bdc5; }
.calday.is-out.is-weekend{ color:#d8dde1; }
.calday.is-today{
  color:#fff; font-weight:500;
  background:var(--today); border-radius:50%;
  width:28px; height:28px; aspect-ratio:auto;
  justify-self:center; align-self:center;
}

/* Die gewählte Woche liegt als ein durchgehendes Feld unter der Zeile. */
.calweek.is-selected{ background:var(--u-orange-soft); }
.calweek.is-selected .calday{ color:var(--u-orange-ink); font-weight:500; }
.calweek.is-selected .calday.is-out{ color:#e0b394; }
.calweek.is-selected .calweek__kw{ color:var(--u-orange-ink); }
.calweek.is-selected .calday.is-today{ color:#fff; }

/* Die laufende Woche bekommt einen zarten Umriss, auch wenn eine andere
   gewählt ist. */
.calweek.is-current:not(.is-selected){ box-shadow:inset 0 0 0 1.5px #e6e9ec; }
.cal__today{ margin:2px 18px 4px; padding:13px; border-radius:12px; background:var(--u-orange); color:#fff; font-weight:500; font-size:15px; }

/* Legende */
.legend{ padding:0 18px 8px; display:flex; flex-direction:column; gap:14px; }
.legend li{ display:grid; grid-template-columns:34px 1fr; gap:12px; align-items:center; }
.legend b{ display:block; font-size:15px; font-weight:500; }
.legend span{ display:block; font-size:13px; color:var(--c-muted); }
.sw{ width:34px; height:34px; border-radius:8px; display:block; box-shadow:var(--shadow-card); }
.sw--normal{ background:var(--card-bg); }
.sw--change{ background:var(--chg-bg); border:1.5px solid var(--chg-border); }
.sw--cancel{ background:var(--cnc-bg); }
.sw--exam{ background:var(--exam-bg); border:2px solid var(--exam-border); box-shadow:none; }
.sw--event{ background:var(--evt-bg); }
.sw--absent{ background:var(--absent); }

/* Wochen-Hinweis beim Wischen */
.week-hint{
  position:absolute; left:50%; top:50%;
  transform:translate(-50%,-50%) scale(.9);
  background:rgba(37,55,70,.9); color:#fff;
  padding:9px 16px; border-radius:999px;
  font-size:14px; font-weight:500;
  opacity:0; pointer-events:none;
  transition:opacity .18s var(--ease), transform .18s var(--ease);
  z-index:30;
}
.week-hint.is-on{ opacity:1; transform:translate(-50%,-50%) scale(1); }

/* Toast */
.toast{
  position:fixed; left:50%; bottom:calc(var(--tabbar-h) + var(--sab) + 34px);
  transform:translateX(-50%) translateY(10px);
  background:#253746; color:#fff;
  padding:11px 18px; border-radius:999px;
  font-size:14px; z-index:60;
  opacity:0; transition:opacity .2s var(--ease), transform .2s var(--ease);
  pointer-events:none;
}
.toast.is-on{ opacity:1; transform:translateX(-50%) translateY(0); }

/* Fokus */
:focus-visible{ outline:2.5px solid var(--u-orange); outline-offset:2px; border-radius:6px; }

@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

/* Kartenzeiten (optional, Profil-Schalter) */
body.show-card-times .card__times{ display:flex; }
.card__times{ display:none; position:absolute; right:7px; top:6px; bottom:6px; flex-direction:column; justify-content:space-between; align-items:flex-end; font-size:9.5px; color:#93a0aa; font-weight:500; }

/* =====================================================================
   Anmeldung — eigener Bildschirm der PWA
   ===================================================================== */
.login{
  position:fixed; inset:0; z-index:80;
  display:flex; align-items:center; justify-content:center;
  padding:calc(var(--sat) + 24px) 22px calc(var(--sab) + var(--kb) + 24px);
  background:linear-gradient(180deg,#ffffff 0%,#eef2f6 100%);
  overflow-y:auto;
}
.login[hidden]{ display:none; }
.login__box{ width:100%; max-width:360px; }
.login__mark{
  width:56px; height:56px; border-radius:16px;
  background:var(--u-orange); color:#fff;
  display:grid; place-items:center;
  margin-bottom:20px;
}
.login__mark svg{ width:30px; height:30px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.login h1{ font-size:27px; font-weight:500; letter-spacing:-.02em; }
.login p{ font-size:14.5px; color:var(--c-muted); margin:5px 0 26px; }

.field{ display:block; margin-bottom:14px; }
.field span{ display:block; font-size:12.5px; font-weight:500; color:var(--c-ink-2); margin-bottom:6px; }
.field input{
  width:100%; padding:13px 14px;
  border:1.5px solid #dde2e7; border-radius:12px;
  background:var(--c-bar); font-size:16px; color:var(--c-ink);
  outline:none;
  transition:border-color .15s var(--ease);
}
.field input:focus{ border-color:var(--u-orange); }

.login__error{
  margin:2px 0 12px; padding:10px 12px;
  border-radius:10px; background:#ffe9ec; color:#a01a34;
  font-size:13.5px;
}
.login__error[hidden]{ display:none; }

.login__submit{
  width:100%; padding:15px;
  border-radius:12px;
  background:var(--u-orange); color:#fff;
  font-size:16px; font-weight:500;
  transition:transform .12s var(--ease), opacity .15s var(--ease);
}
.login__submit:active{ transform:scale(.98); }
.login__submit:disabled{ opacity:.55; }

/* =====================================================================
   Klassenbuch — Unteransicht im Stundendetail
   ===================================================================== */
.dsub{
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  background:var(--c-bar);
  border-radius:20px;
  z-index:5;
}
.dsub[hidden]{ display:none; }
.dsub__top{
  flex:0 0 auto;
  display:grid; grid-template-columns:44px 1fr 44px;
  align-items:center; gap:8px;
  padding:14px 14px 12px;
  border-bottom:1px solid #eef0f2;
}
.dsub__body{
  flex:1 1 auto; min-height:0;
  overflow-y:auto; -webkit-overflow-scrolling:touch;
  padding:14px 18px calc(var(--sab) + 14px);
}
.dsub__area{
  width:100%; min-height:220px;
  border:0; outline:none; resize:none;
  font-family:inherit;
  font-size:16px; line-height:1.5; color:var(--c-ink);
  background:none;
}
.dsub__area::placeholder{ color:#9aa7b1; }

.dsub__seg{
  display:grid; grid-template-columns:repeat(3,1fr); gap:3px;
  background:#eff1f4; border-radius:999px; padding:3px;
  margin-bottom:12px;
}
.dsub__seg button{ padding:11px 2px; font-size:15.5px; font-weight:500; color:var(--c-ink-2); border-radius:999px; }
.dsub__seg button.is-active{ background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.12); color:var(--c-ink); }

.dsub__hint{
  background:#f1f3f5; color:var(--c-ink-2);
  font-size:15px; padding:12px 15px; border-radius:10px;
  margin-bottom:16px;
}
.dsub__empty{ text-align:center; padding:40px 10px; color:var(--c-muted); }
.dsub__empty b{ display:block; font-size:20px; font-weight:500; color:var(--c-ink); margin:14px 0 6px; }
.dsub__empty span{ font-size:15px; }
.dsub__empty svg{ width:44px; height:44px; fill:none; stroke:#9aa7b1; stroke-width:1.5; }
.dsub__empty-ico svg{ width:28px; height:28px; }

/* Vertretungstext: schlicht linksbündig, wie in der Vorlage. */
.dsub__read{ padding-top:6px; }

.dsub__list{ display:flex; flex-direction:column; gap:9px; margin-bottom:14px; }
.dsub__item{
  display:grid; grid-template-columns:1fr 32px; align-items:start; gap:10px;
  background:#f5f7f9; border-radius:12px; padding:14px 15px;
  font-size:16.5px; line-height:1.45;
}
.dsub__item-main b{ display:block; font-weight:400; color:var(--c-ink); }
.dsub__item-main span{ display:block; font-size:14px; color:#8b9aa5; margin-top:3px; }
.dsub__item.is-done .dsub__item-main b{ color:#8b9aa5; text-decoration:line-through; }

.dsub__empty-ico{
  display:grid; place-items:center;
  width:58px; height:58px; margin:0 auto 14px;
  border-radius:50%; background:#eef1f4; color:#8b9aa5;
}
.dsub__empty-ico svg{ width:28px; height:28px; fill:none; stroke:currentColor;
  stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.dsub__item button{ color:#9aa7b1; }
.dsub__item button svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.dsub__add{
  display:flex; align-items:center; gap:10px;
  width:100%; padding:15px 16px;
  border:1.5px dashed #cfd6dc; border-radius:12px;
  color:var(--u-orange-ink); font-size:16.5px; font-weight:500;
}
.dsub__add svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; }

/* Vertretungstext in der Unteransicht */
.dsub__read{ font-size:16px; line-height:1.5; color:var(--c-ink); }

/* Anwesenheitskontrolle — Aufbau nach der Vorlage
   ---------------------------------------------------------------------
   Kein Strich zwischen den Namen: getrennt wird nur nach Anfangsbuchstaben,
   und der Strich sitzt unter dem Buchstaben. */
.att{ display:flex; flex-direction:column; }

/* Band unter der Filterleiste — über die volle Breite des Fensters. */
.att__band{
  margin:0 -18px 4px;
  background:#f2f3f5; color:var(--c-ink);
  font-size:15px; text-align:center;
  padding:12px 16px;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.att__band-ok{ width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:2.2;
  stroke-linecap:round; stroke-linejoin:round; }

.att__letter{
  padding:16px 2px 9px;
  font-size:15px; font-weight:400; color:#5d727f;
  border-bottom:1px solid #e4e7ea;
}

.att__row{
  position:relative; overflow:hidden;
  border-radius:14px;
}
.att__inner{
  display:grid; grid-template-columns:34px 1fr auto; align-items:center; gap:14px;
  padding:13px 2px;
  background:var(--c-bar);
  transition:transform .22s var(--ease);
}
.att__row.is-swiping .att__inner{ transition:none; }

/* Die farbige Pille wächst aus der Kante, aus der gewischt wird. */
.att__swipe{
  position:absolute; top:5px; bottom:5px; width:0;
  border-radius:999px; overflow:hidden;
  display:grid; place-items:center;
  pointer-events:none;
}
.att__band--todo{ color:var(--c-ink-2); }

/* Vor der Freigabe lässt sich nichts eintragen. */
.att.is-locked .att__mark,
.att.is-locked .att__acts button{ opacity:.45; }

/* Entschuldigte Zeilen sind gesetzt: das Symbol bleibt farbig, der Rest
   tritt zurück, und ein Schloss zeigt, dass hier nichts zu ändern ist. */
.att__row.is-locked .att__acts{ opacity:.35; pointer-events:none; }
.att__row.is-locked .att__mark{ pointer-events:none; }
.att__row.is-locked .att__tag{ color:#8b9aa5; }
.att__row.is-locked .att__main b::after{
  content:"";
  display:inline-block; vertical-align:-2px; margin-left:7px;
  width:12px; height:13px;
  background:currentColor; opacity:.4;
  -webkit-mask:var(--lock) center/contain no-repeat;
          mask:var(--lock) center/contain no-repeat;
}
:root{
  --lock:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 10.5h14v9.5H5z' fill='black'/><path d='M8.4 10.5V7.8a3.6 3.6 0 0 1 7.2 0v2.7' fill='none' stroke='black' stroke-width='2'/></svg>");
}

.att__swipe--in { left:0;  background:#157d68; }
.att__swipe--in.is-late{ background:#eaa53c; }
.att__swipe--out{ right:0; background:#e00047; }
.att__swipe svg{
  width:27px; height:27px; min-width:27px;
  fill:none; stroke:#fff; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round;
}
.att__row.is-armed .att__swipe svg{ transform:scale(1.12); transition:transform .12s var(--ease); }

/* Zustand links im Kreis */
.att__mark{ width:34px; height:34px; display:grid; place-items:center; color:#c3ccd3; }
.att__mark svg{ width:30px; height:30px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.att__mark:active{ transform:scale(.9); }
.att__row.is-present .att__mark{ color:#157d68; }
.att__row.is-absent  .att__mark{ color:#d10f51; }
.att__row.is-late    .att__mark{ color:#eaa53c; }

/* Name und Zusatzzeilen — die Zusatzzeilen stehen gedeckt, nicht farbig. */
.att__main{ min-width:0; }
.att__main b{
  display:block; font-size:17px; font-weight:400; color:var(--c-ink); line-height:1.25;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.att__tag{ display:block; font-size:15px; margin-top:3px; color:var(--c-ink-2); }
.att__note{ display:block; font-size:15px; margin-top:2px; color:#8b9aa5; }
/* Hinweis, dass jemand schon in einer früheren Stunde gefehlt hat. */
.att__before{ display:block; font-size:14px; margin-top:2px; color:#8b9aa5; }
/* Entschuldigt oder nicht — steht als Wort da, nicht nur als Farbe. */
.att__state{ display:block; font-size:14px; margin-top:2px; }
.att__state--ok{ color:#157d68; }
.att__state--no{ color:#c0113a; }

.att__index{
  position:absolute; top:150px; right:4px; bottom:14px;
  display:flex; flex-direction:column; justify-content:center; gap:1px;
  z-index:6;
}
.att__index button{ font-size:11.5px; font-weight:500; color:#8b9aa5; line-height:1.3; padding:0 3px; }
.att__index button:active{ color:var(--u-orange); }

/* Vermerk und Uhr rechts — kräftig, wie in der Vorlage */
.att__acts{ display:flex; gap:10px; padding-right:14px; }
.att__acts button{
  width:40px; height:40px; border-radius:11px;
  color:#24323c; display:grid; place-items:center;
}
.att__acts button svg{ width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }

/* Fehlt jemand, steht die Zahl auf rotem Feld — sofort sichtbar. */
.drow2__count.is-red{ background:#e00047; color:#fff; }

/* =====================================================================
   Abwesenheit bearbeiten — eigenes Fenster über der Schülerliste
   ===================================================================== */
.dabs{
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  background:var(--c-bar);
  border-radius:20px;
  z-index:8;
}
.dabs[hidden]{ display:none; }

.dabs__top{
  flex:0 0 auto;
  display:grid; grid-template-columns:48px 1fr auto;
  align-items:center; gap:8px;
  padding:14px 14px 12px;
}
.dabs__title{ text-align:center; font-size:17px; font-weight:500; color:var(--c-ink-2); }
.dabs__acts{ display:flex; align-items:center; gap:8px; }
.rndbtn--ok{ color:var(--u-green); }

/* Der grüne Streifen unter der Kopfzeile wie in der Vorlage. */
.dabs__bar{ flex:0 0 auto; height:5px; background:var(--u-green); }

.dabs__body{
  flex:1 1 auto; min-height:0;
  overflow-y:auto; -webkit-overflow-scrolling:touch;
  padding:18px 18px calc(var(--sab) + 18px);
}

.dabs__who{
  display:grid; grid-template-columns:56px 1fr; align-items:center; gap:14px;
  padding-bottom:18px; border-bottom:1px solid #eef0f2; margin-bottom:18px;
}
.dabs__ava{
  width:56px; height:56px; border-radius:50%;
  background:#8b9aa5; color:#fff;
  display:grid; place-items:center; font-size:18px; font-weight:500;
}
.dabs__id b{ display:block; font-size:21px; font-weight:400; color:var(--c-ink); line-height:1.2; }
.dabs__chip{
  display:inline-block; margin-top:6px;
  padding:3px 11px; border-radius:8px;
  background:#e7ebee; color:#5d727f; font-size:14px;
}

.dabs__lab{
  display:block;
  font-size:12.5px; font-weight:500; letter-spacing:.06em;
  color:#8b9aa5; text-transform:uppercase;
  margin-bottom:8px;
}
.dabs__grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:20px; }
.dabs__fields{ display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.dabs__pill{
  -webkit-appearance:none; appearance:none;
  border:0; outline:none;
  background:#eef0f3; color:var(--c-ink);
  border-radius:999px; padding:9px 15px;
  font-family:inherit; font-size:16.5px; line-height:1.2;
  min-height:40px;
}
.dabs__pill:focus{ background:#e3e7ec; }
/* Auf dem iPad zeigt das System selbst ein Rad zur Auswahl — das kleine
   Symbol des Browsers tritt dahinter zurück. */
.dabs__pill::-webkit-calendar-picker-indicator{ opacity:.4; margin-left:6px; }
.dabs__pill::-webkit-date-and-time-value{ text-align:left; }

.dabs__sel{
  display:grid; grid-template-columns:1fr 24px; align-items:center; gap:10px;
  width:100%; text-align:left;
  background:#f1f3f5; border-radius:12px;
  padding:15px 14px 15px 16px;
  font-size:17px; color:var(--c-ink);
  margin-bottom:20px;
}
.dabs__sel .is-empty{ color:#9aa7b1; }
.dabs__sel .ico{ width:22px; height:22px; color:#9aa7b1; }

.dabs__area{
  width:100%; min-height:130px;
  border:0; outline:none; resize:none;
  background:#f1f3f5; border-radius:12px;
  padding:14px 16px; margin-bottom:22px;
  font-family:inherit; font-size:17px; line-height:1.5; color:var(--c-ink);
}
.dabs__area::placeholder{ color:#9aa7b1; }

.dabs__switch{
  display:grid; grid-template-columns:1fr auto; align-items:center; gap:14px;
  font-size:17px; color:var(--c-ink);
  padding:6px 0 4px;
}

/* Der Balken zeigt den erfassten Zustand: gelb verspätet, grün abwesend. */
.dabs__bar{ background:#c7ced4; }
.dabs.is-absent .dabs__bar{ background:var(--u-green); }
.dabs.is-late   .dabs__bar{ background:#eaa53c; }

/* =====================================================================
   Eingabefenster — Hausaufgabe, Klassenbucheintrag, Bemerkung
   ===================================================================== */
.dform{
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  background:var(--c-bar); border-radius:20px;
  z-index:9;
}
.dform[hidden]{ display:none; }
.dform__top{
  flex:0 0 auto;
  display:grid; grid-template-columns:48px 1fr 48px;
  align-items:center; gap:8px;
  padding:14px 14px 12px;
  border-bottom:1px solid #eceff1;
}
.dform__title{ text-align:center; font-size:17px; font-weight:500; color:var(--c-ink-2); }
.rndbtn--go{ color:var(--u-orange); }

.dform__body{
  flex:1 1 auto; min-height:0;
  overflow-y:auto; -webkit-overflow-scrolling:touch;
  padding:6px 18px calc(var(--sab) + 18px);
}

.dform__row{
  display:grid; align-items:center; gap:4px 12px;
  width:100%; text-align:left;
  padding:14px 0;
  border-bottom:1px solid #eceff1;
}
/* Beschriftung oben, Eingabe darunter, Pfeil rechts über beide Zeilen. */
.dform__row--nav{ grid-template-columns:1fr 22px; }
.dform__row--nav .dform__lab{ grid-column:1; grid-row:1; }
.dform__row--nav .dform__in { grid-column:1; grid-row:2; }
.dform__row--nav .dform__val{ grid-column:1; grid-row:2; }
.dform__row--nav .dform__chev{ grid-column:2; grid-row:1 / span 2; }

.dform__row--val{ grid-template-columns:1fr auto; }
.dform__lab{ font-size:15px; color:var(--c-ink-2);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dform__row{ min-width:0; }
.dform__lab--big{ font-size:17px; color:var(--c-ink); }
.dform__chev{ width:22px; height:22px; color:#9aa7b1; align-self:center; justify-self:end;
  fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.dform__val{ font-size:17px; color:var(--c-ink); margin-top:2px; }
.dform__val.is-empty{ color:#9aa7b1; }

.dform__in{
  width:100%;
  border:0; outline:none; resize:none; overflow:hidden;
  background:transparent; padding:0; margin-top:2px;
  font-family:inherit; font-size:17px; line-height:1.4; color:var(--c-ink);
}
.dform__in::placeholder{ color:#9aa7b1; }

.dform__block{ padding:16px 0 4px; }
.dform__area{
  width:100%; min-height:56px;
  border:0; outline:none; resize:none; overflow:hidden;
  background:transparent; padding:0;
  font-family:inherit; font-size:17px; line-height:1.45; color:var(--c-ink);
}
.dform__area::placeholder{ color:#9aa7b1; }

.dform__hint{
  display:flex; align-items:flex-start; gap:8px;
  font-size:13.5px; line-height:1.4; color:#8b9aa5;
  padding:0 0 16px; border-bottom:1px solid #eceff1;
}
.dform__hint svg{ width:16px; height:16px; margin-top:1px; flex:0 0 16px;
  fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; }

.dform__date{
  -webkit-appearance:none; appearance:none; border:0; outline:none;
  background:transparent; font-family:inherit; font-size:17px; color:var(--c-ink);
  text-align:right;
}

/* Auswahlliste der Abwesenheitsgründe */
.dabs__pick{
  position:absolute; z-index:9;
  left:18px; right:18px; top:50%;
  overflow-y:auto;
  background:var(--c-bar);
  border-radius:16px;
  box-shadow:0 10px 34px rgba(21,33,44,.26);
  padding:6px;
}
.dabs__pick[hidden]{ display:none; }
.dabs__pick button{
  display:block; width:100%; text-align:left;
  padding:14px 14px; border-radius:11px;
  font-size:17px; color:var(--c-ink);
}
.dabs__pick button.is-on{ color:var(--u-orange-ink); font-weight:500; }

/* =====================================================================
   Dunkles Erscheinungsbild
   ---------------------------------------------------------------------
   Werte aus den Musterbildern abgenommen: Grund schwarz, Kacheln in einem
   gedeckten Blaugrau, Änderungen in kräftigem Grün, Ferien in Blau.
   ===================================================================== */

/* =====================================================================
   Dunkles Erscheinungsbild
   ---------------------------------------------------------------------
   Gesteuert über die Klasse .is-dark auf <html>. Gesetzt wird sie von
   assets/js/app.js — entweder nach der Systemeinstellung oder nach der
   Wahl im Profil.
   ===================================================================== */

  html.is-dark {
    /* Werte am Muster abgenommen: Grund #1c1c1e, Leiste schwarz,
       Kachel #5e7382, Balken #bfc7ce, Änderung #035641,
       Plakette #22c0a1, Ferien #6a82bf. */
    --c-bg:            #1c1c1e;
    --c-bar:           #000000;
    --c-surface:       #1c1c1e;
    --c-chip:          #2a2a2e;
    --c-grid-top:      #1c1c1e;
    --c-grid-bottom:   #1c1c1e;
    --c-line:          #34343a;
    --c-line-soft:     #34343a;
    --c-col-line:      #2a2a2f;

    --c-ink:           #f2f4f6;
    --c-ink-2:         #c9d1d8;
    --c-muted:         #8d949c;
    --c-gutter:        #9aa1a8;

    --card-bg:         #5e7382;
    --card-bg-past:    #323d45;   /* deutlich dunkler als eine laufende Stunde */
    --shadow-past:     0 1px 2px rgba(0,0,0,.34), 0 2px 5px rgba(0,0,0,.24);
    --card-accent:     #bfc7ce;

    --u-green:         #22c0a1;
    --u-green-soft:    #035641;
    --u-green-ink:     #05201a;
    --u-blue:          #6a82bf;
    --u-cyan:          #3ee6ff;
    /* Fehlte hier als einzige der Kennfarben. Auf dunklem Grund wirkt das
       helle Lila aus dem Grundblock blass und ging neben dem hellgrauen
       Balken der übrigen Kacheln unter — der Akzentbalken der Aufsicht war
       dadurch kaum als solcher zu erkennen. */
    --u-magenta:       #e08cff;

    /* Ränder und Flächen am Muster gemessen: Grün #035641 mit Rand #30bd9e,
       Entfall #81012f mit Rand #e43b66. */
    --chg-bg:          #005840;
    --chg-border:      #20c0a2;
    --chg-accent:      #0a7a5e;

    --cnc-bg:          #81012f;
    --cnc-border:      #df0047;

    --exam-bg:         #4a3f22;
    --exam-border:     #c9a227;
    --evt-bg:          #054035;

    --green:           #22c0a1;      /* Plakettenfläche */
    --green-ink:       #05201a;      /* Plakettenschrift */

    --shadow-card:     none;      /* im Dunkeln tragen die Kacheln keinen Schatten */
    --shadow-sheet:    0 -8px 40px rgba(0,0,0,.7);
    --shadow-bar:      0 2px 12px rgba(0,0,0,.6);
  }

  html.is-dark body { background:var(--c-bg); color:var(--c-ink); }

  .is-dark .topbar,
  .is-dark .weekhead,
  .is-dark .tabbar,
  .is-dark .screen--start,
  .is-dark .screen--msg,
  .is-dark .screen--profile { background:var(--c-bar); }
  /* Sheets bleiben auch im Dunkeln milchig-durchscheinend (Liquid Glass). */
  .is-dark .sheet { background:color-mix(in srgb, var(--c-bar) 66%, transparent); }
  .is-dark .screen--start,
  .is-dark .screen--msg,
  .is-dark .screen--profile { background:var(--c-bg); }

  .is-dark .rndbtn,
  .is-dark .searchwrap,
  .is-dark .dsub__seg,
  .is-dark .dsub__hint,
  .is-dark .att__btns button,
  .is-dark .btn,
  .is-dark .topbar__actions,
  .is-dark .dayswitch__back { background:#1c1c1e; color:var(--c-ink-2); }
  .is-dark #btnSwitchEntity,
  .is-dark #pickerClear,
  .is-dark #pickerBack { background:#1c1c1e; color:var(--c-ink-2); }
  .is-dark /* Im Detail liegt der Grund schon auf #1c1c1e — die Knöpfe brauchen einen
     eigenen,
  .is-dark etwas helleren Kreis,
  .is-dark sonst verschwinden sie. */
  #dsubBack,
  .is-dark #dsubSave,
  .is-dark #detailClose,
  .is-dark #detailMenu { background:#2a2a2e; color:var(--c-ink-2); }
  .is-dark /* Die Planauswahl oben ist blanker Text — keine hellere Fläche darunter. */
  #btnEntityPicker,
  .is-dark .topbar__title { background:transparent; }
  /* Im Hellen steht der Name auf weißem Grund, im Dunkeln auf schwarzem.
     Derselbe gedeckte Ton wirkt dort deutlich matter, als er soll —
     deshalb ein paar Stufen heller. Zweitrangig bleibt er trotzdem: Der
     Wochentag daneben steht weiter kräftiger da. */
  .is-dark .topbar__title { color:#93a6b2; }
  .is-dark .tab.is-active::before { background:#232326; }
  .is-dark .tabbar { background:#111114; box-shadow:0 -1px 0 #232327, var(--shadow-sheet); }
  .is-dark .tab { color:var(--c-ink-2); }
  .is-dark .tab.is-active { color:var(--c-ink); }
  .is-dark .dsub__seg button.is-active { background:#3a3a3e; color:var(--c-ink); }
  /* Die Zählerkarte trägt die Farbe dessen, was hinter ihr steckt: Grün
     bei einer Vertretung, Rot beim Entfall. Nur die gewöhnliche Stunde
     bleibt farblos — im Hellen weiß, im Dunkeln entsprechend das Grau der
     Karten. Weiß stach dort als heller Balken heraus. */
  /* Die farblose Zählerkarte steht im Dunkeln immer im dunkleren Ton der
     vergangenen Kacheln — auch für künftige Stunden. Sie ist ein Hinweis am
     Rand, kein Eintrag: Im helleren Grau der laufenden Karten drängte sie
     sich neben die Stunden, denen sie eigentlich nur zuarbeitet. */
  .is-dark .parcount {
    box-shadow:none;
    background:var(--card-bg-past);
    color:var(--c-ink);
  }
  /* Auf dem dunkelgrünen Feld war die dunkelgrüne Zahl kaum zu lesen. */
  /* Grün und Rot in voller Kraft — im Dunkeln der kräftige Rand-, nicht der
     gedämpfte Flächenton. Mit `--chg-bg` wirkte der Streifen wie eine
     vergangene Stunde, obwohl die Vertretung noch bevorsteht. */
  .is-dark .parcount--change {
    background:var(--chg-border);
    color:#eafff7;
  }
  /* `.is-dark .parcount` ist genauer als `.parcount--cancel` und hat dem
     Entfall-Zähler sein Rot genommen. Hier steht es wieder. */
  .is-dark .parcount--cancel {
    background:var(--cnc-border);
    color:#fff;
  }
  /* Info und Kürzungszeichen liegen im Dunkeln als dunkles Feld mit hellen
     Punkten auf der Karte (Vorlage Screenshot 1). */
  /* Dasselbe Feld wie bei den zweifarbigen Zeichen — sie stehen in
     derselben Ecke und dürfen nicht in zwei Dunkelheiten erscheinen. */
  .is-dark .card__cut,
  .is-dark .card__info { background:var(--tt-ic-bg); }
  .is-dark .card__cut circle { fill:var(--tt-ic-fg); }
  /* Auf einer Vertretung gilt die Plakettenfarbe, nicht das dunkle Feld.
     Die Regel darüber ist genauso genau und stünde weiter unten — sie
     würde sonst gewinnen und dem Zeichen sein Grün nehmen. `--green` und
     `--green-ink` sind im Dunkeln bereits umbelegt, hier steht deshalb
     kein fester Wert. */
  /* Zweifarbige Kachelzeichen umkehren: dunkles Feld, helle Zeichnung. */
  /* Im Dunkeln bleibt das Feld dunkel und die Zeichnung gedämpft.
     Vorher war es nur halb durchsichtig und die Zeichnung fast weiß —
     auf einer dunklen Kachel wurde daraus ein heller Fleck, der mehr
     Aufmerksamkeit zog als der Text daneben. Ein Zeichen in der Ecke ist
     ein Hinweis, keine Überschrift. */
     Geschrieben als `html.is-dark`, nicht als `.is-dark`: Die Vorgabe
     steht in `:root`, also am selben Element. Bei gleicher Genauigkeit
     gewänne die weiter unten stehende Regel — und das ist `:root`. Mit
     dem Elementnamen davor zählt die Regel eine Stufe genauer und setzt
     sich durch, unabhängig von der Reihenfolge. */
  html.is-dark{ --tt-ic-bg:#2b3138; --tt-ic-fg:#9aa6b2; }

  .is-dark .card--change .card__cut,
  .is-dark .card--released .card__cut{ background:var(--green); }
  .is-dark .card--change .card__cut circle,
  .is-dark .card--released .card__cut circle{ fill:var(--green-ink); }
  .is-dark .card__info::before { background:var(--tt-ic-fg); }
  .is-dark .card__info { color:var(--tt-ic-bg); }
  .is-dark .corners i { border-color:#8d949c; }
  .is-dark .searchwrap input { color:var(--c-ink); }
  .is-dark .dtoggle { background:#3a3a3c; }
  .is-dark .dtoggle::after { background:#f2f4f6; }

  .is-dark .card { color:var(--c-ink); }

  .is-dark .card__line { color:#f4f6f8; }
  .is-dark .card--cancelled { background:var(--cnc-bg); }

  /* Im Dunklen bleibt bei vergangenen farbigen Stunden der Rahmen und die
     Fläche wird neutral. */
  .is-dark .card--released.is-past{ background:transparent; box-shadow:none; }
  .is-dark .dpill { background:#4a5560; }
  .is-dark .card--standby.is-past{
    background:transparent;
    border-color:#4a5560;
  }
  /* Diese Regel steht im Stylesheet nach der hellen Fassung und ist gleich
     genau — sie hat der abwesenden Bereitschaft die Durchsichtigkeit wieder
     genommen. Hier bekommt sie sie zurück. */
  .is-dark .card--standby.is-absent.is-past{
    background:transparent;
    border-color:transparent;
  }
  .is-dark .card--change.is-past,
  .is-dark .card--cancelled.is-past{
    background:var(--card-bg-past);
    --bw:2px;
  }
  .is-dark .card--change.is-past   { border:2px solid var(--chg-border); }
  .is-dark .card--cancelled.is-past{ border:2px solid var(--cnc-border); }
  /* Vergangene GS/AK im Dunkeln — wie eine vergangene Vertretung: neutrale
     Fläche, aber der grüne Rand bleibt als Kennzeichen stehen. */
  .is-dark .card--gs.is-past,
  .is-dark .card--absence.is-past{
    background:var(--card-bg-past);
    --bw:2px;
    border:2px solid var(--chg-border);
  }
  /* Durchgestrichener Text bleibt reinweiß und damit gut lesbar. */
  .is-dark .card--cancelled .card__line { color:#ffffff; }
  .is-dark .card--cancelled .card__line s,
  .is-dark .card--cancelled .badge { color:#ffffff; }
  .is-dark .card--change { background:var(--chg-bg); }
  .is-dark .card--change .card__line { color:#eafff8; }
  /* Dunkle Schrift auf dem blauen Band. */
  .is-dark .card--holiday .card__line { color:#161a24; }
  .is-dark .card--holiday .holiday-mark { color:#161a24; }
  .is-dark .card.is-highlight { border-color:#22c0a1; }
  .is-dark .card--gs .card__line,
  .is-dark .card--gs .card__line--primary { color:#eafff8; }
  .is-dark .card--released { background:transparent; }
  /* Der gestrichelte Rahmen soll sich im Dunkeln vom Feld abheben. */
  .is-dark .card--standby { border-color:#c3ccd4; }
  .is-dark .card--standby .card__line { color:#cfd6dc; }

  .is-dark .slotrow { border-top-color:var(--c-line); }
  .is-dark .daycol { border-color:var(--c-col-line); }
  .is-dark .dayhead__name { color:var(--c-muted); }
  .is-dark .dayhead__num { color:var(--c-ink); }

  .is-dark .dsub,
  .is-dark .sheet--detail,
  /* Auch das Schreibfenster bleibt blickdicht — sonst schimmert die Liste
     dahinter durch die Zeilen. */
  .is-dark .sheet--write { background:var(--c-surface); }
  .is-dark .dmenu { background:color-mix(in srgb, var(--c-surface) 74%, transparent); }
  .is-dark .dhead.is-off { background:#2a2a2e; }
  .is-dark /* Trennlinien im Detail bleiben dezent — sonst zerschneiden sie die Liste. */
  .drow2 + .drow2 { border-top-color:#2c2c31; }
  .is-dark .detail__sep { background:#2c2c31; }
  .is-dark .dsub__top { border-bottom-color:#2c2c31; }
  .is-dark .drow2__count { background:#5d6870; color:#0d1114; }
  .is-dark .att__inner { background:var(--c-surface); }
  .is-dark .att__letter { border-bottom-color:#2c2c31; }
  .is-dark .att__band { background:#1c1c1e; color:var(--c-ink); }
  .is-dark .att__acts button { color:#cfd6db; }
  .is-dark .att__before { color:#8b959e; }
  .is-dark .att__state--ok { color:#3fd0ac; }
  .is-dark .att__state--no { color:#ff6f8f; }
  .is-dark .dsub__item { background:#2a2a2e; }
  .is-dark .dsub__area { color:var(--c-ink); }

  .is-dark .picker-item__ava { background:#5b656e; }
  .is-dark .picker-letter { background:var(--c-bar); color:var(--c-muted); }
  .is-dark .chip { background:#2a2a2e; color:#b9c1c8; }
  .is-dark .msgrow { background:#141416; border-bottom-color:var(--c-line); }
  .is-dark .msgrow__ava { background:#5b656e; }
  .is-dark .rows--flat .row--user { background:#101012; box-shadow:none; border:1px solid var(--c-line); }
  .is-dark .daycard{ background:#101012; box-shadow:none; border:1px solid var(--c-line); }
  .is-dark .nextnone{ background:#33393f; }
  .is-dark .daycard__num, .is-dark .daycard__mon{ color:#f6efe6; }
  .is-dark .daycard__tag{ background:#6a82bf; color:#101425; }
  .is-dark .schoolname{ color:#c2ccd4; }
  .is-dark .profile-card,
  .is-dark .rows,
  .is-dark .tile,
  .is-dark .msg,
  .is-dark .empty {
    background:#101012; box-shadow:none; border:1px solid var(--c-line);
  }
  .is-dark .tile__main b,
  .is-dark .tile b { color:var(--c-ink); }
  .is-dark .eyebrow { color:var(--c-muted); }
  .is-dark .flag--change,
  .is-dark .flag--event { background:#0a5a48; color:#8ff0d4; }
  .is-dark .flag--cancel { background:#5a2f3a; color:#ffb3c1; }
  .is-dark .flag--exam { background:#4a3f22; color:#f0d99a; }
  .is-dark .profile-name { color:var(--c-ink); }
  .is-dark .row { border-bottom-color:var(--c-line); }
  .is-dark .msg { background:#101012; border-color:var(--c-line); }
  .is-dark .screen h1,
  .is-dark .screen h2 { color:var(--c-ink); }
  .is-dark .startcard,
  .is-dark .nextcard,
  .is-dark .card--next { background:#101012; border:1px solid var(--c-line); box-shadow:none; }
  .is-dark .cal,
  .is-dark .calday { color:var(--c-ink); }
  .is-dark .calday.is-out { color:var(--c-muted); }
  .is-dark .pk__index button { color:var(--c-muted); }
  .is-dark .empty,
  .is-dark .legalnote { color:var(--c-muted); }
  .is-dark .toast { background:#2a2a2e; color:var(--c-ink); }
  .is-dark .picker-item__chip { background:#2a2a2e; color:#b9c1c8; }
  .is-dark .picker-item__chip--kl { background:#2a2a2e; color:#b9c1c8; }
  .is-dark .screen--list { background:#141416; }
  .is-dark .lsthead { background:var(--c-surface); border-bottom-color:#2c2c31; }
  .is-dark .lstcard { background:var(--c-surface); }
  .is-dark .lstbtn { background:#2a2a2e; color:#cfd6db; }
  .is-dark .frow { border-top-color:#2c2c31; }
  .is-dark .frow:last-of-type,
  .is-dark .frow__pick { border-bottom-color:#2c2c31; }
  .is-dark .lst__emptyIco { background:rgba(42,42,46,.7); }
  .is-dark .lstchip { background:#2a2a2e; color:#cfd6db; border-color:rgba(255,255,255,.08); }
  .is-dark .lstsearch { background:var(--c-surface); box-shadow:none; }
  /* Im Dunklen dasselbe Prinzip, nur mit dunklen Scheiben. */
  .is-dark .screen--start,
  .is-dark .screen--profile,
  .is-dark .screen--list{ background:#131416; }
  .is-dark body:has(.screen--start.is-active) .topbar,
  .is-dark body:has(.screen--profile.is-active) .topbar,
  .is-dark body:has(.screen--list.is-active) .topbar,
  .is-dark body.has-plain-top .topbar{ background:#131416; }
  .is-dark .screen--start .rows,
  .is-dark .screen--profile .rows,
  .is-dark .screen--start .daycard,
  .is-dark .screen--list .lstcard{
    background:#1e1f22; border:0;
    box-shadow:0 8px 26px rgba(0,0,0,.34);
  }
  .is-dark .lsthead{ background:#131416; border-bottom:0; }
  .is-dark .profpop{
    background:rgba(28,28,30,.78);
    border:1px solid rgba(255,255,255,.08);
  }
  .is-dark .pk__row:active,
  .is-dark .pk__search { background:transparent; }

  .is-dark .login { background:linear-gradient(180deg,#111114 0%, #000 100%); }
  .is-dark .field input { background:#1c1c1e; border-color:#3a3a3c; color:var(--c-ink); }

  .is-dark .nowline { background:#ff6b3d; }

  .is-dark .dabs { background:var(--c-surface); }
  .is-dark .dabs__who { border-bottom-color:#2c2c31; }
  .is-dark .dabs__ava { background:#5b656e; }
  .is-dark .dabs__chip { background:#2a2a2e; color:#b9c1c8; }
  .is-dark .dabs__pill,
  .is-dark .dabs__sel,
  .is-dark .dabs__area { background:#2a2a2e; color:var(--c-ink); }
  .is-dark .dabs__pick { background:#1c1c1e; }
  .is-dark .dabs__pick button { color:var(--c-ink); }
  .is-dark .drow2__count.is-red { background:#e00047; color:#fff; }

  .is-dark .calweek.is-current:not(.is-selected) { box-shadow:inset 0 0 0 1.5px #33333a; }
  .is-dark .calday.is-out { color:#4d545b; }
  .is-dark .calday.is-weekend { color:#6b747c; }
  .is-dark .calday.is-out.is-weekend { color:#41474d; }

  .is-dark .dform { background:var(--c-surface); }
  .is-dark .dform__top,
  .is-dark .dform__row,
  .is-dark .dform__hint { border-bottom-color:#2c2c31; }
  .is-dark .dform__in,
  .is-dark .dform__area,
  .is-dark .dform__date,
  .is-dark .dform__val { color:var(--c-ink); }
  .is-dark .dsub__empty-ico { background:#2a2a2e; }
  .is-dark .dabs__bar { background:#3a3a40; }
  .is-dark .dpart { background:#1c1c1e; }
  .is-dark .dpart button:active,


/* =====================================================================
   Profil und Mitteilungen — Aufbau nach Vorlage
   ===================================================================== */
.rows--flat{ background:none; border:0; box-shadow:none; margin-bottom:22px; }
.rows--flat .row--user{
  background:var(--c-bar); border-radius:16px;
  display:grid; grid-template-columns:52px 1fr 24px; align-items:center; gap:14px;
  padding:14px 16px; width:100%;
  box-shadow:var(--shadow-card);
}
.row--user__main b{ display:block; font-size:19px; font-weight:400; color:var(--c-ink); }
.chip{
  display:inline-block; margin-top:5px;
  padding:3px 11px; border-radius:999px;
  background:#e7ebee; color:#5d727f; font-size:13px;
}
.ico--updown{ width:22px; height:22px; color:var(--c-muted); stroke-width:2; fill:none; stroke:currentColor; }

.row{ display:grid; grid-template-columns:30px 1fr auto auto; align-items:center; gap:13px; }
.row__ico .ico{ width:23px; height:23px; color:var(--c-muted); fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
/* Füllzeichen wiegen bei gleicher Größe deutlich schwerer als Konturzeichen:
   Statt eines Strichs von knapp zwei Pixeln steht dort eine geschlossene
   Fläche. In den Zeilen der Startseite wirkten sie dadurch wie Schaltflächen
   und zogen den Blick von der Beschriftung weg. Sie werden deshalb eine
   Spur kleiner gesetzt und blasser gefärbt — so wiegen sie ungefähr so viel
   wie die Konturzeichen daneben. */
.row__ico .uic{
  width:20px; height:20px;
  fill:color-mix(in srgb, var(--c-muted) 82%, transparent);
  stroke:none;
}
.row--switch{ grid-template-columns:30px 1fr auto; }
.row--nav .ico--chev2{ color:var(--c-muted); }

/* Mitteilungen */
.msghead{
  display:grid; grid-template-columns:44px 1fr auto;
  align-items:center; gap:8px;
  /* Diese Zeile ist auf dem Mitteilungsbildschirm die oberste: Die Leiste
     der App entfällt dort, und der Kontoknopf sitzt links in dieser Zeile.
     Vorher stand beides untereinander — der Sicherheitsabstand zählte
     zweimal, und dazwischen blieb ein leerer schwarzer Streifen, über dem
     der Hintergrund wechselte. */
  padding:calc(var(--sat) + 13px) 14px 6px;
}
/* Solange die Mitteilungen offen sind, trägt diese Zeile den Kopf. */
body.is-msgtop .topbar{ display:none; }
/* Am Tablet sitzen die Reiter oben in der Mitte — dort ist kein Platz für
   einen zweiten Titel. */
@media (min-width:820px){
  .msghead__title{ display:none; }
}
/* Die Plätze stehen fest, auch wenn der Zurückknopf fehlt: Ohne feste
   Spalten rutschten Titel und Knöpfe nach links und lagen übereinander. */
/* Links der Kontoknopf und, wenn eine Mitteilung offen ist, der Pfeil
   zurück — beide in derselben Zelle. */
.msghead__left{ grid-column:1; display:flex; align-items:center; gap:8px; }
.msghead__title{
  grid-column:2; text-align:center;
  font-size:19px; font-weight:500; color:var(--c-ink-2);
}
.msghead__acts{ grid-column:3; display:flex; align-items:center; gap:8px; }
.msghead .rndbtn[hidden]{ display:none; }
.msgtabs{ display:flex; gap:22px; padding:6px 18px 10px; }
.msgtabs button{ font-size:17px; font-weight:500; color:var(--c-muted); }
.msgtabs button.is-active{ color:var(--c-ink); }
.msglist{ flex:1 1 auto; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.msgrow{
  display:grid; grid-template-columns:52px 1fr auto; align-items:start; gap:13px;
  /* Eine Karte je Mitteilung, nicht eine Zeile mit Trennlinie — so steht es
     im Vorbild. */
  margin:8px 14px; padding:14px 16px;
  background:var(--c-chip); border-radius:14px;
  width:calc(100% - 28px); text-align:left;
}
.msgrow__ava{
  width:52px; height:52px; border-radius:50%;
  background:#8b9aa5; color:#fff;
  display:grid; place-items:center; font-size:17px; font-weight:500;
}
.msgrow__main b{ display:block; font-size:17px; font-weight:400; color:var(--c-ink); }
.msgrow__main span{ display:block; font-size:15px; color:var(--c-ink-2); margin-top:1px; }
.msgrow__main em{
  display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:15px; color:var(--c-muted); font-style:normal;
}
.msgrow__main b, .msgrow__main span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.msgrow__date{ font-size:14px; color:var(--c-muted); white-space:nowrap; }
.msgrow.is-unread .msgrow__main b{ font-weight:500; }

/* ---------- Abwesend oder verspätet im Fehlzeit-Fenster ---------- */
.dabs__art{
  display:flex; gap:6px; margin:10px 0 4px;
  padding:3px; border-radius:11px; background:var(--c-chip);
}
.dabs__art button{
  flex:1 1 0; padding:8px 10px; border-radius:9px;
  font-size:14.5px; font-weight:500; color:var(--c-ink-2);
}
.dabs__art button.is-on{ background:var(--c-surface); color:var(--c-ink); }

/* Hinweis, wenn das Fenster nur zum Lesen offen steht. */
.dabs__lesen{
  margin:2px 0 10px; padding:9px 12px;
  border-radius:10px; background:var(--c-chip);
  font-size:13.5px; color:var(--c-ink-2);
}
.dabs__art button:disabled, .dabs__sel:disabled{ opacity:.55; }

/* ---------- Suche in den Mitteilungen ---------- */
.msgfind{ padding:0 16px 8px; }
.msgfind input{
  width:100%; padding:10px 14px;
  border:0; border-radius:999px;
  background:var(--c-chip); color:var(--c-ink); font-size:16px;
  outline:none;
}
.msgfind[hidden]{ display:none; }

/* ---------- Leere Liste: Zeichen, Überschrift, Nebensatz ---------- */
.msgempty{ text-align:center; padding:70px 24px; }
.msgempty__ico{
  display:grid; place-items:center; width:74px; height:74px; margin:0 auto 20px;
  border-radius:50%; background:var(--c-chip);
}
.msgempty__ico svg{
  width:34px; height:34px; color:var(--c-muted);
  fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round;
}
.msgempty b{ display:block; font-size:21px; font-weight:500; color:var(--c-ink); }
.msgempty span{ display:block; margin-top:8px; font-size:15.5px; color:var(--c-muted); }

/* ---------- Eine gelesene Mitteilung ---------- */
.msgread{
  flex:1 1 auto; overflow-y:auto; -webkit-overflow-scrolling:touch;
  padding:4px 20px calc(var(--sab) + 24px);
}
.msgread[hidden]{ display:none; }
.msgread__head{
  display:flex; justify-content:space-between; align-items:baseline; gap:14px;
  font-size:15px; color:var(--c-muted);
}
.msgread__from b{ color:var(--c-ink); font-weight:500; }
.msgread__subject{ margin:10px 0 18px; font-size:21px; font-weight:500; color:var(--c-ink); }
.msgread__body{ font-size:16px; line-height:1.5; color:var(--c-ink); white-space:normal; }
.msgread__body a{ color:var(--u-orange); text-decoration:none; word-break:break-word; }
.msgread__to{ margin-top:18px; font-size:14px; color:var(--c-muted); }
.msgread__file{
  display:flex; align-items:center; gap:10px;
  margin-top:12px; padding:11px 13px;
  border:1px solid var(--c-line); border-radius:12px;
  font-size:15px; color:var(--c-ink); text-decoration:none;
}
.msgread__file .ico{ width:18px; height:18px; }
.msgread__file em{ margin-left:auto; font-style:normal; color:var(--c-muted); font-size:13.5px; }
.msgread__acts{ display:flex; gap:10px; margin-top:26px; }

/* ---------- Mitteilung schreiben ---------- */
.sheet--write{
  height:auto; max-height:88vh;
  padding:0 0 calc(var(--sab) + 10px);
  background:var(--c-bar);
  backdrop-filter:none; -webkit-backdrop-filter:none;
  display:flex; flex-direction:column;
}
@media (min-width:700px){
  .sheet--write{
    left:50%; right:auto; bottom:auto; top:50%;
    width:min(680px, 92vw);
    height:min(74vh, 760px); max-height:min(74vh, 760px);
    border-radius:20px;
    transform:translate(-50%, -46%) scale(.98); opacity:0;
    transition:transform .26s var(--ease), opacity .2s var(--ease);
  }
  .sheet--write.is-open{ transform:translate(-50%, -50%) scale(1); opacity:1; pointer-events:auto; }
}
.write__top{
  display:grid; grid-template-columns:44px 1fr 44px; align-items:center;
  gap:10px; padding:12px 14px;
}
.write__title{ text-align:center; font-size:17px; font-weight:500; color:var(--c-ink); }
.write__pane{ flex:1 1 auto; display:flex; flex-direction:column; min-height:0; }
.write__pane[hidden]{ display:none; }
.write__to{
  display:flex; align-items:center; gap:12px;
  width:100%; padding:14px 18px; text-align:left;
  border-top:1px solid var(--c-line-soft); border-bottom:1px solid var(--c-line-soft);
}
.write__toLab{ font-size:16px; color:var(--c-ink-2); }
.write__toVal{
  flex:1 1 auto; font-size:16px; color:var(--c-ink);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.write__to .ico{ width:20px; height:20px; color:var(--c-muted); }
.write__subject, .write__body, .write__find{
  width:100%; border:0; outline:none; background:transparent;
  color:var(--c-ink); font-family:inherit;
}
.write__subject{ padding:16px 18px 4px; font-size:20px; font-weight:500; }
.write__body{ flex:1 1 auto; padding:6px 18px 10px; font-size:16px; line-height:1.45; resize:none; }
.write__files{ display:flex; flex-wrap:wrap; gap:6px; padding:0 18px; }
.write__tools{
  display:flex; align-items:center; justify-content:flex-end; gap:10px;
  padding:10px 18px 4px;
}
.write__clip{
  display:grid; place-items:center; width:42px; height:42px;
  border-radius:999px; background:var(--c-chip); cursor:pointer;
}
.write__clip .ico{ width:20px; height:20px; color:var(--c-ink-2); }
.write__draft{
  padding:9px 16px; border-radius:11px;
  background:var(--c-chip); color:var(--c-ink-2); font-size:14.5px; font-weight:500;
}
.write__find{
  padding:12px 18px; font-size:16px;
  border-bottom:1px solid var(--c-line-soft);
}
.write__chosen{ display:flex; flex-wrap:wrap; gap:6px; padding:10px 18px 0; }
.write__hits{ flex:1 1 auto; overflow-y:auto; padding:8px 0 0; }
.write__hint{ padding:16px 18px; font-size:14.5px; color:var(--c-muted); }
.write__ok{
  margin:10px 18px 0; padding:13px; border-radius:12px;
  background:var(--u-orange); color:#fff; font-size:16px; font-weight:500;
}
.msgchip{
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 8px 5px 11px; border-radius:999px;
  background:var(--c-chip); color:var(--c-ink); font-size:14.5px;
}
.msgchip button{ font-size:17px; line-height:1; color:var(--c-muted); }
.msghit{
  display:flex; align-items:center; gap:12px;
  width:100%; text-align:left; padding:10px 18px;
}
.msghit__ava{
  flex:0 0 38px; width:38px; height:38px; border-radius:50%;
  background:#8b9aa5; color:#fff;
  display:grid; place-items:center; font-size:14px; font-weight:500;
}
/* Name über Zusatz, beides beschnitten statt umbrechend. */
.msghit > span:last-child{ display:flex; flex-direction:column; min-width:0; }
.msghit b{ font-size:15.5px; font-weight:500; color:var(--c-ink); }
.msghit b, .msghit span span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.msghit span span{ font-size:13.5px; color:var(--c-muted); }

/* ---------- Abwesend oder verspätet im Fehlzeit-Fenster ---------- */
.dabs__art{
  display:flex; gap:6px; margin:10px 0 4px;
  padding:3px; border-radius:11px; background:var(--c-chip);
}
.dabs__art button{
  flex:1 1 0; padding:8px 10px; border-radius:9px;
  font-size:14.5px; font-weight:500; color:var(--c-ink-2);
}
.dabs__art button.is-on{ background:var(--c-surface); color:var(--c-ink); }

/* Hinweis, wenn das Fenster nur zum Lesen offen steht. */
.dabs__lesen{
  margin:2px 0 10px; padding:9px 12px;
  border-radius:10px; background:var(--c-chip);
  font-size:13.5px; color:var(--c-ink-2);
}
.dabs__art button:disabled, .dabs__sel:disabled{ opacity:.55; }

/* ---------- Suche in den Mitteilungen ---------- */
.msgfind{ padding:0 16px 8px; }
.msgfind input{
  width:100%; padding:10px 13px;
  border:1.5px solid var(--c-line); border-radius:11px;
  background:var(--c-surface); color:var(--c-ink); font-size:16px;
  outline:none;
}
.msgfind[hidden]{ display:none; }




/* =====================================================================
   Tablet: die Reiter wandern nach oben in die Kopfzeile
   ===================================================================== */
@media (min-width:820px){
  .tabbar{
    left:50%; right:auto; transform:translateX(-50%);
    top:calc(var(--sat) + 6px); bottom:auto;
    width:auto; height:46px;
    grid-auto-flow:column; grid-template-columns:none;
    gap:4px; padding:0 6px;
  }
  .tab{ flex-direction:row; gap:8px; padding:0 18px; font-size:16px; }
  .tab .ico{ display:none; }
  .tab > span{ font-size:16px; }
  .tab.is-active{ color:var(--u-orange); }
  .tab.is-active::before{ background:color-mix(in srgb, var(--c-ink) 10%, transparent); }
  .tab__dot{ top:6px; right:8px; }

  /* Auf dem Tablet steht alles in einer Zeile: links der Wechsel-Knopf,
     mittig die Reiter, rechts die beiden Knöpfe. Der Plan-Titel rutscht
     in eine zweite Zeile darunter. */
  .topbar{
    padding-top:calc(var(--sat) + 6px);
    grid-template-areas:"l c r" ". t .";
    /* Erste Zeile so hoch wie die Reiterleiste, damit die runden Knöpfe
       links und rechts auf deren Höhe sitzen und nicht darüber. */
    grid-template-rows:46px auto;
    align-items:center;
    row-gap:12px;                       /* Planauswahl steht etwas tiefer */
  }
  .topbar .icon-btn,
  .topbar__actions{ align-self:center; }

  /* Außerhalb des Stundenplans gibt es keine Planauswahl — dann fällt die
     zweite Zeile weg, statt als leere Fläche stehen zu bleiben. */
  body.has-plain-top .topbar{ grid-template-rows:46px 0; row-gap:0; padding-bottom:0; }
  body.has-plain-top .topbar__title{ height:0; overflow:hidden; }

  /* Die Liste bringt ihre Kopfzeile selbst mit — sonst schöbe der
     Seitenabstand die Knöpfe unter die Reiterleiste. */
  .screen.screen--list{ padding-top:0; }   /* muss die Regel für .screen schlagen */

  /* Dasselbe in der Kopfzeile der Listen. */
  .lsthead{
    grid-template-columns:44px 1fr auto;
    grid-template-rows:46px;
    align-items:center;
    padding-top:calc(var(--sat) + 6px);
    padding-bottom:10px;
  }
  /* Der Titel steht unter der Reiterleiste, nicht daneben. */
  .lsthead{ grid-template-rows:46px auto; }
  .lsthead__when{ grid-column:1 / -1; grid-row:2; padding-top:6px; }
  .lsthead #lstBack{ grid-column:1; grid-row:1; }
  .lsthead__right{ grid-column:3; grid-row:1; }
  #btnSwitchEntity{ grid-area:l; }
  .topbar__actions{ grid-area:r; }
  .topbar__title{ grid-area:t; justify-self:center; }

  .tabbar{ top:calc(var(--sat) + 6px); z-index:42; }
  .gridpane{ padding-bottom:calc(24px + var(--sab)); }

  /* Start, Mitteilungen und Profil beginnen unter der schwebenden
     Reiterleiste — knapp darunter, nicht mit einer leeren Fläche. */
  /* Der Inhalt beginnt knapp unter der Reiterleiste. Die 97 px, mit denen
     die Seite ohnehin startet, reichen dafür — ein zusätzlicher Abstand
     ergäbe die leere Fläche, die vorher da war. */
  .screen{ padding-top:6px; }

  /* Der Inhalt läuft nicht über die ganze Breite, sondern in einer
     Spalte in der Mitte — wie in der Vorlage. */
  .screen--start .pad,
  .screen--profile .pad,
  .screen--msg .pad,
  .lstbody,
  .lstfilter{
    max-width:760px; margin-left:auto; margin-right:auto; width:100%;
  }
  .schoolname{ margin-top:0; }
  /* .pad bringt seinen Sicherheitsabstand selbst mit (Handy); auf dem iPad
     übernimmt das schon .screen, sonst zählt der Rand doppelt. */
  .pad{ padding-top:8px; }

  /* Der Stundenplan hängt dagegen an der Titelzeile — er wird höher
     gezogen, damit über dem Raster keine leere Fläche steht. */
  .screen--plan{ padding-top:calc(var(--sat) + 10px); }
}

/* =====================================================================
   Startseite nach Vorlage
   ===================================================================== */
.schoolname{
  margin:16px 0 20px;
  /* Passt sich der Länge an: kurze Namen groß, lange schrumpfen mit. */
  font-size:clamp(25px, 8.6vw, 34px);
  line-height:1.08; font-weight:500;
  letter-spacing:-.022em;
  color:var(--c-ink-2);
  text-wrap:balance;
}
.daycard{
  display:grid; grid-template-columns:92px 1fr; gap:14px;
  background:var(--c-bar);
  border-radius:22px;
  padding:16px 16px 14px;
  box-shadow:var(--shadow-card);
  margin-bottom:24px;
}
.daycard__left{ min-width:0; }
.daycard__wd{ display:block; font-size:15px; color:var(--c-ink-2); }
.daycard__num{ display:block; font-size:42px; font-weight:500; line-height:1.05; color:var(--u-orange); }
.daycard__mon{ display:block; font-size:17px; font-weight:500; color:var(--u-orange); }
.daycard__tag{
  display:inline-block; margin-top:10px;
  padding:5px 10px; border-radius:7px;
  background:#d7e4f7; color:#20364f;
  font-size:14.5px; font-weight:500; white-space:nowrap;
}
.daycard__right{ min-width:0; }

.nextnone{
  background:var(--c-surface);
  border-radius:14px;
  padding:18px 14px;
  text-align:center;
}
.nextnone .ico{ width:32px; height:32px; color:var(--c-ink-2); fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.nextnone b{ display:block; margin-top:8px; font-size:16px; color:var(--c-ink); }
.nextnone span{ display:block; margin-top:3px; font-size:14.5px; color:var(--c-ink-2); }

.nextday{ font-size:15px; font-weight:500; color:var(--c-ink-2); margin:4px 0 8px; }
.nextday:first-child{ margin-top:0; }
.nextday span{ color:var(--c-muted); font-weight:400; }
.nextday span::before{ content:"| "; }
.nextrow{
  display:grid; grid-template-columns:4px 1fr auto; gap:10px;
  align-items:stretch;
  width:100%; text-align:left;
  padding:3px 6px 5px 0;
  margin-bottom:10px;
  border-radius:8px;
  transition:transform .1s var(--ease);
}
.nextrow:active{ transform:scale(.985); }
.nextrow:last-child{ margin-bottom:0; }
.nextrow__bar{ background:var(--card-accent); border-radius:999px; }
.nextrow__main{ min-width:0; }
.nextrow__main span{
  display:block; font-size:15px; color:var(--c-ink);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.nextrow__main span:first-child{ font-weight:500; }
/* Zeiten rechtsbündig: Beginn oben, Ende unten — wie in der Vorlage. */
.nextrow__times{
  display:flex; flex-direction:column; justify-content:space-between;
  text-align:right; min-width:52px;
}
.nextrow__times span{ font-size:14.5px; color:var(--c-ink-2); }
.nextrow.is-off{
  background:var(--cnc-bg);
  border:1.5px solid var(--cnc-border);
  padding:4px 8px;
}
.nextrow.is-off .nextrow__main span{ text-decoration:line-through; text-decoration-thickness:var(--strike); }

/* Der Wechsel-Knopf sitzt oben bündig — direkt unter der Statusleiste,
   nicht mehr eingerückt. */
.screen--start .rndbtn{ margin-top:0; margin-bottom:4px; }

/* =====================================================================
   Umschalter im Detailfenster
   ---------------------------------------------------------------------
   Liegen mehrere Stunden zur selben Zeit — eine Kopplung, zwei Kurse
   nebeneinander, eine Veranstaltung neben dem Unterricht —, führt eine
   Leiste über dem Inhalt zu jeder von ihnen. Ohne sie war nur die Karte
   zu sehen, die man zufällig getroffen hat.
   ===================================================================== */
.dtabs{
  display:flex; gap:0; overflow-x:auto; -webkit-overflow-scrolling:touch;
  background:var(--c-bg-2, #eef1f4);
  border-bottom:1px solid var(--c-line, #e3e8ec);
  scrollbar-width:none;
}
.dtabs::-webkit-scrollbar{ display:none; }
.dtabs__t{
  flex:0 0 auto; appearance:none; border:0; background:none;
  padding:13px 18px 11px; font:600 15px/1.2 inherit;
  color:var(--c-muted); white-space:nowrap; cursor:pointer;
  border-bottom:3px solid transparent;
}
.dtabs__t.is-on{ color:var(--c-ink); border-bottom-color:var(--c-ink); }
.dtabs__t:active{ opacity:.7; }
/* Dasselbe Grau wie die Kacheln — die Leiste gehört zum Plan, nicht zum
   Fensterrahmen.

   Ohne Medienabfrage: Den Dunkelmodus schaltet die App selbst über die
   Klasse `.is-dark` auf <html>. In einer `prefers-color-scheme`-Abfrage
   hätten diese Regeln nur gegriffen, wenn zusätzlich das Betriebssystem
   auf Dunkel steht — bei manuell umgeschalteter App also gar nicht. */
.is-dark .dtabs{ background:var(--card-bg); border-bottom-color:rgba(0,0,0,.25); }
.is-dark .dtabs__t{ color:rgba(255,255,255,.62); }
.is-dark .dtabs__t.is-on{ color:#fff; border-bottom-color:#fff; }


/* Aufsichtspille im Dunkelmodus — dieselben Farben wie im Hellen. Ohne
   diese Zeilen greifen die allgemeinen Dunkelregeln für Karten und färben
   Balken und Menüzeichen um. */
.is-dark .card--supervision::before,
.is-dark .card--supervision.is-sub::before,
.is-dark .card--supervision.is-absent::before{ background:var(--u-magenta); }
/* Wie im Hellen über `--green` und `--green-ink`: Beide sind je Modus
   belegt, sodass die Punkte im Dunkeln dunkel auf hellem Grün stehen —
   genau wie beim Kürzungszeichen auf den Kacheln. */
.is-dark .card--supervision .sup-menu{ background:var(--green); }
.is-dark .card--supervision .sup-menu circle{ fill:var(--green-ink); }

/* =====================================================================
   Aufsichtspille — Akzentbalken und Menüzeichen festgeschrieben
   ---------------------------------------------------------------------
   Diese Regeln stehen bewusst am Ende der Datei und mit zwei Klassen, damit
   keine spätere Regel für Entfall, Vertretung oder Dunkelmodus sie noch
   umfärbt. Der Balken ist lila, weil er sagt: Das hier ist eine Aufsicht.
   Was mit ihr geschehen ist, sagen Rand und Menüzeichen — beide grün, in
   der Sicht der einspringenden wie der abwesenden Lehrkraft.

   Die Pille ist nur gut 20 Pixel hoch. Der Balken bekommt deshalb eigene
   Ränder oben und unten; mit dem Abstand der großen Kacheln bliebe von ihm
   kaum etwas übrig.
   ===================================================================== */
.card--supervision.is-absent::before,
.card--supervision.is-sub::before,
.card--supervision::before{
  background:var(--u-magenta) !important;
  display:block !important;
  top:3px !important;
  bottom:3px !important;
  width:4px !important; min-width:4px !important;
  border-radius:2px !important;
  opacity:1 !important;
}
/* Fläche und Punkte über `--green` und `--green-ink` statt über
   `--u-green` und festem Weiß. Beide Werte sind je Modus belegt, und
   genau dieselben trägt das Kürzungszeichen auf den Kacheln. Nur so
   sehen die beiden „…“ im selben Plan gleich aus: im Hellen dunkelgrün
   mit weißen Punkten, im Dunkeln der helle Ton mit dunklen. Mit festem
   Weiß standen im Dunkeln helle Punkte hier und dunkle dort. */
.card--supervision.is-absent .sup-menu,
.card--supervision.is-sub .sup-menu,
.card--supervision .sup-menu{
  display:grid !important;
  background:var(--green) !important;
  opacity:1 !important;
}
.card--supervision .sup-menu circle{ fill:var(--green-ink) !important; }

/* =====================================================================
   Schatten nur dort, wo eine Fläche liegt
   ---------------------------------------------------------------------
   Durchsichtige Kacheln — abgegebene Stunden, abgegebene Aufsichten,
   vergangene Bereitschaften — trugen weiterhin den Schatten der gefüllten
   Karten. Er lag dann frei auf dem Hintergrund und sah aus wie ein
   verrutschter Rahmen. Ohne Fläche kein Schatten.
   ===================================================================== */
/* Kacheln mit Fläche behalten ihren Schatten — auch wenn sie aneinander
   stoßen. Ohne Fläche wirkt er dagegen wie ein verrutschter Rahmen. */
.card--released,
.card--standby.is-past,
.card--supervision.is-absent{ box-shadow:none; }

/* Die Zählkarte ist ein schmaler Streifen, kein Blatt Papier. */
.parcount{ box-shadow:none; }



/* =====================================================================
   Menü als Klappmenü am Knopf
   ---------------------------------------------------------------------
   Das Menü fuhr wie ein Blatt von unten herein. Es gehört aber zum
   Drei-Punkt-Knopf oben rechts — von dort soll es aufklappen, wie in der
   Vorlage. Die übrigen Blätter (Auswahl, Detail, Formulare) bleiben
   unverändert; nur dieses eine wird umgesetzt.
   ===================================================================== */
@media (min-width: 0px) {
  /* Das Menü klappt vom Drei-Punkt-Knopf oben rechts auf — mit einer
     Sprechblasen-Spitze zu ihm hin, wie in der Vorlage. Es ist milchig
     durchscheinend mit kräftiger Unschärfe dahinter (Liquid Glass) und
     trägt statt einer harten Kante nur einen weichen Schatten und eine
     hauchdünne Lichtkante. */
  #sheetMenu{
    position:fixed;
    left:auto;
    right:10px;
    bottom:auto;
    top:calc(env(safe-area-inset-top, 0px) + 58px);
    width:min(284px, calc(100vw - 20px));
    max-height:min(74vh, 580px);
    border-radius:20px;
    padding:6px;
    overflow:visible;
    background:color-mix(in srgb, var(--c-bar) 68%, transparent);
    backdrop-filter:saturate(200%) blur(34px);
    -webkit-backdrop-filter:saturate(200%) blur(34px);
    box-shadow:
      0 14px 44px rgba(21,33,44,.24),
      0 3px 12px rgba(21,33,44,.14),
      inset 0 0 0 .5px rgba(255,255,255,.55);
    transform-origin:top right;
    transform:translateY(-6px) scale(.94);
    opacity:0;
    transition:transform .2s var(--ease), opacity .16s var(--ease);
  }
  #sheetMenu.is-open{
    transform:none;
    opacity:1;
  }
  /* Die Spitze: ein kleines Dreieck aus demselben Glas, das nach oben zum
     Knopf zeigt. Es trägt dieselbe Unschärfe, damit die Kante nicht bricht. */
  #sheetMenu::before{
    content:"";
    position:absolute;
    top:-8px; right:16px;
    width:22px; height:12px;
    background:color-mix(in srgb, var(--c-bar) 68%, transparent);
    backdrop-filter:saturate(200%) blur(34px);
    -webkit-backdrop-filter:saturate(200%) blur(34px);
    clip-path:polygon(50% 0, 100% 100%, 0 100%);
  }
  /* Der Ziehgriff und der Titel gehören zum Blatt von unten, nicht zum
     Klappmenü — falls sie doch einmal mitkommen, bleiben sie verborgen. */
  #sheetMenu .sheet__grab{ display:none; }
  #sheetMenu .sheet__title{ padding:12px 16px 8px; font-size:15px; color:var(--c-muted); }
}

/* Dunkelmodus: dunkles Glas mit gedämpfter Lichtkante — Weiß auf Weiß wäre
   hier zu hart. */
.is-dark #sheetMenu{
  background:color-mix(in srgb, var(--c-surface) 60%, transparent);
  box-shadow:
    0 14px 44px rgba(0,0,0,.6),
    0 3px 12px rgba(0,0,0,.4),
    inset 0 0 0 .5px rgba(255,255,255,.12);
}
.is-dark #sheetMenu::before{
  background:color-mix(in srgb, var(--c-surface) 60%, transparent);
}
.is-dark .menu-sep{ background:rgba(255,255,255,.14); }

/* =====================================================================
   Liquid Glass — die kleinen Flächen in Menüs und Blättern
   ---------------------------------------------------------------------
   Die großen Flächen tragen es längst: Blatt, Klappmenü, Profilfeld,
   Leiste. Darin saßen aber deckend gefüllte Knöpfe — auf Glas wirkt so
   ein Feld wie aufgeklebt, weil es das einzige ist, durch das nichts
   hindurchscheint.

   Im Dunkeln war das schnell gelöst: Ein Hauch Weiß auf dunklem Grund
   liest sich sofort als Scheibe. Im Hellen nicht. Dort sitzt der Knopf
   auf einem ohnehin fast weißen Blatt — eine weiße Glasfläche darauf ist
   schlicht unsichtbar. Helles Glas braucht deshalb drei Dinge, die
   dunkles nicht braucht:

     · einen leichten Farbstich zum Grund hin, damit die Fläche überhaupt
       vom Blatt abhebt,
     · eine helle Kante **oben** und eine dunkle **unten** — das ist es,
       was eine Scheibe von einem grauen Rechteck unterscheidet: Sie fängt
       das Licht an der Oberkante und wirft unten einen Rand,
     · einen ganz flachen Schlagschatten, damit sie aufliegt.

   Alles davon steckt in den Variablen unten und ist je Modus belegt, statt
   jede Regel doppelt zu schreiben.
   ===================================================================== */

:root{
  /* Fläche: im Hellen ein Hauch Tinte in viel Weiß — nicht reines Weiß,
     sonst verschwindet der Knopf auf dem Blatt. */
  --glass-fill: color-mix(in srgb, var(--c-ink) 7%, rgba(255,255,255,.66));
  --glass-fill-on: color-mix(in srgb, var(--c-ink) 13%, rgba(255,255,255,.72));
  --glass-top:  rgba(255,255,255,.85);   /* Lichtkante oben  */
  --glass-bot:  rgba(31,47,61,.11);      /* Schattenkante unten */
  --glass-lift: 0 1px 2px rgba(31,47,61,.07);
  --glass-blur: saturate(190%) blur(22px);
}
/* Auch hier der Elementname davor — aus demselben Grund wie oben: Die
   Vorgaben stehen in `:root` am selben Element. */
html.is-dark{
  --glass-fill: rgba(255,255,255,.10);
  --glass-fill-on: rgba(255,255,255,.17);
  --glass-top:  rgba(255,255,255,.18);
  --glass-bot:  rgba(0,0,0,.30);
  --glass-lift: 0 1px 2px rgba(0,0,0,.28);
}

.rndbtn,
.calnav,
.lstbtn:not(.lstbtn--ok),
.lst__emptyIco{
  background:var(--glass-fill);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  box-shadow:inset 0 .5px 0 var(--glass-top),
             inset 0 -.5px 0 var(--glass-bot),
             var(--glass-lift);
}
.rndbtn:active,
.calnav:active,
.lstbtn:not(.lstbtn--ok):active{
  background:var(--glass-fill-on);
  box-shadow:inset 0 .5px 0 var(--glass-top),
             inset 0 -.5px 0 var(--glass-bot);
}

/* Der grüne Knopf bleibt voll gefüllt: Er ist die Aussage der Zeile und
   darf nicht mit dem Hintergrund verschwimmen. */

/* Angetipptes im Menü: kein grauer Kasten, sondern eine Aufhellung des
   Glases — so bleibt die Durchsicht erhalten. */
/* Kein Hinterlegen beim Tippen — siehe Hinweis bei `.drow2`. */

/* Trennlinien im Menü dünner und heller — auf Glas wirkt eine kräftige
   Linie wie ein Schnitt durch die Scheibe. */
.menu-sep{ height:.5px; background:var(--glass-bot); }

/* Die großen Glasflächen bekommen dieselbe doppelte Kante. Bisher trugen
   sie nur eine helle Linie ringsum; die untere Kante fehlte, und damit
   der Eindruck von Dicke. */
#sheetMenu,
.dmenu,
.profpop{
  box-shadow:0 14px 44px rgba(21,33,44,.22),
             0 3px 12px rgba(21,33,44,.13),
             inset 0 .5px 0 var(--glass-top),
             inset 0 -.5px 0 var(--glass-bot);
}

/* Die Rückmeldung unten: dunkles Glas statt deckendem Blau. */
.toast{
  background:color-mix(in srgb, #253746 76%, transparent);
  backdrop-filter:saturate(180%) blur(20px);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  box-shadow:0 8px 26px rgba(21,33,44,.28),
             inset 0 .5px 0 rgba(255,255,255,.26),
             inset 0 -.5px 0 rgba(0,0,0,.3);
}

/* Geräte ohne Unschärfe bekommen eine deckendere Fläche — sonst stünde
   der Text auf durchscheinendem Grund und wäre schwer zu lesen. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .rndbtn, .calnav, .lstbtn:not(.lstbtn--ok), .lst__emptyIco{
    background:color-mix(in srgb, var(--c-ink) 8%, var(--c-bar));
  }
  .toast{ background:#253746; }
}

/* Zwischenüberschrift der Schülerliste bei einer Kopplung: Sie trägt
   einen Klassennamen statt eines einzelnen Buchstabens und braucht
   deshalb etwas mehr Platz — sonst stünde „HP12A" gequetscht dort, wo
   sonst ein „M" steht. */
.att__letter--class{
  font-size:13px; letter-spacing:.02em;
  padding-left:2px;
}

/* Hinweis über der Schülerliste, wenn eine ganze Klasse abwesend ist.
   Ihre Kinder fehlen in der Liste — ohne diese Zeile sähe die verkürzte
   Liste nach einem Fehler aus. Zurückhaltend gesetzt: Es ist eine
   Erklärung, keine Warnung. */
.att__gone{
  margin:2px 14px 8px;
  padding:8px 12px;
  border-radius:11px;
  background:var(--glass-fill);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  box-shadow:inset 0 .5px 0 var(--glass-top),
             inset 0 -.5px 0 var(--glass-bot);
  font-size:13.5px; font-weight:500; color:var(--c-ink-2);
}

/* =====================================================================
   Liquid Glass — die Knöpfe in der Kopfleiste
   ---------------------------------------------------------------------
   Der Knopf zum Planwechsel links und die Gruppe rechts mit Info und den
   drei Punkten waren als einzige Flächen dort noch deckend auf #f1f3f5
   gesetzt. Unter ihnen liegt der Plan, und der ist beim Rollen in
   Bewegung — gerade dort lohnt die Durchsicht am meisten: Man sieht, dass
   etwas darunter weiterläuft, statt zwei blinde Flecken zu haben.

   Dieselben Variablen wie in Menüs und Blättern, also je Modus richtig
   belegt. Der Dunkelmodus hatte für diese beiden Knöpfe eigene feste
   Werte; sie werden hier überschrieben, weil die Variablen das schon
   erledigen.
   ===================================================================== */

.icon-btn--solo,
.topbar__actions{
  background:var(--glass-fill);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  box-shadow:inset 0 .5px 0 var(--glass-top),
             inset 0 -.5px 0 var(--glass-bot),
             var(--glass-lift);
}

/* Antippen hellt das Glas auf, statt einen grauen Kreis zu legen. Die
   Gruppe rechts behält dabei ihre eigene Fläche — der Kreis liegt darin,
   nicht darüber. */

.topbar__actions .icon-btn{ background:transparent; }
.topbar__actions 

@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .icon-btn--solo, .topbar__actions{
    background:color-mix(in srgb, var(--c-ink) 8%, var(--c-bar));
  }
}

/* =====================================================================
   Zeichen in der Ecke der Kachel
   ---------------------------------------------------------------------
   Info und Hausaufgaben sind zweifarbig: ein helles Feld mit dunkler
   Zeichnung darauf. Beide Farben stehen als Variablen in der Datei, damit
   der Dunkelmodus sie vertauschen kann — dort liegt ein dunkles Feld mit
   heller Zeichnung, genau wie beim Kürzungszeichen daneben.
   ===================================================================== */

:root{
  --tt-ic-bg: #f3f5f7;
  --tt-ic-fg: #8a96a1;
}

.card__ecke{
  position:absolute; right:2px; bottom:2px;
  display:flex; align-items:center; gap:2px;
  z-index:2;
}
.card__ic{ display:block; width:15px; height:15px; }
/* Zweifarbig über zwei geerbte Eigenschaften.
   Auf den Inhalt, den <use> klont, greift kein Selektor aus dem
   Stylesheet durch — eine Klasse am Symbol bringt also nichts, und eine
   Variable im fill-Attribut wird verworfen, weil Präsentationsattribute
   keine Variablen kennen. Beides hatte ich versucht, beides blieb wirkungslos.

   Vererbt wird dagegen alles. Die Fläche hat gar keine Angabe und nimmt
   `fill`; die Zeichnung trägt `currentColor` und nimmt `color`. Zwei
   Eigenschaften, zwei Farben. */
.ticon{
  display:block; width:100%; height:100%;
  fill:var(--tt-ic-bg);
  color:var(--tt-ic-fg);
}

/* Die beiden Zeichen kennen nur zwei Zustände: hell und dunkel. Ich hatte
   sie auf einer Vertretung grün und auf einem Entfall rötlich eingefärbt,
   damit sie sich in die Kachel einfügen — das war falsch gedacht. Sie
   gehören nicht zur Aussage der Kachel, sie hängen nur daran; ein
   mitgefärbtes Zeichen sähe aus, als sagte es etwas über die Änderung.
   Es bleibt in jeder Kachel dasselbe, allein Hell und Dunkel wechseln. */

/* Zwischenüberschrift in den Unterlisten. Gebraucht bei den Hausaufgaben:
   Was heute fällig ist, stammt aus einer anderen Stunde und lässt sich
   von hier aus nicht ändern — das muss man sehen, bevor man vergeblich
   danach greift. */
.dsub__gruppe{
  padding:12px 16px 6px;
  font-size:13.5px; font-weight:500; color:var(--c-muted);
  letter-spacing:.01em;
}
/* Fremde Einträge: kein Löschknopf, zurückgenommene Schrift. */
.dsub__item.is-fremd{ opacity:.82; }
.dsub__item.is-fremd .dsub__item-main{ padding-right:12px; }

/* Die Farben der zweifarbigen Zeichen im Dunkeln noch einmal unmittelbar
   am Element. Über die Variable allein hat es nicht gegriffen, und ich
   habe die Ursache nicht sicher eingekreist — mögliche Kandidaten sind
   die Auflösung der Variable im geklonten <use>-Inhalt oder eine Regel,
   die ich übersehen habe. Feste Werte an einer genaueren, weiter unten
   stehenden Regel sind davon unabhängig: Sie gewinnen in jedem Fall.

   Die Variablen bleiben oben stehen, damit es nur eine Stelle zum Ändern
   gibt; hier stehen dieselben Werte noch einmal. */
html.is-dark .ticon{
  fill:#2b3138;
  color:#9aa6b2;
}
/* Der gezeichnete Info-Punkt und das Kürzungszeichen daneben ebenso. */
html.is-dark .card__cut,
html.is-dark .card__info{ background:#2b3138; }
html.is-dark .card__cut circle{ fill:#9aa6b2; }
html.is-dark .card__info::before{ background:#9aa6b2; }
/* Auf einer Vertretung behält das Kürzungszeichen sein Grün. */
html.is-dark .card--change .card__cut,
html.is-dark .card--released .card__cut{ background:var(--green); }
html.is-dark .card--change .card__cut circle,
html.is-dark .card--released .card__cut circle{ fill:var(--green-ink); }

/* Umschalter mit drei Möglichkeiten in einer Zeile. Er sitzt rechts, wo
   sonst der Schalter oder der Pfeil steht, und ist so breit wie nötig.
   Das Feld dahinter ist dieselbe Glasfläche wie bei den übrigen kleinen
   Bedienelementen. */
.row--seg{ grid-template-columns:auto 1fr auto; align-items:center; }
.seg{
  display:inline-flex; gap:2px; padding:2px;
  border-radius:999px;
  background:var(--glass-fill);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  box-shadow:inset 0 .5px 0 var(--glass-top), inset 0 -.5px 0 var(--glass-bot);
}
.seg button{
  padding:5px 11px; border-radius:999px;
  font-size:13.5px; font-weight:500; color:var(--c-ink-2);
  white-space:nowrap;
}
.seg button.is-on{
  background:var(--c-surface);
  color:var(--c-ink);
  box-shadow:0 1px 2px rgba(31,47,61,.14);
}
html.is-dark .seg button.is-on{ box-shadow:0 1px 2px rgba(0,0,0,.4); }

/* Eintrag in der Unterliste ohne Löschknopf — bei Schüler*innen gibt es
   keinen. Ohne diese Regel bliebe rechts der leere Platz stehen, den der
   Knopf sonst einnimmt. */
.dsub__item:not(:has(> button)) .dsub__item-main{ padding-right:14px; }

/* Klassendienst unter dem Namen — Klassensprecherin, Ordnungsdienst.
   Zurückgenommen gesetzt: Es ist eine Zusatzangabe, keine Meldung. Die
   Anwesenheit bleibt die Aussage der Zeile, der Dienst steht daneben. */
.att__duty{
  display:block;
  margin-top:1px;
  font-size:12.5px; font-weight:500;
  color:var(--c-muted);
}

/* =====================================================================
   Tablet: alle Fenster so breit wie das Detailfenster
   ---------------------------------------------------------------------
   Am Telefon fahren die Blätter von unten herein und nehmen die ganze
   Breite — das bleibt so. Am Tablet wirkte das verloren: ein schmales
   Blatt am unteren Rand einer großen Fläche. Auswahl, Kalender, Legende
   und die übrigen Fenster stehen dort deshalb mittig und genau so breit
   wie das Detailfenster.

   Das Klappmenü der drei Punkte bleibt außen vor: Es hängt an seinem
   Knopf und wäre als mittiges Fenster von 680 Punkten kein Menü mehr.
   ===================================================================== */
@media (min-width:700px){
  .sheet:not(.sheet--menu){
    left:50%; right:auto; bottom:auto; top:50%;
    width:min(680px, 92vw);
    max-height:min(80vh, 840px);
    border-radius:20px;
    padding-bottom:calc(14px + var(--kb));
    transform:translate(-50%, -46%) scale(.98);
    opacity:0;
    transition:transform .26s var(--ease), opacity .2s var(--ease);
  }
  .sheet:not(.sheet--menu).is-open{
    transform:translate(-50%, -50%) scale(1);
    opacity:1; pointer-events:auto;
  }
  /* Der Ziehgriff gehört zum Blatt von unten; ein mittiges Fenster zieht
     man nicht nach unten weg. */
  .sheet:not(.sheet--menu) .sheet__grab{ display:none; }
}

/* Einmalanmeldung über UntPlanWeb */
.login__sso{ display:block; text-align:center; text-decoration:none; margin:18px 0 6px; }
.login__oder{ display:flex; align-items:center; gap:10px; margin:14px 0 4px; font-size:13px; opacity:.7; }
.login__oder::before, .login__oder::after{ content:""; flex:1; border-top:1px solid currentColor; opacity:.35; }

/* =====================================================================
   Lehrerleiste mit mehreren Lehrkräften (auf der Kachel durch Komma
   getrennt, in den Details durch „ | “): nur diese
   Zeile rollt waagerecht, der Rest der Kachel bleibt stehen.
   ===================================================================== */
.card__line--scroll,
.card .card__line.card__line--scroll{
  overflow-x:auto; overflow-y:hidden; text-overflow:clip;
  scrollbar-width:none; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain;
  touch-action:pan-x pan-y;
}
.card__line--scroll::-webkit-scrollbar, .card .card__line.card__line--scroll::-webkit-scrollbar{ display:none; }
.tok__trenn{ font-style:normal; color:inherit; }
.card.pad-last .card__line--scroll{ max-width:calc(100% - 16px); }

/* Raum buchen in den Stundendetails */
.dsub__hinweis{ margin:4px 2px 12px; font-size:13px; color:var(--c-ink-2, #67747e); }
.dsub__raum{ width:100%; text-align:left; background:none; border:0; font:inherit; color:inherit; }
.dsub__raum:disabled{ opacity:.5; }

/* =====================================================================
   Stundendetails nach den Mobile-Sollbildern (UM-03)
   ---------------------------------------------------------------------
   Kopf mit X und ⋮, Datum „Fr. | 16.10.26“ mit kleiner Uhrzeit, obere
   Reiter mit Fachkürzeln, Kopfblock, Statusband und Aktionszeilen mit
   Symbol, Titel, Untertitel, Zähler und „>“. Im Dunkeln wie in den
   Bildschirmfotos, im Hellen dieselbe Anordnung auf hellem Grund.
   ===================================================================== */
.sheet--detail{
  --d-bg:        var(--c-bar);
  --d-ink:       var(--c-ink);
  --d-ink-2:     #6b7a86;
  --d-muted:     #8b98a3;
  --d-tabs:      #e6eaee;
  --d-tab-ink:   #5d6b77;
  --d-off:       #dcdfe4;
  --d-line:      #e6e9ec;
  --d-pill:      #8597a6;
  --d-pill-ink:  #ffffff;
  --d-count:     #8a9bab;
  --d-count-ink: #ffffff;
  --d-chip:      #eef0f2;
  --d-btn:       #f1f3f5;
}
.is-dark .sheet--detail{
  --d-bg:        #1c1c1e;
  --d-ink:       #f2f3f4;
  --d-ink-2:     #c9ced3;
  --d-muted:     #9aa2a9;
  --d-tabs:      #343e48;
  --d-tab-ink:   #c6ccd2;
  --d-off:       #45515c;
  --d-line:      #34363a;
  --d-pill:      #8193a3;
  --d-pill-ink:  #17212b;
  --d-count:     #8698a8;
  --d-count-ink: #18222c;
  --d-chip:      #2c2d31;
  --d-btn:       #1c1c1e;
}
.sheet--detail, .is-dark .sheet--detail, .is-dark .sheet--detail .dsub{ background:var(--d-bg); }

/* Kopfzeile */
.sheet--detail .detail__top{ padding:4px 14px 14px; }
.sheet--detail #detailClose, .sheet--detail #detailMenu,
.is-dark .sheet--detail #detailClose, .is-dark .sheet--detail #detailMenu,
.sheet--detail #dsubBack, .sheet--detail #dsubSave,
.is-dark .sheet--detail #dsubBack, .is-dark .sheet--detail #dsubSave{
  background:var(--d-btn); color:var(--d-ink-2);
  box-shadow:inset 0 0 0 1px var(--d-line);
}
.sheet--detail .detail__when b{
  font-size:18px; font-weight:500; color:var(--d-ink-2); letter-spacing:.005em;
}
.sheet--detail .detail__when span{ font-size:14px; color:var(--d-muted); margin-top:1px; letter-spacing:.02em; }

/* Reiter */
.sheet--detail .dtabs, .is-dark .sheet--detail .dtabs{
  background:var(--d-tabs); border-bottom:0; padding:0 4px;
}
.sheet--detail .dtabs__t, .is-dark .sheet--detail .dtabs__t{
  padding:15px 14px 12px; margin:0 2px;
  font:600 17px/1.2 inherit; color:var(--d-tab-ink);
  border-bottom:3px solid transparent;
}
.sheet--detail .dtabs__t.is-on, .is-dark .sheet--detail .dtabs__t.is-on{ color:var(--d-ink); border-bottom-color:var(--d-ink); }

/* Kopfblock */
.sheet--detail .dhead{ padding:14px 18px 18px; }
.sheet--detail .dhead.is-off, .is-dark .sheet--detail .dhead.is-off{ background:var(--d-off); padding-bottom:18px; }
.sheet--detail .dtitle{ font-size:22px; font-weight:500; color:var(--d-ink); line-height:1.3; }
.sheet--detail .dtitle i{ color:var(--d-muted); padding:0 5px; font-weight:400; }
.sheet--detail .dline{ font-size:16.5px; font-weight:400; color:var(--d-ink); margin-top:10px; line-height:1.3; }
.sheet--detail .dline--big{ font-size:21px; font-weight:500; margin-top:6px; display:flex; align-items:center; flex-wrap:wrap; gap:6px 0; }
.sheet--detail .dline--pill{ margin-top:8px; }
.sheet--detail .dline .sep{ color:var(--d-muted); padding:0 6px; font-weight:400; }
.sheet--detail .dline .arrow{ color:var(--d-muted); padding:0 6px; }
.sheet--detail .dpill, .is-dark .sheet--detail .dpill{
  height:26px; padding:0 12px; margin-left:12px;
  background:var(--d-pill); color:var(--d-pill-ink);
  font-size:14px; font-weight:500; letter-spacing:.04em;
}
.sheet--detail .dline--pill .dpill{ margin-left:0; }
.sheet--detail .detail__sep, .is-dark .sheet--detail .detail__sep{ background:var(--d-line); margin:0; }
.sheet--detail .dbanner{
  background:#ff0000; color:#fff; padding:5px 12px;
  font-size:12px; font-weight:500; letter-spacing:.05em;
}

/* Aktionszeilen */
.sheet--detail .drows{ padding:6px 18px 0; }
.sheet--detail .drow2{
  grid-template-columns:28px 1fr auto; gap:18px;
  padding:9px 0; min-height:50px; cursor:pointer;
}
.sheet--detail .drow2 + .drow2, .is-dark .sheet--detail .drow2 + .drow2{ border-top:0; }
.sheet--detail .drow2__ico{ color:var(--d-muted); display:grid; place-items:center; }
.sheet--detail .drow2__ico .dico{ width:27px; height:27px; stroke-width:1.35; }
.sheet--detail .drow2__main b{ font-size:18px; font-weight:500; color:var(--d-ink); }
.sheet--detail .drow2__main span{ font-size:15px; font-weight:400; color:var(--d-ink-2); margin-top:3px; }
.sheet--detail .drow2__end{ gap:14px; color:var(--d-muted); }
.sheet--detail .drow2__chev{ width:24px; height:24px; stroke-width:1.5; color:var(--d-muted); }
.sheet--detail .drow2__count, .is-dark .sheet--detail .drow2__count{
  min-width:30px; height:30px; padding:0 8px;
  background:var(--d-count); color:var(--d-count-ink); font-size:16px; font-weight:500;
}
.sheet--detail .drow2__count.is-red, .is-dark .sheet--detail .drow2__count.is-red{ background:#a10a3f; color:#fff; }
.sheet--detail .drow2__count.is-checked::after{
  top:-5px; right:-5px; width:15px; height:15px;
  background-color:#6f7c87; box-shadow:0 0 0 2px var(--d-bg);
}
.sheet--detail .drow2__done{ width:26px !important; height:26px !important; color:var(--d-muted) !important; stroke-width:1.4; }
.sheet--detail .dtoggle{ width:50px; height:30px; background:#d6dade; }
.is-dark .sheet--detail .dtoggle{ background:#5a5b60; }
.sheet--detail .dtoggle::after{ width:26px; height:26px; }
.sheet--detail .dtoggle.is-on{ background:var(--u-orange); }
.sheet--detail .dtoggle.is-on::after{ transform:translateX(20px); }

/* Raum-Chips (UM-05) */
.drow2--room{ cursor:default; }
.droom{ display:flex; flex-wrap:wrap; gap:8px; min-width:0; }
.droom__chip{
  height:32px; padding:0 15px; border-radius:999px;
  background:var(--d-chip); color:var(--d-ink); font-size:16px; font-weight:500; letter-spacing:.02em;
}
.droom__chip:active{ opacity:.7; }
.droom__sep{ margin-left:-6px; align-self:center; color:inherit; }
.droom__add{ display:grid; place-items:center; width:36px; height:36px; color:var(--d-muted); }
.droom__add .ico{ width:30px; height:30px; stroke-width:1.3; }
.droom__menu{
  position:absolute; z-index:9; min-width:180px;
  background:var(--c-bar); border-radius:6px; padding:6px 0;
  box-shadow:0 6px 24px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.04);
}
.is-dark .droom__menu{ background:#2c2c2e; box-shadow:0 8px 28px rgba(0,0,0,.55); }
.droom__menu button{
  display:block; width:100%; text-align:left; padding:13px 20px;
  font-size:16px; color:var(--c-ink);
}
.droom__menu button:active{ background:rgba(127,127,127,.12); }
.droom__menu button.is-on{ color:var(--u-orange); }
.detail{ position:relative; }

/* Raumliste „R1BK ersetzen“ */
.dsub--raum .dsub__top{ border-bottom:0; }
.dsub--raum .dsub__body{ position:relative; padding-top:4px; }
.dsub--raum #dsubTitle{ font-weight:500; }
.rsuche{
  display:flex; align-items:center; gap:8px; height:40px; padding:0 6px 0 12px;
  border-radius:999px; background:var(--d-chip); color:var(--d-muted);
}
.rsuche .ico{ width:20px; height:20px; flex:0 0 auto; }
.rsuche input{
  flex:1 1 auto; min-width:0; border:0; outline:none; background:none;
  font:inherit; font-size:15px; color:var(--d-ink);
}
.rsuche input::-webkit-search-cancel-button{ display:none; }
.rsuche__x{ width:32px; height:32px; display:grid; place-items:center; color:var(--d-muted); }
.rfilter{ display:flex; gap:8px; margin:12px 0 10px; }
.rpill{
  height:30px; padding:0 13px; border-radius:999px;
  border:1px solid var(--d-muted); color:var(--d-ink-2); font-size:13px;
}
.rpill.is-on{ border-color:var(--u-orange); color:var(--u-orange); }
.rliste{ display:flex; flex-direction:column; }
.rzeile{
  display:grid; grid-template-columns:36px 1fr; align-items:center; gap:14px;
  width:100%; padding:7px 0; text-align:left;
}
.rzeile__ico{
  width:34px; height:34px; border-radius:50%; display:grid; place-items:center;
  background:var(--d-chip); color:var(--d-muted);
}
.rzeile__ico .ico{ width:20px; height:20px; stroke-width:1.5; }
.rzeile__main{ border-bottom:1px solid var(--d-line); padding:9px 0 10px; min-width:0; }
.rzeile:last-child .rzeile__main{ border-bottom:0; }
.rzeile__main b{ display:block; font-size:15px; font-weight:400; color:var(--d-ink); }
.rzeile__main span{ display:block; font-size:12.5px; color:var(--d-muted); margin-top:1px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rzeile:disabled{ opacity:.5; }

/* =====================================================================
   Schüler*innen (UM-04): Filter-Pillen, Statusband, Buchstabengruppen mit
   Leiste rechts, Statuskreis, Zusatz, Klassenbucheintrag und Uhr, Hinweis
   „Klassenbucheintrag“ und Mehrfachauswahl.
   ===================================================================== */
.sheet--detail .dsub__seg{ background:#e9ecef; padding:3px; margin-bottom:10px; }
.is-dark .sheet--detail .dsub__seg{ background:#2c2c30; }
.sheet--detail .dsub__seg button{ padding:7px 2px; font-size:14px; font-weight:500; }
.is-dark .sheet--detail .dsub__seg button.is-active{ background:#5a5d63; color:#fff; }
.sheet--detail .att__band, .is-dark .sheet--detail .att__band{
  background:var(--d-tabs); color:var(--d-ink); font-size:13.5px; padding:8px 14px; margin-bottom:0;
}
.sheet--detail .att__letter{ font-size:13.5px; color:var(--d-ink-2); padding:12px 2px 6px; border-bottom-color:var(--d-line); }
.sheet--detail .att__inner, .is-dark .sheet--detail .att__inner{ background:var(--d-bg); padding:11px 2px; gap:16px; grid-template-columns:30px 1fr auto; }
.sheet--detail .att__mark svg{ width:27px; height:27px; stroke-width:1.5; }
.sheet--detail .att__row.is-present .att__mark{ color:#2cbf9c; }
.sheet--detail .att__row.is-absent .att__mark{ color:#f0607e; }
.sheet--detail .att__main b{ font-size:16px; color:var(--d-ink); }
.sheet--detail .att__tag{ font-size:14px; color:var(--d-ink-2); }
.sheet--detail .att__duty{ font-size:14px; font-weight:400; color:var(--d-ink-2); margin-top:2px; }
.sheet--detail .att__note{ font-size:13.5px; color:var(--d-muted); cursor:pointer; }
.sheet--detail .att__acts{ gap:6px; padding-right:16px; }
.sheet--detail .att__acts button, .is-dark .sheet--detail .att__acts button{ color:var(--d-ink); width:40px; height:40px; }
.sheet--detail .att__acts button.is-on{ color:var(--u-orange); background:color-mix(in srgb, var(--u-orange) 14%, transparent); }
.sheet--detail .att__row.is-picked .att__inner{ background:color-mix(in srgb, var(--u-orange) 9%, var(--d-bg)); }
.sheet--detail .att__index{ top:160px; right:2px; }
.sheet--detail .att__index button{ font-size:10.5px; color:var(--d-ink-2); line-height:1.25; }
#dsubSave.is-besen .ico{ width:24px; height:24px; stroke-width:1.5; }

/* Hinweis-Karte „Klassenbucheintrag“ */
.att__hint, .att__bar{
  position:sticky; bottom:12px; z-index:7;
  margin:14px 6px 0;
  border-radius:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.28);
}
.att__hint{
  display:grid; grid-template-columns:44px 1fr 28px; gap:14px; align-items:start;
  padding:18px 16px 18px 18px;
  background:#e8ecf0; color:var(--c-ink);
}
.is-dark .att__hint{ background:#36414c; color:#f2f4f6; }
.att__hint-ico{ color:#ef6a3a; display:grid; place-items:center; padding-top:2px; }
.att__hint-ico .dico{ width:42px; height:42px; stroke-width:1.5; }
.att__hint-text b{ display:block; font-size:16px; font-weight:500; }
.att__hint-text span{ display:block; font-size:14.5px; line-height:1.35; margin-top:3px; opacity:.72; }
.att__hint-x{
  width:26px; height:26px; border-radius:50%; display:grid; place-items:center;
  background:rgba(127,140,150,.35); color:inherit;
}
.att__hint-x svg, .att__bar-x svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; }
.att__bar{
  display:grid; grid-template-columns:44px 1fr; gap:10px; align-items:center;
  padding:8px; background:#e8ecf0;
}
.is-dark .att__bar{ background:#36414c; }
.att__bar-x{ width:44px; height:44px; border-radius:50%; display:grid; place-items:center; color:var(--c-ink); }
.att__bar-go{
  height:44px; border-radius:999px; background:var(--u-orange); color:#fff;
  font-size:15.5px; font-weight:500;
}
.detail__when b .detail__when-sep, .sheet--detail .detail__when b .detail__when-sep{
  display:inline; font-size:inherit; margin:0; padding:0 5px; color:var(--d-muted, #9aa5ae); font-weight:400; letter-spacing:0;
}

/* =====================================================================
   Untere Leiste im Liquid-Glass-Stil (nur die System-Reiter):
   klares Glas mit starker Unschärfe, Glanzkante oben, weicher Schatten,
   aktiver Reiter als kleine Glaslinse mit Akzentfarbe
   ===================================================================== */
.tabbar{
  background:linear-gradient(180deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.38) 100%);
  backdrop-filter:blur(26px) saturate(200%) brightness(1.04);
  -webkit-backdrop-filter:blur(26px) saturate(200%) brightness(1.04);
  border:.5px solid rgba(255,255,255,.7);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 -1px 1px rgba(255,255,255,.35),
    inset 0 0 0 .5px rgba(0,0,0,.04),
    0 10px 30px rgba(20,28,36,.14),
    0 1px 3px rgba(20,28,36,.08);
  overflow:hidden;
  isolation:isolate;
}
/* Lichtreflex oben auf dem Glas */
.tabbar::before{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:-1; border-radius:inherit;
  background:radial-gradient(120% 70% at 50% -10%, rgba(255,255,255,.65) 0%, rgba(255,255,255,0) 60%);
}
.tab{ font-size:11px; font-weight:500; letter-spacing:-.01em; color:#2b333a; }
.tab .ico{ stroke-width:1.8; }
.tab.is-active{ color:var(--u-orange); }
.tab.is-active::before{
  inset:5px 4px;
  background:linear-gradient(180deg, rgba(255,255,255,.75), rgba(236,239,242,.55));
  box-shadow:inset 0 .5px 0 rgba(255,255,255,.95), inset 0 0 0 .5px rgba(0,0,0,.05), 0 2px 8px rgba(20,28,36,.10);
}
html.is-dark .tabbar{
  background:linear-gradient(180deg, rgba(44,44,48,.62) 0%, rgba(24,24,27,.5) 100%);
  border-color:rgba(255,255,255,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14), 0 10px 30px rgba(0,0,0,.45);
}
html.is-dark .tabbar::before{ background:radial-gradient(120% 70% at 50% -10%, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 60%); }
html.is-dark .tab{ color:#c9ced3; }
html.is-dark .tab.is-active{ color:var(--u-orange); }
html.is-dark .tab.is-active::before{ background:rgba(255,255,255,.12); box-shadow:inset 0 .5px 0 rgba(255,255,255,.2); }
@media (min-width:820px){
  .tab > span{ font-weight:500; }
}

/* Ohne Raum: Pill „Raum hinzufügen“ (gestrichelt, Akzentfarbe) */
.droom__neu{ background:transparent; border:1.5px dashed color-mix(in srgb, var(--u-orange) 70%, transparent); color:var(--u-orange); font-weight:500; letter-spacing:0; }

/* =====================================================================
   Sprint 9: Startseite mit Infos zum Tag oben (wie Referenz), Glasknöpfe
   oben links/rechts, untere Leiste genauer nach Vorlage
   ===================================================================== */
.newsstrip{
  display:flex; gap:12px;
  overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
  /* unten genug Luft, damit der Kartenschatten nicht als Kante abgeschnitten wird */
  margin:-8px -18px -6px; padding:8px 18px 30px;
  scrollbar-width:none;
}
.newsstrip::-webkit-scrollbar{ display:none; }
.newsstrip[hidden]{ display:none; }
.newscard{
  flex:0 0 86%; scroll-snap-align:start;
  background:var(--c-bar); border-radius:22px; overflow:hidden;
  box-shadow:0 1px 2px rgba(21,33,44,.05), 0 10px 26px rgba(21,33,44,.08);
}
.newsstrip .newscard:only-child{ flex-basis:100%; }
.newscard__head{
  display:flex; align-items:center; justify-content:space-between;
  height:58px; padding:0 18px; color:#fff;
  background:#4c9bd8;
}
.newscard--event .newscard__head{ background:#3fae6a; }
.newscard__head .ico{ width:28px; height:28px; stroke:currentColor; fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.newscard__neu{ border:1.5px solid rgba(255,255,255,.9); border-radius:8px; padding:2px 10px; font-size:14px; font-weight:500; }
.newscard__body{ padding:16px 18px 18px; }
.newscard__body b{ display:block; font-size:18px; font-weight:500; color:var(--c-ink); margin-bottom:6px; }
.newscard__body p{ margin:0; font-size:16px; line-height:1.35; color:var(--c-ink-2);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
html.is-dark .newscard{ box-shadow:none; }

/* Knöpfe oben (Plan wechseln, Info, Menü …) im selben Glas wie die untere Leiste */
.topbar .icon-btn--solo, .topbar__actions, .screen--start .rndbtn, .lsthead .rndbtn, .msghead .rndbtn{
  background:linear-gradient(180deg, rgba(255,255,255,.66) 0%, rgba(255,255,255,.42) 100%);
  backdrop-filter:blur(24px) saturate(200%);
  -webkit-backdrop-filter:blur(24px) saturate(200%);
  border:.5px solid rgba(255,255,255,.75);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 .5px rgba(0,0,0,.04), 0 6px 18px rgba(20,28,36,.10), 0 1px 2px rgba(20,28,36,.06);
}
html.is-dark .topbar .icon-btn--solo, html.is-dark .topbar__actions, html.is-dark .screen--start .rndbtn, html.is-dark .lsthead .rndbtn, html.is-dark .msghead .rndbtn{
  background:linear-gradient(180deg, rgba(58,58,62,.62) 0%, rgba(30,30,33,.5) 100%);
  border-color:rgba(255,255,255,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14), 0 6px 18px rgba(0,0,0,.35);
}

/* Untere Leiste wie in der Vorlage: schwebend mit etwas mehr Abstand zum Rand, aktiver Reiter als breite Glaskapsel */
.tabbar{
  left:20px; right:20px;
  height:64px;
  bottom:max(10px, calc(var(--sab) - 14px));
}
.tab{ gap:4px; font-size:11.5px; }
.tab .ico{ width:26px; height:26px; }
.tab.is-active::before{ inset:5px -2px; }
@media (min-width:820px){
  .tabbar{ left:50%; right:auto; height:46px; }
  .tab.is-active::before{ inset:4px 6px; }
}

/* Aktiver Reiter wie in der Vorlage: Schrift dunkel und kräftig, nur die Glaskapsel markiert die Auswahl */
.tab.is-active{ color:var(--c-ink); font-weight:500; }
html.is-dark .tab.is-active{ color:#fff; }
@media (min-width:820px){ .tab.is-active{ color:var(--u-orange); } }

/* Planauswahl: Suchfeld OBEN unter dem Titel, über den Listen; kein doppelter Schließen-Knopf */
.sheet--picker{ display:flex; flex-direction:column; }
.sheet--picker .pk__search{ order:1; grid-template-columns:1fr; padding:4px 16px 10px; }
.sheet--picker .pk__body{ order:2; }
#pickerClear{ display:none; }
.sheet--picker .searchwrap{ border:1px solid color-mix(in srgb, var(--c-ink) 10%, transparent); }

/* =====================================================================
   iOS-Feinschliff: Systemgrau, gruppierte Listen, Profil wie im Vorbild,
   Übergänge wie in einer nativen App
   ---------------------------------------------------------------------
   Grundflächen in den Systemgrautönen von iOS (hell #f2f2f7, dunkel
   reines Schwarz mit #1c1c1e für die Gruppen), Listengruppen mit 10 px
   Radius und eingerückten Trennlinien, die erst beim Text beginnen.
   ===================================================================== */
:root{
  --ios-bg:        #f2f2f7;
  --ios-group:     #ffffff;
  --ios-sep:       rgba(60,60,67,.16);
  --ios-ink-2:     rgba(60,60,67,.6);
  --ios-spring:    cubic-bezier(.32,.72,0,1);    /* Kurve der Systemblätter */
}
html.is-dark{
  --ios-bg:        #000000;
  --ios-group:     #1c1c1e;
  --ios-sep:       rgba(84,84,88,.55);
  --ios-ink-2:     rgba(235,235,245,.6);
}

.screen--start,.screen--profile,.screen--list,
html.is-dark .screen--start,html.is-dark .screen--profile,html.is-dark .screen--list{ background:var(--ios-bg); }
body:has(.screen--start.is-active) .topbar,
body:has(.screen--profile.is-active) .topbar,
body:has(.screen--list.is-active) .topbar,
body.has-plain-top .topbar{ background:var(--ios-bg); }

/* Gruppierte Listen */
.screen--start .rows,
.screen--profile .rows,
.screen--profile .rows--flat .row--user,
html.is-dark .screen--start .rows,
html.is-dark .screen--profile .rows,
html.is-dark .rows--flat .row--user{
  background:var(--ios-group);
  border:0;
  border-radius:10px;
  box-shadow:none;
}
html.is-dark .screen--start .daycard{ background:var(--ios-group); border:0; }
.screen--start .daycard{ box-shadow:none; border-radius:12px; }
.screen--profile .rows--flat{ background:none; }
.screen--start .rows .row,
.screen--profile .rows .row{
  position:relative;
  border-bottom:0;
  min-height:46px;
  padding-top:11px; padding-bottom:11px;
}
.screen--start .rows .row:not(:last-child)::after,
.screen--profile .rows .row:not(:last-child)::after{
  content:""; position:absolute; right:0; bottom:0;
  left:58px;                     /* Linie beginnt beim Text, nicht beim Symbol */
  height:1px; transform:scaleY(.5); transform-origin:bottom;
  background:var(--ios-sep);
  pointer-events:none;
}
.screen--start .rows .row:active,
.screen--profile .rows .row--nav:active{ background:color-mix(in srgb, var(--c-ink) 7%, transparent); }
html.is-dark .row{ border-bottom-color:transparent; }

/* Profil: groß das Kürzel, Kontokarte mit grauem Kreis und Rollenplakette */
.screen--profile .h1{
  font-size:30px; font-weight:500; letter-spacing:-.022em;
  color:var(--c-ink-2);
  margin:6px 0 12px;
}
html.is-dark .screen--profile .h1{ color:#c2ccd4; }
.screen--profile .rows--flat .row--user{
  grid-template-columns:38px 1fr 22px; gap:12px;
  padding:12px 14px;
}
.screen--profile .avatar{
  width:38px; height:38px;
  background:#8e8e93; color:#fff;
  font-size:17px; font-weight:500;
}
.screen--profile .row--user__main b{ font-size:17px; font-weight:500; }
.screen--profile .chip{
  margin-top:3px; padding:1px 8px; border-radius:6px;
  background:#8e8e93; color:#fff;
  font-size:11.5px; font-weight:500; letter-spacing:.01em;
}
html.is-dark .screen--profile .chip{ background:#636366; color:#fff; }

/* Breite Bildschirme: Inhalt in einer Spalte von rund 700 Punkten */
@media (min-width:820px){
  .screen--start .pad,
  .screen--profile .pad,
  .lstbody,
  .lstfilter{ max-width:700px; }
}

/* Blätter fahren mit der Federkurve von iOS herein */
.sheet{ transition:transform .42s var(--ios-spring); }
@media (min-width:700px){
  .sheet:not(.sheet--menu),
  .sheet--picker,
  .sheet--detail{
    transition:transform .36s var(--ios-spring), opacity .22s ease-out;
  }
}
.scrim{ transition:opacity .3s ease-out; }

/* Unterseiten schieben sich von rechts herein (Navigation wie in iOS);
   beim Zurückgehen gleitet die darunterliegende Seite aus der Tiefe nach. */
@keyframes iosPushIn { from{ transform:translate3d(100%,0,0); } to{ transform:none; } }
@keyframes iosPopIn  { from{ transform:translate3d(-28%,0,0); opacity:.6; } to{ transform:none; opacity:1; } }
@keyframes iosPushOut{ from{ transform:none; } to{ transform:translate3d(100%,0,0); } }
.ios-push{ animation:iosPushIn .44s var(--ios-spring) both; will-change:transform; }
.ios-pop { animation:iosPopIn .44s var(--ios-spring) both; will-change:transform; }
.ios-leave{
  display:flex !important; flex-direction:column;
  position:absolute !important; inset:0; z-index:39;
  animation:iosPushOut .36s var(--ios-spring) both;
  pointer-events:none;
  box-shadow:-8px 0 24px rgba(0,0,0,.12);
}
.ios-push{ box-shadow:-8px 0 24px rgba(0,0,0,.10); }
@media (prefers-reduced-motion: reduce){
  .ios-push, .ios-pop, .ios-leave{ animation:none; }
  .sheet{ transition-duration:.01s; }
}

/* Kein Aufblitzen beim Antippen, kein Textmarkieren in Leisten */
a, button, [role="button"], label{ -webkit-tap-highlight-color:transparent; }
.sheet.ios-clip{ overflow:hidden; }
html.is-dark body:has(.screen--start.is-active) .topbar,
html.is-dark body:has(.screen--profile.is-active) .topbar,
html.is-dark body:has(.screen--list.is-active) .topbar,
html.is-dark body.has-plain-top .topbar{ background:var(--ios-bg); }
html.is-dark .screen--start .daycard{ box-shadow:none; }
/* Breite Bildschirme: aktiver Reiter orange auf heller Kapsel — auch im Dunkeln */
@media (min-width:820px){
  html.is-dark .tab.is-active{ color:var(--u-orange); }
}
html.is-dark .screen--list .lstcard{ background:var(--ios-group); box-shadow:none; }

/* Zeilen der Stundendetails: etwas mehr Luft zwischen den Einträgen */
.sheet--detail .drow2{ min-height:54px; padding:10px 0; }
.sheet--detail .drows{ padding-top:8px; }

/* Mehrere Räume: jeder Raum ein eigenes Label, nicht zu einem Wert
   verschmolzen; nur der hinzugekommene Raum ist hervorgehoben. */
.card__line--rooms .tok + .tok{ margin-left:4px; }
.dlab{
  display:inline-block; margin:0 6px 2px 0; padding:1px 8px;
  border-radius:6px; background:var(--d-chip, #eef0f2); color:inherit;
}
.dlab--neu{ background:var(--green); color:var(--green-ink); }
/* Im Kopf der Details steht die Lehrkraft ohne Abstand zum Strich davor. */
.dline .dlab, .dtitle .dlab{ margin:0; padding:0 5px; border-radius:3px; }
.dline .dlab--offen s{ text-decoration-color:currentColor; }

/* Offene Vertretung einer abwesenden Lehrkraft: das bisherige Kürzel steht
   IMMER durchgestrichen in der grünen Plakette (#0b7d65, weiße Schrift) —
   auf Karten der Woche und des Tages. Gilt ebenso für einen noch offenen
   Raum. Ohne Fläche bleibt das alte Kürzel nur, wo eine Vertretung schon
   eingeteilt ist (Kopplung, Eckklammern). */
.badge.badge--removed.badge--open,
.card--released .card__line .badge.badge--removed.badge--open{
  background:var(--green); color:var(--green-ink);
  text-decoration:line-through; text-decoration-thickness:var(--strike);
  text-decoration-color:currentColor;
}
.tab:focus, .tab:focus-visible, .icon-btn:focus, .rndbtn:focus{ outline:none; }

/* =====================================================================
   Fenster am iPad bzw. breiten Bildschirm: FESTE Größe
   ---------------------------------------------------------------------
   Stundendetail, Auswahl und Schreiben stehen immer gleich groß da –
   unabhängig vom Inhalt und auch beim Wechsel in Unterseiten (Klassenbuch,
   Schüler*innen, Notizen). Der Inhalt rollt innen. Kalender und Legende
   (ohne Unterseiten) behalten die feste Breite, ihre Höhe folgt dem Inhalt.
   ===================================================================== */
@media (min-width:700px){
  .sheet.sheet--detail, .sheet.sheet--picker, .sheet.sheet--write{
    width:min(560px, 94vw);
    height:min(640px, 88vh);
    min-height:min(640px, 88vh);
    max-height:min(640px, 88vh);
    overflow:hidden;
  }
  .sheet.sheet--week, .sheet.sheet--legend, .sheet.sheet--info{ width:min(560px, 94vw); }
  .sheet.sheet--legend{ overflow-y:auto; }
}

/* Hinweis „Zusätzliche Unterrichtsstunde“: normale Schreibweise, keine Großbuchstaben-Kapsel – dezent. */
.dpill.dpill--hinweis, .sheet--detail .dpill.dpill--hinweis, .is-dark .sheet--detail .dpill.dpill--hinweis{
  text-transform:none; letter-spacing:0; font-weight:500; font-size:14px;
  height:auto; padding:2px 9px; border-radius:6px;
  background:var(--d-chip, #eef0f2); color:var(--d-ink-2, #6b7a86);
}

/* =====================================================================
   Veranstaltung (Feld): hellgrün mit feinem Rahmen, Klassen fett – im
   Dunkeln gedämpft statt kräftigem Dunkelgrün mit Türkisrahmen.
   ===================================================================== */
.card--gs, .card--absence{
  background:#e0fdf3;
  border:1px solid #a9dccb;
  --bw:1px;
  box-shadow:0 1px 2px rgba(21,33,44,.06);
}
.card--gs .card__line--primary{ font-weight:500; }
html.is-dark .card--gs, html.is-dark .card--absence{
  background:#22352f;
  border:1px solid #3d6457;
  --bw:1px;
  box-shadow:none;
}
html.is-dark .card--gs .card__line,
html.is-dark .card--gs .card__line--primary{ color:#e3efe9; }
html.is-dark .card--gs.is-past, html.is-dark .card--absence.is-past{
  background:#22352f; border:0; --bw:0px;
}
.card--gs.is-past, .card--absence.is-past{ background:#e0fdf3; border:0; --bw:0px; }

/* =====================================================================
   Vergangene Vertretungen und Entfälle: Es verschwindet nur der farbige
   Rahmen – Fläche, Schrift und Fachbalken bleiben unverändert (kein
   Verblassen), im Hellen wie im Dunkeln.
   ===================================================================== */
.card--change.is-past, .card--cancelled.is-past,
html.is-dark .card--change.is-past, html.is-dark .card--cancelled.is-past{
  border:0; --bw:0px;
}
.card--change.is-past, html.is-dark .card--change.is-past{ background:var(--chg-bg); }
.card--cancelled.is-past, html.is-dark .card--cancelled.is-past{ background:var(--cnc-bg); }
.card--change.is-past::before, .card--cancelled.is-past::before{ opacity:1; }
.card--change.is-past .card__line, .card--change.is-past .card__line--primary{ color:var(--c-ink); }
.card--cancelled.is-past .card__line, .card--cancelled.is-past .card__line--primary{ color:var(--c-ink); }
html.is-dark .card--change.is-past .card__line{ color:#eafff8; }
html.is-dark .card--cancelled.is-past .card__line{ color:#ffffff; }
/* Termin bzw. ganztägige Veranstaltung im Dunkeln ebenso gedämpft */
html.is-dark .card--event{ background:#22352f; border:1px solid #3d6457; box-shadow:none; }
html.is-dark .card--event .card__line, html.is-dark .card--event .card__line--primary{ color:#e3efe9; }


/* =====================================================================
   Veranstaltungen und Termine wie grüne Stundenkarten (Vertretung)
   ---------------------------------------------------------------------
   Keine eigene Mint-Farbe mehr: Fläche #e3fff2 mit 2-px-Rahmen #019169,
   im Dunkeln wie die grüne Vertretungskarte. Vergangen fällt nur der
   Rahmen weg — Fläche und Schrift bleiben.
   ===================================================================== */
.card--gs, .card--absence, .card--event,
html.is-dark .card--gs, html.is-dark .card--absence, html.is-dark .card--event{
  background:var(--chg-bg);
  border:2px solid var(--chg-border);
  --bw:2px;
  box-shadow:none;
}
.card--event{
  padding:calc(var(--card-pad-top) - var(--bw)) calc(var(--card-pad-edge) - var(--bw))
          calc(var(--card-pad-edge) - var(--bw)) calc(var(--card-pad-left) - var(--bw));
}
.card--gs.is-past, .card--absence.is-past, .card--event.is-past,
html.is-dark .card--gs.is-past, html.is-dark .card--absence.is-past, html.is-dark .card--event.is-past{
  background:var(--chg-bg);
  border:0; --bw:0px;
  box-shadow:none;
}
.card--gs .card__line, .card--gs .card__line--primary,
.card--absence .card__line, .card--absence .card__line--primary,
.card--event .card__line, .card--event .card__line--primary{ color:var(--c-ink); }
.card--gs .card__line--primary, .card--absence .card__line--primary, .card--event .card__line--primary{ font-weight:500; }
html.is-dark .card--gs .card__line, html.is-dark .card--gs .card__line--primary,
html.is-dark .card--absence .card__line, html.is-dark .card--absence .card__line--primary,
html.is-dark .card--event .card__line, html.is-dark .card--event .card__line--primary{ color:#eafff8; }
.sw--event{ background:var(--chg-bg); border:1.5px solid var(--chg-border); }
.flag--event{ background:var(--chg-bg); }

/* Kein Tipp-Effekt auf Karten: keine Skalierung, keine Deckkraft, keine
   Hervorhebung — weder vom Browser noch vom System. */
.card, .card *, .parcount, .daycol, #gridPane{
  -webkit-tap-highlight-color:transparent;
  -webkit-touch-callout:none;
}
.card{ -webkit-user-select:none; user-select:none; }
.card:active, .card:focus, .card:focus-visible, .card:hover,
.parcount:active, .parcount:focus{
  transform:none; opacity:1; filter:none; outline:none;
}

/* =====================================================================
   Stundendetail nach der Vorlage (Seite 6–8)
   ---------------------------------------------------------------------
   Kopf: X links, mittig „Do. | 05.11.26 ⌄“ mit kleiner Uhrzeit, ⋮ rechts
   (runde Glasknöpfe). Darunter „Klassen | Gruppe“, Fach, Raum und
   Lehrkraft je in einer eigenen Zeile in normaler Schrift. Dann die Liste
   mit den Original-Symbolen, Zähler als graue Kreise und „>“.
   ===================================================================== */
.sheet--detail .detail__top{ padding:6px 14px 10px; }
.sheet--detail #detailClose, .sheet--detail #detailMenu,
.is-dark .sheet--detail #detailClose, .is-dark .sheet--detail #detailMenu,
.sheet--detail #dsubBack, .sheet--detail #dsubSave,
.is-dark .sheet--detail #dsubBack, .is-dark .sheet--detail #dsubSave{
  width:42px; height:42px;
  background:color-mix(in srgb, var(--d-btn) 86%, transparent);
  backdrop-filter:saturate(180%) blur(16px); -webkit-backdrop-filter:saturate(180%) blur(16px);
  box-shadow:0 1px 6px rgba(21,33,44,.12), inset 0 0 0 .5px var(--d-line);
}
.sheet--detail .rndbtn .ico{ width:21px; height:21px; }
.sheet--detail .detail__when b{ font-size:15px; font-weight:400; color:var(--d-ink-2); }
.sheet--detail .detail__when span{ font-size:12px; color:var(--d-muted); margin-top:1px; }
/* Pfeil wie in der Vorlage: feines „⌄“ statt Dreieck */
.detail__when.is-pick b::after{
  border:0; width:6px; height:6px; margin-left:7px; vertical-align:3px; opacity:.8;
  border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor;
  transform:rotate(45deg);
}
.sheet--detail .dhead{ padding:8px 20px 16px; }
.sheet--detail .dtitle{ font-size:17px; font-weight:400; line-height:1.3; letter-spacing:0; }
.sheet--detail .dtitle i{ padding:0 4px; font-weight:400; }
.sheet--detail .dline{ font-size:13.5px; font-weight:400; color:var(--d-ink); margin-top:8px; line-height:1.3; }
.sheet--detail .dline--big{ font-size:17px; font-weight:400; margin-top:5px; }
.sheet--detail .drows{ padding:4px 20px 0; }
.sheet--detail .drow2{ grid-template-columns:26px 1fr auto; gap:16px; padding:8px 0; min-height:50px; }
.sheet--detail .drow2__ico .dico{ width:25px; height:25px; stroke-width:1.4; }
.sheet--detail .drow2__ico .dico--sym{ width:26px; height:26px; fill:currentColor; stroke:none; }
.sheet--detail .drow2__main b{ font-size:16.5px; font-weight:400; }
.sheet--detail .drow2__main span{ font-size:13.5px; margin-top:2px; color:var(--d-ink-2);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sheet--detail .drow2__end{ gap:10px; }
.sheet--detail .drow2__chev{ width:21px; height:21px; stroke-width:1.5; }
.sheet--detail .drow2__count, .is-dark .sheet--detail .drow2__count{
  min-width:26px; height:26px; padding:0 7px; font-size:14px; font-weight:500; border-radius:13px;
}
.sheet--detail .dtoggle{ width:51px; height:31px; }
.sheet--detail .dtoggle::after{ width:27px; height:27px; }

/* =====================================================================
   iPhone (bis 699 px): Stundendetail als Vollbild-Blatt mit Griff
   ===================================================================== */
@media (max-width:699px){
  .sheet.sheet--detail{
    top:calc(var(--sat) + 10px); bottom:0;
    height:auto; max-height:none;
    padding-top:0;
    border-radius:14px 14px 0 0;
  }
  .sheet--detail .detail__grab{ display:block; width:36px; height:5px; border-radius:3px;
    background:color-mix(in srgb, var(--d-muted) 55%, transparent); margin:6px auto 4px; }
  .sheet--detail .dsub{ border-radius:14px 14px 0 0; }
}
@media (min-width:700px){ .sheet--detail .detail__grab{ display:none; } }

/* =====================================================================
   iPhone: Raster, Kopf und Leisten
   ---------------------------------------------------------------------
   Der Wochenkopf steht außerhalb des Rollbereichs und bleibt immer
   sichtbar; eigene Ebene, damit Wischen und Rollen ruckelfrei laufen.
   ===================================================================== */
.weekhead{ z-index:6; transform:translateZ(0); }
.gridscroll{ contain:layout paint; }
.gridpane{ contain:layout style; }
.card{ contain:layout paint style; }
/* Reiter-Symbole der Vorlage (Schulgebäude, Kalender mit Tageszahl,
   Umschlag, Person) als Linien gezeichnet */
.tab .tabico{ fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.tab .tabico__dot{ stroke-width:1.9; }

@media (max-width:699px){
  /* Zeitspalte schmal, damit die fünf Tage mehr Breite bekommen */
  :root{ --gutter-w:40px; }
  .gutter__time, .time__from, .time__to{ font-size:11px; }
  .tab{ font-size:11px; }
  .tab > span{ font-size:11px; font-weight:500; }
  .tab .ico{ width:26px; height:26px; }
}
@media (max-width:380px){
  /* iPhone SE: etwas kleinere Kachelschrift, damit Kürzel wie „R105“ passen */
  :root{ --gutter-w:36px; }
  .card__line{ font-size:12.5px; }
  .tabbar{ left:12px; right:12px; height:58px; }
}
@media (max-width:699px){
  .weekhead__kw{ padding-left:5px; }
  .weekhead__kw-no{ white-space:nowrap; font-size:10.5px; letter-spacing:-.01em; }
  .weekhead__month{ font-size:16px; }
}
/* Schmale iPhones: Erscheinungsbild-Umschalter passt in die Zeile */
@media (max-width:400px){
  .row--seg{ column-gap:10px; }
  .row--seg > span:nth-child(2){ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .seg button{ padding:5px 8px; font-size:12.5px; }
}

/* Mitteilungen am iPhone wie in der Vorlage: Liste über die volle Breite,
   je Mitteilung eine Fläche mit Avatar, Absender, Datum rechts, Betreff
   und einzeiliger Vorschau; im Dunkeln schwarzer Grund. */
@media (max-width:699px){
  .msgtabs{ gap:30px; padding:8px 18px 14px; }
  .msgtabs button{ font-size:17.5px; }
  .msgrow{
    margin:0 0 1px; width:100%; border-radius:0;
    grid-template-columns:44px 1fr auto; gap:14px; padding:12px 18px 14px;
    background:var(--c-surface, #fff);
  }
  .msgrow__ava{ width:44px; height:44px; font-size:17px; font-weight:500; margin-top:2px; }
  .msgrow__main b{ font-size:17px; }
  .msgrow__main span, .msgrow__main em{ font-size:15px; }
  .msgrow__main span{ color:var(--c-ink); }
  .msgrow__date{ font-size:15px; color:var(--c-ink-2); }
}
html.is-dark .screen--msg, html.is-dark body.is-msgtop{ background:#000; }
@media (max-width:699px){
  html.is-dark .msgrow{ background:#1c1c1e; border-bottom:0; }
  html.is-dark .msgrow__ava{ background:#8a96a0; color:#fff; }
}
.msgrow{ grid-template-columns:52px minmax(0,1fr) auto; }
.msgrow__main{ min-width:0; }
.msgrow__main em{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:699px){ .msgrow{ grid-template-columns:44px minmax(0,1fr) auto; } }

/* =====================================================================
   Sprint 14 – Angleichung an die Original-App (iPhone 108/116/117/118/119)
   ===================================================================== */

/* ---- Kachel am iPhone: Balken und Text wie im Original 108 ----------
   Balken 4 px breit, 4 px vom Rand; Text gut 5 px rechts vom Balken;
   Schrift 11 px, Zeilenabstand 14 px. Die Rechnung im Raster (Zeilen,
   die noch passen) liest denselben Abstand (karteZeile()). */
@media (max-width:699px){
  :root{
    --card-pad-left: 11px;
    --card-pad-top:  3.5px;
    --bar-left:      4px;
    --bar-top:       4px;
  }
  .card__line{ font-size:11px; line-height:14px; padding-left:1.5px; }
  .card__line--badge{ padding-left:0; }
}

/* ---- Viele Werte: eine Zeile mit „…“ (nicht waagerecht rollen) ------ */
.card__line--scroll,
.card .card__line.card__line--scroll{
  overflow:hidden; text-overflow:ellipsis; touch-action:manipulation;
}

/* ---- Raster läuft unter der letzten Stunde weiter ------------------- */
.grid__rest{
  position:absolute; left:var(--gutter-w); right:0;
  height:max(calc(var(--grid-pad-bottom) + var(--sab) - 1px), calc(var(--rest) - var(--grid-pad-top) - 1px));
  pointer-events:none;
  background:repeating-linear-gradient(180deg, transparent 0, transparent calc(var(--takt) - 1px),
             var(--c-line) calc(var(--takt) - 1px), var(--c-line) var(--takt));
}
@media (max-width:699px){
  .gridpane{ min-height:100%; }
}

/* ---- Tagesansicht: Kopf wie die Woche ------------------------------- */
.dayhead--day .dayhead__name{ font-size:12px; }
.dayhead--day .dayhead__num{ font-size:16px; }

/* ---- Vergangene Stunden (116 hell, 119 dunkel) ---------------------
   Hell: reguläre Karten hellgrau, farbige behalten ihre helle Fläche,
   nur der Rahmen fällt weg; Plaketten bleiben.
   Dunkel: alle Karten schiefergrau, der farbige Rahmen bleibt. */
.card.is-past{ background:#f2f3f5; }
.card.is-past .card__line, .card.is-past .card__line--primary{ color:var(--c-ink); }
.card--change.is-past{ background:var(--chg-bg); border:0; --bw:0px; }
.card--cancelled.is-past{ background:var(--cnc-bg); border:0; --bw:0px; }
.card--exam.is-past{ background:var(--exam-bg); border:0; --bw:0px; }
.card--gs.is-past, .card--absence.is-past{ background:var(--chg-bg); border:0; --bw:0px; }
.card.is-past::before{ opacity:1; }
html.is-dark .card.is-past{ background:#313d44; box-shadow:none; }
html.is-dark .card.is-past .card__line,
html.is-dark .card.is-past .card__line--primary{ color:#f4f6f8; }
html.is-dark .card--change.is-past{ background:#313d44; border:2px solid var(--chg-border); --bw:2px; }
html.is-dark .card--cancelled.is-past{ background:#313d44; border:2px solid var(--cnc-border); --bw:2px; }
html.is-dark .card--exam.is-past{ background:#313d44; border:2px solid var(--exam-border); --bw:2px; }
html.is-dark .card--gs.is-past, html.is-dark .card--absence.is-past{ background:#313d44; border:1px solid #3d6457; --bw:1px; }
html.is-dark .card--released.is-past, html.is-dark .card--standby.is-absent.is-past{ background:transparent; border-color:transparent; }
.card--released.is-past{ background:transparent; }
/* Vergangene Stunden bleiben antippbar */
.card.is-past{ pointer-events:auto; cursor:pointer; }

/* ---- Stundendetails wie 117/118: keine Plaketten, größere Schrift -- */
.sheet--detail .detail__when b{ font-size:17px; font-weight:400; color:#6b7a86; letter-spacing:0; }
.sheet--detail .detail__when span{ font-size:13px; color:#6b7a86; margin-top:1px; letter-spacing:.01em; }
html.is-dark .sheet--detail .detail__when b,
html.is-dark .sheet--detail .detail__when span{ color:#9aa2a9; }
.sheet--detail .dhead{ padding:12px 16px 20px; }
.sheet--detail .dtitle{ font-size:22px; font-weight:400; line-height:29px; color:var(--d-ink); }
.sheet--detail .dtitle i{ color:var(--d-muted); padding:0 4px; font-weight:400; }
.sheet--detail .dline{ margin-top:0; }
.sheet--detail .dline--big{ display:block; font-size:22px; font-weight:400; line-height:29px; margin-top:2px; color:var(--d-ink); }
.sheet--detail .dline--grau{ font-size:17px; font-weight:400; line-height:22px; margin-top:9px; color:#6b7a86; }
html.is-dark .sheet--detail .dline--grau{ color:#a3acb4; }
.sheet--detail .dline--big + .dline--grau{ margin-top:7px; }
/* Jede Angabe genau eine Zeile; viele Werte rollen waagerecht */
.sheet--detail .dtitle, .sheet--detail .dline{
  white-space:nowrap; overflow-x:auto; overflow-y:hidden;
  scrollbar-width:none; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain;
}
.sheet--detail .dtitle::-webkit-scrollbar, .sheet--detail .dline::-webkit-scrollbar{ display:none; }
.sheet--detail .dline--kopp{ white-space:nowrap; }
.sheet--detail .dline s{ text-decoration-thickness:var(--strike); }
.sheet--detail .dline .arrow{ padding:0 5px; color:inherit; }
.sheet--detail .dline .sep{ padding:0 5px; }
.sheet--detail .detail__sep, .is-dark .sheet--detail .detail__sep{ height:1px; background:var(--d-line); }
.sheet--detail{ --d-line:#dedee0; --d-off:#dfe1e6; }
.is-dark .sheet--detail{ --d-line:#38383c; --d-off:#2c3036; }
.sheet--detail .dhead.is-off, .is-dark .sheet--detail .dhead.is-off{ background:var(--d-off); padding-bottom:20px; }
.sheet--detail .dbanner{
  background:#ff0000; color:#fff; text-align:center;
  height:27px; line-height:27px; padding:0 12px;
  font-size:15px; font-weight:500; letter-spacing:.02em;
}
/* Liste: Symbol 30 px grau, Titel 19 px, Untertitel 17 px grau einzeilig,
   keine Trennlinien zwischen den Menüpunkten */
.sheet--detail .drows{ padding:10px 16px 0; }
.sheet--detail .drow2{ grid-template-columns:30px 1fr auto; gap:12px; padding:9px 0; min-height:56px; }
.sheet--detail .drow2 + .drow2, .is-dark .sheet--detail .drow2 + .drow2{ border-top:0; }
.sheet--detail .drow2__ico .dico{ width:30px; height:30px; stroke-width:1.3; }
.sheet--detail .drow2__ico .dico--sym{ width:30px; height:30px; }
.sheet--detail .drow2__main{ min-width:0; }
.sheet--detail .drow2__main b{ font-size:19px; font-weight:400; color:var(--d-ink); }
.sheet--detail .drow2__main span{ display:block; font-size:17px; margin-top:2px; color:#6b7a86;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html.is-dark .sheet--detail .drow2__main span{ color:#a3acb4; }
.sheet--detail .drow2__count, .is-dark .sheet--detail .drow2__count{
  min-width:31px; height:31px; border-radius:16px; padding:0 8px; font-size:16px; font-weight:400;
}
.sheet--detail .drow2__chev{ width:24px; height:24px; stroke-width:1.4; }
@media (min-width:700px){
  .sheet--detail .dhead{ padding:12px 20px 20px; }
  .sheet--detail .drows{ padding:10px 20px 0; }
}

/* ---- Runde Knöpfe im Detail: Glas ----------------------------------- */
.sheet--detail .rndbtn,
.sheet--detail #detailClose, .sheet--detail #detailMenu,
.sheet--detail #dsubBack, .sheet--detail #dsubSave, .sheet--detail #dsubAddTop,
.sheet--detail #dabsClose, .sheet--detail #dabsDelete, .sheet--detail #dabsSave{
  background:rgba(255,255,255,.55);
  backdrop-filter:blur(18px) saturate(180%);
  -webkit-backdrop-filter:blur(18px) saturate(180%);
  border:.5px solid rgba(255,255,255,.85);
  box-shadow:0 3px 12px rgba(20,28,36,.14), inset 0 .5px 0 rgba(255,255,255,.9);
  color:#6b7a86;
}
html.is-dark .sheet--detail .rndbtn,
html.is-dark .sheet--detail #detailClose, html.is-dark .sheet--detail #detailMenu,
html.is-dark .sheet--detail #dsubBack, html.is-dark .sheet--detail #dsubSave, html.is-dark .sheet--detail #dsubAddTop,
html.is-dark .sheet--detail #dabsClose, html.is-dark .sheet--detail #dabsDelete, html.is-dark .sheet--detail #dabsSave{
  background:rgba(58,58,62,.5);
  border-color:rgba(255,255,255,.16);
  box-shadow:0 3px 12px rgba(0,0,0,.4), inset 0 .5px 0 rgba(255,255,255,.12);
  color:#c9ced3;
}
.sheet--detail .rndbtn--ok{ color:var(--u-orange, #f26b2b); }

/* ---- Unterseiten: feste Blattgröße, Tastatur verschiebt nichts ------
   Das Blatt behält Größe und Platz; ragt die Tastatur hinein (--dkb),
   bekommt nur der Inhalt unten Luft und rollt innen. */
.sheet.sheet--detail{ padding-bottom:calc(var(--sab) + 12px); }
@media (min-width:700px){
  .sheet.sheet--detail{ padding-bottom:12px; }
}
.sheet--detail .dsub__body{ padding-bottom:calc(var(--sab) + 14px + var(--dkb, 0px)); }
.sheet--detail .dsub__body:has(> .dsub__area){ display:flex; flex-direction:column; }
.sheet--detail .dsub__area{ flex:1 1 auto; min-height:120px; font-size:17px; }

/* ---- Klassenbucheinträge: Suche unter dem Kopf ---------------------- */
.dsub__suche{
  flex:0 0 auto; display:flex; align-items:center; gap:8px;
  margin:2px 16px 8px; padding:0 12px; height:38px;
  border-radius:12px; background:var(--d-chip, #eef0f2); color:var(--d-muted, #8b98a3);
}
.dsub__suche[hidden]{ display:none; }
.dsub__suche .ico{ width:19px; height:19px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.dsub__suche input{
  flex:1 1 auto; min-width:0; border:0; outline:none; background:none;
  font:inherit; font-size:17px; color:var(--d-ink, var(--c-ink));
}
.dsub__suche input::-webkit-search-cancel-button{ -webkit-appearance:none; }
.dsub__item[hidden]{ display:none !important; }
/* Kopf der Klassenbucheinträge nicht mehr gequetscht */
.sheet--detail .dsub__top{ grid-template-columns:48px minmax(0,1fr) auto; }
.sheet--detail .dsub__top .detail__when b{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* =====================================================================
   Gehe zu Datum – Popover am ⋮-Knopf wie im Original (Heute / Auswählen,
   Monat mit Pfeilen, Tage MO–SO; heute farbig, gewählt mit Kreis)
   ===================================================================== */
#sheetWeek{
  position:fixed; left:auto; right:10px; bottom:auto;
  top:calc(env(safe-area-inset-top, 0px) + 58px);
  width:min(356px, calc(100vw - 20px));
  max-height:none;
  border-radius:24px;
  padding:6px 8px 12px;
  overflow:visible;
  background:color-mix(in srgb, var(--c-bar) 72%, transparent);
  backdrop-filter:saturate(200%) blur(34px);
  -webkit-backdrop-filter:saturate(200%) blur(34px);
  box-shadow:0 14px 44px rgba(21,33,44,.24), 0 3px 12px rgba(21,33,44,.14),
             inset 0 .5px 0 var(--glass-top), inset 0 -.5px 0 var(--glass-bot);
  transform-origin:top right;
  transform:translateY(-6px) scale(.94);
  opacity:0;
  transition:transform .2s var(--ease), opacity .16s var(--ease);
}
#sheetWeek.is-open{ transform:none; opacity:1; }
#sheetWeek::before{
  content:""; position:absolute; top:-8px; right:16px; width:22px; height:12px;
  background:inherit; clip-path:polygon(50% 0, 100% 100%, 0 100%);
}
.is-dark #sheetWeek{
  background:color-mix(in srgb, var(--c-surface) 66%, transparent);
  box-shadow:0 14px 44px rgba(0,0,0,.6), 0 3px 12px rgba(0,0,0,.4), inset 0 0 0 .5px rgba(255,255,255,.12);
}
.datepop__top{ display:flex; justify-content:space-between; align-items:center; padding:6px 10px 10px; }
.datepop__btn{ font-size:17px; color:var(--c-ink); padding:6px 4px; background:none; }
.datepop__btn--go{ color:var(--c-ink); }
.datepop .cal__head{ display:flex; align-items:center; justify-content:space-between; padding:6px 10px 8px; font-size:17px; font-weight:500; }
.datepop .cal__title{ font-weight:500; }
.datepop .cal__title::after{ content:"›"; color:var(--u-orange); margin-left:6px; font-weight:500; }
.datepop .cal__navs{ display:flex; gap:14px; }
.datepop .calnav{ width:30px; height:30px; background:none !important; box-shadow:none !important; color:var(--c-ink); }
.datepop .calnav .ico{ width:22px; height:22px; stroke-width:2.2; }
.datepop .cal__dow{ display:grid; grid-template-columns:repeat(7, 1fr); padding:4px 2px 2px; font-size:12px; font-weight:500; color:var(--c-muted); text-align:center; letter-spacing:.02em; }
.datepop .cal__grid{ display:grid; grid-template-columns:repeat(7, 1fr); gap:2px 0; padding:2px 2px 0; }
.datepop .dpday{
  height:42px; display:grid; place-items:center; font-size:19px; color:var(--c-ink);
  background:none; border-radius:50%; font-variant-numeric:tabular-nums;
}
.datepop .dpday span{ width:40px; height:40px; display:grid; place-items:center; border-radius:50%; }
.datepop .dpday.is-leer{ visibility:hidden; }
.datepop .dpday.is-today{ color:var(--u-orange); }
.datepop .dpday.is-sel span{ background:color-mix(in srgb, var(--u-orange) 22%, transparent); color:var(--u-orange); font-weight:500; }
.datepop .dpday.is-weekend{ color:var(--c-muted); }
.datepop .dpday.is-weekend.is-today{ color:var(--u-orange); }

/* =====================================================================
   Schülerliste: Wischgesten wie im Original
   links→rechts anwesend (grüne Pille mit Haken), rechts→links abwesend
   (rote Pille mit Uhr). Senkrecht rollt die Liste weiter.
   ===================================================================== */
.att__row{ touch-action:pan-y; -webkit-user-select:none; user-select:none; }
.att__row.is-swiping{ cursor:grabbing; }
.att__swipe{ top:6px; bottom:6px; border-radius:999px; }
.att__swipe--in { left:0;  background:#127a62; }
.att__swipe--out{ right:0; background:#d1194a; }
.att__swipe svg{ width:28px; height:28px; min-width:28px; stroke-width:1.8; }
/* Hinweis: in einer früheren Stunde desselben Tages abwesend */
.att__before--warn, .sheet--detail .att__before--warn{ color:#e0335e; font-size:14px; }
.is-dark .att__before--warn{ color:#ff6d8e; }

/* ---- Abwesenheiten einer Schülerin / eines Schülers ---------------- */
.dabl{ z-index:7; }
.dabl .dsub__body{ padding:4px 18px calc(var(--sab) + 84px); }
.dabl__item{
  display:grid; grid-template-columns:26px minmax(0,1fr) 22px; align-items:center; gap:4px 12px;
  width:100%; text-align:left; padding:12px 2px 12px;
  border-bottom:1px solid var(--d-line, #e6e9ec); color:var(--d-ink, var(--c-ink));
}
.dabl__ico{ width:17px; height:17px; fill:none; stroke:var(--d-muted, #8b98a3); stroke-width:1.6; stroke-linecap:round; align-self:start; margin-top:2px; justify-self:center; }
.dabl__when{ display:flex; flex-direction:column; font-size:16px; line-height:1.3; }
.dabl__chev{ width:22px; height:22px; color:var(--d-muted, #8b98a3); grid-row:span 2; }
.dabl__grund{ font-size:16px; grid-column:2; }
.dabl__grund i{ font-style:normal; color:var(--d-ink-2, #6b7a86); }
.dabl__item .dabl__ico:nth-of-type(3){ grid-column:1; margin-top:1px; }
.dabl__suche{
  position:absolute; left:28px; right:28px; bottom:calc(var(--sab) + 18px);
  display:flex; align-items:center; gap:10px; height:48px; padding:0 18px;
  border-radius:999px;
  background:color-mix(in srgb, var(--d-chip, #eef0f2) 82%, transparent);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  box-shadow:inset 0 .5px 0 var(--glass-top), inset 0 -.5px 0 var(--glass-bot), 0 6px 20px rgba(0,0,0,.18);
  color:var(--d-muted, #8b98a3);
}
.dabl__suche .ico{ width:20px; height:20px; fill:none; stroke:var(--d-ink, var(--c-ink)); stroke-width:2; stroke-linecap:round; }
.dabl__suche input{ flex:1 1 auto; min-width:0; border:0; outline:none; background:none; font:inherit; font-size:17px; color:var(--d-ink, var(--c-ink)); }
.dabl__suche input::-webkit-search-cancel-button{ -webkit-appearance:none; }

/* „Abwesenheit bearbeiten“ wie im Original: Papierkorb und Haken in einer Pille */
.sheet--detail .dabs__acts{
  gap:0; border-radius:999px; padding:0 2px;
  background:rgba(255,255,255,.55); border:.5px solid rgba(255,255,255,.85);
  backdrop-filter:blur(18px) saturate(180%); -webkit-backdrop-filter:blur(18px) saturate(180%);
  box-shadow:0 3px 12px rgba(20,28,36,.14), inset 0 .5px 0 rgba(255,255,255,.9);
}
html.is-dark .sheet--detail .dabs__acts{ background:rgba(58,58,62,.5); border-color:rgba(255,255,255,.16); box-shadow:0 3px 12px rgba(0,0,0,.4), inset 0 .5px 0 rgba(255,255,255,.12); }
.sheet--detail .dabs__acts .rndbtn, html.is-dark .sheet--detail .dabs__acts .rndbtn{ background:none !important; box-shadow:none !important; border:0 !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important; }
.sheet--detail .dabs__acts .rndbtn[hidden]{ display:none; }
/* „Schüler*innen (n)“ im neuen Klassenbucheintrag: Titel und Namen darunter */
.dform__row--people{ width:100%; text-align:left; }
.dform__row--people .dform__lab{ font-size:17px; color:var(--d-ink, var(--c-ink)); display:flex; flex-direction:column; gap:2px; min-width:0; }
.dform__row--people .dform__lab small{ font-size:13px; color:var(--d-ink-2, var(--c-ink-2)); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* Kopf „Abwesenheit bearbeiten“: Titel einzeilig links neben dem Kreuz */
.dabs__title{ text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.dabs__top{ grid-template-columns:48px minmax(0,1fr) auto; }
.dabs__grid > div{ min-width:0; }
.dabs__pill{ max-width:100%; min-width:0; }
/* Info-/Hausaufgabenzeichen im Dunkeln wie im Original: nur die helle
   Scheibe, das „i“ in der Farbe der Kachel – keine eigene Fläche dahinter. */
html.is-dark .card .ticon{ fill:transparent; }
.sheet--detail .dabs__title{ font-size:16px; }
.sheet--detail .dabs__top{ gap:6px; padding-left:12px; padding-right:12px; }
.sheet--detail .dabs__acts .rndbtn{ width:40px; }

/* =====================================================================
   Sprint 17 – Feinschliff Kacheln
   ===================================================================== */
/* Nur die erste Zeile Medium (500), alles Übrige Regular — auch Plaketten
   in den unteren Zeilen und die Zeilen des Ferienfelds. */
.card .card__line:not(.card__line--primary) .badge{ font-weight:400; }
.card .card__line--primary .badge{ font-weight:500; }
.card--holiday .card__line{ font-weight:400; }
.card--holiday .card__line:first-of-type{ font-weight:500; }
.card--standby:not(.is-absent) .card__line:first-child{ font-weight:500; }

/* Info- und Hausaufgabenzeichen: flach, eine Farbe, gut 4 px vom Rand. */
.card__ecke{ right:4px; bottom:4px; gap:3px; }
.card__ic.card__ic--flach{ width:12px; height:12px; }
.card .ticon.ticon--flach{ fill:none; color:#8a96a1; }
html.is-dark .card .ticon.ticon--flach{ fill:none; color:#9aa6b2; }

/* Aufsichtsvertretung — eingesprungen wie abgegeben: nicht verblassen,
   kein Menüzeichen. Grün wie jede Vertretung, rechts neben dem Ort das
   abwesende Kürzel durchgestrichen und die Vertretung im grünen Label. */
.card--supervision.is-absent{
  background:var(--chg-bg);
  border:1.5px solid var(--chg-border);
  --bw:1.5px;
  box-shadow:0 -1px 2px rgba(31,47,61,.10), 0 1px 3px rgba(31,47,61,.20);
}
.card--supervision.is-absent.is-past{ border:0; --bw:0px; background:var(--chg-bg); }
.is-dark .card--supervision.is-absent.is-past{ background:var(--card-bg-past); border:1.5px solid var(--chg-border); }
.card--supervision.is-sub,
.card--supervision.is-absent{ padding-right:3px; overflow:hidden; }
.card--supervision.is-sub .card__line,
.card--supervision.is-absent .card__line,
.card--supervision.is-sub.is-past .card__line,
.card--supervision.is-absent.is-past .card__line{ color:var(--c-ink); }
.card--supervision .sup-menu{ display:none !important; }
.card--supervision .sup-lab{
  flex:0 0 auto; display:flex; align-items:center; gap:2px;
  margin-left:4px; min-width:0;
  font-size:12.4px; line-height:14.3px; font-weight:400; color:var(--c-ink);
  letter-spacing:-.01em;
  white-space:nowrap;
}
.card--supervision .sup-lab .badge{ padding:0.33px 2.27px 0; font-weight:500; }
.card--supervision .sup-lab .badge.badge--removed:not(.badge--open){ padding-left:1px; padding-right:1px; font-weight:400; }

/* Bereitschaft der abwesenden Lehrkraft: Kürzel im grünen Label,
   durchgestrichen. */
.card--standby.is-absent .card__line--badge .badge{ font-weight:400; }

/* Stundendetails: alle Zeichen gleich groß und gleich stark. Die Linien-
   zeichen tragen genau die Stärke, mit der die Umrisse der Sammlung
   gezeichnet sind (1,5 auf dem 28er-Raster). Menütexte Regular. */
.sheet--detail .drow2__ico .dico,
.sheet--detail .drow2__ico .dico--sym,
.sheet--detail .drow2__ico .dico--linie{ width:28px; height:28px; }
.sheet--detail .drow2__ico .dico.dico--linie{ stroke-width:1.5px; fill:none; stroke:currentColor; }
.sheet--detail .drow2__ico .dico.dico--sym{ fill:currentColor; stroke:none; }
.sheet--detail .drow2__main b{ font-weight:400; font-size:18px; letter-spacing:-.005em; }

/* Raumbuchung: Raumzeichen der Sammlung */
.rzeile__ico .rzeile__sym{ width:22px; height:22px; fill:currentColor; stroke:none; }

/* Planauswahl: Zeichen der Planart statt Buchstaben */
.picker-item__ava--sym svg{ width:24px; height:24px; fill:#fff; color:#fff; }

/* Schmale Wochenspalte am Telefon: Labels eine Spur kleiner, damit beide
   Kürzel neben dem (dann gekürzten) Ort Platz finden. */
@media (max-width:699px){
  .card--supervision .sup-lab{ font-size:11.5px; gap:1px; margin-left:3px; }
}

/* =====================================================================
   Sprint 18 – Feinschliff (Ladebalken, Details, Zeichen, Reiter, Leiste)
   ===================================================================== */

/* Obere Zeile der Kachel Medium – auch dann, wenn sie als Label steht
   (geänderter Wert, offene oder abgegebene Stunde). */
/* Ausdrückliche Ausnahme: die erste Zeile (und ihr Label) Semibold 600. */
.card .card__line--primary,
.card .card__line--primary .badge,
.card .card__line--primary .badge.badge--removed,
.card .card__line--primary .badge.badge--open,
.card .card__line--primary .tok,
.card--standby.is-absent .card__line--primary,
.card--gs .card__line--primary, .card--absence .card__line--primary, .card--event .card__line--primary,
.card--holiday .card__line:first-of-type{ font-weight:600; }

/* Info- und Hausaufgabenzeichen auf der Kachel: Originalgrafik
   (abgerundetes helles Feld, graue Scheibe bzw. Haus), 14,5 px wie in iOS. */
.card__ic.card__ic--exakt{ width:14.5px; height:14.5px; }
.card .ticon.ticon--exakt,
html.is-dark .card .ticon.ticon--exakt{ display:block; width:100%; height:100%; }
.card .ticon.ticon--exakt{ fill:#f3f5f7; color:#8a96a1; }
html.is-dark .card .ticon.ticon--exakt{ fill:#36414b; color:#a3aeb9; }
.card__ecke{ right:3px; bottom:3px; gap:3px; }

/* Info in den Stundendetails: volle Scheibe mit ausgespartem „i“ (ohne
   Feld), 24 px – so groß wirkt sie wie die Linienzeichen daneben. */
.sheet--detail .drow2__ico .dico.dico--info{
  width:24px; height:24px; fill:transparent; stroke:none; color:currentColor;
}

/* Art der Stunde im Detailkopf: dezente graue Pille, normale Schreibweise */
.sheet--detail .dpill.dpill--dezent, .is-dark .sheet--detail .dpill.dpill--dezent{
  display:inline-flex; align-items:center;
  height:auto; margin:0; padding:3px 10px;
  border-radius:999px;
  background:#eceef1; color:#5f6d78;
  font-size:14px; font-weight:500; line-height:18px;
  letter-spacing:0; text-transform:none;
}
.is-dark .sheet--detail .dpill.dpill--dezent{ background:#3a3a3e; color:#c9ced3; }
.sheet--detail .dline--pill{ margin-top:6px; margin-bottom:2px; }

/* iPhone: alle Blätter (Stundendetails, Planauswahl, Schreiben, Legende)
   in voller Breite, unten bündig und höchstens 85 % hoch. Details und
   Auswahl stehen fest auf 85 %, damit sie bei Entfall wie bei voller Stunde
   gleich groß sind. svh bleibt beim Ein- und Ausblenden der Tastatur stehen. */
@media (max-width:699px){
  .sheet:not(.sheet--menu){ max-height:85vh; max-height:85svh; }
  .sheet.sheet--detail, .sheet.sheet--picker{
    left:0; right:0; width:100%;
    top:auto; bottom:0;
    height:85vh; height:85svh;
    max-height:85vh; max-height:85svh; min-height:0;
  }
  .sheet.sheet--detail{ border-radius:14px 14px 0 0; }
}
/* Stundendetails – iPad: breiteres und etwas größeres Fenster */
@media (min-width:700px){
  .sheet.sheet--detail{
    width:min(620px, 94vw);
    height:min(640px, 90vh);
    min-height:min(640px, 90vh);
    max-height:min(640px, 90vh);
  }
}

/* Reiter im Detail (mehrere Stunden zur selben Zeit): reiner Text, der
   gewählte in Schrift-Farbe mit oranger Unterstreichung; die Leiste ohne
   eigene Fläche, nur eine feine Linie darunter. */
.sheet--detail .dtabs, .is-dark .sheet--detail .dtabs{
  background:transparent;
  border-bottom:1px solid var(--d-line);
  padding:0 12px; gap:4px;
}
.sheet--detail .dtabs__t, .is-dark .sheet--detail .dtabs__t{
  position:relative;
  margin:0; padding:12px 10px 11px;
  font:500 16px/1.2 inherit; letter-spacing:0;
  color:var(--d-muted);
  border-bottom:0;
}
.sheet--detail .dtabs__t.is-on, .is-dark .sheet--detail .dtabs__t.is-on{
  color:var(--d-ink); border-bottom:0;
}
.sheet--detail .dtabs__t.is-on::after{
  content:""; position:absolute; left:10px; right:10px; bottom:-1px;
  height:2.5px; border-radius:2px 2px 0 0;
  background:var(--u-orange, #f07c00);
}

/* Segment-Schalter: graues Segment, der gewählte Teil hell und leicht
   erhaben (Erscheinungsbild, Anwesenheit). */
.seg, html.is-dark .seg{
  gap:0; padding:2px;
  border-radius:9px;
  background:#e4e6ea;
  backdrop-filter:none; -webkit-backdrop-filter:none;
  box-shadow:none;
}
html.is-dark .seg{ background:#2c2c30; }
.seg button{
  border-radius:7px; padding:5px 12px;
  font-weight:500; color:var(--c-ink);
}
.seg button.is-on{
  background:#fff; color:var(--c-ink);
  box-shadow:0 1px 2px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04);
}
html.is-dark .seg button.is-on{ background:#636366; color:#fff; box-shadow:0 1px 2px rgba(0,0,0,.4); }
.dsub__seg, .sheet--detail .dsub__seg{ background:#e4e6ea; padding:2px; border-radius:9px; gap:0; }
.is-dark .dsub__seg, .is-dark .sheet--detail .dsub__seg{ background:#2c2c30; }
.dsub__seg button, .sheet--detail .dsub__seg button{ border-radius:7px; color:var(--c-ink); }
.dsub__seg button.is-active, .sheet--detail .dsub__seg button.is-active{
  background:#fff; color:var(--c-ink);
  box-shadow:0 1px 2px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04);
}
.is-dark .dsub__seg button.is-active, .is-dark .sheet--detail .dsub__seg button.is-active{ background:#636366; color:#fff; }

/* Untere Leiste am Telefon wie in der Vorlage: schwebende Kapsel, vier
   gleich breite Reiter mit etwas Rand innen, große Zeichen, die Auswahl als
   breite graue Kapsel mit dunkler, kräftigerer Schrift. */
@media (max-width:819px){
  .tabbar{
    left:21px; right:21px;
    height:59px;
    padding:0 10px;
    bottom:max(8px, calc(var(--sab) - 13px));
  }
  .tab{ gap:2px; }
  .tab .ico{ width:28px; height:28px; }
  .tab > span{ font-size:11.5px; font-weight:600; letter-spacing:-.01em; white-space:nowrap; }
  .tab.is-active > span{ font-weight:700; }
  .tab.is-active, html.is-dark .tab.is-active{ color:var(--c-ink); }
  html.is-dark .tab.is-active{ color:#fff; }
  .tab.is-active::before{ inset:3.5px -9px; background:#e6e8eb; box-shadow:none; }
  html.is-dark .tab.is-active::before{ background:rgba(255,255,255,.13); box-shadow:none; }
}

/* Schüler*innen-Liste: größere Schrift (Name 18 px, Zeilen darunter 14 px) */
.att__main b, .sheet--detail .att__main b{ font-size:18px; line-height:1.25; }
.att__tag, .att__before, .att__state, .att__duty,
.sheet--detail .att__tag, .sheet--detail .att__before, .sheet--detail .att__state, .sheet--detail .att__duty{ font-size:14px; }

/* Ferien: Bezeichnung größer, darf umbrechen (mehrzeilig, mittig). */
.card--holiday .card__line, .card--holiday .card__line:first-of-type{
  font-size:15px; line-height:18px;
  white-space:normal; overflow:visible; text-overflow:clip;
  overflow-wrap:break-word; word-break:normal; hyphens:auto;
}

/* =====================================================================
   Sprint 20 — Gleichstand mit der iOS-App
   ===================================================================== */

/* iPhone: Stundendetails randlos über die volle Breite und 90 % hoch.
   Oben bleiben die runden Ecken, seitlich und unten liegt das Blatt
   bündig am Bildschirmrand. Die Auswahl und die übrigen Blätter bleiben
   bei 85 %. */
@media (max-width:699px){
  .sheet.sheet--detail{
    left:0; right:0; width:100%; margin:0;
    height:90vh; height:90svh;
    max-height:90vh; max-height:90svh;
    border-left:0; border-right:0; border-bottom:0;
  }
}

/* Symbole in Menüs: schwarz im hellen, weiß im dunklen Modus — wie die
   Systemmenüs von iOS. Der Haken der laufenden Ansicht bleibt orange. */
.menu-item__ico, .dmenu .ico, .dmenu button .uic{ color:#000; }
html.is-dark .menu-item__ico, html.is-dark .dmenu .ico, html.is-dark .dmenu button .uic{ color:#fff; }

/* Planauswahl-Knopf: in der Mitte der Kopfzeile, Schrift minimal größer. */
/* Die beiden Außenspalten teilen sich den freien Platz zu gleichen
   Teilen; jede ist mindestens so breit wie ihr Knopf. Damit steht der
   Titel genau auf der Bildschirmmitte. Nur wenn ein sehr langer Name
   sonst gekürzt würde, rückt er ein Stück zur Seite, statt „…“ zu zeigen. */
.topbar{
  grid-template-columns:minmax(max-content, 1fr) minmax(0, max-content) minmax(max-content, 1fr);
  column-gap:4px;
}
.topbar > #btnSwitchEntity{ justify-self:start; }
.topbar > .topbar__actions{ justify-self:end; }
.topbar__title{ font-size:18px; max-width:100%; padding-left:0; padding-right:0; gap:4px; }
@media (min-width:820px){
  /* Tablet: der Titel steht in der zweiten Zeile — über die ganze Breite,
     damit er auf die Bildschirmmitte zentriert ist. */
  .topbar{ grid-template-areas:"l c r" "t t t"; }
}

/* Mehrere Stunden zur selben Zeit: größere Reiter im Detail. Die
   Kurzschreibweise „font: … inherit“ war ungültig und fiel ganz weg. */
.sheet--detail .dtabs, .is-dark .sheet--detail .dtabs{ display:flex; align-items:stretch; }
.sheet--detail .dtabs__t, .is-dark .sheet--detail .dtabs__t{
  display:inline-flex; align-items:center; justify-content:center;
  flex:0 0 auto; box-sizing:border-box;
  min-width:64px; height:44px; padding:0 12px;
  font-family:inherit; font-size:17px; font-weight:500; line-height:1;
}
.sheet--detail .dtabs__t.is-on, .is-dark .sheet--detail .dtabs__t.is-on{ font-weight:600; }
.sheet--detail .dtabs__t.is-on::after{ left:8px; right:8px; height:3px; }

/* Aufsichten tragen keine Uhrzeiten — auch nicht, wenn die Uhrzeiten auf
   den Karten eingeschaltet sind (Tages- wie Wochenansicht). */
body.show-card-times .card--supervision .card__times{ display:none; }

/* Profil: Schalter mit zweiter Zeile (Benachrichtigungen) */
.row__txt{ display:flex; flex-direction:column; min-width:0; }
.row__txt small{ font-size:12.5px; color:var(--c-muted); margin-top:2px; line-height:1.25; }
.row--switch input:disabled ~ .switch{ opacity:.45; }

/* =====================================================================
   Sprint 21
   ===================================================================== */

/* Reiter paralleler Stunden: Unterstreichung dunkelgrau (im Dunkeln
   weiß) statt orange; der Reitertext wird nie durchgestrichen – auch
   nicht bei einer entfallenen Stunde. */
.sheet--detail .dtabs__t.is-on::after{ background:#3d4852; }
html.is-dark .sheet--detail .dtabs__t.is-on::after{ background:#fff; }
.sheet--detail .dtabs__t, .sheet--detail .dtabs__t *,
.is-dark .sheet--detail .dtabs__t, .is-dark .sheet--detail .dtabs__t *{ text-decoration:none !important; }

/* Art der Stunde wie im Original: graue Pille in Großbuchstaben rechts
   neben dem Fach (Prüfung) bzw. dem Anlass (Veranstaltung). */
.sheet--detail .dline--mitpill{ display:flex; align-items:center; gap:14px; margin-top:6px; }
.sheet--detail .dline--mitpill .dline__txt{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sheet--detail .dpill.dpill--art, .is-dark .sheet--detail .dpill.dpill--art{
  display:inline-flex; align-items:center; flex:0 0 auto;
  height:23px; margin:0; padding:0 10px;
  border-radius:999px;
  background:#7b8794; color:#fff;
  font-size:14.5px; font-weight:500; line-height:1; letter-spacing:.03em;
  text-transform:uppercase;
}
.is-dark .sheet--detail .dpill.dpill--art{ background:#5d6873; color:#f2f3f4; }
.sheet--detail .dline--pill{ margin-top:6px; margin-bottom:2px; }

/* Detailtexte eine Spur kräftiger: dunklere Grautöne, Zeilentitel und
   Überschrift minimal fetter. */
.sheet--detail .dtitle, .sheet--detail .dline--big{ font-weight:450; color:#1f2a33; }
html.is-dark .sheet--detail .dtitle, html.is-dark .sheet--detail .dline--big{ color:#f4f5f6; }
.sheet--detail .dline--grau{ color:#566370; font-weight:430; }
html.is-dark .sheet--detail .dline--grau{ color:#b9c0c6; }
.sheet--detail .drow2__main b{ font-weight:450; color:#1f2a33; }
html.is-dark .sheet--detail .drow2__main b{ color:#f4f5f6; }
.sheet--detail .drow2__main span{ color:#4f5c67; font-weight:430; }
html.is-dark .sheet--detail .drow2__main span{ color:#bcc3c9; }
.sheet--detail .drow2__ico{ color:#5f6c77; }
html.is-dark .sheet--detail .drow2__ico{ color:#b3bbc2; }
.dsub__read{ color:#1f2a33; }
html.is-dark .dsub__read{ color:#f2f3f4; }

/* Link zum Online-Unterricht (Lehrkräfte) */
.sheet--detail .drow2.drow2--link{ display:grid; grid-template-columns:30px 1fr auto; align-items:center; gap:12px; min-height:52px; }
.sheet--detail .dlink{
  width:100%; min-width:0; box-sizing:border-box;
  height:40px; padding:0 12px;
  border:1px solid var(--d-line, #dedee0); border-radius:10px;
  background:transparent; color:var(--d-ink, #1f2a33);
  font:inherit; font-size:16px;
}
.sheet--detail .dlink:focus{ outline:none; border-color:#7b8794; }
.sheet--detail .dlink__go{ display:grid; place-items:center; width:36px; height:36px; color:var(--d-ink-2, #6b7a86); }
.sheet--detail .dlink__go .ico{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.dsub__hinweis{
  margin:4px 0 12px; padding:10px 12px; border-radius:10px;
  background:#eef1f4; color:#3f4b55; font-size:14.5px; line-height:1.4;
}
html.is-dark .dsub__hinweis{ background:#2f3338; color:#d3d8dc; }

/* Videosymbol oben rechts auf der Kachel: Stunde findet online statt. */
.card .card__video{ position:absolute; top:3px; right:3px; width:13px; height:13px; pointer-events:none; }
.card .card__video .ticon--video{ display:block; width:13px; height:13px; fill:none; stroke:#6b7a86; stroke-width:1.9; stroke-linejoin:round; }
html.is-dark .card .card__video .ticon--video{ stroke:#b3bbc2; }
.card.has-video .card__line:first-child{ padding-right:13px; }

/* Raumänderung auf der Kachel: grüne Plakette einen Tick größer. */
.card .badge.badge--raum:not(.badge--removed){ padding:1px 3.4px 1px; border-radius:2.5px; font-size:1.04em; }

/* Aufsichtsvertretung: Ort und ganz rechts das grüne „…“, kein Label. */
.card--supervision.is-sub,
.card--supervision.is-absent{ padding-right:21px; }
.card--supervision.is-sub .sup-menu,
.card--supervision.is-absent .sup-menu{ display:grid !important; right:3px; }

/* ---- Sprechtag (Startseite → eigene Liste) ----------------------------
   iOS-Aufbau: Zusammenfassung als Karte, grauer Segmentschalter, die
   Zeitfenster als gruppierte Liste (Uhrzeit groß, Status-Punkt, Name),
   Wischen/Tippen für Sperren, Freigeben, Absagen; Eltern sehen je
   Lehrkraft eine Karte mit den freien Zeiten als Chips. */
.screen--list.is-spt #lstFilter, .screen--list.is-spt .lstsearch, .screen--list.is-spt #lstFilterBar{ display:none !important; }
.screen--list.is-spt .lsthead__when b{ max-width:62vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin:0 auto; }
.spt{
  --spt-grp:#ffffff; --spt-ink:#1c1c1e; --spt-ink2:#6c6c70; --spt-muted:#8e8e93; --spt-line:rgba(60,60,67,.18);
  --spt-frei:#34c759; --spt-frei-ink:#1f8a3e; --spt-geb:#ff9500; --spt-geb-ink:#c76a00; --spt-sperr:#aeaeb2;
  --spt-seg:rgba(118,118,128,.12); --spt-seg-on:#ffffff; --spt-chip:rgba(52,199,89,.12);
  display:flex; flex-direction:column; gap:0; padding-bottom:12px;
}
html.is-dark .spt{
  --spt-grp:#1c1c1e; --spt-ink:#f2f2f7; --spt-ink2:#aeaeb2; --spt-muted:#8e8e93; --spt-line:rgba(84,84,88,.55);
  --spt-frei:#30d158; --spt-frei-ink:#5fe08a; --spt-geb:#ff9f0a; --spt-geb-ink:#ffb340; --spt-sperr:#636366;
  --spt-seg:rgba(118,118,128,.24); --spt-seg-on:#636366; --spt-chip:rgba(48,209,88,.16);
}
.spt__laden{ height:120px; border-radius:14px; background:var(--spt-grp); opacity:.6; animation:sptPuls 1.2s ease-in-out infinite alternate; }
@keyframes sptPuls{ to{ opacity:.25; } }

/* Zusammenfassung */
.spt__kopf{ background:var(--spt-grp); border-radius:14px; padding:14px 16px; color:var(--spt-ink); display:flex; flex-direction:column; gap:10px; }
.spt__kopfZeile{ display:grid; grid-template-columns:52px 1fr; gap:14px; align-items:center; }
.spt__kal{ width:52px; height:56px; border-radius:12px; background:color-mix(in srgb, var(--spt-ink) 6%, transparent); display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:hidden; }
.spt__kal i{ font-style:normal; font-size:11.5px; font-weight:600; color:#ff3b30; text-transform:uppercase; letter-spacing:.04em; }
.spt__kal b{ font-size:24px; font-weight:500; line-height:1.05; font-variant-numeric:tabular-nums; }
.spt__kopfText{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.spt__kopfText > b{ font-size:18px; font-weight:600; line-height:1.25; }
.spt__kopfText > span{ display:flex; align-items:center; gap:6px; font-size:14.5px; color:var(--spt-ink2); }
.spt__kopfText .ico{ width:15px; height:15px; flex:0 0 auto; stroke-width:1.7; }
.spt__phase{ align-self:flex-start; display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px;
  background:color-mix(in srgb, var(--spt-ink) 7%, transparent); color:var(--spt-ink2); font-size:13px; font-weight:500; }
.spt__phase i{ width:7px; height:7px; border-radius:50%; background:var(--spt-muted); }
.spt__phase--anmeldung{ background:var(--spt-chip); color:var(--spt-frei-ink); }
.spt__phase--anmeldung i{ background:var(--spt-frei); }
.spt__phase--einladung i{ background:var(--spt-geb); }
.spt__phase--abgesagt{ background:rgba(255,59,48,.12); color:#d70015; }
.spt__phase--abgesagt i{ background:#ff3b30; }
.spt__hinweis{ margin:0; padding:9px 12px; border-radius:10px; background:color-mix(in srgb, var(--spt-ink) 5%, transparent); color:var(--spt-ink2); font-size:14px; line-height:1.4; }
.spt__hinweis--frei{ margin-top:12px; background:var(--spt-grp); }
.spt__hinweis--rot{ background:rgba(255,59,48,.12); color:#c4000f; }
html.is-dark .spt__hinweis--rot{ color:#ff8a80; }

/* Segmentschalter */
.spt__seg{ display:grid; grid-template-columns:repeat(3, 1fr); gap:0; margin:16px 0 4px; padding:2px; border-radius:9px; background:var(--spt-seg); }
.spt__seg button{ height:30px; border:0; border-radius:7px; background:transparent; font:inherit; font-size:13.5px; font-weight:500; color:var(--spt-ink);
  display:flex; align-items:center; justify-content:center; gap:5px; transition:background .2s ease, box-shadow .2s ease; }
.spt__seg button i{ font-style:normal; font-size:12px; color:var(--spt-muted); font-variant-numeric:tabular-nums; }
.spt__seg button.is-on{ background:var(--spt-seg-on); font-weight:600; box-shadow:0 3px 8px rgba(0,0,0,.12), 0 .5px 1px rgba(0,0,0,.08); }
.spt__seg button.is-on i{ color:var(--spt-ink2); }

/* Gruppenkopf */
.spt__gruppe{ display:flex; justify-content:space-between; align-items:baseline; margin:20px 16px 7px; font-size:13px; font-weight:400; color:var(--spt-muted); text-transform:uppercase; letter-spacing:.02em; }
.spt__gruppe span{ text-transform:none; letter-spacing:0; }
.spt__fuss{ margin:8px 16px 0; font-size:12.5px; line-height:1.4; color:var(--spt-muted); }

/* Gruppierte Liste */
.spt__liste{ display:flex; flex-direction:column; background:var(--spt-grp); border-radius:12px; overflow:hidden; }
.spt-row{ position:relative; overflow:hidden; }
.spt-row + .spt-row .spt-row__front::before{ content:""; position:absolute; top:0; right:0; left:86px; height:.5px; background:var(--spt-line); }
.spt-row__front{
  position:relative; z-index:1; display:grid; grid-template-columns:58px 10px 1fr auto; align-items:center; gap:0 12px;
  min-height:62px; padding:9px 12px 9px 16px; background:var(--spt-grp); color:var(--spt-ink);
  transition:transform .32s var(--ios-spring, cubic-bezier(.2,.9,.25,1)), background .15s ease; cursor:pointer; touch-action:pan-y;
}
.spt-row__front:active{ background:color-mix(in srgb, var(--spt-ink) 6%, var(--spt-grp)); }
.spt__zeit{ display:flex; flex-direction:column; line-height:1.1; font-variant-numeric:tabular-nums; }
.spt__zeit b{ font-size:20px; font-weight:600; letter-spacing:-.01em; }
.spt__zeit small{ font-size:12px; color:var(--spt-muted); margin-top:3px; }
.spt__punkt{ width:10px; height:10px; border-radius:50%; background:var(--spt-frei); }
.spt-row--gebucht .spt__punkt{ background:var(--spt-geb); }
.spt-row--gesperrt .spt__punkt{ background:transparent; box-shadow:inset 0 0 0 2px var(--spt-sperr); }
.spt-row--gesperrt .spt__zeit b, .spt-row--gesperrt .spt__was b{ color:var(--spt-muted); }
.spt__was{ display:flex; flex-direction:column; min-width:0; gap:2px; }
.spt__was b{ font-size:16.5px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.spt-row--frei .spt__was b{ font-weight:400; color:var(--spt-frei-ink); }
.spt__was > span{ font-size:13.5px; color:var(--spt-ink2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.spt__chev{ width:18px; height:18px; color:color-mix(in srgb, var(--spt-muted) 70%, transparent); stroke-width:2; }
.spt-row__acts{ position:absolute; inset:0 0 0 auto; display:flex; }
.spt-row__act{ width:88px; border:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; font:inherit; font-size:13px; font-weight:500; color:#fff; }
.spt-row__act .ico{ width:22px; height:22px; stroke-width:1.8; }
.spt-row__act.is-rot{ background:#ff3b30; }
.spt-row__act.is-gruen{ background:#34c759; }
.spt-row__act.is-grau{ background:#8e8e93; }

/* Mehrere Sprechtage */
.spt__tag{ display:grid; grid-template-columns:44px 1fr auto; gap:12px; align-items:center; width:100%; padding:11px 12px 11px 16px; border:0; background:var(--spt-grp); color:var(--spt-ink); font:inherit; text-align:left; }
.spt__tag + .spt__tag{ border-top:.5px solid var(--spt-line); }
.spt__tagDatum{ display:flex; flex-direction:column; align-items:center; line-height:1.05; }
.spt__tagDatum b{ font-size:22px; font-weight:500; }
.spt__tagDatum i{ font-style:normal; font-size:11.5px; font-weight:600; color:#ff3b30; text-transform:uppercase; }

/* Leere Zustände */
.spt__leerBox{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:5px; padding:30px 24px; margin-top:8px; border-radius:12px; background:var(--spt-grp); color:var(--spt-ink); }
.spt__leerBox .ico{ width:34px; height:34px; color:var(--spt-muted); stroke-width:1.4; margin-bottom:4px; }
.spt__leerBox b{ font-size:16.5px; font-weight:600; }
.spt__leerBox span{ font-size:14px; color:var(--spt-ink2); line-height:1.4; max-width:300px; }
.spt__leerBox--klein{ padding:20px 20px; margin-top:0; }

/* Eltern: Karte je Lehrkraft */
.spt__karte{ background:var(--spt-grp); border-radius:12px; padding:12px 14px 14px; color:var(--spt-ink); display:flex; flex-direction:column; gap:10px; }
.spt__karte + .spt__karte{ margin-top:10px; }
.spt__karte.is-aus{ opacity:.7; }
.spt__karteKopf{ display:grid; grid-template-columns:40px 1fr auto; gap:12px; align-items:center; }
.spt__ava{ width:40px; height:40px; border-radius:50%; display:grid; place-items:center; font-size:15px; font-weight:600; color:#fff;
  background:linear-gradient(180deg, #a5abb3, #858b93); }
html.is-dark .spt__ava{ background:linear-gradient(180deg, #6e737a, #50555c); }
.spt__badge{ font-size:13px; font-weight:600; padding:4px 10px; border-radius:999px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.spt__badge--frei{ background:var(--spt-chip); color:var(--spt-frei-ink); }
.spt__badge--gebucht{ background:color-mix(in srgb, var(--spt-geb) 16%, transparent); color:var(--spt-geb-ink); }
.spt__badge--grau{ background:color-mix(in srgb, var(--spt-ink) 7%, transparent); color:var(--spt-ink2); font-weight:500; }
.spt__karteText{ margin:0; font-size:14px; color:var(--spt-ink2); display:flex; align-items:center; gap:7px; }
.spt__karteText .ico{ width:16px; height:16px; stroke-width:1.7; }
.spt__karteText--ok{ color:var(--spt-geb-ink); font-weight:500; }
.spt__einl{ font-style:normal; font-size:11.5px; font-weight:600; padding:2px 7px; margin-left:4px; border-radius:999px; background:color-mix(in srgb, var(--spt-geb) 16%, transparent); color:var(--spt-geb-ink); vertical-align:1px; }
.spt__slots{ display:grid; grid-template-columns:repeat(auto-fill, minmax(68px, 1fr)); gap:8px; }
.spt__slot{ height:36px; border:0; border-radius:9px; font:inherit; font-size:15px; font-weight:600; font-variant-numeric:tabular-nums;
  background:var(--spt-chip); color:var(--spt-frei-ink); transition:transform .12s ease, background .15s ease; }
.spt__slot:active{ transform:scale(.95); background:color-mix(in srgb, var(--spt-frei) 26%, transparent); }
.spt__slot.is-konflikt{ background:color-mix(in srgb, var(--spt-ink) 6%, transparent); color:var(--spt-muted); text-decoration:line-through; text-decoration-thickness:1px; }

/* Aktionsblatt (Bestätigungen) wie in iOS */
.iosas{ position:fixed; inset:0; z-index:90; }
.iosas__scrim{ position:absolute; inset:0; background:rgba(0,0,0,.32); opacity:0; transition:opacity .25s ease; }
.iosas__panel{ position:absolute; left:8px; right:8px; bottom:calc(var(--sab, 0px) + 8px); max-width:520px; margin:0 auto;
  display:flex; flex-direction:column; gap:8px; transform:translateY(110%); transition:transform .38s var(--ios-spring, cubic-bezier(.2,.9,.25,1)); }
.iosas.is-open .iosas__scrim{ opacity:1; }
.iosas.is-open .iosas__panel{ transform:none; }
.iosas__group{ border-radius:14px; overflow:hidden; background:rgba(242,242,247,.86); backdrop-filter:saturate(180%) blur(28px); -webkit-backdrop-filter:saturate(180%) blur(28px); }
html.is-dark .iosas__group{ background:rgba(44,44,46,.86); }
.iosas__head{ display:flex; flex-direction:column; gap:4px; padding:14px 18px 13px; text-align:center; white-space:pre-line; }
.iosas__head b{ font-size:13.5px; font-weight:600; color:#3c3c43; }
.iosas__head span{ font-size:13px; color:#6c6c70; line-height:1.35; }
html.is-dark .iosas__head b{ color:#ebebf5; }
html.is-dark .iosas__head span{ color:#aeaeb2; }
.iosas__feld{ padding:0 14px 12px; }
.iosas__feld textarea{ width:100%; box-sizing:border-box; resize:none; border:0; border-radius:10px; padding:9px 11px; font:inherit; font-size:16px;
  background:#fff; color:#1c1c1e; outline:none; }
html.is-dark .iosas__feld textarea{ background:#1c1c1e; color:#f2f2f7; }
.iosas__btn{ display:block; width:100%; height:56px; border:0; border-top:.5px solid rgba(60,60,67,.29); background:transparent; font:inherit; font-size:19px; color:#007aff; }
html.is-dark .iosas__btn{ border-top-color:rgba(84,84,88,.6); color:#0a84ff; }
.iosas__btn:active{ background:rgba(0,0,0,.06); }
.iosas__btn.is-rot{ color:#ff3b30; }
html.is-dark .iosas__btn.is-rot{ color:#ff453a; }
.iosas__btn.is-fett{ font-weight:600; }
.iosas__btn--abbr{ border:0; border-radius:14px; font-weight:600; background:#fff; }
html.is-dark .iosas__btn--abbr{ background:#2c2c2e; }
.iosas__group > .iosas__btn:first-child{ border-top:0; }
@media (prefers-reduced-motion: reduce){ .iosas__panel, .iosas__scrim{ transition:none; } }

/* Anmeldemaske beim Hinzufügen eines Profils */
.login__cancel{
  display:block; width:100%; margin-top:10px; height:46px; border-radius:12px; border:0;
  background:transparent; color:var(--c-ink-2); font:inherit; font-size:16px; font-weight:500;
}
.login.is-add .login__sso, .login.is-add .login__oder{ display:none; }

/* =====================================================================
   Info- und Hausaufgabenzeichen auf der Kachel: wieder mit dem weißen
   Feld der Originalgrafik hinter der grauen Scheibe bzw. dem Haus — flach,
   ohne Schatten, Verlauf oder Glanz. 4 px innerhalb des Kartenrands (bei
   gerahmten Karten innerhalb des Rahmens). Das Feld misst 16 px, das
   Zeichen darin gut 11 px.
   ===================================================================== */
.card .card__ecke{ right:4px; bottom:4px; gap:3px; background:none; box-shadow:none; filter:none; }
.card .card__ic.card__ic--exakt{ width:16px; height:16px; background:none; box-shadow:none; filter:none; }
.card .ticon.ticon--exakt, html.is-dark .card .ticon.ticon--exakt{ filter:none; box-shadow:none; background:none; }
.card .ticon.ticon--exakt{ fill:#ffffff; color:#8a96a1; }
html.is-dark .card .ticon.ticon--exakt{ fill:#ffffff; color:#7d8893; }

/* =====================================================================
   Gesperrte Woche (Wochenbegrenzung der Rolle): mittig ein weißer Kreis
   mit grauem Schloss (Linien) und leichtem Schatten, darunter der Text,
   kleiner der Hinweis des Servers.
   ===================================================================== */
.sperre{ position:absolute; top:0; bottom:0; z-index:6; pointer-events:none; }
.sperre__inhalt{
  position:absolute; left:0; right:0;
  display:flex; flex-direction:column; align-items:center;
  padding:0 16px; text-align:center;
}
.sperre__kreis{
  width:64px; height:64px; border-radius:50%;
  background:#ffffff; box-shadow:0 1px 6px rgba(0,0,0,.12);
  display:flex; align-items:center; justify-content:center;
  color:#8e8e93;
}
.sperre__kreis svg{ width:30px; height:30px; display:block; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.sperre__text{ margin:14px 0 0; font-size:16px; font-weight:500; line-height:1.3; color:var(--c-ink); max-width:300px; }
.sperre__hinweis{ margin:6px 0 0; font-size:13px; font-weight:400; line-height:1.35; color:var(--c-muted); max-width:300px; }
html.is-dark .sperre__kreis{ background:#2c2c2e; color:#98989f; box-shadow:0 1px 6px rgba(0,0,0,.45); }
html.is-dark .sperre__text{ color:#f2f2f7; }
html.is-dark .sperre__hinweis{ color:#a1a1a8; }

/* Ferien: Bezeichnung 1 px kleiner und eine Stufe fetter (Medium). */
.card--holiday .card__line, .card--holiday .card__line:first-of-type{ font-size:14px; line-height:17px; font-weight:500; }
.card--holiday .card__line.holiday-range{ font-size:10.5px !important; font-weight:500; }

/* =====================================================================
   iPhone: alle Blätter wie das Stundendetail — randlos über die volle
   Breite, unten bündig, 90 % hoch, oben runde Ecken und Griff.
   Planauswahl, Datum, Hilfe, Info, Neue Mitteilung und Konten.
   ===================================================================== */
.sheet__grab--phone{ display:none; }
@media (max-width:699px){
  .sheet:not(#sheetMenu){
    left:0; right:0; top:auto; bottom:0; width:100%; margin:0;
    height:90vh; height:90svh; min-height:0;
    max-height:90vh; max-height:90svh;
    border:0; border-radius:14px 14px 0 0;
    padding-top:0; padding-bottom:calc(var(--sab) + 12px);
    display:flex; flex-direction:column; overflow:hidden;
    opacity:1; transform:translateY(100%);
    transition:transform .42s var(--ios-spring);
  }
  .sheet:not(#sheetMenu).is-open{ transform:translateY(0); }
  .sheet:not(#sheetMenu):not(#sheetDetail){
    background:var(--c-bar);
    backdrop-filter:none; -webkit-backdrop-filter:none;
    box-shadow:0 -6px 30px rgba(21,33,44,.16);
  }
  html.is-dark .sheet:not(#sheetMenu):not(#sheetDetail){ background:#1c1c1e; box-shadow:0 -6px 30px rgba(0,0,0,.5); }
  .sheet:not(#sheetMenu) .sheet__grab,
  .sheet:not(#sheetMenu) .sheet__grab--phone{
    display:block; flex:0 0 auto; width:36px; height:5px; border-radius:3px; margin:6px auto 4px;
    background:color-mix(in srgb, #8b98a3 55%, transparent);
  }
  /* Datum: Kalender oben im Blatt, ohne Pfeilspitze des Popovers */
  #sheetWeek::before{ display:none; }
  #sheetWeek.sheet{ padding-left:8px; padding-right:8px; overflow-y:auto; }
  #sheetWeek .datepop__top{ padding:4px 10px 12px; }
  .sheet--legend.sheet{ overflow-y:auto; }
  .sheet--write .write__pane:not([hidden]){ flex:1 1 auto; min-height:0; }
  /* Konten (Profil wechseln): dasselbe Blatt von unten */
  .profpop{
    left:0; right:0; top:auto; bottom:0; width:100%;
    height:90vh; height:90svh; max-height:90svh;
    border:0; border-radius:14px 14px 0 0;
    padding:0 6px calc(var(--sab) + 12px);
    background:var(--c-bar); backdrop-filter:none; -webkit-backdrop-filter:none;
    box-shadow:0 0 0 100vmax rgba(0,0,0,.28), 0 -6px 30px rgba(21,33,44,.16);
    animation:profHoch .42s var(--ios-spring) both;
  }
  html.is-dark .profpop{ background:#1c1c1e; box-shadow:0 0 0 100vmax rgba(0,0,0,.45); }
  .profpop::before{ content:""; display:block; width:36px; height:5px; border-radius:3px; margin:6px auto 12px;
    background:color-mix(in srgb, #8b98a3 55%, transparent); }
  .profpop__title{ font-size:17px; font-weight:600; color:var(--c-ink); text-align:center; margin:0 0 12px; }
}
@keyframes profHoch{ from{ transform:translateY(100%); } to{ transform:none; } }
@media (prefers-reduced-motion: reduce){ .profpop{ animation:none; } }

/* Info zum Plan */
.sheet--info .info__top{ display:grid; grid-template-columns:48px 1fr 48px; align-items:center; gap:8px; padding:6px 14px 10px; flex:0 0 auto; }
.sheet--info .info__title{ text-align:center; font-size:17px; font-weight:600; color:var(--c-ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sheet--info .info__body{ flex:1 1 auto; min-height:0; overflow-y:auto; padding:6px 16px 16px; }
.info__group{ border-radius:12px; background:color-mix(in srgb, var(--c-ink) 5%, transparent); overflow:hidden; }
.info__row{ margin:0; padding:13px 16px; font-size:16.5px; color:var(--c-ink); line-height:1.35; }
.info__row + .info__row{ border-top:.5px solid color-mix(in srgb, var(--c-ink) 14%, transparent); }
.info__leer{ text-align:center; color:#8b98a3; font-size:15px; margin:30px 0; }

/* =====================================================================
   Kopfknöpfe in Blättern (Planauswahl, Info, Neue Mitteilung): derselbe
   Glas-Stil wie die Knöpfe im Stundendetail.
   ===================================================================== */
#pickerBack, #pickerClear, #infoClose, #msgClose, #msgSend{
  width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.55);
  backdrop-filter:blur(18px) saturate(180%);
  -webkit-backdrop-filter:blur(18px) saturate(180%);
  border:.5px solid rgba(255,255,255,.85);
  box-shadow:0 3px 12px rgba(20,28,36,.14), inset 0 .5px 0 rgba(255,255,255,.9);
  color:#6b7a86;
}
#pickerClear{ width:48px; height:48px; }
html.is-dark #pickerBack, html.is-dark #pickerClear, html.is-dark #infoClose, html.is-dark #msgClose, html.is-dark #msgSend{
  background:rgba(58,58,62,.5);
  border-color:rgba(255,255,255,.16);
  box-shadow:0 3px 12px rgba(0,0,0,.4), inset 0 .5px 0 rgba(255,255,255,.12);
  color:#c9ced3;
}
#pickerBack:active, #pickerClear:active, #infoClose:active, #msgClose:active, #msgSend:active{ transform:scale(.92); }
.sheet--picker .pk__top{ grid-template-columns:44px 1fr 44px; padding:8px 14px 10px; }

/* =====================================================================
   iPad: Stundendetail etwas länger — 620 breit, rund 740 hoch.
   ===================================================================== */
@media (min-width:700px){
  #sheetDetail.sheet{
    width:min(620px, 94vw);
    height:min(740px, 92vh); min-height:min(740px, 92vh); max-height:92vh;
  }
}

/* =====================================================================
   Sprint 24 – Alphabet-Register A–Z in der Planauswahl (wie iOS):
   alle Buchstaben, fehlende blass; Tippen und Ziehen springen.
   ===================================================================== */
.sheet--picker .pk__index{
  top:124px; bottom:calc(var(--sab) + 14px); right:0;
  width:26px; padding:0;
  align-items:center; gap:0;
  touch-action:none; user-select:none; -webkit-user-select:none;
}
.sheet--picker .pk__index button{
  display:block; width:26px; padding:0; margin:0;
  font-size:11px; font-weight:500; line-height:1.32;
  color:var(--u-orange, #f07d00); text-align:center;
}
.sheet--picker .pk__index button.is-leer{ color:#a9b3bb; }
html.is-dark .sheet--picker .pk__index button{ color:var(--u-orange, #f07d00); }
html.is-dark .sheet--picker .pk__index button.is-leer{ color:#5c636a; }
.sheet--picker .pk__index button.is-on{ transform:scale(1.35); }
@media (max-height:640px){ .sheet--picker .pk__index button{ font-size:9.5px; line-height:1.2; } }
/* Platz rechts, damit Häkchen und Register sich nicht überdecken. */
.sheet--picker #pickerList:not([hidden]){ padding-right:20px; }

/* =====================================================================
   Sprint 24 – Info-Zeichen nicht mehr invertiert: Kreis und „i“ als Linie
   (keine gefüllte Scheibe mit ausgespartem „i“), im Dunkelmodus auf dem
   dunklen Feld wie in der iOS-App – keine Farbumkehr, kein Filter.
   ===================================================================== */
html.is-dark .card .ticon.ticon--exakt{ fill:#36414b; color:#a3aeb9; filter:none; }
.card .ticon.ticon--exakt, .sheet--detail .drow2__ico .dico{ filter:none; mix-blend-mode:normal; }

/* =====================================================================
   Sprint 24 – Stundendetails: Auswahl „Ganzer Block“ / einzelne Stunde
   oben (Segmente wie iOS). Eintragungen gelten dann nur für die Stunde.
   ===================================================================== */
.dteil{
  flex:0 0 auto;
  display:flex; gap:2px;
  margin:2px 16px 8px; padding:2px;
  border-radius:10px;
  background:color-mix(in srgb, var(--d-ink, var(--c-ink)) 8%, transparent);
  overflow-x:auto; scrollbar-width:none;
}
.dteil::-webkit-scrollbar{ display:none; }
.dteil[hidden]{ display:none; }
.dteil button{
  flex:1 0 auto; position:relative;
  padding:7px 12px; border-radius:8px;
  font-size:14px; font-weight:400; line-height:18px; white-space:nowrap;
  color:var(--d-ink, var(--c-ink));
}
.dteil button.is-on{
  font-weight:500;
  background:#ffffff;
  box-shadow:0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04);
}
html.is-dark .dteil{ background:rgba(118,118,128,.24); }
html.is-dark .dteil button.is-on{ background:#636366; box-shadow:0 1px 3px rgba(0,0,0,.35); }
.dteil__punkt{
  display:inline-block; width:6px; height:6px; margin-left:5px; vertical-align:2px;
  border-radius:50%; background:var(--u-orange, #f07c00);
}

/* =====================================================================
   Sprint 24 – Mitteilungen wie in der iOS-App (Screenshots 142–145):
   Posteingang, Verfassen-Popover, Empfängerauswahl, Editor, Detail.
   Schrift Regular/Medium; Glas-Knöpfe und -Gruppen.
   ===================================================================== */
:root{
  --m-glas:       rgba(255,255,255,.62);
  --m-glas-rand:  rgba(255,255,255,.85);
  --m-glas-schatten: 0 6px 22px rgba(20,28,36,.14), inset 0 .5px 0 rgba(255,255,255,.9);
  --m-pop:        rgba(250,250,252,.82);
  --m-zeile:      #ffffff;
  --m-ava:        #8b9aa5;
  --m-rolle-bg:   #e3e8ec;
  --m-rolle-ink:  #44515c;
  --m-pill-bg:    #e5e5ea;
  --m-pill-ink:   #1c1c1e;
  --m-linie:      rgba(60,60,67,.18);
  --m-leise:      #8a8a8e;
}
html.is-dark{
  --m-glas:       rgba(44,44,46,.58);
  --m-glas-rand:  rgba(255,255,255,.14);
  --m-glas-schatten: 0 6px 22px rgba(0,0,0,.45), inset 0 .5px 0 rgba(255,255,255,.12);
  --m-pop:        rgba(38,38,40,.78);
  --m-zeile:      #1c1c1e;
  --m-ava:        #8a96a0;
  --m-rolle-bg:   #8e99a3;
  --m-rolle-ink:  #1c1f22;
  --m-pill-bg:    #e3e4e8;
  --m-pill-ink:   #1c1c1e;
  --m-linie:      rgba(84,84,88,.6);
  --m-leise:      #98989f;
}

/* Glas-Gruppe: mehrere runde Knöpfe in einer Kapsel */
.glasgrp{
  display:inline-flex; align-items:center; gap:2px; padding:3px;
  border-radius:999px;
  background:var(--m-glas);
  backdrop-filter:blur(22px) saturate(190%); -webkit-backdrop-filter:blur(22px) saturate(190%);
  border:.5px solid var(--m-glas-rand);
  box-shadow:var(--m-glas-schatten);
}
.glasgrp[hidden]{ display:none; }
.glasgrp > button, .glasgrp > label{
  display:grid; place-items:center; width:58px; height:50px; border-radius:999px;
  color:var(--c-ink); cursor:pointer;
}
.glasgrp > button[hidden]{ display:none; }
.glasgrp .ico{ width:25px; height:25px; stroke-width:1.5; }
.glasgrp > button:active, .glasgrp > label:active{ background:color-mix(in srgb, var(--c-ink) 10%, transparent); }

/* ---------- Posteingang ---------- */
.msgtabs{ padding:10px 18px 12px; gap:0; }
.msgtabs .msgbox{
  font-size:21px; font-weight:500; color:var(--c-ink); letter-spacing:-.01em;
  padding:2px 0;
}
.msgrow{
  margin:0; width:100%; border-radius:0;
  grid-template-columns:50px minmax(0,1fr) auto; gap:15px; align-items:start;
  padding:14px 18px 15px;
  background:var(--m-zeile);
}
.msgrow + .msgrow{ box-shadow:inset 0 .5px 0 var(--m-linie); }
.msgrow__ava{
  width:50px; height:50px; margin-top:1px; border-radius:50%;
  background:var(--m-ava); color:#fff; font-size:19px; font-weight:500;
}
.msgrow__main b{ font-size:18px; font-weight:400; color:var(--c-ink); }
.msgrow.is-unread .msgrow__main b{ font-weight:500; }
.msgrow__main span{ font-size:16px; color:var(--m-leise); margin-top:2px; }
.msgrow__main em{ font-size:16px; color:var(--c-ink-2); margin-top:2px; }
html.is-dark .msgrow__main em{ color:#d1d1d6; }
.msgrow__side{ display:flex; flex-direction:column; align-items:flex-end; gap:12px; padding-top:3px; }
.msgrow__date{ font-size:14px; color:var(--m-leise); }
.msgrow__clip{ width:22px; height:22px; color:var(--m-leise); stroke-width:1.5; transform:rotate(-8deg); margin-top:6px; }
@media (max-width:699px){
  .msgrow{ grid-template-columns:50px minmax(0,1fr) auto; gap:15px; padding:14px 18px 15px; background:var(--m-zeile); }
  .msgrow__ava{ width:50px; height:50px; font-size:19px; }
  .msgrow__main b{ font-size:18px; }
  .msgrow__main span{ font-size:16px; color:var(--m-leise); }
  .msgrow__main em{ font-size:16px; }
  html.is-dark .msgrow{ background:var(--m-zeile); }
  html.is-dark .msgrow__ava{ background:var(--m-ava); }
}

/* ---------- Popover: Verfassen („An wen …?“) und Ordner ---------- */
.msgpop{
  position:fixed; z-index:45;
  top:calc(var(--sat) + 62px); right:14px;
  width:min(300px, calc(100vw - 28px));
  padding:14px 0 8px;
  border-radius:26px;
  background:var(--m-pop);
  backdrop-filter:blur(30px) saturate(180%); -webkit-backdrop-filter:blur(30px) saturate(180%);
  border:.5px solid var(--m-glas-rand);
  box-shadow:0 18px 50px rgba(0,0,0,.22);
  transform-origin:top right;
  animation:msgPopAuf .22s var(--ios-spring, ease-out) both;
}
.msgpop[hidden]{ display:none; }
.msgpop__frage{ margin:0; padding:2px 26px 10px; font-size:15px; line-height:1.35; color:var(--m-leise); }
.msgpop button{
  display:block; width:100%; text-align:left;
  padding:11px 26px; font-size:19px; font-weight:400; color:var(--c-ink);
}
.msgpop button:active{ background:color-mix(in srgb, var(--c-ink) 8%, transparent); }
.msgpop--box{ left:14px; right:auto; top:calc(var(--sat) + 104px); width:230px; transform-origin:top left; padding:6px 0; }
.msgpop--box button.is-on{ font-weight:500; }
.msgpop--box button.is-on::after{ content:"✓"; float:right; color:var(--u-orange); font-weight:500; }
@keyframes msgPopAuf{ from{ opacity:0; transform:scale(.86); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){ .msgpop{ animation:none; } }

/* ---------- Detail ---------- */
body.is-msgread .msghead{ box-shadow:inset 0 -.5px 0 var(--m-linie); padding-bottom:12px; }
html.is-dark body.is-msgread .screen--msg{ background:#1c1c1e; }
body.is-msgread .screen--msg{ background:var(--c-bar); }
@media (max-width:819px){ body.is-msgread .tabbar{ display:none; } }
.msgread{ padding:22px 20px calc(var(--sab) + 110px); }
.msgread__head{ font-size:17px; color:var(--m-leise); align-items:baseline; }
.msgread__from b{ margin-left:9px; font-weight:400; color:var(--c-ink); }
.msgread__date{ white-space:nowrap; font-variant-numeric:tabular-nums; }
.msgread__trenn{ font-style:normal; margin:0 10px; opacity:.7; }
.msgread__subject{ margin:12px 0 22px; font-size:21px; font-weight:400; line-height:1.3; color:var(--c-ink); }
.msgread__body{ font-size:16.5px; line-height:1.45; color:var(--c-ink); }
.msgread__files{ display:flex; flex-direction:column; gap:10px; margin-top:44px; }
.msgfile{
  display:flex; align-items:center; gap:14px;
  padding:13px 20px; border-radius:999px;
  border:1.5px solid color-mix(in srgb, var(--c-ink) 32%, transparent);
  font-size:16.5px; color:var(--c-ink); text-decoration:none;
  min-width:0;
}
.msgfile span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.msgfile__ico{ flex:0 0 auto; width:26px; height:26px; stroke-width:1.4; color:var(--c-ink); }
.msgread__acts{
  position:fixed; z-index:44; right:16px; bottom:calc(var(--sab) + 18px);
}
.msgread__acts[hidden]{ display:none; }

/* ---------- Editor ---------- */
.sheet--write .write__top{ padding:10px 14px 12px; }
.sheet--write .write__title{ font-size:17px; font-weight:400; color:var(--c-ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
html.is-dark .sheet--write .write__title{ color:#c7c7cc; }
.sheet--write .write__to{
  gap:14px; padding:10px 18px;
  border-top:.5px solid var(--m-linie); border-bottom:.5px solid var(--m-linie);
}
.write__toLab{ font-size:17px; color:var(--c-ink-2); }
.write__toVal{ display:flex; gap:6px; min-width:0; overflow:hidden; }
.msgpill{
  flex:0 0 auto; padding:6px 16px; border-radius:999px;
  background:var(--m-pill-bg); color:var(--m-pill-ink);
  font-size:16px; font-weight:400; line-height:20px;
}
.msgpill--mehr{ padding:6px 12px; }
.sheet--write .write__to .ico{ width:24px; height:24px; stroke-width:1.5; color:var(--c-ink-2); }
.sheet--write .write__subject{ padding:20px 18px 6px; font-size:21px; font-weight:400; }
.sheet--write .write__body{ padding:8px 18px 12px; font-size:16.5px; }
.write__subject::placeholder, .write__body::placeholder{ color:var(--m-leise); }
.write__bar{
  flex:0 0 auto; display:flex; justify-content:space-between; align-items:center; gap:10px;
  padding:10px 16px 6px;
}
.write__opt.is-on{ color:var(--u-orange); background:color-mix(in srgb, var(--u-orange) 14%, transparent); }
.write__add input{ display:none; }

/* ---------- Empfängerauswahl ---------- */
@media (max-width:699px){
  #sheetTo.sheet{ height:calc(90svh - 14px); max-height:calc(90svh - 14px); }
}
@media (min-width:700px){
  .sheet--to{
    left:50%; right:auto; bottom:auto; top:50%;
    width:min(620px, 94vw); height:min(78vh, 780px); max-height:min(78vh, 780px);
    border-radius:20px;
    transform:translate(-50%, -46%) scale(.98); opacity:0;
  }
  .sheet--to.is-open{ transform:translate(-50%, -50%) scale(1); opacity:1; }
}
.sheet--to{ background:var(--c-bar); display:flex; flex-direction:column; overflow:hidden; }
html.is-dark .sheet--to{ background:#1c1c1e; }
.to__top{
  flex:0 0 auto; display:grid; grid-template-columns:48px 1fr 48px; align-items:center; gap:8px;
  padding:8px 14px 12px;
}
.to__title{ display:flex; flex-direction:column; align-items:center; text-align:center; line-height:1.2; }
.to__title > span{ font-size:18px; font-weight:400; color:var(--c-ink); }
.to__title small{ font-size:13.5px; color:var(--m-leise); margin-top:2px; }
#toClose, #toOk{
  width:48px; height:48px; border-radius:50%;
  background:var(--m-glas);
  backdrop-filter:blur(18px) saturate(180%); -webkit-backdrop-filter:blur(18px) saturate(180%);
  border:.5px solid var(--m-glas-rand); box-shadow:var(--m-glas-schatten);
  color:var(--c-ink);
}
#toClose:active, #toOk:active{ transform:scale(.92); }
#toOk:disabled{ opacity:.45; }
.to__filter{
  flex:0 0 auto; display:flex; gap:10px; overflow-x:auto; scrollbar-width:none;
  padding:4px 16px 14px;
}
.to__filter::-webkit-scrollbar{ display:none; }
.to__pill{
  flex:0 0 auto; display:inline-flex; align-items:center; gap:6px;
  padding:9px 18px; border-radius:999px;
  border:1.5px solid color-mix(in srgb, var(--c-ink) 28%, transparent);
  font-size:17px; font-weight:400; color:var(--c-ink); white-space:nowrap;
}
.to__pill .ico{ width:18px; height:18px; stroke-width:2; }
.to__pill.is-on{ background:var(--c-ink); color:var(--c-bar); border-color:var(--c-ink); }
html.is-dark .to__pill.is-on{ background:#f2f2f7; color:#1c1c1e; border-color:#f2f2f7; }
.to__list{
  flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
  padding:0 0 calc(var(--sab) + 96px);
}
.to__row{
  display:grid; grid-template-columns:30px 50px minmax(0,1fr); align-items:center; gap:16px;
  width:100%; padding:9px 18px; text-align:left;
}
.to__row--alle{ grid-template-columns:30px 1fr; padding:12px 18px 16px; }
.to__alle{ font-size:17.5px; color:var(--c-ink); }
.to__radio{
  width:28px; height:28px; border-radius:50%;
  border:1.5px solid color-mix(in srgb, var(--c-ink) 38%, transparent);
  display:grid; place-items:center;
}
.to__radio.is-on{ background:var(--u-orange); border-color:var(--u-orange); }
.to__radio svg{ width:18px; height:18px; fill:none; stroke:#fff; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.to__ava{
  width:50px; height:50px; border-radius:50%;
  background:var(--m-ava); color:#fff;
  display:grid; place-items:center; font-size:19px; font-weight:500;
}
.to__main{ display:flex; flex-direction:column; gap:5px; min-width:0; }
.to__name{ font-size:17.5px; color:var(--c-ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.to__rollen{ display:flex; flex-wrap:wrap; gap:6px; }
.to__rolle{
  padding:2px 10px; border-radius:999px;
  background:var(--m-rolle-bg); color:var(--m-rolle-ink);
  font-size:15px; line-height:20px; font-weight:400;
  max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.to__rolle.is-lang{ font-size:12.5px; }
.to__hint{ padding:28px 18px; text-align:center; font-size:15px; color:var(--m-leise); }
.to__search{
  position:absolute; left:18px; right:18px; bottom:calc(var(--sab) + 18px); z-index:3;
  display:flex; align-items:center; gap:10px;
  height:54px; padding:0 20px; border-radius:999px;
  background:var(--m-glas);
  backdrop-filter:blur(24px) saturate(190%); -webkit-backdrop-filter:blur(24px) saturate(190%);
  border:.5px solid var(--m-glas-rand); box-shadow:var(--m-glas-schatten);
}
.to__search .ico{ width:24px; height:24px; stroke-width:1.9; color:var(--c-ink); flex:0 0 auto; }
.to__search input{
  flex:1 1 auto; min-width:0; border:0; outline:none; background:transparent;
  font:inherit; font-size:18px; color:var(--c-ink);
}
.to__search input::placeholder{ color:var(--m-leise); }
.to__pop{
  position:absolute; z-index:5; min-width:210px; max-width:280px; max-height:46vh; overflow-y:auto;
  padding:6px 0; border-radius:18px;
  background:var(--m-pop);
  backdrop-filter:blur(30px) saturate(180%); -webkit-backdrop-filter:blur(30px) saturate(180%);
  border:.5px solid var(--m-glas-rand); box-shadow:0 14px 40px rgba(0,0,0,.25);
}
.to__pop[hidden]{ display:none; }
.to__pop button{ display:block; width:100%; text-align:left; padding:10px 18px; font-size:17px; color:var(--c-ink); }
.to__pop button.is-on{ font-weight:500; }
.to__pop button.is-on::after{ content:"✓"; float:right; color:var(--u-orange); }
/* Detail einer Mitteilung: oben nur der Zurück-Knopf (wie iOS) */
body.is-msgread .msghead__title{ visibility:hidden; }

/* =====================================================================
   Vergangene Stunden und Plaketten – Feinabgleich (Original 116/119,
   eigene iOS-App 150), nachgemessen im Maßstab 920/402
   ---------------------------------------------------------------------
   · Balken: Auch vergangen in der Fachfarbe und voll deckend (Sprint 26:
     die frühere Abschwächung auf 50 % ist zurückgenommen).
   · Schrift: Vergangen eine Spur zurückgenommen — hell Schiefer #3c4950
     statt der vollen Kachelschrift, dunkel #dee6ee statt fast Weiß.
     Fläche und Rahmen bleiben, wie sie sind.
   · Plakette: so hoch wie eine Zeile (14 px), Schrift gleich groß wie der
     Zeilentext — auch am Raum (A103 hat dieselbe Höhe und Schriftgröße wie
     LN). Die Schrift in der Plakette steht genau über der Schrift der
     übrigen Zeilen, der Kasten ragt um sein Polster nach links hinaus.
     Die Zeile darunter rückt nur um den Bruchteil eines Punkts weiter als
     zwischen zwei gewöhnlichen Zeilen.
   ===================================================================== */
.card.is-past::before{ opacity:1; }
.card.is-past .card__line,
.card.is-past .card__line--primary,
.card--change.is-past .card__line, .card--change.is-past .card__line--primary,
.card--cancelled.is-past .card__line, .card--cancelled.is-past .card__line--primary,
.card--supervision.is-sub.is-past .card__line,
.card--supervision.is-absent.is-past .card__line{ color:#3c4950; }
html.is-dark .card.is-past .card__line,
html.is-dark .card.is-past .card__line--primary,
html.is-dark .card--change.is-past .card__line,
html.is-dark .card--cancelled.is-past .card__line{ color:#dee6ee; }
/* Im Dunkeln bleibt der farbige Rahmen vergangener Stunden, aber gedeckter
   als bei einer anstehenden: Vertretung (11,123,103) statt (32,186,162),
   Entfall (215,4,70) statt (237,54,100), Prüfung (194,124,7) statt
   (252,185,53). */
html.is-dark .card--change.is-past{ border-color:#0b7b67; }
html.is-dark .card--cancelled.is-past{ border-color:#d70446; }
html.is-dark .card--exam.is-past{ border-color:#c27c07; }

@media (max-width:699px){
  .card .card__line--badge{ padding-bottom:0; }
  .card:not(.card--cancelled) .card__line--badge{ margin-left:-.77px; }
  .card--cancelled .card__line--badge{ padding-left:1.5px; }
  .card .badge.badge--raum:not(.badge--removed){ padding:0.33px 2.27px 0; border-radius:2px; font-size:inherit; }
}

/* Startseite, eigene Woche gesperrt: kleiner Schlosskreis statt Kalender,
   „Keine Stunden“ (Medium) und der Sperrsatz — wie in der iOS-App. */
.nextnone b{ font-weight:500; }
.nextnone--sperre .sperre__kreis{ display:flex; width:48px; height:48px; margin:0 auto; }
.nextnone--sperre .sperre__kreis svg{ width:24px; height:24px; }

/* =====================================================================
   Sprint 26 – Gleichstand mit der iOS-App
   ===================================================================== */

/* Zeichen unten rechts: alle 14 px, 3 px Abstand, 4 px vom Rand. */
.card .card__ecke{ right:4px; bottom:4px; gap:3px; }
.card .card__ecke .card__ic,
.card .card__ecke .card__ic.card__ic--exakt{ width:14px; height:14px; }

/* Info-Zeichen wie im Original: abgerundetes Feld in der Farbe der
   Zeichenfläche, graue Scheibe mit ausgespartem „i“ (Punkt und Schaft mit
   Fuß). Hell Feld #f3f5f7 / Scheibe #818e9c, dunkel #313d44 / #818f9a. */
.card .ticon.ticon--info{ display:block; width:100%; height:100%; }
.card .ticon--info .ticon__feld{ fill:#f3f5f7; }
.card .ticon--info .ticon__scheibe{ fill:#818e9c; }
html.is-dark .card .ticon--info .ticon__feld{ fill:#313d44; }
html.is-dark .card .ticon--info .ticon__scheibe{ fill:#818f9a; }

/* Online-Unterricht: Zeichen online_lesson.svg statt eines Raumlabels. */
.card .ticon.ticon--online{ display:block; width:100%; height:100%; fill:none; stroke:#8a96a1; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
html.is-dark .card .ticon.ticon--online{ stroke:#a3aeb9; }

/* Verlegung: Ursprung rotes Feld mit Pfeil nach rechts, Ziel grünes Feld
   mit Pfeil nach links (14 × 14 px, Radius 3 px). */
.card .ticon.ticon--verlegt{ display:block; width:100%; height:100%; }
.card .ticon--verlegt rect{ fill:#1e9e5a; stroke:none; }
.card .ticon--verlegt.ticon--von rect{ fill:#f03e3e; }
.card .ticon--verlegt path{ fill:none; stroke:#ffffff; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }

/* Raumlabel (untere Zeilen): so knapp gepolstert wie jedes andere Label,
   Schrift unverändert. */
.card .badge.badge--raum:not(.badge--removed){ padding:0.33px 2.27px 0; border-radius:2px; }

/* Pausenaufsicht mit abwesender Lehrkraft wie eine Stundenkarte mit
   abwesender Lehrkraft: Ort, daneben das abwesende Kürzel durchgestrichen
   und die Vertretung als grüne Plakette (offen: durchgestrichen in der
   Plakette). Kein Menüzeichen mehr. */
.card.card--supervision .sup-menu{ display:none !important; }
.card.card--supervision.is-sub,
.card.card--supervision.is-absent{ padding-right:3px; }
.card.card--supervision .sup-lab{ flex:0 0 auto; }
.card.card--supervision .sup-weg{ text-decoration:line-through; text-decoration-thickness:var(--strike, 1px); }
.card.card--supervision .sup-lab .tok__trenn{ font-style:normal; margin-right:1px; }
/* Abgegebene Aufsicht (jemand anderes übernimmt): durchsichtig mit
   Eckklammern wie die abgegebene Stunde. */
.card.card--supervision.is-abgegeben,
.card.card--supervision.is-abgegeben.is-past,
html.is-dark .card.card--supervision.is-abgegeben,
html.is-dark .card.card--supervision.is-abgegeben.is-past{
  background:transparent; border:0; --bw:0px; box-shadow:none; border-radius:0;
}
/* Vergangene Aufsichten verblassen nicht. */
.card.card--supervision.is-past .card__line,
.card.card--supervision.is-past .sup-lab{ color:var(--c-ink); opacity:1; }
html.is-dark .card.card--supervision.is-past .card__line,
html.is-dark .card.card--supervision.is-past .sup-lab{ color:#f4f6f8; }

/* Ferien: Texte eine Spur kleiner. */
.card--holiday .card__line, .card--holiday .card__line:first-of-type{ font-size:13px; line-height:16px; }
.card--holiday .card__line.holiday-range{ font-size:10px !important; line-height:13px; }

/* Gekürzte Kachel mit Verlegung: Pfeilzeichen und Kürzungszeichen nebeneinander. */
.card .card__ecke--cut .card__cut{ position:static; width:14px; height:14px; }
.card .card__ecke--cut .card__ic{ width:14px; height:14px; }

/* Aufsicht: vom Ort bleiben mindestens zwei Zeichen stehen. */
.card.card--supervision > .card__line{ min-width:22px; }
.card.card--supervision .sup-lab{ margin-left:4px; margin-right:0; }

/* Stundendetails, Online-Unterricht: statt des Raums das Zeichen. */
.sheet--detail .dline--online{ display:flex; align-items:center; }
.dline--online .ticon--online{ width:26px; height:26px; fill:none; stroke:#8a96a1; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
html.is-dark .dline--online .ticon--online{ stroke:#a3aeb9; }

/* Einzelstundenauswahl im Titel: Pfeil nach unten wie über dem Plan
   („ASL ⌄“), Auswahlmenü mittig darunter. */
.detail__when.is-pick b::after,
.sheet--detail .detail__when.is-pick b::after{
  content:""; display:inline-block; vertical-align:3px; margin-left:8px;
  width:6.5px; height:6.5px; border:0; opacity:.8;
  border-right:1.7px solid currentColor; border-bottom:1.7px solid currentColor;
  transform:rotate(45deg);
}
.dpart button b{ display:flex; align-items:center; gap:7px; }
.dpart .dteil__punkt{ position:static; display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--u-orange); }

/* Startseite „Genieße die Zeit!“ und Ferien – wie das Original (154):
   Fläche #313d44 (dunkel), Zeichen mittig, Titel Medium, Text darunter
   kleiner und mittig. */
.nextnone{ padding:20px 16px 22px; border-radius:8px; }
html.is-dark .nextnone{ background:#313d44; }
.nextnone .ico{ display:block; margin:0 auto; width:30px; height:30px; }
.nextnone b{ margin-top:10px; font-size:15px; line-height:1.3; font-weight:500; }
.nextnone span{ margin-top:6px; font-size:13.5px; line-height:1.35; color:var(--c-ink-2); }
/* Ferienzeile vor den nächsten Stunden: blauer Balken wie das Ferienfeld. */
.nextrow.nextrow--ferien{ cursor:default; }
.nextrow.nextrow--ferien:active{ transform:none; }
.nextrow--ferien .nextrow__bar{ background:var(--u-blue); }

/* Gesperrte Woche im Stil der Startseiten-Kachel (154): abgerundete Fläche,
   Schloss mittig, Titel Medium, Hinweis kleiner darunter. */
.sperre__inhalt{ padding:0 12px; }
.sperre .sperre__karte{
  width:100%; max-width:300px; box-sizing:border-box;
  display:flex; flex-direction:column; align-items:center;
  padding:22px 16px 24px; border-radius:8px;
  background:#eef1f4; box-shadow:none;
}
html.is-dark .sperre .sperre__karte{ background:#313d44; }
.sperre .sperre__kreis{ width:auto; height:auto; background:none; box-shadow:none; border-radius:0; color:var(--c-ink-2); }
html.is-dark .sperre .sperre__kreis{ background:none; box-shadow:none; color:#c9d1d8; }
.sperre .sperre__kreis svg{ width:30px; height:30px; stroke-width:1.5; }
.sperre .sperre__text{ margin:10px 0 0; font-size:15px; line-height:1.3; font-weight:500; }
.sperre .sperre__hinweis{ margin:6px 0 0; font-size:13.5px; line-height:1.35; color:var(--c-ink-2); }
html.is-dark .sperre .sperre__hinweis{ color:#c9d1d8; }
.nextnone--sperre .sperre__kreis{ width:auto; height:auto; background:none; box-shadow:none; color:var(--c-ink-2); }
html.is-dark .nextnone--sperre .sperre__kreis{ background:none; box-shadow:none; color:#c9d1d8; }
.nextnone--sperre .sperre__kreis svg{ width:30px; height:30px; stroke-width:1.5; }

/* „Meine Abwesenheiten“ (und Klassenleitung): größere Texte wie in der
   iOS-App – Titel 21 px, Zeilen 16 px; die Bemerkung als eigene Zeile
   (nur wenn vorhanden), darf umbrechen. */
.lstcard{ padding:12px 14px; border-radius:10px; }
.lstcard b{ font-size:21px; line-height:1.25; }
.lstcard__sub{ font-size:15px; }
.lstcard__sm{ font-size:15px; }
.lstcard__line{ margin-top:6px; font-size:16px; line-height:1.3; }
.lstcard__ico{ width:18px; height:18px; flex:0 0 18px; }
.lstcard__line--note{ align-items:flex-start; }
.lstcard__line--note .lstcard__ico{ margin-top:1px; }
.lstcard__line--note span{ min-width:0; overflow-wrap:anywhere; white-space:pre-line; }

/* Kartentexte etwas enger: Zeilenabstand 13,8 px (iPhone 13,5 px) wie in der
   iOS-App; karteZeile() rechnet mit denselben Werten. */
.card .card__line{ line-height:13.8px; }
.card.card--supervision > .card__line{ line-height:1; }
.card--holiday .card__line, .card--holiday .card__line:first-of-type{ line-height:16px; }
.card--holiday .card__line.holiday-range{ line-height:13px; }
@media (max-width:699px){
  .card .card__line{ line-height:13.5px; }
  .card.card--supervision > .card__line{ line-height:1; }
  .card--holiday .card__line, .card--holiday .card__line:first-of-type{ line-height:16px; }
  .card--holiday .card__line.holiday-range{ line-height:13px; }
}

/* =====================================================================
   Sprint 26 – Textgrößen wie in der iOS-App (Werte aus den Swift-Ansichten,
   pt ≈ px). Schrift Regular bzw. Medium; Semibold nur erste Kartenzeile,
   Plaketten und Beschriftung der Tableiste.
   ===================================================================== */
/* Tableiste: Beschriftung 12,5 px */
html body .tabbar .tab > span{ font-size:12.5px; font-weight:600; letter-spacing:-.15px; }
/* Startseite */
html body #startSchool{ font-size:32px; letter-spacing:-.6px; }
html body .daycard__wd{ font-size:13px; }
html body .daycard__num{ font-size:38px; line-height:1.05; }
html body .daycard__mon{ font-size:14px; }
html body .nextday{ font-size:14px; font-weight:500; }
html body .nextrow__main span{ font-size:15px; font-weight:400; }
html body .nextrow__main span:first-child{ font-weight:500; }
html body .nextrow__times span{ font-size:14.5px; }
html body .screen--start .row__main b{ font-size:16px; font-weight:400; }
html body .screen--start .row__main i{ font-size:13px; }
/* Stundenplan: Kopf und Zeitspalte */
html body #entityLabel{ font-size:19px; font-weight:500; }
html body #kwNo{ font-size:12px; font-weight:400; }
html body #kwMonth{ font-size:18px; font-weight:500; }
html body .dayhead__name{ font-size:12px; font-weight:400; }
html body .dayhead__num{ font-size:17px; font-weight:500; }
html body .slotrow__time{ font-size:10.5px; font-weight:500; }
html body .slotrow__no{ font-size:14.5px; font-weight:400; }
/* Stundendetails */
html body .sheet--detail #detailDate{ font-size:17px; font-weight:400; }
html body .sheet--detail #detailTime{ font-size:13px; }
html body .sheet--detail .dtitle,
html body .sheet--detail .dline--big .dline__txt{ font-size:22px; font-weight:400; }
html body .sheet--detail .dline--grau{ font-size:17px; font-weight:400; }
html body .sheet--detail .drow2__main b{ font-size:19px; font-weight:400; }
html body .sheet--detail .drow2__main span{ font-size:17px; }
html body .sheet--detail .dtabs__t{ font-size:17px; font-weight:400; }
html body .sheet--detail .dtabs__t.is-on{ font-weight:500; }
/* Mitteilungen */
html body .msgrow__ava{ font-size:20px; font-weight:400; }
html body .msgrow__main b{ font-size:18px; }
html body .msgrow__main span,
html body .msgrow__main em{ font-size:17px; }
html body .msgrow__date{ font-size:14px; }
/* Profil */
html body #profileFullName{ font-size:32px; }
html body #profileName{ font-size:17px; font-weight:400; }
html body #profileRole{ font-size:11px; font-weight:500; }
html body .screen--profile .row__main b{ font-size:16px; font-weight:400; }
html body .screen--profile .row__main i,
html body .screen--profile .row__main small{ font-size:13px; }

/* =====================================================================
   Sprint 26 – Entschuldigungen der Klassenleitung: Liste mit Wischgesten
   (rechts „Entschuldigt“, links „Nicht entschuldigt“/„Zurücknehmen“) und
   Dialog wie „Abwesenheit bearbeiten“.
   ===================================================================== */
.ent__tipp{ margin:2px 4px 10px; font-size:13px; color:var(--c-muted); }
.ent-row{ position:relative; overflow:hidden; border-radius:10px; margin-bottom:12px; }
.ent-row .ent-row__front{ position:relative; z-index:1; margin-bottom:0; touch-action:pan-y; user-select:none; -webkit-user-select:none;
  transition:transform .22s ease; cursor:pointer; }
.ent-row__acts{ position:absolute; top:0; bottom:0; display:flex; visibility:hidden; }
.ent-row__acts--l{ left:0; }
.ent-row__acts--r{ right:0; }
.ent-row.zeigt-l .ent-row__acts--l, .ent-row.zeigt-r .ent-row__acts--r{ visibility:visible; }
.ent-row__act{ width:92px; border:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
  font:inherit; font-size:13.5px; font-weight:500; color:#fff; text-align:center; padding:0 6px; }
.ent-row__act .ico{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.ent-row__act.is-gruen{ background:#34c759; }
.ent-row__act.is-rot{ background:#ff3b30; }
.ent-row__act.is-grau{ background:#8e8e93; }
/* Die Gruppe füllt bei vollem Wischen die ganze Breite: Hintergrund der ersten Aktion. */
.ent-row.zeigt-l{ background:#34c759; }
.ent-row.zeigt-r{ background:#ff3b30; }

.sheet--ent .ent__body{ padding-bottom:calc(var(--sab, 0px) + 24px); }
.ent__zeit{ margin:0 0 6px; font-size:16px; color:var(--c-ink); }
.ent__text{ margin:0 0 14px; font-size:15px; color:var(--c-ink-2); white-space:pre-line; }
.ent__seg{ display:grid; grid-template-columns:repeat(3, 1fr); gap:4px; padding:3px; margin-bottom:20px;
  border-radius:10px; background:#eceef1; }
html.is-dark .ent__seg{ background:#2a2a2e; }
.ent__segbtn{ border:0; border-radius:8px; padding:9px 4px; font:inherit; font-size:15px; font-weight:400; color:var(--c-ink); background:transparent; }
.ent__segbtn.is-on{ background:var(--c-bar); font-weight:500; box-shadow:0 1px 3px rgba(0,0,0,.12); }
html.is-dark .ent__segbtn.is-on{ background:#4a4a50; }
.ent__segbtn--ok.is-on{ color:#157d68; }
.ent__segbtn--no.is-on{ color:#c0113a; }
html.is-dark .ent__segbtn--ok.is-on{ color:#4fd1a8; }
html.is-dark .ent__segbtn--no.is-on{ color:#ff6b86; }
.sheet--ent select.dabs__pill{ appearance:none; -webkit-appearance:none; width:100%; font:inherit; }
.ent__stunden{ list-style:none; margin:0 0 18px; padding:0; }
.ent__stunde{ display:flex; gap:10px; align-items:flex-start; padding:8px 0; border-bottom:.5px solid var(--c-line); }
.ent__punkt{ width:10px; height:10px; border-radius:50%; margin-top:6px; flex:0 0 10px; background:#8b9aa5; }
.ent__punkt--ok{ background:#20a37f; }
.ent__punkt--no{ background:#e5254d; }
.ent__std{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.ent__std b{ font-size:15px; font-weight:500; color:var(--c-ink); }
.ent__std span{ font-size:14px; color:var(--c-ink-2); }
.ent__std em{ font-size:14px; font-style:normal; color:var(--c-ink-2); overflow-wrap:anywhere; }
.ent__zurueck{ display:block; width:100%; margin-top:6px; padding:13px; border:0; border-radius:12px;
  background:#eceef1; color:#c0113a; font:inherit; font-size:16px; font-weight:500; }
html.is-dark .ent__zurueck{ background:#2a2a2e; color:#ff6b86; }
html.is-dark .dpart, html.is-dark .sheet--detail .dpart{ background:#2c2c2e; box-shadow:0 10px 34px rgba(0,0,0,.6), 0 0 0 .5px rgba(255,255,255,.08); }

/* =====================================================================
   Sprint 27 – Gleichstand mit der iOS-App
   ===================================================================== */
/* Kacheln: die unteren Zeilen (ab der zweiten) einen Hauch höher, die erste bleibt (iOS: 0,8 pt) */
.card .card__line ~ .card__line{ position:relative; top:-.8px; }
/* Stundendetails: Häkchen (Lehrstoff) und Zahl der Abwesenden rechts einen Ticken kleiner */
html body .sheet--detail .drow2__done{ width:23px !important; height:23px !important; }
html body .sheet--detail .drow2__count, html.is-dark body .sheet--detail .drow2__count{
  min-width:28px; height:28px; border-radius:14px; padding:0 7px; font-size:15px;
}
html body .sheet--detail .drow2__count.is-checked::after{ top:-4px; right:-4px; width:13px; height:13px; }

/* Marker oben rechts untereinander (wie iOS: 10 px, 3 px Abstand, 4 px Rand) –
   Verlegung rot/grün mit Pfeil, Entfall rotes Dreieck, Prüfung gelber Kreis,
   Zusatzstunde grünes Feld mit „+“, Änderung grünes Viereck. Flach. */
.card .card__marker{ position:absolute; top:4px; right:4px; z-index:3; display:flex; flex-direction:column; gap:3px; pointer-events:none; }
.card .card__mk{ display:block; width:10px; height:10px; }
.card .card__mk svg{ display:block; width:10px; height:10px; }
.card .card__mk .ticon--verlegt rect{ rx:2px; }
.card .mk--entfall path{ fill:#f03e3e; stroke:#f03e3e; stroke-width:1.2; stroke-linejoin:round; }
.card .mk--pruefung circle{ fill:#f7c600; }
.card .mk--plus rect, .card .mk--aenderung rect{ fill:#1f9d55; }
.card .mk--plus path{ fill:none; stroke:#fff; stroke-width:1.8; }
html.is-dark .card .mk--entfall path{ fill:#e5484d; stroke:#e5484d; }
html.is-dark .card .mk--pruefung circle{ fill:#f2c200; }
html.is-dark .card .mk--plus rect, html.is-dark .card .mk--aenderung rect{ fill:#22a866; }
/* Zeilen auf Höhe der Marker lassen rechts Platz (Text endet sonst mit „…“ davor) */
.card.mk-1 > .card__line:nth-of-type(-n+1),
.card.mk-2 > .card__line:nth-of-type(-n+2),
.card.mk-3 > .card__line:nth-of-type(-n+3),
.card.mk-4 > .card__line:nth-of-type(-n+4){ padding-right:12px; box-sizing:border-box; }
.card.mk-1 > .card__line--scroll:nth-of-type(-n+1),
.card.mk-2 > .card__line--scroll:nth-of-type(-n+2),
.card.mk-3 > .card__line--scroll:nth-of-type(-n+3),
.card.mk-4 > .card__line--scroll:nth-of-type(-n+4){ max-width:calc(100% - 12px); padding-right:0; }

/* Stundendetails: Zeile „Verlegt“ / „Hierher verlegt“ mit Ursprung und Ziel, rechts das Verlegungszeichen */
.sheet--detail .drow2--moved{ cursor:default; }
.drow2__mk .ticon--verlegt{ display:block; width:22px; height:22px; }
.drow2__mk .ticon--verlegt rect{ fill:#1e9e5a; stroke:none; }
.drow2__mk .ticon--verlegt.ticon--von rect{ fill:#f03e3e; }
.drow2__mk .ticon--verlegt path{ fill:none; stroke:#fff; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.sheet--detail .drow2--moved .drow2__end{ padding-right:4px; }

/* Sprechtag: Status „angekündigt“ (freigegeben, Anmeldung beginnt erst später), Ort, Vorschau der Zeiten, Online-Termin */
.spt__phase--angekuendigt{ background:rgba(245,107,42,.12); color:#c2511b; }
.spt__phase--angekuendigt i{ background:#f56b2a; }
html.is-dark .spt__phase--angekuendigt{ background:rgba(245,107,42,.2); color:#ff9a66; }
.spt__hinweis--ankuendigung{ display:flex; align-items:flex-start; gap:8px; }
.spt__hinweis--ankuendigung .ico{ width:18px; height:18px; flex:0 0 18px; margin-top:1px; stroke-width:1.6; color:#f56b2a; }
.spt__slots--vorschau .spt__slot.is-vorschau{ display:flex; align-items:center; justify-content:center; opacity:.55; pointer-events:none; }
.spt__link{ display:inline-flex; align-items:center; gap:5px; margin-top:3px; font-size:13px; font-weight:500; color:var(--c-accent, #f56b2a); text-decoration:none; }
.spt__link .ico{ width:15px; height:15px; stroke-width:1.7; }
#btnSprechtag.is-angekuendigt .row__ico .ico{ color:#f56b2a; }
