/* Tasktracker – Grundgestaltung, passt sich an Desktop und Handy an */

:root {
  --text: #1f2328;
  --leise: #6a737d;
  --linie: #d8dee4;
  --flaeche: #f6f8fa;
  --akzent: #2f6fd6;
  --rot: #c62828;
  --orange: #e08600;
  /* Projekte = violett mit Ordner, Aufgaben = blau mit Haken-Kreis */
  --projekt: #6f42c1;
  --projekt-hell: #f1ecfb;
  --aufgabe: #2f6fd6;
  --aufgabe-hell: #eaf2fd;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: #fff;
}

.navigation {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--linie);
  background: var(--flaeche);
  overflow-x: auto;
}
.navigation .logo { font-weight: 700; margin-right: 16px; }
.navigation a {
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.navigation a.aktiv { background: var(--akzent); color: #fff; }

main { max-width: 760px; margin: 0 auto; padding: 16px; }

h1 small, h2 small { color: var(--leise); font-weight: 400; font-size: 0.6em; margin-left: 8px; }
h2 { margin-top: 32px; font-size: 1.1rem; }

.schnellerfassung { display: flex; gap: 8px; margin-bottom: 8px; }
.schnellerfassung input { flex: 1; }

input, textarea, button { font: inherit; }
input, textarea {
  padding: 8px 10px;
  border: 1px solid var(--linie);
  border-radius: 6px;
  width: 100%;
}
button {
  padding: 8px 14px;
  border: 1px solid var(--akzent);
  border-radius: 6px;
  background: var(--akzent);
  color: #fff;
  cursor: pointer;
}
button.klein { padding: 2px 8px; font-size: 0.85rem; background: #fff; color: var(--akzent); }

.zusammenfassung { color: var(--leise); margin: 8px 0 16px; }

.liste { list-style: none; padding: 0; margin: 0; }
.liste li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--linie);
}
.liste li form { margin: 0; }
.liste .titel { flex: 1; }
.liste .info { color: var(--leise); font-size: 0.85rem; white-space: nowrap; }
.liste .info.ueberfaellig { color: var(--rot); font-weight: 600; }
.liste .leer { color: var(--leise); font-style: italic; }

/* runder Haken-Knopf links in der Zeile */
.haken {
  width: 22px; height: 22px; padding: 0;
  border-radius: 50%;
  border: 2px solid var(--leise);
  background: #fff; color: #fff;
  font-size: 13px; line-height: 1;
}
.prio-hoch .haken { border-color: var(--rot); }
.prio-mittel .haken { border-color: var(--orange); }
.aufgabe.erledigt .haken { background: var(--leise); border-color: var(--leise); }
.aufgabe.erledigt .titel { text-decoration: line-through; color: var(--leise); }

/* ---------- Aufgabentabelle ---------- */
main.breit { max-width: 1400px; }

.filterleiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 4px; }
.filterleiste #suche { flex: 1 1 260px; width: auto; }
.filterleiste select { padding: 8px; border: 1px solid var(--linie); border-radius: 6px; font: inherit; max-width: 280px; }
.schalter { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.schalter input { width: auto; }

.tabellen-rahmen { overflow-x: auto; }
.aufgaben-tabelle { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.aufgaben-tabelle th, .aufgaben-tabelle td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--linie); vertical-align: top;
}
.aufgaben-tabelle th {
  position: sticky; top: 0; background: var(--flaeche);
  font-weight: 600; white-space: nowrap; user-select: none;
}
.aufgaben-tabelle th[data-sortieren] { cursor: pointer; }
.aufgaben-tabelle th[data-sortieren]:hover { color: var(--akzent); }
.aufgaben-tabelle th[data-richtung="auf"]::after { content: " ▲"; font-size: 0.7em; }
.aufgaben-tabelle th[data-richtung="ab"]::after  { content: " ▼"; font-size: 0.7em; }
.aufgaben-tabelle tbody tr:hover { background: var(--flaeche); }
.aufgaben-tabelle td form { margin: 0; }
.aufgaben-tabelle .spalte-haken { width: 36px; }
.aufgaben-tabelle .spalte-titel { font-weight: 500; min-width: 200px; }
.aufgaben-tabelle .spalte-notiz { color: var(--leise); max-width: 320px; }
.aufgaben-tabelle td.ueberfaellig { color: var(--rot); font-weight: 600; }
.aufgaben-tabelle tr.erledigt .spalte-titel { text-decoration: line-through; color: var(--leise); }
.aufgaben-tabelle tr.erledigt .haken { background: var(--leise); border-color: var(--leise); }
.aufgaben-tabelle td:nth-child(3), .aufgaben-tabelle td:nth-child(4), .aufgaben-tabelle td:nth-child(5) { white-space: nowrap; }

