:root { --navy: #1e2a3a; --blau: #2a78d6; --bg: #f4f5f2; --karte: #fff; --rand: #e1e4e8; --text: #1c1c1a; --grau: #6b7280;
  --gruen: #1f9a6a; --rot: #d6453d; --orange: #e07b24; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
header { position: sticky; top: 0; z-index: 5; background: var(--navy); color: #fff; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top));
  display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.zahnrad { background: none; border: 0; color: #cdd6e2; font-size: 22px; padding: 0 4px; }
main { padding: 16px; max-width: 640px; margin: 0 auto; }
h1 { font-size: 1.35rem; margin: 4px 0 14px; } h2 { font-size: 1.05rem; margin: 2px 0 6px; }
.ro { display: block; font-size: .78em; font-weight: 400; color: var(--grau); font-style: italic; line-height: 1.2; }
nav .ro, .btn .ro { color: inherit; opacity: .75; }
nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--rand); display: flex;
  padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
nav button { flex: 1; background: none; border: 0; padding: 8px 2px 6px; font-size: .74rem; color: var(--grau); position: relative; line-height: 1.15; }
nav button .i { display: block; font-size: 1.3rem; line-height: 1.2; }
nav button.aktiv { color: var(--blau); font-weight: 600; }
.punkt { position: absolute; top: 4px; left: 55%; background: var(--rot); color: #fff; border-radius: 9px; font-size: .68rem; padding: 0 5px; font-weight: 700; }
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border: 0; border-radius: 10px;
  background: var(--blau); color: #fff; font: inherit; font-weight: 600; padding: 11px 16px; margin: 4px 6px 4px 0; cursor: pointer; text-align: center; }
.btn:disabled { opacity: .5; }
.btn.gross { display: flex; width: 100%; padding: 15px; margin: 10px 0; font-size: 1.02rem; }
.btn.hell { background: #e7ecf3; color: var(--navy); } .btn.gruen { background: var(--gruen); } .btn.rot { background: var(--rot); }
.btn.orange { background: var(--orange); } .btn.klein { padding: 7px 12px; font-size: .9rem; }
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.kachel { background: var(--karte); border: 1px solid var(--rand); border-radius: 12px; padding: 14px 10px; text-align: left; font: inherit; color: var(--text); }
.kachel b { display: block; font-size: 1.7rem; color: var(--blau); }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.karte.ungelesen { border-left: 4px solid var(--blau); } .karte.fertig { opacity: .65; }
.klein-karte { padding: 10px 12px; }
.feld { margin-bottom: 12px; } .feld > label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #c9ced6; border-radius: 9px; background: #fff; color: var(--text); }
textarea { resize: vertical; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zeile { display: flex; flex-wrap: wrap; align-items: center; }
.fotos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.fotos img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; border: 1px solid var(--rand); }
.foto-knopf { background: #e7ecf3; color: var(--navy); }
.uhr { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff4e6; border: 1px solid #f0c48a; border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.badge { display: inline-block; font-size: .78rem; padding: 2px 8px; border-radius: 10px; background: #eef1f5; color: var(--grau); }
.badge.gruen { background: #e2f4ec; color: var(--gruen); } .badge.rot { background: #fde7e5; color: var(--rot); }
.klein { font-size: .85rem; } .grau { color: var(--grau); } .neu { color: var(--blau); }
.radio { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-weight: 400 !important; } .radio input { width: auto; }
.login { max-width: 360px; margin: 12vh auto 0; padding: 0 20px; text-align: center; }
.login img { width: 84px; border-radius: 18px; } .login input { text-align: center; font-size: 1.6rem; letter-spacing: .4em; margin: 10px 0; }
.fehlertext { color: var(--rot); }
.laden { padding: 40vh 0 0; text-align: center; color: var(--grau); }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); background: var(--gruen); color: #fff;
  padding: 12px 14px; border-radius: 10px; z-index: 20; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.toast.fehler { background: var(--rot); } .toast .ro { color: #fff; opacity: .85; }

.wetter { background: #eef4fb; border: 1px solid #c9dbef; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.wetter.einsatz { background: #fff3e8; border-color: #f0c9a3; }
.wetter .wz { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-top: 1px solid rgba(0,0,0,.06); }
.wetter .wz:first-of-type { border-top: 0; margin-top: 4px; }
.rot-t { color: var(--rot); }

.kachel.breit { display: block; width: 100%; margin-bottom: 8px; } .kachel.breit b { font-size: 1.1rem; color: var(--navy); }
.kachel.breit span { display: block; }
.tour-kopf { justify-content: space-between; margin-bottom: 8px; }
.zone-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 14px 0 6px; font-size: .92rem; }
.wd-obj .badge { margin-top: 4px; }
.wd-arten .btn.gross { margin: 8px 0; padding: 18px; font-size: 1.08rem; }
.warnbox { background: #fde7e5; border: 1px solid #f3b4ae; color: #8a1f17; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.bestaetigung { background: #fff4e6; border-radius: 9px; padding: 10px; margin: 6px 0 10px; }
.radio.inline { display: inline-flex; margin-right: 14px; }
.orange-t { color: var(--orange); }
.toast.warn { background: var(--orange); }
details summary { cursor: pointer; }

.notfall { background: #fde7e5; border: 2px solid var(--rot); border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.notfall.ok { background: #f3f4f6; border: 1px solid var(--rand); opacity: .8; }
.notfall .nf-titel { font-weight: 700; font-size: 1.05rem; margin: 4px 0; }
.tag-kopf { margin: 16px 0 8px; font-size: 1rem; color: var(--navy); }
.tonnen { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tonne { font-size: .85rem; font-weight: 600; padding: 3px 10px; border-radius: 12px; background: #e5e7eb; color: #111; }
.t-rest { background: #4b5563; color: #fff; } .t-bio { background: #8b5a2b; color: #fff; } .t-papier { background: #2a62c9; color: #fff; }
.t-gelb { background: #f6d32d; color: #222; } .t-glas { background: #2f9e6b; color: #fff; }
.mat-zeile { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--rand); border-radius: 10px; padding: 6px 6px 6px 12px; margin-bottom: 6px; }
.mat-zeile.hat { border-color: var(--blau); background: #eef4fd; }
.zaehler { display: flex; align-items: center; gap: 6px; white-space: nowrap; } .zaehler b { min-width: 22px; text-align: center; font-size: 1.1rem; }
.zaehler .btn { margin: 0; min-width: 42px; }
.notfall.kompakt { padding: 8px 12px; font-size: .9rem; }

.uhr.lauf { flex-direction: column; align-items: stretch; background: #e8f6ef; border-color: #a7dcc1; }
.lauf-zeit { font-size: 1.9rem; font-weight: 700; color: var(--gruen); margin-top: 2px; }
.ts-knoepfe .btn.gross { margin: 6px 0; }
.notfall.kompakt .btn { margin-top: 6px; }

.objlink { color: inherit; text-decoration: underline dotted; }
.vorbr { white-space: pre-wrap; }
.lv summary { cursor: pointer; } .lv-turnus { font-weight: 700; color: var(--navy); margin: 12px 0 4px; font-size: .92rem; background: #eef2f7; padding: 4px 8px; border-radius: 6px; }
.lv-ueb { font-size: .85rem; color: var(--grau); margin: 6px 0 2px; font-style: italic; }
.lv-pos { display: flex; gap: 10px; align-items: flex-start; padding: 7px 2px; border-bottom: 1px solid var(--rand); font-weight: 400 !important; }
.lv-pos input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; } .lv-pos.ok span { color: var(--grau); text-decoration: line-through; }
.lv-pos .ro, .lv-ueb .ro, .lv-turnus .ro, summary .ro { font-style: italic; color: #1f4f7a; }
.sp-wahl { float: right; } .sp-wahl .btn { margin: 0 0 0 4px; padding: 4px 9px; font-size: .78rem; }
img.plan { width: 100%; border-radius: 8px; border: 1px solid var(--rand); margin-bottom: 8px; }
canvas.unterschrift { width: 100%; height: 150px; background: #fff; border: 1px dashed #9aa4b1; border-radius: 10px; touch-action: none; display: block; margin-bottom: 6px; }
/* ab 1.64: Geräte, Aufmaß */
.badge.orange { background: #fff1d6; color: #8a5a00; } .badge.grau { background: #eef1f5; color: var(--grau); }
.geraet .zeile { gap: 6px; margin-top: 6px; }
.zeile2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fl-zeile { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eef1f5; }
.fl-zeile select, .fl-zeile input { flex: 1 1 140px; min-width: 0; }
.fl-mass { display: flex; align-items: center; gap: 4px; flex: 1 1 100%; }
.fl-mass input { flex: 1 1 0; min-width: 0; }
.fl-zeile input.anz, .fl-mass input.anz { flex: 0 0 56px; }
.ck { display: flex; gap: 8px; align-items: center; margin: 6px 0; } .ck input { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; }
/* ab 1.65: Aufgaben nach Turnus */
.gruen-t { color: var(--gruen); }
.sort-wahl { gap: 6px; margin: 4px 0 10px; }
.auf { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #eef1f5; }
.auf:last-child { border-bottom: 0; }
.auf .haken { flex: 0 0 44px; height: 44px; border-radius: 50%; border: 2px solid #c9ced6; background: #fff; color: #c9ced6; font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.auf .haken:active { background: #e2f4ec; }
.auf .haken.an { border-color: var(--gruen); background: var(--gruen); color: #fff; }
.auf.ueber .haken { border-color: var(--rot); color: var(--rot); }
.auf.ueber { background: #fff6f5; }
.auf.ok { opacity: .75; }
.auf .badge { margin-top: 4px; }
.lv-fertig { margin-top: 8px; } .lv-fertig > summary { color: var(--grau); padding: 6px 0; }
/* ab 1.66: GPS */
.karte.gps { border: 2px solid var(--gruen); background: #f2fbf6; }
.karte.gps.weg { border-color: var(--orange); background: #fff8ec; }
.karte.gps .zeile { gap: 8px; margin-top: 8px; }
/* ab 1.68: nicht beauftragt */
.karte.nicht { border-left: 4px solid var(--rot); } .nicht-pos { padding: 4px 0; border-bottom: 1px solid #f1f2f4; }
.nicht-kurz { background: #fff3f2; border-radius: 8px; padding: 8px 10px; }
.schl { flex: 0 0 44px; font-size: 1.5rem; text-align: center; }
/* ab 1.70: Aufmaß wie Kalk-HO */
.am-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 8px; }
.am-raster > * { grid-column: 1 / -1; } .am-raster > .halb { grid-column: auto; }
.am-raster .ck { margin: 4px 0; }
.am-ts { font-size: 1.05rem; margin: 0; } .am-ab.aus { opacity: .7; padding-top: 10px; padding-bottom: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1 1 auto; min-width: 64px; border: 1px solid #c9ced6; background: #fff; border-radius: 9px; padding: 9px 8px; font: inherit; color: var(--text); }
.seg button.an { background: var(--blau, #2a78d6); border-color: var(--blau, #2a78d6); color: #fff; font-weight: 600; }
.am-tab { width: 100%; border-collapse: collapse; } .am-tab td, .am-tab th { padding: 3px; text-align: left; font-size: .8rem; }
.am-tab input { padding: 7px 6px; } .am-tab select { padding: 7px 4px; font-size: .8rem; }
.blau-t { color: #1d5fae; }
/* ab 1.71: Büro-Aufmaß */
.am-art { margin: 0 0 12px; } .am-art button { flex: 1; }
.br-raum > summary { cursor: pointer; padding: 2px 0; } .br-raum[open] > summary { margin-bottom: 8px; }

/* Wetter stündlich (ab 1.73) */
.wz-tabs { flex-wrap: wrap; gap: 6px; }
.wz-ph { margin: 6px 0; }
.wstd { font-size: .86rem; margin: 6px 0; }
.wstd-k, .wstd-z { display: grid; grid-template-columns: 30px 1fr 52px 52px 30px; gap: 6px; align-items: center; padding: 3px 0; border-bottom: 1px solid rgba(127,127,127,.15); }
.wstd-k { font-size: .72rem; color: #7b8794; }
.wstd-z span:nth-child(n+3) { text-align: right; }
.wstd-z.vorbei { opacity: .5; }
.wstd-z.tag { border-top: 2px solid #14365f; }
.wstd-bar { position: relative; height: 20px; background: rgba(127,127,127,.08); border-radius: 3px; overflow: hidden; }
.wstd-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #9aa5b1; }
.wstd-bar i.a-schnee { background: #2f6fb5; } .wstd-bar i.a-schneeregen { background: #7fb2e5; } .wstd-bar i.a-gefr { background: #d6453d; }
.wstd-bar em { position: relative; font-style: normal; font-size: .74rem; padding-left: 5px; line-height: 20px; color: #1d2433; text-shadow: 0 0 3px #fff; }
.wbr { max-width: 620px; }
.wbr-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.wbr-kopf button { border: 1px solid var(--rand, #c9d1da); background: var(--surface, #fff); border-radius: 6px; padding: 4px 10px; cursor: pointer; font: inherit; color: inherit; }
.wbr-zeit { flex: 1; min-width: 140px; }
.wbr-uhr { min-width: 150px; font-size: .9rem; }
.wbr-vh { color: #b35c00; font-weight: 600; } .wbr-gm { color: #4a5d78; }
.wbr-w { display: inline-flex; } .wbr-w button { border-radius: 0; } .wbr-w button:first-child { border-radius: 6px 0 0 6px; } .wbr-w button:last-child { border-radius: 0 6px 6px 0; }
.wbr-w button.an { background: #14365f; color: #fff; border-color: #14365f; }
.wbr-bild { position: relative; width: 100%; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #e9eef2; }
.wbr-bild canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wbr-radar.vorhersage { outline: 3px dashed rgba(179,92,0,.6); outline-offset: -3px; }
.wbr-status { position: absolute; inset: auto 0 45% 0; text-align: center; font-weight: 600; color: #4a5d78; }
.wbr-legende { display: flex; flex-wrap: wrap; gap: 6px; font-size: .72rem; margin: 6px 0; align-items: center; }
.wbr-legende i { display: inline-block; width: 14px; height: 10px; margin-right: 3px; border-radius: 2px; vertical-align: -1px; }
.wbr-orte div { display: grid; grid-template-columns: minmax(90px, 32%) 1fr; gap: 10px; padding: 4px 0; border-bottom: 1px solid rgba(127,127,127,.15); font-size: .88rem; }
.wbr-orte div span:first-child { font-weight: 600; overflow-wrap: anywhere; }
.wbr-quelle { font-size: .7rem; color: #8592a3; margin-top: 6px; }

/* Streugut-Verbrauch (ab 1.77) */
.sg-zeile { align-items: center; gap: 8px; margin: 6px 0; }
.sg-zeile span { flex: 1; }
.sg-n { min-width: 34px; text-align: center; font-size: 1.1rem; }
