:root {
  --bg: #f6f5f2; --karte: #fff; --text: #1f2328; --leise: #6b6f76; --rand: #e2e0da;
  --akzent: #2f5d8a; --rot: #b3261e; --gelb: #8a6d00;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--akzent); }
header { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 10px 20px;
         background: var(--karte); border-bottom: 1px solid var(--rand); }
header nav { display: flex; flex-wrap: wrap; gap: 14px; flex: 1; }
header nav a, .marke { text-decoration: none; }
.marke { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; }
.logo { height: 40px; width: 40px; }
.logo-gross { width: 140px; height: 140px; justify-self: center; }
.wer { color: var(--leise); font-size: 13px; }
main { max-width: 1200px; margin: 0 auto; padding: 20px 16px; }
h1 { font-size: 22px; margin: 0 0 12px; }
h2 { font-size: 16px; margin: 0 0 8px; }
h3 { font-size: 14px; margin: 12px 0 4px; color: var(--leise); }
.kopf { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.raster .breit { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--leise); }
input, select, textarea { font: inherit; color: var(--text); padding: 7px 9px; border: 1px solid var(--rand);
                          border-radius: 6px; background: #fff; width: 100%; }
button, .knopf { font: inherit; background: var(--akzent); color: #fff; border: 0; border-radius: 6px;
                 padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-block; }
.filter { display: flex; gap: 8px; margin: 8px 0 16px; flex-wrap: wrap; }
.filter input { flex: 1; min-width: 220px; }
.filter select { width: auto; }
table { width: 100%; border-collapse: collapse; background: var(--karte); border: 1px solid var(--rand); }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rand); vertical-align: top; }
th { font-size: 13px; color: var(--leise); font-weight: 600; }
.leer { color: var(--leise); }
.fehler { color: var(--rot); }
.hinweis { background: #fff7e0; border: 1px solid #ecd9a0; padding: 10px 12px; border-radius: 6px; }
.ueberfaellig { color: var(--rot); font-weight: 600; }
.status { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #e7f1fb; white-space: nowrap; }
.s-unterbrochen { background: #f9eeda; } .s-erledigt { background: #e5f4e4; }
.s-verrechnet, .s-abgeschlossen { background: #f0efec; }
.verlauf { list-style: none; padding: 0; margin: 0; } .verlauf li { padding: 6px 0; border-bottom: 1px solid var(--rand); }
.text { white-space: pre-wrap; }
label.haken { flex-direction: row; align-items: center; gap: 6px; color: var(--text); font-size: 14px; margin: 4px 0; flex-wrap: wrap; }
label.haken input { width: auto; }
.label { display: block; font-size: 13px; color: var(--leise); margin-bottom: 4px; }
form.inline { display: inline; } button.klein { padding: 1px 8px; font-size: 12px; }
.neuer-termin { border-top: 1px solid var(--rand); margin-top: 12px; padding-top: 12px; }
.kalender-rahmen { overflow-x: auto; }
table.kalender { table-layout: fixed; min-width: 900px; }
table.kalender th:first-child { width: 150px; }
table.kalender td { height: 60px; font-size: 13px; }
table.kalender .heute { background: #fffbe8; }
a.termin { display: block; background: #e7f1fb; border-left: 3px solid var(--akzent); border-radius: 4px; padding: 3px 6px;
           margin: 2px 0; text-decoration: none; color: var(--text); }
.abw { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 10px; margin: 1px 0; white-space: nowrap; }
.abw-urlaub { background: #f9d9b8; color: #7a3d00; } .abw-krankenstand { background: #f6c9c9; color: #8a1c1c; }
.abw-zeitausgleich { background: #d3e4f7; color: #1d4a7a; }
.abw-bald { background: transparent; border: 1px dashed currentColor; }
.reiter { display: flex; gap: 6px; } .reiter a { padding: 6px 12px; border-radius: 6px; text-decoration: none; }
.reiter a.aktiv { background: var(--akzent); color: #fff; }
.knopf.leise { background: transparent; color: var(--akzent); border: 1px solid var(--rand); }
.mailsenden summary { list-style: none; margin-bottom: 8px; } .mailsenden summary::-webkit-details-marker { display: none; }
.mailsenden:not([open]) { background: none; border: 0; padding: 0; }
button.leise { background: transparent; color: var(--leise); border: 1px solid var(--rand); }
.login { max-width: 360px; margin: 60px auto; display: grid; gap: 12px; }
@media (max-width: 700px) { table { display: block; overflow-x: auto; } }
.meldungen { border-left: 4px solid #c0392b; }
.verlauf li.wichtig { background: #fdecea; border-radius: 4px; padding: 4px 6px; }
.fehler-text { color: #a12b1f; font-size: 13px; }
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.fotos figure { margin: 0; }
.fotos img { width: 100%; height: 140px; object-fit: cover; border-radius: 4px; display: block; }
.zeiten td { font-size: 13px; min-width: 90px; }
td.pruefen, tr.pruefen, section.pruefen { background: #fff4e5; }
form.zeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 8px; }
form.zeile label { display: flex; flex-direction: column; font-size: 13px; }
button.als-link { background: none; border: none; padding: 0; color: var(--akzent); text-decoration: underline; cursor: pointer; font: inherit; }
.ok { color: #1d7a3a; font-weight: 600; }
.reiter { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.reiter a { text-decoration: none; padding: 4px 10px; border: 1px solid var(--rand); border-radius: 14px; background: var(--karte); font-size: 13px; }
.reiter a.aktiv { background: var(--akzent); color: #fff; border-color: var(--akzent); }
.reiter a small { color: inherit; opacity: .7; }
.filter input.schmal { flex: 0 0 auto; min-width: 0; width: auto; }
.tabelle-rahmen { overflow-x: auto; }
.nowrap { white-space: nowrap; }
table.ereignisse td { font-size: 14px; }
.details { color: var(--leise); font-size: 12.5px; margin-top: 2px; }
tr.misserfolg { background: #fdf1f0; }
a.standort { text-decoration: none; font-size: 13px; }
a.standort.ungenau { opacity: .55; }
.standort-fehlt { color: var(--leise); font-size: 12px; cursor: help; }
small.vor-ort { color: #1d7a3a; }
small.entfernt { color: var(--rot); font-weight: 600; }
small.unklar { color: var(--gelb); }
.logo-klein { max-height: 60px; max-width: 160px; margin: 6px 8px 0 0; vertical-align: middle; }
header nav a.aktiv, details.menue summary.aktiv { font-weight: 600; }
details.menue { position: relative; }
details.menue summary { cursor: pointer; color: var(--akzent); list-style: none; }
details.menue summary::-webkit-details-marker { display: none; }
details.menue summary::after { content: " ▾"; font-size: 12px; }
details.menue[open] summary::after { content: " ▴"; }
.menue-liste { position: absolute; top: calc(100% + 6px); left: -10px; z-index: 20; min-width: 200px;
               display: flex; flex-direction: column; background: var(--karte); border: 1px solid var(--rand);
               border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 6px 0; }
.menue-liste a { padding: 7px 14px; text-decoration: none; }
.menue-liste a:hover { background: #eef3f8; }
.menue-liste a.aktiv { font-weight: 600; }
.unterreiter { margin-bottom: 14px; }
details.ordner { border-top: 1px solid var(--rand); padding: 6px 0; }
details.ordner summary { cursor: pointer; }
ul.dateien { list-style: none; padding: 0 0 0 14px; margin: 6px 0; }
ul.dateien li { padding: 3px 0; word-break: break-all; }
.neu { background: #1d7a3a; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 8px; margin-left: 4px; }
