/* =============================================
   Gleisbau OS — die Oberfläche drumherum (core/os.js, Regeln: DESIGN.md)
   Tapete, Leiste links (am Handy unten), Startmenü, Sperrbildschirm (Anmelden, Keine Verbindung, Ohne Server), Konto-Fenster.
   ============================================= */

/* Symbole in festem HTML (<span data-symbol="name">, os.js): nur das Symbol zählt */
[data-symbol] { display: contents; }

/* Mit Kontextmenü (os.js): langes Drücken öffnet es, nicht das Menü des Browsers oder eine Textauswahl */
[data-kontext] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* ---------- Tapete: Gleis mit Schwellen und Oberleitung (os.js osTapete), ganz unten ---------- */
.tapete {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(70% 55% at 62% 44%, var(--tapete-c), transparent 70%), linear-gradient(180deg, var(--tapete-a) 0%, var(--tapete-b) 64%);
}
.tapete svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Eigenes Bild (theme.js setzt --tapete-bild): füllt die Fläche, ohne das Gleis */
[data-tapete="bild"] .tapete { background: var(--tapete-bild) center / cover no-repeat, var(--tapete-b); }
[data-tapete="bild"] .tapete svg { display: none; }
.tapete .t-schiene { fill: var(--tapete-linie); fill-opacity: 0.4; }
.tapete .t-schwelle { stroke: var(--tapete-linie); stroke-opacity: 0.17; stroke-linecap: round; }
.tapete .t-mast { fill: none; stroke: var(--tapete-linie); stroke-opacity: 0.3; stroke-linecap: round; }
.tapete .t-draht { fill: none; stroke: var(--tapete-linie); stroke-opacity: 0.3; }

/* ---------- Taskleiste: Start, die Programme (fenster.js), Suche, Verbindung. Am PC an einem Rand (taskleiste.js,
   data-leiste; Standard links, siehe „Taskleiste an einem Rand“), am Handy unten (siehe „Handy und Tablet“).
   --h-leiste ist ihre Dicke. Kommt ein Fenster zum Weglegen, wird sie dicker (.nimmt, fenster.js). Radius
   konzentrisch: Einträge --r-menue ---------- */
.leiste {
  position: fixed;
  top: var(--a2);
  bottom: var(--a2);
  left: var(--a2);
  z-index: 8000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--a1);
  width: var(--h-leiste);
  padding: var(--a1);
  border-radius: calc(var(--r-menue) + var(--a1));
  transition: width var(--dauer) var(--kurve), height var(--dauer) var(--kurve), box-shadow var(--dauer) var(--kurve);
}
.leiste.nimmt { width: calc(2 * var(--h-leiste)); box-shadow: inset 0 1px 0 var(--glas-licht), inset 0 0 0 2px var(--akzent), var(--schatten-glas); }
body[data-gesperrt] .leiste { display: none; }
.start, .leiste-symbol {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: var(--a2);
  width: calc(var(--h-leiste) - 2 * var(--a1));
  height: calc(var(--h-leiste) - 2 * var(--a1));
  padding: 0;
  border: 0;
  border-radius: var(--r-menue);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  cursor: default;
}
.start .kachel { --gr: 28px; }
.start:hover, .start[aria-expanded="true"], button.leiste-symbol:hover { background: var(--akzent-hover); }
.leiste-trenner { flex: none; width: 24px; height: 1px; margin: var(--a1) 0; background: var(--glas-kante); }
/* Verbindung: die Wolke auf der Achse der Leiste, der Punkt als Plakette unten rechts an ihr */
.verbindung { position: relative; }
.verbindung .punkt { position: absolute; top: calc(50% + var(--a0)); left: calc(50% + var(--a1)); width: 7px; height: 7px; border-radius: 50%; background: var(--erfolg); box-shadow: 0 0 0 2px var(--glas-licht); }
/* Uhr und Datum (os.js osUhr): ein Knopf, der den Kalender aufklappt (taskleiste.js leisteKalender); Tag und KW beim
   Darüberfahren. Am seitlichen Rand ist die Leiste schmal: das Datum dort ohne Jahr */
