/* Built for phones on site: sunlight, gloves. High contrast, 56px touch targets, no thin grey text. */
:root {
  --bg: #ffffff; --fg: #111111; --muted: #444444; --line: #222222; --soft: #f1f3f5;
  --brand: #0b3d91; --brand-fg: #ffffff; --ok: #1a7f37; --warn: #9a6700; --bad: #c50f1f;
  --gray: #8a8a8a; --blue: #1f6fd1; --yellow: #e6b800; --orange: #f07d00; --green: #1a9e3a; --red: #d0021b;
  --tap: 56px; --r: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 18px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--fg); background: var(--bg); padding-bottom: 84px; }
a { color: var(--brand); font-weight: 600; }
h1 { font-size: 1.5rem; margin: .4em 0; } h2 { font-size: 1.25rem; margin: 1.2em 0 .4em; }
h3 { font-size: 1.05rem; margin: 1em 0 .3em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
header.top { background: var(--brand); color: var(--brand-fg); position: sticky; top: 0; z-index: 1000; }
header.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 56px; }
header.top a { color: #fff; text-decoration: none; }
header.top .title { font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
header.top .pill { background: rgba(255,255,255,.18); border-radius: 999px; padding: 4px 12px; font-size: .9rem; }
nav.bottom { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 2px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); z-index: 1000; padding-bottom: env(safe-area-inset-bottom); }
nav.bottom a { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; color: var(--fg); font-size: .8rem; font-weight: 700; }
nav.bottom a .ico { font-size: 1.5rem; line-height: 1; }
nav.bottom a.on { background: var(--soft); color: var(--brand); }
.btn, button, input[type=submit] { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 20px; border-radius: var(--r); border: 2px solid var(--brand);
  background: var(--brand); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.alt, button.alt { background: #fff; color: var(--brand); }
.btn.bad, button.bad { background: var(--bad); border-color: var(--bad); }
.btn.ok, button.ok { background: var(--ok); border-color: var(--ok); }
.btn.block, button.block { width: 100%; }
.btn.small, button.small { min-height: 44px; padding: 0 14px; font-size: .95rem; }
input, select, textarea { font: inherit; width: 100%; min-height: var(--tap); padding: 10px 12px; border: 2px solid var(--line);
  border-radius: var(--r); background: #fff; color: var(--fg); }
input[type=checkbox], input[type=radio] { width: 28px; height: 28px; min-height: 0; accent-color: var(--brand); }
textarea { min-height: 90px; }
label { font-weight: 700; display: block; margin: 12px 0 4px; }
.field-inline label { display: flex; align-items: center; gap: 10px; }
.helptext { color: var(--muted); font-size: .9rem; }
.errorlist { color: var(--bad); font-weight: 700; padding-left: 1.2em; margin: 4px 0; }
.card { border: 2px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 12px 0; background: #fff; }
.card.soft { background: var(--soft); border-color: var(--soft); }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kpi { border: 2px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.kpi b { display: block; font-size: 1.8rem; line-height: 1.1; }
.bar { height: 14px; background: var(--soft); border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--ok); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #bbb; vertical-align: top; }
th { background: var(--soft); }
.table-scroll { overflow-x: auto; }
.list a.row { display: flex; gap: 12px; align-items: center; padding: 12px 8px; border-bottom: 1px solid #bbb;
  color: var(--fg); text-decoration: none; min-height: var(--tap); }
.list a.row:active { background: var(--soft); }
.code { font-weight: 800; font-size: 1.15rem; min-width: 5.5em; }
.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: .85rem; font-weight: 700;
  border: 2px solid currentColor; white-space: nowrap; }
.st-planned { color: #555; } .st-auskunft { color: var(--blue); } .st-dug { color: #8a6d00; }
.st-laid, .st-checked, .st-backfilled { color: #b45500; } .st-asphalt_temp, .st-asphalt_final { color: #3d7a00; }
.st-done { color: var(--green); } .st-blocked { color: var(--red); }
.dot { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 2px solid #000; flex: none; }
.msg { padding: 14px 16px; border-radius: var(--r); margin: 10px 0; font-weight: 700; border: 2px solid; }
.msg.success { background: #e7f6ec; border-color: var(--ok); }
.msg.error { background: #fde8ea; border-color: var(--bad); }
.msg.warning, .warn { background: #fff4d6; border-color: var(--warn); }
.verify { background: #fff4d6; border-left: 6px solid var(--warn); padding: 8px 12px; margin: 8px 0; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #bbb; }
.check .mark { font-size: 1.6rem; line-height: 1; width: 1.4em; text-align: center; }
.check.ok .mark { color: var(--ok); } .check.open .mark { color: var(--bad); }
.check details { margin-top: 6px; }
.layer { border-left: 6px solid var(--line); padding-left: 10px; margin: 10px 0; }
.layer.upper { border-color: var(--blue); } .layer.lower { border-color: var(--orange); }
.el { padding: 4px 0; } .el .sub { margin-left: 22px; border-left: 2px dashed #999; padding-left: 8px; }
.trench { display: flex; align-items: flex-end; gap: 6px; }
.trench .box { border: 3px solid var(--line); border-top: none; display: flex; align-items: flex-end;
  justify-content: center; padding: 4px; font-weight: 800; background: #fafafa; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 2px solid var(--line); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.filters { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); align-items: end; }
.muted { color: var(--muted); }
#map { height: calc(100vh - 56px - 84px); min-height: 380px; }
.map-panel { position: absolute; z-index: 900; right: 10px; top: 66px; background: #fff; border: 2px solid var(--line);
  border-radius: var(--r); padding: 10px; max-width: 280px; max-height: 70vh; overflow: auto; font-size: .95rem; }
.map-panel.hidden { display: none; }
.legend-line { display: inline-block; width: 30px; vertical-align: middle; margin-right: 6px; }
.offline-bar { background: #fff4d6; border-bottom: 2px solid var(--warn); padding: 8px 16px; font-weight: 700; display: none; }
.offline-bar.on { display: block; }
.pdf-warning { background: #fde8ea; border: 3px solid var(--bad); }
@media (min-width: 900px) { body { padding-bottom: 0; } nav.bottom { position: static; border: 0;
  grid-template-columns: repeat(10, auto); justify-content: start; gap: 4px; }
  nav.bottom a { min-height: 48px; flex-direction: row; gap: 6px; padding: 0 12px; font-size: .95rem; }
  #map { height: calc(100vh - 56px - 52px); } }
@media print { header.top, nav.bottom, .no-print, .leaflet-control-container, .map-panel { display: none !important; }
  #map { height: 100vh; } body { padding: 0; } }
progress { width: 100%; height: 18px; accent-color: var(--ok); }
pre.codes { font-size: 1.3rem; }
.grow { flex: 1; }
img.full { width: 100%; height: auto; border-radius: 8px; }
.legend-line { height: 5px; } .lg-planned { background: var(--gray); } .lg-auskunft { background: var(--blue); }
.lg-dug { background: var(--yellow); } .lg-laid { background: var(--orange); } .lg-done { background: var(--green); }
.lg-blocked { background: var(--red); }
#map-info { top: auto; bottom: 94px; left: 10px; right: 10px; max-width: none; }
.map-btn { background: #fff; border: 2px solid #222; border-radius: 8px; width: 48px; height: 48px; font-size: 22px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; color: #111; min-height: 0; }
.leaflet-container { font: inherit; }
h2.inline { display: inline; }
ol.flow { padding-left: 1.4em; } ol.flow li.on { color: var(--brand); }
.grid2 { display: grid; gap: 10px; grid-template-columns: 1fr; } #plan-pane, #geo-pane { height: 50vh; border: 2px solid #222; border-radius: 8px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } #plan-pane, #geo-pane { height: 70vh; } }
.emoji-icon { font-size: 24px; line-height: 30px; text-align: center; background: none; border: none; }
.lbl { font-weight: 800; }
.kpi .badge { white-space: normal; }
