:root { --rot: #c82020; --gruen: #2e7d32; --text: #1f1f1f; --leise: #6b6b6b; --linie: #e3e0dc; --grund: #f7f5f2; --karte: #fff;
  font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--grund); }
body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
[hidden] { display: none !important; }
.kopf { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px;
  padding-top: calc(10px + env(safe-area-inset-top)); background: #fff; border-bottom: 3px solid var(--rot); }
.logo { height: 34px; display: block; } .wer { font-size: 14px; color: var(--leise); }
.testband { background: #fff4d6; color: #6b4e00; text-align: center; font-size: 14px; padding: 6px; }
main { padding: 16px; max-width: 640px; margin: 0 auto; }
h1 { font-size: 22px; margin: 4px 0 14px; } h2 { font-size: 17px; margin: 22px 0 8px; color: var(--leise); }
label { display: block; font-size: 15px; color: var(--leise); margin-bottom: 14px; }
input, textarea { display: block; width: 100%; margin-top: 5px; padding: 12px; font: inherit; color: var(--text); border: 1px solid var(--linie); border-radius: 10px; background: #fff; }
button { font: inherit; cursor: pointer; }
.gross { width: 100%; padding: 16px; border: 0; border-radius: 12px; background: var(--rot); color: #fff; font-weight: 700; font-size: 19px; }
.gross:disabled { opacity: .5; }
.leise { width: 100%; margin-top: 14px; padding: 12px; background: transparent; border: 1px solid var(--linie); border-radius: 10px; color: var(--leise); }
.leise-klein { background: transparent; border: 0; color: var(--rot); padding: 4px; }
.fehler { color: var(--rot); min-height: 1em; }
.stempel { width: 100%; height: 150px; border: 0; border-radius: 20px; background: var(--gruen); color: #fff; font-size: 30px; font-weight: 800; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.stempel.laeuft { background: var(--rot); }
.heute { text-align: center; font-size: 18px; margin: 14px 0 0; }
.woche { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.woche td { padding: 9px 10px; border-bottom: 1px solid var(--linie); font-size: 16px; }
.woche td:last-child { text-align: right; font-weight: 600; }
.summe { text-align: right; font-weight: 700; }
.karte { display: block; background: var(--karte); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; color: inherit; text-decoration: none;
  border-left: 6px solid var(--rot); box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.karte.erledigt { border-left-color: var(--gruen); opacity: .75; }
.karte .nr { font-size: 13px; color: var(--leise); } .karte .was { font-weight: 700; margin: 2px 0; } .karte .wo, .karte .wann { font-size: 15px; }
.karte .wann.offen { color: var(--rot); }
.feld { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.feld .t { font-size: 13px; color: var(--leise); margin-bottom: 2px; }
.knopf { display: block; text-align: center; padding: 14px; border-radius: 12px; background: #fff; border: 2px solid var(--rot); color: var(--rot); font-weight: 700; text-decoration: none; margin-bottom: 10px; }
.zurueck { display: inline-block; margin-bottom: 10px; color: var(--rot); text-decoration: none; }
.zeile2 { display: flex; gap: 10px; } .zeile2 label { flex: 1; }
.meldung { background: #e2efda; border-radius: 12px; padding: 12px 14px; margin: 12px 0; white-space: pre-wrap; font-size: 15px; }
.meldung.warn { background: #fff4d6; }
.sig-kopf { display: flex; justify-content: space-between; align-items: center; color: var(--leise); font-size: 15px; }
.sig { display: block; width: 100%; height: 190px; background: #fff; border: 2px dashed var(--linie); border-radius: 12px; touch-action: none; margin: 6px 0 16px; }
.fotos { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 12px; } .fotos img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; }
.leiste { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: #fff; border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom); z-index: 3; }
.leiste a, .leiste button { flex: 1; text-align: center; padding: 14px 4px; color: var(--leise); text-decoration: none; background: none; border: 0; font-size: 16px; }
.leiste a.aktiv { color: var(--rot); font-weight: 700; }
.tag { margin: 16px 0 6px; font-weight: 700; color: var(--leise); } .tag.heute { color: var(--rot); }
.termin { display: block; background: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; color: inherit; text-decoration: none; border-left: 5px solid var(--linie); }
.termin.Auftrag { border-left-color: var(--rot); } .termin.Urlaub, .termin.Abwesenheit { border-left-color: #1f6fb2; background: #eef5fb; }
.termin .z { font-size: 14px; color: var(--leise); } .termin .b { font-weight: 600; }
.klein { font-size: 13px; color: var(--leise); margin: 6px 0; }
.einst { margin-top: 18px; }
.schalter-zeile { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.schalter { width: 58px; height: 34px; border-radius: 17px; border: 0; background: #ccc; position: relative; padding: 0; }
.schalter span { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: left .15s; }
.schalter[aria-pressed="true"] { background: var(--gruen); } .schalter[aria-pressed="true"] span { left: 27px; }
.prio { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 10px; margin-left: 6px; color: #fff; vertical-align: middle; }
.prio.hoch { background: var(--rot); } .prio.mittel { background: #d98e04; } .prio.niedrig { background: #7a7a7a; }
.vorgabe { color: var(--rot); font-weight: 700; font-size: 15px; } .vorgabe.fern { color: var(--text); font-weight: 400; }
.block-kopf { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: var(--leise); margin: 6px 0 6px; }
.ma-zeile, .mat-zeile { display: flex; gap: 8px; align-items: center; background: #fff; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.ma-zeile label { flex: 1; display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text); font-size: 16px; }
.ma-zeile input[type=checkbox] { width: 22px; height: 22px; margin: 0; }
.ma-zeile .std { width: 80px; margin: 0; text-align: right; }
.ma-zeile .ma-name { flex: 1; font-size: 16px; }
.ma-zeile .ma-wahl { flex: 1; min-width: 0; margin: 0; padding: 9px; }
.mat-zeile input, .mat-zeile select { margin: 0; padding: 9px; }
.mat-zeile .menge { width: 62px; } .mat-zeile .einheit { width: 72px; } .mat-zeile .bez { flex: 1; min-width: 0; }
.mat-zeile .weg { background: none; border: 0; color: var(--leise); font-size: 20px; padding: 0 4px; }
.wahl { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.wahl-knopf { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--linie); border-radius: 12px; padding: 12px; margin: 0; color: var(--text); font-size: 16px; }
.wahl-knopf input { width: 22px; height: 22px; margin: 0; }
.wahl-knopf:has(input:checked) { border-color: var(--rot); }
.teil { background: #fff4d6; border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.ma-zeile select, .mat-zeile select { font: inherit; color: var(--text); border: 1px solid var(--linie); border-radius: 10px; background: #fff; }
.dok-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 15px; color: var(--leise); }
.dok-kopf .dok-zurueck { font-size: 18px; font-weight: 700; padding: 6px 4px; }
.dok-kopf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dok-seiten img { display: block; width: 100%; margin-bottom: 10px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.dok-unten { position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; z-index: 3; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.ma-zeile .ma-frei { flex: 1; min-width: 0; margin: 0; padding: 9px; }
button.knopf { width: 100%; font: inherit; font-weight: 700; cursor: pointer; }
.sortierung { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 14px; color: var(--leise); }
.sortierung button { flex: 1; padding: 8px 4px; border: 1px solid var(--linie); border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: 15px; }
.sortierung button.aktiv { background: var(--rot); border-color: var(--rot); color: #fff; font-weight: 700; }
.standort-hilfe { background: #fff4d6; border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.standort-hilfe .t { font-weight: 700; margin-bottom: 4px; }
.standort-hilfe ol { margin: 6px 0 4px; padding-left: 20px; } .standort-hilfe li { margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #eee; color: #666; }
.chip.faellig { background: #fff4d6; color: #7a5a00; } .chip.ok { background: #e3f3e5; color: var(--gruen); }
.fortschritt { height: 10px; background: #e9e6e2; border-radius: 6px; overflow: hidden; margin: 8px 0 4px; }
.fortschritt .balken { height: 100%; background: var(--gruen); }
#regel h2 { font-size: 17px; margin: 18px 0 8px; }

/* Büro (Admin): Zeiten aller Mitarbeiter, Regelleistung aller Lose – Reiter „Büro“, ab 06.10.2026 */
#admin .block { margin: 0 0 1.2rem; }
#admin h2 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: 1.05rem; margin: 0 0 .4rem; }
#admin h2 .netto { margin-left: auto; color: var(--grau, #666); font-variant-numeric: tabular-nums; }
#admin .reihe { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .4rem 0; }
#admin .zeile { border-bottom: 1px solid #e7e3e3; }
#admin .zeile.leer .zeiten { color: #999; }
#admin .zeile-knopf { display: flex; gap: .6rem; width: 100%; align-items: baseline; background: none; border: 0; padding: .55rem .2rem; font: inherit; text-align: left; cursor: pointer; }
#admin .zeile-knopf .tagname { min-width: 6.5rem; }
#admin .zeile-knopf .zeiten { flex: 1; font-variant-numeric: tabular-nums; }
#admin .zeile-knopf .netto { font-variant-numeric: tabular-nums; color: var(--grau, #666); }
#admin .editor { padding: .2rem .2rem .8rem; }
#admin .editor input[type=time] { font: inherit; padding: .35rem; }
#admin select { font: inherit; padding: .35rem; max-width: 12rem; }
#admin .knopf.aktiv { background: #6b1f24; color: #fff; }

/* Büro: Karte „Wo ist wer“ (Leaflet, Kacheln über den eigenen Server) – Stufe 2, 07.10.2026 */
#admin .flotte-karte { height: 340px; border-radius: 12px; border: 1px solid #e7e3e3; margin: .4rem 0 .5rem; overflow: hidden; }
#admin .legende { display: flex; flex-wrap: wrap; gap: .9rem; font-size: 13px; color: #666; margin: 0 0 1rem; }
#admin .legende-eintrag { display: inline-flex; align-items: center; gap: .35rem; }
#admin .punkt { width: 11px; height: 11px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-sizing: content-box; outline: 1px solid #ddd; }
#admin .punkt.faehrt { background: #2e7d32; } #admin .punkt.steht { background: #1565c0; }
#admin .punkt.abgestellt { background: #7a7a7a; } #admin .punkt.still { background: #b26a00; }
.flotte-schild { font-size: 12px; font-weight: 700; padding: 1px 6px; }
.flotte-nr { font-size: 11px; font-weight: 800; background: transparent; border: 0; box-shadow: none; color: #fff; padding: 0; }
.flotte-nr::before { display: none; }

/* Stufe 3: Verknüpfung mit Liegenschaften und Aufträgen */
#admin .bei, .leaflet-popup .bei { color: #6b1f24; font-weight: 600; }
/* Büro-Navigation (08.10.2026): oben Umschalter Büro | Meine App, unten vier große Knöpfe mit Symbol */
.modus { display: flex; gap: 4px; margin: 10px auto 0; max-width: 640px; padding: 4px; background: #ece8e3; border-radius: 12px; width: calc(100% - 32px); }
.modus a { flex: 1; text-align: center; padding: 9px 6px; border-radius: 9px; color: var(--leise); text-decoration: none; font-weight: 600; font-size: 15px; }
.modus a.aktiv { background: #fff; color: var(--rot); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.leiste a.bt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 9px; font-size: 13px; font-weight: 600; border-top: 3px solid transparent; }
.leiste a.bt .ico { font-size: 22px; line-height: 1; filter: grayscale(1); opacity: .65; }
.leiste a.bt.aktiv { color: var(--rot); border-top-color: var(--rot); background: #fdf3f3; }
.leiste a.bt.aktiv .ico { filter: none; opacity: 1; }
#admin .unterreiter .knopf { flex: 1; margin: 0; padding: 9px; }
#admin .reihe .knopf { margin-bottom: 0; }
#admin input.datum { width: auto; flex: 1; min-width: 9.5rem; margin: 0; padding: 10px; }
#admin .fahrer { color: var(--text); margin: .2rem 0 .6rem; }
#admin .fahrer select { flex: 1; }
#admin .wochentag { display: block; background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; color: inherit; text-decoration: none; border-left: 5px solid var(--gruen); }
#admin .wochentag.auffaellig { border-left-color: #b26a00; }
#admin .wochentag .reihe { margin: 0; }
#admin .wochentag .tagname { min-width: 4.8rem; font-variant-numeric: tabular-nums; }
#admin .wochentag .km { margin-left: auto; color: var(--leise); font-variant-numeric: tabular-nums; }
#admin .hinweis { color: #8a5200; }
/* Suche und Ortsknöpfe in der Auftragsliste (20.10.2026) */
.suchleiste { position: relative; margin-bottom: 10px; }
.suchfeld { margin: 0; padding: 12px 44px 12px 40px; font-size: 17px; border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3C/svg%3E") no-repeat 13px center; }
.suchfeld::-webkit-search-cancel-button { display: none; }
.such-leeren { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eee; color: var(--leise); font-size: 16px; }
.ort-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; -webkit-overflow-scrolling: touch; }
.chip-ort { flex: 0 0 auto; padding: 7px 12px; border: 1px solid var(--linie); border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: 14px; white-space: nowrap; }
.chip-ort.aktiv { background: var(--rot); border-color: var(--rot); color: #fff; font-weight: 700; }
.treffer { font-size: 14px; color: var(--leise); margin: 0 0 8px; }
/* Spracheingabe (21.10.2026) */
.sprach-zeile { margin: -6px 0 14px; }
.sprach-knopf { width: 100%; padding: 12px; border: 2px solid var(--rot); border-radius: 12px; background: #fff; color: var(--rot); font: inherit; font-weight: 700; font-size: 17px; }
.sprach-knopf.laeuft { background: var(--rot); color: #fff; }
.sprach-knopf:disabled { opacity: .6; }
.sprach-hinweis { margin: 6px 2px 0; }

/* Übersetzung unter dem deutschen Text (01.11.2026) */
.ue { color: var(--leise); font-size: 15px; font-style: italic; margin: 2px 0 4px; }
h1 + .ue { font-size: 17px; margin-top: -4px; }