.leiste-uhr { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; min-height: calc(var(--h-leiste) - 2 * var(--a1)); padding: 0 var(--a1); border: 0; border-radius: var(--r-menue); background: transparent; color: var(--text); font: inherit; font-size: var(--s-klein); font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.25; white-space: nowrap; cursor: default; }
.leiste-uhr:hover, .leiste-uhr[aria-expanded="true"] { background: var(--akzent-hover); }
.leiste-uhr .datum { color: var(--text-2); font-size: var(--s-hinweis); }
.leiste-uhr .jahr { display: none; }
.leiste-kalender { width: 320px; padding: var(--a4); }   /* dazu .projektwahl: an der Leiste aufgeklappt */
.leiste-kalender .st-kal-raster { grid-auto-rows: 32px; }
/* Der gewählte Tag unter dem Monat (schreibtisch.js stKalTagHtml): eigene Einträge mit „×“, geplante Arbeiten mit der
   Farbe aus der Planung und dem Projekt, unten das Feld für einen neuen Eintrag */
.kal-tag { display: flex; flex-direction: column; gap: var(--a2); padding-top: var(--a3); border-top: 1px solid var(--glas-kante); }
.kal-tag h4 { margin: 0; font-size: var(--s-klein); font-weight: 600; }
.kal-liste { display: flex; flex-direction: column; gap: 1px; max-height: 200px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.kal-liste li { display: flex; flex: none; align-items: center; gap: var(--a2); min-height: var(--h-klein); padding: 0 var(--a1); border-radius: var(--r-knopf); font-size: var(--s-klein); }
.kal-liste li:hover { background: var(--akzent-hover); }
.kal-liste .zeit { flex: none; color: var(--text-2); font-variant-numeric: tabular-nums; }
.kal-liste .t { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kal-liste .projekt { flex: none; max-width: 40%; overflow: hidden; color: var(--text-2); white-space: nowrap; text-overflow: ellipsis; }
.kal-liste .farbe { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--kf, var(--text-2)); }
.kal-weg { display: grid; flex: none; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: var(--r-knopf); background: transparent; color: var(--text-2); opacity: 0; cursor: default; }
.kal-liste li:hover .kal-weg, .kal-weg:focus-visible { opacity: 1; }
.kal-weg:hover { background: var(--flaeche-3); color: var(--text); }
.kal-weg .ic { width: 12px; height: 12px; }
.kal-leer { margin: 0; color: var(--text-2); font-size: var(--s-klein); }
.kal-neu.feld { width: 100%; }
.verbindung .aus, .verbindung .text, .verbindung.offline .an { display: none; }
.verbindung.offline { color: var(--warnung); }
.verbindung.offline .punkt { background: var(--warnung); }
.verbindung.offline .aus { display: block; }   /* „Offline“ steht im Hinweis beim Darüberfahren */
.projekt-knopf[hidden] { display: none; }
.projekt-knopf .ordner.klein { width: 24px; height: 19px; }
.projekt-knopf > .ic { color: var(--text-2); }
.projekt-knopf:hover, .projekt-knopf[aria-expanded="true"] { background: var(--akzent-hover); }
.sicherheit { color: var(--gefahr); }   /* nur Admins, wenn das Sicherheitsprotokoll etwas meldet (admin.js spPruefen) */

/* ---------- Startmenü: Programme, Suche, zuletzt geöffnet, Konto ---------- */
.startmenue {
  position: fixed;
  top: var(--a2);
  left: calc(var(--h-leiste) + 2 * var(--a2));
  z-index: 8500;
  display: flex;
  flex-direction: column;
  gap: var(--a4);
  width: min(620px, calc(100% - 2 * var(--a2)));
  max-height: calc(100% - 2 * var(--a2));
  overflow: auto;
  padding: var(--a4);
  border-radius: var(--r-tafel);
  animation: os-seitlich var(--dauer) var(--kurve);
}
@keyframes os-seitlich { from { opacity: 0; transform: translateX(-6px) scale(0.99); } }

/* ---------- Projektordner (taskleiste.js leisteProjektWahl): die Projekte zum Wählen, an der Taskleiste aufgeklappt ---------- */
.projektwahl {
  position: fixed;
  top: var(--a2);
  left: calc(var(--h-leiste) + 2 * var(--a2));
  z-index: 8500;
  display: flex;
  flex-direction: column;
  gap: var(--a2);
  width: min(360px, calc(100% - 2 * var(--a2)));
  max-height: calc(100% - 2 * var(--a2));
  overflow: auto;
  padding: var(--a3);
  border-radius: var(--r-tafel);
  animation: os-seitlich var(--dauer) var(--kurve);
}
.projektwahl h3 { margin: 0 0 0 var(--a2); color: var(--text-2); font-size: var(--s-hinweis); font-weight: 600; }
.projektwahl .sm-zeile[hidden] { display: none; }
.projektwahl .sm-zeile[aria-current] { background: var(--akzent-hover); }
.projektwahl .sm-zeile .w { flex: 1; }
.projektwahl .haken { flex: none; color: var(--akzent); }
.suche.gross { width: 100%; }
.suche.gross > .ic { left: var(--a3); width: 17px; height: 17px; }
.suche.gross .feld { height: calc(var(--h-normal) + var(--a2)); padding-left: calc(var(--a3) + 17px + var(--a2)); border-radius: var(--r-menue); background: var(--flaeche); box-shadow: var(--schatten-klein); font-size: var(--s-titel); }
.suche.gross .feld:not(:placeholder-shown) { padding-right: calc(var(--h-klein) + var(--a2)); }
.suche.gross .suche-leeren { right: var(--a2); }
.sm-inhalt { display: flex; flex-direction: column; gap: var(--a4); }
.sm-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: var(--a0); }
.sm-prog {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--a2);
  padding: var(--a3) var(--a1) var(--a2);
  border: 0;
  border-radius: var(--r-menue);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--s-klein);
  line-height: 1.25;
  text-align: center;
  cursor: default;
}
.sm-prog span:last-child { max-width: 100%; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.sm-prog:hover { background: var(--akzent-hover); }
.sm-zeilen { display: flex; flex-direction: column; gap: 1px; }
.sm-zeile {
  display: flex;
  align-items: center;
  gap: var(--a3);
  min-height: var(--h-normal);
  padding: var(--a1) var(--a2);
  border: 0;
  border-radius: var(--r-knopf);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: default;
}
.sm-zeile:hover, .sm-zeile.erster { background: var(--akzent-hover); }
.sm-zeile .w { display: flex; flex-direction: column; min-width: 0; }
.sm-zeile .w b, .sm-zeile .w span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sm-zeile .w b { font-weight: 500; }
.sm-zeile .w span { color: var(--text-2); font-size: var(--s-klein); }
.sm-fuss { display: flex; align-items: center; gap: var(--a2); margin-top: auto; padding-top: var(--a3); border-top: 1px solid var(--glas-kante); }   /* unten, auch bei wenigen Treffern (os.js min-height) */
.sm-konto {
  display: flex;
  flex: 1;
  align-items: center;
  gap: var(--a3);
  min-width: 0;
  padding: var(--a1) var(--a2) var(--a1) var(--a1);
  border: 0;
  border-radius: var(--r-menue);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: default;
}
.sm-konto:hover { background: var(--akzent-hover); }
.sm-konto .wer { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.sm-konto .wer b { font-weight: 600; }
.sm-konto .wer span { overflow: hidden; color: var(--text-2); font-size: var(--s-klein); white-space: nowrap; text-overflow: ellipsis; }
.sm-konto .wer .geraete:empty { display: none; }

/* ---------- Sperrbildschirm: Anmelden, Keine Verbindung, Ohne Server (.view.sperre, ui.js showView) ---------- */
.view.sperre {
  position: fixed;
  inset: 0;
  z-index: 10;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--a5);
  min-height: 0;
  overflow: auto;
  padding: var(--a5) var(--a4);
  color: var(--tapete-text);
}
.view.sperre.active { display: flex; }
.sperre-uhr, .sperre-datum, .sperre-fuss { text-shadow: var(--tapete-schatten); }
.sperre-uhr { font-size: var(--s-uhr); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.sperre-datum { margin-top: calc(-1 * var(--a3)); font-size: var(--s-titel); font-weight: 500; }
.anmelde-karte { display: flex; flex-direction: column; gap: var(--a4); width: min(360px, 100%); padding: var(--a5); border-radius: var(--r-tafel); color: var(--text); }
.anmelde-kopf { display: flex; flex-direction: column; align-items: center; gap: var(--a2); text-align: center; }
.anmelde-kopf .kachel { --gr: 52px; }
.anmelde-titel { margin: 0; font-size: var(--s-ueber); font-weight: 600; letter-spacing: -0.01em; }
.anmelde-titel.klein { font-size: var(--s-titel); }
.anmelde-hinweis { margin: 0; color: var(--text-2); }
.anmelde-karte form { display: flex; flex-direction: column; gap: var(--a3); }
.sperre-fuss { margin: 0; color: var(--tapete-text); font-size: var(--s-klein); opacity: 0.75; }

/* ---------- Konto: Zwei-Faktor-Anmeldung einrichten (anmeldung.js) ---------- */
.zf-einrichten { display: flex; flex-direction: column; gap: var(--a3); }
.zf-schritte { margin: 0; padding-left: var(--a4); }
.zf-qr { align-self: center; padding: var(--a1); border-radius: var(--r-knopf); background: var(--papier); box-shadow: var(--schatten-klein); }
.zf-schluessel { text-align: center; }
.zf-schluessel code { color: var(--text); font-family: var(--schrift-mono); letter-spacing: 0.06em; user-select: all; }

/* ---------- Hinweise: Speicherstand neben der Leiste auf Höhe der Verbindung (storage.js showSaveStatus; über dem
   Fuß einer Spalte, am Handy über der Leiste rechts), Hinweis oben bei Konflikt, fehlenden Rechten, Server weg
   (storage-server.js hinweis), Projekt wird geladen (rechte.js ladeHinweis); alle als Glas ---------- */
.speicherstand {
  position: fixed;
  bottom: calc(var(--a3) + var(--h-normal) + var(--a4) + env(safe-area-inset-bottom, 0px));
  left: calc(var(--h-leiste) + var(--a4));
  z-index: 9800;
  padding: var(--a1) var(--a2);
  border-radius: var(--r-klein);
  color: var(--text-2);
  font-size: var(--s-hinweis);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dauer-lang) var(--kurve);
}
.speicherstand.an { opacity: 1; }
.server-hinweis, .lade-hinweis {
  position: fixed;
  top: var(--a3);
  left: calc(50% + (var(--h-leiste) + var(--a2)) / 2);
  display: flex;
  align-items: center;
  gap: var(--a2);
  max-width: min(720px, calc(100% - 2 * var(--a4)));
  border-radius: var(--r-menue);
  transform: translateX(-50%);
  animation: os-einblenden var(--dauer) var(--kurve);
}
.server-hinweis { z-index: 9000; padding: var(--a2) var(--a2) var(--a2) var(--a3); }
.server-hinweis > .ic { color: var(--gefahr); }
.server-hinweis .text { flex: 1; min-width: 0; }
.server-hinweis .knopf { flex: none; }
.lade-hinweis { z-index: 8800; padding: var(--a2) var(--a4); color: var(--text-2); }

/* ---------- Auswahlrahmen (os.js osAuswahlRahmen): mit der Maus auf freier Fläche aufziehen; was er schneidet, ist
   gewählt (Dateien, Schreibtisch). Liegt in der Fläche (position: relative), nimmt keine Klicks ---------- */
.auswahl-rahmen {
  position: absolute;
  z-index: 5;
  border: 1px solid var(--auswahl-rand);
  border-radius: var(--r-klein);
  background: var(--auswahl-flaeche);
  pointer-events: none;
}
.zieht-rahmen, .zieht-rahmen * { -webkit-user-select: none; user-select: none; }

/* ---------- Taskleiste an einem Rand (Einstellungen › Bedienung, taskleiste.js): rechts gespiegelt, oben und unten
   waagrecht über die ganze Breite oder als schwebende Hälfte; nur bei Bedarf hinter dem Rand. Startmenü daneben
   (leisteAnlegen), Hinweise und Speicherstand rücken mit ---------- */
@media (min-width: 900px) {
  [data-leiste="rechts"] .leiste { left: auto; right: var(--a2); }
  [data-leiste="oben"] .leiste, [data-leiste="unten"] .leiste { right: var(--a2); flex-direction: row; width: auto; height: var(--h-leiste); }
  [data-leiste="oben"] .leiste { bottom: auto; }
  [data-leiste="unten"] .leiste { top: auto; }
  [data-leiste="oben"] .leiste.nimmt, [data-leiste="unten"] .leiste.nimmt { width: auto; height: calc(1.5 * var(--h-leiste)); }
  [data-leiste="oben"] .leiste-trenner, [data-leiste="unten"] .leiste-trenner { width: 1px; height: 24px; margin: 0 var(--a1); }
  [data-leiste="oben"] .leiste-uhr, [data-leiste="unten"] .leiste-uhr { padding: 0 var(--a2); }
  [data-leiste="oben"] .leiste-uhr .jahr, [data-leiste="unten"] .leiste-uhr .jahr { display: inline; }
  [data-leiste="rechts"] :is(.startmenue, .projektwahl) { animation-name: os-seitlich-r; }
  [data-leiste="oben"] :is(.startmenue, .projektwahl) { animation-name: os-runter; }
  [data-leiste="unten"] :is(.startmenue, .projektwahl) { animation-name: os-hoch; }
  [data-leiste="rechts"] .speicherstand { right: calc(var(--h-leiste) + var(--a4)); left: auto; }
  [data-leiste="oben"] .speicherstand { top: calc(var(--h-leiste) + var(--a2) + var(--a3)); right: var(--a4); bottom: auto; left: auto; }
  [data-leiste="unten"] .speicherstand { right: var(--a4); bottom: calc(var(--h-leiste) + var(--a2) + var(--a3) + var(--zoom-platz)); left: auto; }   /* über dem Zoom unten rechts */
  [data-leiste="rechts"] :is(.server-hinweis, .lade-hinweis) { left: calc(50% - (var(--h-leiste) + var(--a2)) / 2); }
  [data-leiste="oben"] :is(.server-hinweis, .lade-hinweis), [data-leiste="unten"] :is(.server-hinweis, .lade-hinweis) { left: 50%; }
  [data-leiste="oben"] :is(.server-hinweis, .lade-hinweis) { top: calc(var(--h-leiste) + var(--a2) + var(--a3)); }
  [data-leiste="unten"] .meldungen { bottom: calc(var(--h-leiste) + var(--a2) + var(--a4)); }
  /* Hälfte (oben, unten): schwebt über den Fenstern, so lang wie ihr Inhalt, höchstens --leiste-max (taskleiste.js) */
  [data-leiste-laenge="links"] .leiste { right: auto; max-width: var(--leiste-max, 50%); }
  [data-leiste-laenge="rechts"] .leiste { left: auto; max-width: var(--leiste-max, 50%); }
  [data-leiste-laenge="links"] .task, [data-leiste-laenge="rechts"] .task { flex: 0 1 auto; }
  /* schwebt (Hälfte) oder kommt nur bei Bedarf: Speicherstand unten rechts in der Ecke, über dem Zoom */
  :is([data-leiste-laenge="links"], [data-leiste-laenge="rechts"], [data-leiste-auto]) .speicherstand { top: auto; right: var(--a4); bottom: calc(var(--a4) + var(--zoom-platz)); left: auto; }
  /* Nur bei Bedarf: hinter dem Rand, bis die Maus dorthin fährt (.zeigt, taskleiste.js) */
  [data-leiste-auto] .leiste { transition: transform var(--dauer-lang) var(--kurve), opacity var(--dauer-lang) var(--kurve), width var(--dauer) var(--kurve), height var(--dauer) var(--kurve), box-shadow var(--dauer) var(--kurve); }
  [data-leiste-auto] .leiste:not(.zeigt) { opacity: 0; pointer-events: none; }
  [data-leiste-auto][data-leiste="links"] .leiste:not(.zeigt) { transform: translateX(calc(-100% - var(--a2))); }
  [data-leiste-auto][data-leiste="rechts"] .leiste:not(.zeigt) { transform: translateX(calc(100% + var(--a2))); }
  [data-leiste-auto][data-leiste="oben"] .leiste:not(.zeigt) { transform: translateY(calc(-100% - var(--a2))); }
  [data-leiste-auto][data-leiste="unten"] .leiste:not(.zeigt) { transform: translateY(calc(100% + var(--a2))); }
  [data-leiste-auto] :is(.server-hinweis, .lade-hinweis) { top: var(--a3); left: 50%; }
}
@keyframes os-seitlich-r { from { opacity: 0; transform: translateX(6px) scale(0.99); } }
@keyframes os-runter { from { opacity: 0; transform: translateY(-6px) scale(0.99); } }

/* ---------- Handy und Tablet: die Leiste unten, waagrecht (die Breite ist knapp); das Startmenü darüber ---------- */
@media (max-width: 899px) {
  .leiste { top: auto; right: var(--a1); bottom: calc(var(--a1) + env(safe-area-inset-bottom, 0px)); left: var(--a1); flex-direction: row; width: auto; height: var(--h-leiste); }
  .leiste.nimmt { width: auto; height: calc(1.5 * var(--h-leiste)); }
  .leiste-trenner { width: 1px; height: 24px; margin: 0 var(--a1); }
  .leiste-uhr { display: none; }   /* das Handy zeigt die Uhr selbst */
  .startmenue, .projektwahl { top: auto; right: var(--a1); bottom: calc(var(--h-leiste) + 2 * var(--a1) + var(--a2) + env(safe-area-inset-bottom, 0px)); left: var(--a1); width: auto; max-height: calc(100% - var(--h-leiste) - 4 * var(--a2)); animation-name: os-hoch; }
  .server-hinweis, .lade-hinweis { top: var(--a2); left: 50%; }
  .meldungen { bottom: calc(var(--h-leiste) + 2 * var(--a1) + var(--a3) + env(safe-area-inset-bottom, 0px)); }
  .speicherstand { right: var(--a2); bottom: calc(var(--h-leiste) + 2 * var(--a1) + var(--a2) + env(safe-area-inset-bottom, 0px)); left: auto; }
}
@keyframes os-hoch { from { opacity: 0; transform: translateY(6px) scale(0.99); } }

/* ---------- Zeitwahl am Zeitfeld (os.js zeitwahl): Stunden, darunter Viertelstunden ---------- */
.zeitwahl { min-width: 0; gap: var(--a2); padding: var(--a2); }
.zeitwahl-stunden { display: grid; grid-template-columns: repeat(6, 36px); gap: 2px; }
.zeitwahl-minuten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding-top: var(--a2); border-top: 1px solid var(--glas-kante); }
.zeitwahl button {
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: var(--r-klein);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--s-klein);
  font-variant-numeric: tabular-nums;
  cursor: default;
}
.zeitwahl button:hover { background: var(--akzent-hover); }
.zeitwahl button.an { background: var(--akzent); color: var(--auf-akzent); font-weight: 600; }

/* ---------- Datumwahl am Knopf (os.js datumwahl): Monat zum Blättern, darunter die Wochen ab Montag ---------- */
.datumwahl { min-width: 0; max-width: none; gap: var(--a1); padding: var(--a2); }
.datumwahl-kopf { display: flex; align-items: center; justify-content: space-between; gap: var(--a1); }
.datumwahl-kopf b { font-weight: 600; }
.datumwahl-tage { display: grid; grid-template-columns: repeat(7, 34px); gap: 2px; }
.datumwahl-tage span { padding: var(--a1) 0; color: var(--text-2); font-size: var(--s-hinweis); text-align: center; }
.datumwahl .tag {
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--r-klein);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--s-klein);
  font-variant-numeric: tabular-nums;
  cursor: default;
}
.datumwahl .tag:hover:not(:disabled) { background: var(--akzent-hover); }
.datumwahl .tag.fremd { color: var(--text-2); }
.datumwahl .tag.heute { box-shadow: inset 0 0 0 1px var(--linie-stark); }
.datumwahl .tag.an { background: var(--akzent); color: var(--auf-akzent); font-weight: 600; }
.datumwahl .tag:disabled { opacity: 0.35; }

@media print {
  .tapete, .leiste, .startmenue { display: none; }
}