.schnellerfassung input[type="date"] { flex: none; width: 160px; }
.schnellerfassung select { flex: none; max-width: 260px; padding: 8px; border: 1px solid var(--linie); border-radius: 6px; font: inherit; }
.aufgaben-tabelle .spalte-titel a { color: var(--text); text-decoration: none; }
.aufgaben-tabelle .spalte-titel a:hover { color: var(--akzent); text-decoration: underline; }

/* ---------- Aufgabe bearbeiten ---------- */
.bearbeiten { display: flex; flex-direction: column; gap: 16px; }
.bearbeiten label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.9rem; }
.bearbeiten label input, .bearbeiten label select, .bearbeiten label textarea { font-weight: 400; }
.bearbeiten select { padding: 8px; border: 1px solid var(--linie); border-radius: 6px; font: inherit; }
.felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.projektwahl { border: 1px solid var(--linie); border-radius: 6px; padding: 12px; }
.projektwahl legend { font-weight: 600; font-size: 0.9rem; }
.projektliste { max-height: 260px; overflow-y: auto; margin-top: 8px; }
.projektliste label { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; padding: 3px 0; }
.projektliste label input { width: auto; }
.projektliste label.gewaehlt { font-weight: 600; }
.felder .doppelt { grid-column: span 2; }
@media (max-width: 520px) { .felder .doppelt { grid-column: auto; } }
.meldung { background: #e5f4e4; border: 1px solid #9fd49b; border-radius: 6px; padding: 10px 14px; }
.hinweis { background: #f9eeda; border: 1px solid #e8c27a; border-radius: 6px; padding: 4px 16px 14px; margin-bottom: 16px; }
.aktionen { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 32px; }
.aktionen form { margin: 0; }
.checkpunkt { flex-direction: row !important; align-items: center; gap: 8px; font-weight: 400 !important; padding: 3px 0; }
.checkpunkt input { width: auto; }
.checkpunkt input:checked + span { text-decoration: line-through; color: var(--leise); }
.aufgaben-tabelle a.gruppe { font-weight: 600; }
.aufgaben-tabelle .spalte-titel a { margin-left: 2px; }
.aufgaben-tabelle .spalte-titel .farbpunkt { display: inline-block; margin-right: 6px; }
.aufgaben-tabelle tr.archiviert td { color: var(--leise); }
.farbwahl { display: flex; align-items: center; gap: 8px; }
.farbwahl input[type="checkbox"] { width: auto; }
.farbwahl input[type="color"] { width: 60px; height: 38px; padding: 2px; }
.liste a.titel { color: var(--text); text-decoration: none; }
.liste a.titel:hover { color: var(--akzent); text-decoration: underline; }
.liste li.archiviert a.titel { color: var(--leise); }
.knopfleiste { display: flex; gap: 16px; align-items: center; }
.loeschen { margin-top: 32px; }
button.gefahr { background: #fff; color: var(--rot); border-color: var(--rot); }

.projekt-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 6px; margin: 1px 4px 1px 0;
  border-radius: 10px; background: var(--projekt-hell); color: var(--projekt);
  font-size: 0.85em; white-space: nowrap;
}
.versteckt { display: none; }

.farbpunkt { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.liste .titel.gruppe { font-weight: 600; }

.tagnavigation { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tagnavigation h1 { margin: 16px 0; text-align: center; }
textarea { resize: vertical; margin-bottom: 8px; }

/* Handy: etwas enger */
@media (max-width: 520px) {
  main { padding: 12px; }
  .liste .info { display: none; }
  .tagnavigation a { font-size: 0.85rem; }
}

/* ---------- Symbole und Unterscheidung Projekt / Aufgabe ---------- */
.symbol { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: none; }
.symbol-projekt path { fill: var(--ordnerfarbe, var(--projekt)); }
.symbol-aufgabe circle { fill: none; stroke: var(--aufgabe); stroke-width: 1.6; }
.symbol-aufgabe path { fill: none; stroke: var(--aufgabe); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.projekt-chip .symbol { width: 0.95em; height: 0.95em; }
.aufgaben-tabelle .spalte-titel .symbol-projekt { margin-right: 6px; }
h1.seitentitel-projekt { color: var(--projekt); }
h1.seitentitel-aufgabe { color: var(--aufgabe); }
h1 .symbol, h2 .symbol { width: 0.9em; height: 0.9em; }
.liste li .symbol { margin-right: 2px; }

/* Kopfband auf den Bearbeiten-Seiten */
.kopf { border-left: 6px solid; border-radius: 8px; padding: 12px 18px; margin: 8px 0 20px; }
.kopf h1 { margin: 2px 0 4px; font-size: 1.6rem; }
.kopf .art { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700;
             text-transform: uppercase; letter-spacing: 0.06em; }
.kopf .pfad { margin: 0; color: var(--leise); font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.kopf-projekt { background: var(--projekt-hell); border-color: var(--projekt); }
.kopf-projekt .art { color: var(--projekt); }
.kopf-aufgabe { background: var(--aufgabe-hell); border-color: var(--aufgabe); }
.kopf-aufgabe .art { color: var(--aufgabe); }
.rahmen-projekt button:not(.klein) { background: var(--projekt); border-color: var(--projekt); }

/* Links, die wie Knöpfe aussehen */
.knopf-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 6px;
              border: 1px solid var(--akzent); color: var(--akzent); text-decoration: none; background: #fff; }
.knopf-link:hover { background: var(--flaeche); }
.knopf-link.gefahr { border-color: var(--rot); color: var(--rot); }
.knopf-link.voll { background: var(--akzent); color: #fff; }

/* Rückfrage-Seite */
.bestaetigen { border: 1px solid var(--linie); border-radius: 8px; padding: 4px 20px 18px; }
.bestaetigen h2 { margin-top: 16px; }
.bestaetigen li { margin: 6px 0; }
.gefahr-rahmen { border-color: var(--rot); background: #fdf3f3; }
button.gefahr-voll { background: var(--rot); border-color: var(--rot); }

/* Projekttabelle: Zahlenspalten (Offen, inkl. Unterprojekte, Erledigt) mittig */
#projekt-tabelle th:nth-child(2), #projekt-tabelle td:nth-child(2),
#projekt-tabelle th:nth-child(3), #projekt-tabelle td:nth-child(3),
#projekt-tabelle th:nth-child(4), #projekt-tabelle td:nth-child(4) { text-align: center; }

/* ---------- Projektbaum ---------- */
.baum-tabelle .spalte-titel { white-space: nowrap; }
.baum-tabelle .spalte-titel > * { vertical-align: middle; }
.klapper {
  width: 20px; height: 20px; padding: 0; margin-right: 4px;
  border: none; background: none; color: var(--projekt); font-size: 14px; line-height: 20px; cursor: pointer;
}
.klapper:hover { background: var(--projekt-hell); border-radius: 4px; }
.klapper-platz { display: inline-block; width: 24px; }
.baum-tabelle tr.zeile-projekt { background: #fbfaff; }
.baum-tabelle tr.zeile-projekt:hover { background: var(--projekt-hell); }
.baum-tabelle tr.zeile-projekt .spalte-titel a { color: var(--text); font-weight: 500; }
.baum-tabelle tr.zeile-projekt .spalte-titel a.gruppe { font-weight: 700; }
.baum-tabelle .symbol-projekt { margin-right: 6px; }
.baum-tabelle .leise { color: var(--leise); }
.aufgaben-punkt {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--aufgabe); margin: 0 10px 0 5px;
}
.baum-tabelle tr.zeile-aufgabe.prio-hoch .aufgaben-punkt { background: var(--rot); }
.baum-tabelle tr.zeile-aufgabe.erledigt .aufgaben-punkt { background: var(--linie); }
.baum-tabelle tr.zeile-aufgabe.erledigt .spalte-titel a { text-decoration: line-through; color: var(--leise); }
.baum-tabelle tr.zeile-aufgabe .spalte-titel a { color: var(--text); }

/* ---------- Fixierte Kopfzeilen ----------
   Navigation bleibt oben stehen, darunter bleibt die Überschriftenzeile der Tabelle sichtbar.
   (Ein Rahmen mit overflow würde "sticky" verhindern, deshalb nur am Handy seitlich scrollen.) */
.navigation { position: sticky; top: 0; z-index: 20; height: 52px; }
.tabellen-rahmen { overflow: visible; }
.aufgaben-tabelle thead th {
  position: sticky; top: 52px; z-index: 10;
  background: var(--flaeche); box-shadow: inset 0 -1px 0 var(--linie);
}
@media (max-width: 900px) {
  .tabellen-rahmen { overflow-x: auto; max-height: calc(100vh - 140px); overflow-y: auto; }
  .aufgaben-tabelle thead th { top: 0; }
}

/* ---------- Ziehen und Ablegen im Projektbaum ---------- */
.baum-tabelle tr[draggable="true"] { cursor: grab; }
.baum-tabelle tr.wird-gezogen { opacity: 0.4; }
.baum-tabelle tr.ablage-ziel td { background: var(--projekt-hell) !important; box-shadow: inset 0 2px 0 var(--projekt), inset 0 -2px 0 var(--projekt); }
/* Ablagefläche schwebt unten im Fenster, damit die Tabelle beim Ziehen nicht verrutscht */
.ablage-oben {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30;
  border: 2px dashed var(--projekt); border-radius: 8px; padding: 14px 24px;
  text-align: center; color: var(--projekt); background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.ablage-oben.ablage-ziel { background: var(--projekt-hell); }
.ziehhinweis { font-size: 0.85rem; margin: 4px 0 8px; }
.meldung.fehler { background: #fbebeb; border-color: #e3a3a3; }
@media (max-width: 900px) { .ziehhinweis { display: none; } }

/* ---------- Einstellungen ---------- */
.navigation a.rechts { margin-left: auto; }
.einstellung { border: 1px solid var(--linie); border-radius: 8px; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.einstellung legend { font-weight: 700; padding: 0 6px; }
.schalter-zeile { flex-direction: row !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; }
.schalter-zeile input { width: auto; margin-top: 4px; }
#onedrive-felder { display: flex; flex-direction: column; gap: 8px; }
#onedrive-felder[hidden] { display: none; }
.vorschlaege { margin: 0; font-size: 0.85rem; color: var(--leise); }
.vorschlaege button { margin: 2px 4px 2px 0; }
.erklaerung { margin: 4px 0 0; color: var(--leise); font-size: 0.9rem; }
.info-tabelle th { width: 180px; position: static !important; }
.info-tabelle td, .info-tabelle th { vertical-align: top; }
.knopfleiste.wahl { flex-wrap: wrap; }
.trotzdem { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.beenden-form { margin: 0 0 0 8px; }
.beenden-form button { padding: 4px 10px; }


/* =====================================================================
   Farbiges Erscheinungsbild (dezent): Verlauf im Hintergrund, helle
   Inhaltsfläche, farbige Navigationsleiste, getönte Tabellenköpfe
   ===================================================================== */
:root {
  --verlauf: linear-gradient(135deg, #7b4fd6 0%, #3b72e0 55%, #1fb5a6 100%);
  --kopf-ton: #eef1fb;
}

body {
  background:
    radial-gradient(1200px 600px at 0% 0%, rgba(123, 79, 214, 0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(31, 181, 166, 0.10), transparent 60%),
    radial-gradient(900px 600px at 50% 100%, rgba(59, 114, 224, 0.08), transparent 60%),
    #f6f7fc;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Navigationsleiste mit Farbverlauf */
.navigation {
  background: var(--verlauf);
  border-bottom: none;
  box-shadow: 0 2px 10px rgba(59, 114, 224, 0.25);
}
.navigation a { color: rgba(255, 255, 255, 0.9); }
.navigation a:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.navigation a.aktiv { background: rgba(255, 255, 255, 0.95); color: #3b2a7a; font-weight: 600; }
.navigation .logo {
  display: flex; align-items: center; gap: 8px; margin-right: 18px; padding: 0;
  color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.01em; text-decoration: none;
}
.navigation .logo:hover { background: none; }
.navigation .logo img { background: #fff; border-radius: 8px; padding: 2px; box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
.navigation .logo .logo-akzent { color: #ffe08a; }
.beenden-form button { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.beenden-form button:hover { background: rgba(255,255,255,0.15); }

/* Inhaltsfläche als helle Karte */
main {
  background: rgba(255, 255, 255, 0.92);
  margin-top: 20px; margin-bottom: 32px;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(40, 40, 90, 0.08);
  padding: 20px 24px 28px;
}
h1 { margin-top: 4px; }

/* Tabellenköpfe und Zeilen leicht getönt */
.aufgaben-tabelle thead th { background: var(--kopf-ton); color: #3b2a7a; }
.aufgaben-tabelle tbody tr.dunkel { background: #eef1fa; }
.aufgaben-tabelle tbody tr:hover { background: #f1f4ff; }
.baum-tabelle tr.zeile-projekt { background: #f7f3ff; }
.info-tabelle th { background: var(--kopf-ton); }

/* Eingabefelder und Knöpfe */
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(59, 114, 224, 0.35); border-color: #3b72e0; }
button:not(.klein):not(.haken):not(.klapper):not(.gefahr):not(.gefahr-voll) {
  background: linear-gradient(135deg, #5b5fe0, #3b72e0); border-color: #3b72e0;
}
.rahmen-projekt button:not(.klein) { background: linear-gradient(135deg, #7b4fd6, #6f42c1); }
.schnellerfassung { background: #f3f5fd; padding: 10px; border-radius: 10px; }
.feld-klein { display: flex; align-items: center; gap: 6px; color: var(--leise); font-size: 0.85rem; white-space: nowrap; }
.feld-klein input { width: 150px; }
.leise-zelle { color: var(--leise); }
.filterleiste { padding: 4px 0; }

/* Seitentitel mit Verlaufsschrift */
h1.seitentitel-aufgabe, h1.seitentitel-projekt { display: flex; align-items: center; gap: 10px; }

@media (max-width: 900px) {
  main { margin: 0; border-radius: 0; padding: 14px; }
}

.baum-tabelle tr.zeile-projekt.dunkel { background: #ece6fb; }
.aufgaben-tabelle tbody tr:hover, .aufgaben-tabelle tbody tr.dunkel:hover { background: #e3e9fb; }

/* Projektbaum: Hauptprojekte kräftiger getönt, Unterprojekte heller */
.baum-tabelle tr.zeile-projekt { background: #fcfbff; }
.baum-tabelle tr.zeile-projekt.dunkel { background: #f7f4fe; }
.baum-tabelle tr.zeile-projekt.ebene-0 { background: #e9e1fb; }
.baum-tabelle tr.zeile-projekt.ebene-0.dunkel { background: #e2d8f8; }
.baum-tabelle tr.zeile-projekt:hover { background: #ddd2f7; }

/* ---------- Dateien im Projekt ---------- */
.ablagezone {
  border: 2px dashed #b9a6ec; border-radius: 10px; padding: 14px 18px; text-align: center;
  background: #faf8ff; transition: background 0.15s;
}
.ablagezone p { margin: 4px 0; }
.ablagezone.drueber { background: var(--projekt-hell); border-color: var(--projekt); }
.ablagezone.laedt { opacity: 0.7; }
.datei-waehlen { display: inline !important; color: var(--akzent); text-decoration: underline; cursor: pointer; font-weight: 600; }
.dateiliste { margin-top: 12px; }
.dateiliste td a { color: var(--text); font-weight: 500; }
.datei-knoepfe { white-space: nowrap; text-align: right; }
.datei-knoepfe form { display: inline-flex; gap: 6px; margin: 0 8px 0 0; }
.klein-link { font-size: 0.85rem; }
.ordner-knopf { margin-top: 12px; }
.ordner-knopf button { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Wiederholen ---------- */
.wiederholen .felder label[hidden] { display: none; }
.wiederholen legend { color: var(--projekt); }
.wdh-symbol { color: var(--projekt); font-weight: 700; margin-left: 6px; cursor: help; }

/* Notizen in Tabellen: nur eine Zeile, Rest mit … abgeschnitten (voller Text beim Darüberfahren) */
.aufgaben-tabelle td.spalte-notiz { max-width: 240px; }
.notiz-kurz {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 240px; color: var(--leise);
}
@media (min-width: 1500px) { .aufgaben-tabelle td.spalte-notiz, .notiz-kurz { max-width: 360px; } }

/* ---------- Filterleisten: alle Bedienelemente gleich hoch und im gleichen Stil ---------- */
.filterleiste { gap: 8px; }
.filterleiste button.klein,
.filterleiste .zusammenfassung a,
.filterleiste .schalter {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px; margin: 0;
  border: 1px solid var(--linie); border-radius: 6px;
  background: #fff; color: var(--text);
  font-size: 0.9rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  cursor: pointer; box-sizing: border-box;
}
.filterleiste button.klein:hover,
.filterleiste .zusammenfassung a:hover,
.filterleiste .schalter:hover { border-color: var(--akzent); color: var(--akzent); background: #f5f8ff; }
.filterleiste .schalter:has(input:checked) { border-color: var(--akzent); background: #eaf2fd; color: var(--akzent); }
.filterleiste .zusammenfassung { margin: 0; color: inherit; }
.filterleiste select, .filterleiste input[type="search"] { height: 38px; box-sizing: border-box; }
.filterleiste select, .schnellerfassung select, .bearbeiten select { background: #fff; color: var(--text); }

/* Kopfleiste: feste Höhe ohne eigenen Scrollbalken */
.navigation {
  height: 52px; padding: 0 16px; box-sizing: border-box;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.navigation::-webkit-scrollbar { display: none; }
.navigation a { padding: 5px 12px; line-height: 1.3; }
.navigation .logo img { width: 28px; height: 28px; }
.beenden-form { display: flex; align-items: center; }
.beenden-form button { padding: 3px 10px; line-height: 1.3; }

/* ---------- Anmeldung ---------- */
.anmelden { max-width: 380px; margin: 24px auto; text-align: center; }
.anmelden h1 { margin: 8px 0 20px; }
.anmelden .logo-akzent-dunkel { color: #3b72e0; }
.anmelden form { text-align: left; }
.anmelden button { width: 100%; padding: 10px; }
