/* mascal – Gestaltung. Laptop ist Hauptgerät (Woche mit sieben Tagen nebeneinander),
   Handy wird mitbedacht: Eingabefelder 16px (kein Zoom bei iOS), Knöpfe fingergroß, Höhen in dvh. */

:root {
  --hintergrund: #f3f4f7;
  --karte: #ffffff;
  --rahmen: #d9dee6;
  --text: #1f2328;
  --text-leise: #5f6b7a;
  --akzent: #1a5fb4;
  --akzent-hell: #e8f0fb;
  --rot: #d93025;
  --rot-hell: #fdecea;
  --grau: #9aa0a6;
  --schatten: 0 1px 3px rgba(20, 30, 50, 0.10);
  --radius: 10px;
  --kopf-hoehe: 60px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

body.app-seite { min-height: 100dvh; }

h1, h2, h3 { margin: 0 0 0.5em; font-weight: 650; line-height: 1.2; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; color: var(--text-leise); }
p { margin: 0 0 0.6em; }
a { color: var(--akzent); }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; background: #eef1f5; padding: 1px 5px; border-radius: 4px; }

.logo { font-weight: 800; letter-spacing: 0.02em; color: var(--akzent); font-size: 1.25rem; }
.leise { color: var(--text-leise); }
.klein { font-size: 0.85rem; }
.rot { color: var(--rot); font-weight: 600; }
.leer { color: var(--text-leise); margin: 6px 0; font-size: 0.95rem; }
.laden { padding: 40px; text-align: center; color: var(--text-leise); }
.fliesstext { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Knöpfe, Felder ---------- */

.knopf, button.tab, .menue > summary {
  font: inherit;
  font-size: 0.95rem;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rahmen);
  border-radius: 8px;
  background: var(--karte);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.knopf:hover, .menue > summary:hover { background: #f6f8fb; }
.knopf.primaer { background: var(--akzent); border-color: var(--akzent); color: #fff; font-weight: 600; }
.knopf.primaer:hover { background: #164f97; }
.knopf.gefaehrlich { color: var(--rot); border-color: #f1b3ae; }
.knopf.gefaehrlich:hover { background: var(--rot-hell); }
.knopf.klein { min-height: 36px; padding: 0 10px; font-size: 0.88rem; }
.knopf.winzig { min-height: 30px; padding: 0 8px; font-size: 0.8rem; border-radius: 6px; }
.knopf.rund { width: 44px; padding: 0; font-size: 1.4rem; }
.knopf:disabled { opacity: 0.5; cursor: default; }

input, select, textarea {
  font: inherit;
  font-size: 16px; /* verhindert Zoom bei iOS */
  color: var(--text);
  background: #fff;
  border: 1px solid var(--rahmen);
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 44px;
  width: 100%;
}
textarea { min-height: 90px; resize: vertical; line-height: 1.4; }
input[type="checkbox"], input[type="radio"] {
  width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0;
  accent-color: var(--akzent); flex: none;
}
input[type="color"] { padding: 2px; width: 60px; min-height: 40px; }
input:focus, select:focus, textarea:focus, .knopf:focus-visible, button:focus-visible {
  outline: 2px solid var(--akzent); outline-offset: 1px;
}

.feld { display: block; margin: 0 0 12px; }
.feld-label { display: block; font-size: 0.88rem; color: var(--text-leise); margin-bottom: 4px; font-weight: 600; }
.feld-hinweis { display: block; color: var(--text-leise); font-size: 0.82rem; margin-top: 4px; }
.feld-hinweis.warnung { color: #b3261e; }
.zeile-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; cursor: pointer; }
.option small { color: var(--text-leise); display: block; }

/* ---------- Anmeldeseite ---------- */

.anmelde-seite { display: flex; align-items: center; justify-content: center; min-height: 100dvh; padding: 16px; }
.anmeldung {
  width: 100%; max-width: 420px; background: var(--karte); border-radius: 14px; box-shadow: var(--schatten);
  padding: 28px 24px;
}
.anmeldung h1 { text-align: center; margin-bottom: 20px; }
.anmeldung label { display: block; margin-bottom: 14px; font-size: 0.9rem; color: var(--text-leise); font-weight: 600; }
.anmeldung label input { margin-top: 4px; }
.anmeldung .knopf { width: 100%; margin-top: 6px; }
.anmeldung .fehler { background: var(--rot-hell); color: #8f1d14; padding: 10px 12px; border-radius: 8px; }
.anmeldung .klein { text-align: center; color: var(--text-leise); margin-top: 16px; margin-bottom: 0; }

/* ---------- Kopf ---------- */

.kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  min-height: var(--kopf-hoehe); padding: 8px 16px;
  background: var(--karte); border-bottom: 1px solid var(--rahmen);
}
.kopf-links { display: flex; align-items: center; gap: 14px; }
.kopf-mitte { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.kopf-rechts { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.zeitraum { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ansichten { display: flex; background: #eef1f5; border-radius: 8px; padding: 3px; }
button.tab { min-height: 38px; border: none; background: transparent; padding: 0 14px; border-radius: 6px; color: var(--text-leise); font-weight: 600; }
button.tab.aktiv { background: #fff; color: var(--text); box-shadow: var(--schatten); }

.menue { position: relative; }
.menue > summary { list-style: none; width: 44px; padding: 0; font-size: 1.3rem; }
.menue > summary::-webkit-details-marker { display: none; }
.menue-liste {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  background: var(--karte); border: 1px solid var(--rahmen); border-radius: 10px; box-shadow: 0 8px 24px rgba(20,30,50,0.18);
  min-width: 240px; padding: 6px; display: flex; flex-direction: column;
}
.menue-info { padding: 8px 12px; color: var(--text-leise); font-size: 0.9rem; }
.menue-eintrag {
  font: inherit; text-align: left; background: none; border: none; padding: 0 12px; min-height: 44px; border-radius: 6px; cursor: pointer; color: var(--text);
}
.menue-eintrag:hover { background: #f1f4f8; }

.lade-balken { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--akzent); z-index: 100; animation: lade 1s infinite linear; }
@keyframes lade { 0% { transform: scaleX(0.2); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0.2); transform-origin: right; } }

/* ---------- Rumpf: Seitenleiste + Inhalt ---------- */

.rumpf { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100dvh - var(--kopf-hoehe)); }
.rumpf.ohne-seite { grid-template-columns: 1fr; }
.seite { padding: 16px; border-right: 1px solid var(--rahmen); background: #fafbfc; }
@media (min-width: 900px) {
  .seite { position: sticky; top: var(--kopf-hoehe); height: calc(100dvh - var(--kopf-hoehe)); overflow-y: auto; }
  .rumpf.seite-zu { grid-template-columns: 1fr; }
  .rumpf.seite-zu .seite { display: none; }
}
.seite-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.seite-kopf h2 { margin: 0; }
.ebenen-gruppe { margin-bottom: 14px; }
.ebenen-gruppe h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 10px 0 6px; }
.ebene { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.ebene-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ebene-stufe { font-size: 0.72rem; color: var(--text-leise); background: #eef1f5; border-radius: 999px; padding: 1px 7px; }
.farbpunkt { width: 14px; height: 14px; border-radius: 50%; flex: none; display: inline-block; }
.farbpunkt.gross { width: 22px; height: 22px; }
.seite-optionen { border-top: 1px solid var(--rahmen); padding-top: 12px; margin-top: 6px; }
.seite-optionen .option { align-items: flex-start; }
.seite-optionen .option input { margin-top: 2px; }
.seite-hintergrund { display: none; }

.inhalt { padding: 16px 20px 90px; min-width: 0; }

/* ---------- Heute ---------- */

.heute { max-width: 860px; margin: 0 auto; }
.zaehler { color: var(--text-leise); font-weight: 600; margin-bottom: 12px; }
.willkommen { background: var(--karte); border-radius: var(--radius); padding: 20px; box-shadow: var(--schatten); }

.tag-inhalt { display: flex; flex-direction: column; gap: 10px; }
.tag-termine { display: flex; flex-direction: column; gap: 6px; }
.tag-aufgaben { display: flex; flex-direction: column; gap: 8px; }
.heute .tag-aufgaben { border-top: 1px solid var(--rahmen); padding-top: 12px; margin-top: 6px; }

/* Termin: halb so hoch wie eine Aufgabenkarte, kräftig in Kalenderfarbe */
.termin {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  min-height: 40px; padding: 7px 12px; border-radius: 8px;
  font-weight: 600; cursor: pointer; box-shadow: var(--schatten);
}
.termin:hover { filter: brightness(1.06); }
.termin-zeit { font-variant-numeric: tabular-nums; opacity: 0.92; white-space: nowrap; }
.termin-titel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.termin-ort { font-weight: 400; opacity: 0.9; font-size: 0.9em; }
.termin.belegt {
  background: repeating-linear-gradient(135deg, #b9bec5 0 8px, #c9cdd3 8px 16px);
  color: #333; font-weight: 500; cursor: default; box-shadow: none;
}
.termin.verborgen { outline: 2px dashed rgba(255,255,255,0.7); outline-offset: -4px; }
.termin-block .termin.offen { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.termin-details {
  background: var(--karte); border: 2px solid; border-top: none; border-radius: 0 0 8px 8px; padding: 12px 14px;
}
.detail-zeile { margin: 0 0 6px; }
.aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.links { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.link { overflow-wrap: anywhere; }
.pfad { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pfad-text { overflow-wrap: anywhere; }

/* Aufgabe */
.aufgabe {
  background: var(--karte); border: 1px solid var(--rahmen); border-left: 6px solid var(--grau);
  border-radius: var(--radius); padding: 10px 12px 10px 12px; min-height: 80px; box-shadow: var(--schatten);
}
.aufgabe.ist-ausstehend { background: #fffaf9; }
.aufgabe-kopf { display: flex; align-items: flex-start; gap: 10px; }
.aufgabe-kopf .kasten { margin-top: 3px; }
.aufgabe-haupt { flex: 1; min-width: 0; cursor: pointer; }
.aufgabe-titelzeile { display: flex; align-items: center; gap: 8px; }
.aufgabe-titel { font-weight: 600; font-size: 1.02rem; overflow-wrap: break-word; }
.punkt { width: 11px; height: 11px; border-radius: 50%; background: var(--rot); flex: none; display: inline-block; box-shadow: 0 0 0 2px var(--rot-hell); }
.aufgabe-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 0.8rem; color: var(--text-leise); }
.marke { background: #eef1f5; border-radius: 999px; padding: 1px 8px; }
.marke.ausstehend { background: var(--rot-hell); color: #8f1d14; font-weight: 600; }
.prio { font-size: 0.75rem; border-radius: 4px; padding: 1px 6px; font-weight: 600; white-space: nowrap; }
.prio.hoch { background: #fdecea; color: #8f1d14; }
.prio.niedrig { background: #eef1f5; color: var(--text-leise); }
.faellig { color: var(--rot); font-size: 0.85rem; margin-top: 4px; font-weight: 600; }
.aufklappen {
  font: inherit; background: none; border: none; color: var(--text-leise); cursor: pointer;
  width: 36px; min-height: 36px; border-radius: 6px; font-size: 1rem; flex: none;
}
.aufklappen:hover { background: #f1f4f8; }
.aufklappen.klein { width: 30px; min-height: 30px; }

.ua-liste { list-style: none; margin: 8px 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ua { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 34px; font-size: 0.95rem; }
.ua .kasten.klein { width: 19px; height: 19px; }
.ua-inhalt { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; cursor: pointer; }
.ua-titel { overflow-wrap: break-word; }
.ua.erledigt .ua-titel { text-decoration: line-through; color: var(--text-leise); }
.ua.erledigt .ua-datum { color: var(--text-leise); }
.ua-datum { font-size: 0.8rem; color: var(--text-leise); background: #eef1f5; border-radius: 999px; padding: 1px 8px; }
.ua-datum.rot { background: var(--rot-hell); color: #8f1d14; font-weight: 600; }
.wissen-zeichen { color: var(--akzent); font-size: 0.9rem; }
.ua-details { flex-basis: 100%; margin: 2px 0 8px 27px; }
.aufgabe-details { margin-top: 10px; border-top: 1px dashed var(--rahmen); padding-top: 10px; }
.wissen { background: #f7f9fc; border-radius: 8px; padding: 10px 12px; }
.wissen-titel { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-leise); font-weight: 700; margin-bottom: 4px; }
.wissen-stand { margin-top: 6px; }
.schlagwoerter { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.schlagwort { background: var(--akzent-hell); color: var(--akzent); border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; }

.ausstehend-zeile {
  font: inherit; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px;
  background: var(--karte); border: 1px dashed #e3a39d; border-radius: var(--radius); cursor: pointer; color: #8f1d14; font-weight: 600; text-align: left;
}
.ausstehend-zeile .pfeil { margin-left: auto; }
.ausstehend-kopf { display: flex; align-items: center; justify-content: space-between; color: #8f1d14; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 6px; }

/* ---------- Woche ---------- */

.woche { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.tag { background: transparent; min-width: 0; }
.tag-kopf { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.tag-datum { display: flex; align-items: baseline; gap: 5px; font-weight: 700; }
.tag-wt { color: var(--text-leise); font-size: 0.85rem; text-transform: uppercase; }
.tag-nr { font-size: 1.3rem; }
.tag-monat { color: var(--text-leise); font-size: 0.85rem; }
.tag.ist-heute .tag-datum { background: var(--akzent); color: #fff; border-radius: 999px; padding: 2px 12px; }
.tag.ist-heute .tag-wt, .tag.ist-heute .tag-monat { color: #e3ecfa; }
.tag.wochenende .tag-nr { color: var(--text-leise); }
.tag-neu { display: flex; gap: 4px; }
.woche .termin { min-height: 36px; padding: 5px 8px; font-size: 0.9rem; gap: 6px; }
.woche .termin-ort { display: none; }
.woche .aufgabe { padding: 8px 6px 8px 8px; min-height: 72px; }
.woche .aufgabe-kopf { gap: 6px; }
.woche .aufgabe-titel { font-size: 0.95rem; }
.woche .aufklappen { width: 26px; }
.woche .ua-liste { margin-left: 4px; }
.woche .ua { font-size: 0.88rem; min-height: 30px; }
.woche .tag-aufgaben { margin-top: 6px; }

/* ---------- Verwaltung (Kalender, Zugänge, Erledigte) ---------- */

.verwaltung { max-width: 860px; margin: 0 auto; }
.verwaltung-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.verwaltung-kopf h2 { margin: 0; }
.kal-liste { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.kal-karte {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--karte); border: 1px solid var(--rahmen); border-radius: var(--radius); padding: 10px 14px; box-shadow: var(--schatten);
}
.kal-name { font-weight: 600; flex: 1; min-width: 120px; }
.kal-karte .aktionen { margin-top: 0; }
.erklaerung { background: var(--karte); border-radius: var(--radius); padding: 16px 20px; border: 1px solid var(--rahmen); }
.erklaerung ol { margin: 0; padding-left: 20px; }
.erklaerung li { margin-bottom: 6px; }
.farbwahl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.farbwahl button { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; padding: 0; }
.farbwahl button.gewaehlt { border-color: var(--text); box-shadow: 0 0 0 2px #fff inset; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--karte); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
.tabelle th, .tabelle td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rahmen); vertical-align: middle; }
.tabelle th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-leise); }
.tabelle tr:last-child td { border-bottom: none; }
.erledigt-zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--karte); border: 1px solid var(--rahmen); border-radius: var(--radius); padding: 8px 12px; }
.erledigt-zeile .titel { flex: 1; min-width: 160px; }
.erledigt-liste { display: flex; flex-direction: column; gap: 6px; }
.erledigt-filter { margin-bottom: 12px; max-width: 320px; }

/* ---------- Dialoge ---------- */

dialog.dlg {
  border: none; border-radius: 14px; padding: 0; width: min(600px, calc(100vw - 24px)); max-height: 92dvh;
  box-shadow: 0 20px 60px rgba(20,30,50,0.3); color: var(--text); background: var(--karte);
}
dialog.dlg.breit { width: min(760px, calc(100vw - 24px)); }
dialog.dlg::backdrop { background: rgba(20, 30, 50, 0.45); }
.dlg-kopf { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 0; }
.dlg-kopf h2 { margin: 0; }
.dlg-zu { font: inherit; font-size: 1.6rem; line-height: 1; background: none; border: none; cursor: pointer; width: 44px; height: 44px; border-radius: 8px; color: var(--text-leise); }
.dlg-zu:hover { background: #f1f4f8; }
.dlg-inhalt { padding: 12px 18px 18px; }
.dlg-knoepfe { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.dlg-knoepfe .links-aussen { margin-right: auto; }
.links-editor { margin-bottom: 12px; }
.links-liste { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.link-zeile { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 6px; align-items: center; }
.link-zeile .knopf.winzig { min-height: 40px; width: 40px; font-size: 1.1rem; }
.ua-editor { margin-bottom: 12px; }
.ua-editor-liste { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ua-editor-zeile { display: grid; grid-template-columns: 1.6fr 1fr 0.8fr auto; gap: 6px; align-items: center; }
.ua-editor-zeile.erledigt input[type="text"] { text-decoration: line-through; color: var(--text-leise); }
.ua-editor-zeile .knopf.winzig { min-height: 40px; width: 40px; font-size: 1.1rem; }
.ua-mit { background: #f7f9fc; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.ua-mit .option { margin-bottom: 6px; }
.schnellwahl { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.freigabe-zeile { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.freigabe-zeile .name { flex: 1; font-weight: 600; }
.freigabe-zeile select { width: 260px; }

/* ---------- Hinweise (Toast) ---------- */

.hinweis {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 200;
  background: #1f2328; color: #fff; padding: 12px 18px; border-radius: 10px; max-width: min(560px, calc(100vw - 32px));
  box-shadow: 0 8px 24px rgba(0,0,0,0.3); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.hinweis.sichtbar { opacity: 1; transform: translate(-50%, 0); }
.hinweis.fehler { background: #8f1d14; }

/* ---------- Handy ---------- */

.nur-handy { display: none !important; }

@media (max-width: 899px) {
  .nur-handy { display: inline-flex !important; }
  .nur-laptop { display: none !important; }
  .kopf { padding: 6px 10px; gap: 6px; }
  .kopf-links { gap: 8px; }
  .kopf-mitte { order: 3; flex-basis: 100%; min-height: 0; }
  .kopf-rechts { gap: 6px; }
  .kopf-rechts .neu-knopf { display: none; }
  .kopf-rechts .knopf { padding: 0 10px; }
}
@media (max-width: 480px) {
  .kopf-links .logo { display: none; }
  button.tab { padding: 0 11px; }
  .rumpf { grid-template-columns: 1fr; }
  .inhalt { padding: 12px 12px 110px; }
  .seite {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: min(320px, 85vw);
    transform: translateX(-100%); transition: transform 0.2s; box-shadow: 0 0 40px rgba(0,0,0,0.3); overflow-y: auto; border-right: none;
  }
  .seite.offen { transform: translateX(0); }
  body.seite-offen .seite-hintergrund { display: block; position: fixed; inset: 0; background: rgba(20,30,50,0.4); z-index: 50; }
  .woche { grid-template-columns: 1fr; gap: 18px; }
  .tag { background: var(--karte); border-radius: var(--radius); padding: 10px 12px; border: 1px solid var(--rahmen); }
  .tag.ist-heute { border-color: var(--akzent); }
  .woche .termin { min-height: 40px; font-size: 0.95rem; }
  .woche .ua-liste { margin-left: 28px; }
  .fab-leiste { position: fixed; right: 12px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 40; }
  .fab-leiste .knopf { box-shadow: 0 6px 20px rgba(20,30,50,0.3); min-height: 48px; font-weight: 700; }
  .zeile-2 { grid-template-columns: 1fr; gap: 0; }
  .link-zeile { grid-template-columns: 1fr auto; }
  .link-zeile .link-ziel { grid-column: 1 / -1; }
  .ua-editor-zeile { grid-template-columns: 1fr auto; }
  .ua-editor-zeile .ua-datum-feld, .ua-editor-zeile select { grid-column: 1 / 2; }
  .freigabe-zeile { flex-wrap: wrap; }
  .freigabe-zeile select { width: 100%; }
  .kal-karte .aktionen { flex-basis: 100%; }
}

@media (min-width: 900px) {
  .fab-leiste { display: none; }
}
