:root {
  --bg: #f3f1ea; --surface: #ffffff; --surface-2: #ebe8dd; --text: #1f2a1f; --muted: #5f6b5c; --line: #d6d2c4;
  --brand: #2f5d3a; --brand-ink: #ffffff; --accent: #c27a2c;
  --good: #2e7d32; --ok: #b88a00; --bad: #c0392b; --scent: rgba(192, 57, 43, .28); --scent-line: rgba(192, 57, 43, .8);
  --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111611; --surface: #1a211a; --surface-2: #232c23; --text: #e6ece3; --muted: #9aa796; --line: #2f3a2e;
    --brand: #6fae7a; --brand-ink: #0d140d; --accent: #e3a14f; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #111611; --surface: #1a211a; --surface-2: #232c23; --text: #e6ece3; --muted: #9aa796; --line: #2f3a2e;
  --brand: #6fae7a; --brand-ink: #0d140d; --accent: #e3a14f; --shadow: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
.app { display: flex; flex-direction: column; min-height: 100%; max-width: 980px; margin: 0 auto; }
header.top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
header.top h1 { font-size: 17px; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
header.top .src { font-size: 12px; color: var(--muted); }
main { flex: 1; padding: 12px 16px 96px; }
nav.tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; background: var(--surface); border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
nav.tabs .inner { display: flex; width: 100%; max-width: 980px; }
nav.tabs button { flex: 1; border: 0; background: none; padding: 8px 4px 10px; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
nav.tabs button svg { width: 22px; height: 22px; }
nav.tabs button[aria-selected="true"] { color: var(--brand); font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.card h2 { font-size: 15px; margin: 0 0 10px; }
.card h3 { font-size: 14px; margin: 12px 0 6px; color: var(--muted); font-weight: 600; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.hero { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.hero .big { font-size: 40px; font-weight: 700; line-height: 1; }
.compass { width: 96px; height: 96px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.kpi { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.kpi .l { font-size: 11.5px; color: var(--muted); }
.kpi .v { font-size: 16px; font-weight: 600; }
.index { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-weight: 700; color: #fff; }
.idx-good { background: var(--good); } .idx-ok { background: var(--ok); } .idx-bad { background: var(--bad); }
.daybar { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.daybar button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 6px 10px; cursor: pointer; text-align: center; min-width: 64px; }
.daybar button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.hours { overflow-x: auto; }
.hours table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.hours th, .hours td { padding: 5px 7px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line); }
.hours th:first-child, .hours td:first-child { position: sticky; left: 0; background: var(--surface); text-align: left; font-weight: 600; color: var(--muted); z-index: 1; }
.hours td.sel { outline: 2px solid var(--brand); outline-offset: -2px; }
.hours tr.hr td { cursor: pointer; }
.hours .night { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.hours .hunt { box-shadow: inset 0 -3px 0 var(--accent); }
.arrow { display: inline-block; transition: transform .2s; }
.timeline { position: relative; height: 34px; border-radius: 8px; overflow: hidden; margin-top: 6px; background: #0f1d33; }
.timeline .seg { position: absolute; top: 0; bottom: 0; }
.timeline .now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--accent); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 4px 8px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); min-width: 0; }
label.f input, label.f select, label.f textarea { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 10px; color: var(--text); width: 100%; }
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: var(--surface-2); color: var(--muted); }
.pill.good { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.pill.bad { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.windpick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.windpick button { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 0; font-size: 12px; cursor: pointer; }
.windpick button[aria-pressed="true"] { background: var(--good); color: #fff; border-color: var(--good); }
.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--brand); }
.notice { background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); padding: 8px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; }
.toast { position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 50; font-size: 14px; max-width: calc(100% - 32px); }

/* Karte */
.mapwrap { position: relative; height: 62vh; min-height: 340px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #cfd8c8; touch-action: none; user-select: none; }
.mapwrap.pick { cursor: crosshair; }
.map-tiles, .map-overlay { position: absolute; inset: 0; }
.map-tiles img { position: absolute; width: 256px; height: 256px; pointer-events: none; }
.map-overlay { pointer-events: none; }
.map-overlay .hit { pointer-events: auto; cursor: pointer; }
.map-ctrl { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.map-ctrl button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 18px; cursor: pointer; }
.map-attr { position: absolute; right: 0; bottom: 0; font-size: 10.5px; background: rgba(255,255,255,.8); color: #333; padding: 1px 6px; z-index: 2; }
.map-attr a { color: inherit; }
.map-wind { position: absolute; left: 10px; top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; z-index: 2; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.slider { width: 100%; }
@media (max-width: 520px) { .hero .big { font-size: 34px; } .compass { width: 80px; height: 80px; } }

/* Fotos & Pirschzeichen */
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; display: block; background: var(--surface-2); }
.thumb-gps { position: absolute; left: 2px; bottom: 2px; font-size: 12px; line-height: 1; }
.thumb-x { position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.znum { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
#who .btn { white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
nav.tabs button { font-size: 11px; }

/* Nachsuche-Modus */
.ns-start { display: flex; flex-direction: column; gap: 2px; width: 100%; margin-bottom: 12px; padding: 14px 16px; border: 0; border-radius: var(--radius);
  background: #b71c1c; color: #fff; text-align: left; cursor: pointer; font-size: 16px; }
.ns-start span { font-size: 12.5px; opacity: .9; }
body.ns-open { overflow: hidden; }
.ns { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
.ns-top { display: flex; align-items: center; gap: 10px; }
.ns-opt { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.ns-map { flex: 1 1 auto; min-height: 140px; height: auto !important; border-radius: 12px; }
.ns-info { color: var(--muted); min-height: 1.4em; }
.ns-ok { color: var(--good); font-weight: 600; } .ns-mid { color: var(--ok); font-weight: 600; } .ns-bad { color: var(--bad); font-weight: 600; }
.ns button[data-q] { touch-action: manipulation; -webkit-user-select: none; user-select: none; cursor: pointer; border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: transform .08s, box-shadow .15s; }
.ns button[data-q]:active { transform: scale(.98); }
.ns-big { flex: none; height: 22vh; min-height: 110px; border-radius: 18px; background: #c62828; font-size: 30px; font-weight: 800; letter-spacing: .06em; }
.ns-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ns-small { height: 72px; border-radius: 14px; background: var(--zc); font-size: 14px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.ns-hint { font-size: 11px; font-weight: 500; letter-spacing: 0; opacity: .85; }
.ns button.armed { box-shadow: 0 0 0 4px var(--accent), 0 0 0 8px color-mix(in srgb, var(--accent) 35%, transparent); }
.ns button.armed .ns-hint::after { content: ' – nochmal!'; font-weight: 700; }
.ns-bottom { display: flex; gap: 8px; flex-wrap: wrap; }
.ns-bottom .btn { flex: 1; min-width: 0; }
.ns-flash { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); background: var(--good); color: #fff; padding: 14px 20px; border-radius: 14px; font-size: 17px; font-weight: 700; max-width: calc(100% - 40px); text-align: center; z-index: 5; box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.ns-flash.warn { background: var(--bad); }
@media (max-width: 380px) { .ns-grid { grid-template-columns: repeat(2, 1fr); } .ns-small { height: 56px; } }
@media (prefers-reduced-motion: reduce) { .ns button[data-q] { transition: none; } }
.ns button[data-q="Knochensplitter"] { color: #263238; text-shadow: none; border: 1px solid var(--line); }

/* Gebiete, Ebenen, Standort */
.layerbar { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; }
.layerbar label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.drawbar { border-color: #ff6f00; box-shadow: 0 0 0 2px color-mix(in srgb, #ff6f00 35%, transparent); }
.swatch { width: 16px; height: 16px; flex: none; border-radius: 4px; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 30%, transparent); }
#locBadge { position: absolute; left: 10px; bottom: 22px; right: 60px; z-index: 3; pointer-events: none; }
.locbadge { display: inline-block; padding: 6px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); }
.locbadge.ok { border-color: var(--good); color: var(--good); }
.locbadge.warn { background: var(--bad); color: #fff; border-color: var(--bad); }
.locbadge.warn .muted { color: rgba(255,255,255,.8); }

/* Schusslinie, Peilung, Nachsuche-Kompass */
.toast { z-index: 90; }
.ov { position: fixed; inset: 0; z-index: 60; background: var(--bg); color: var(--text); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.ovh { display: flex; align-items: center; gap: 10px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); background: var(--surface); border-bottom: 1px solid var(--line); }
.cam { position: relative; flex: 1; min-height: 220px; background: #0d120d; overflow: hidden; }
.cam.mini { flex: 0 0 0; min-height: 0; }
.cam video, .cam img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cam video { object-fit: cover; } .cam img { object-fit: contain; cursor: crosshair; }
.xh { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; pointer-events: none; }
.xh::before, .xh::after { content: ""; position: absolute; background: #ff9800; }
.xh::before { left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -0.5px; -webkit-mask: linear-gradient(#000 0 40%, transparent 40% 60%, #000 60%); mask: linear-gradient(#000 0 40%, transparent 40% 60%, #000 60%); }
.xh::after { top: 50%; left: 0; right: 0; height: 1px; margin-top: -0.5px; -webkit-mask: linear-gradient(90deg, #000 0 40%, transparent 40% 60%, #000 60%); mask: linear-gradient(90deg, #000 0 40%, transparent 40% 60%, #000 60%); }
.xh i { position: absolute; left: 50%; top: 50%; width: 2px; height: 2px; margin: -1px; border-radius: 50%; background: #ff9800; }
@media (min-resolution: 2dppx) { .xh::before { width: .5px; margin-left: -.25px; } .xh::after { height: .5px; margin-top: -.25px; } }
.tapm { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 1px solid #ff9800; border-radius: 50%; pointer-events: none; }
.tapm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 2px; margin: -1px; border-radius: 50%; background: #ff9800; }
.hud { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; color: #fff; text-shadow: 0 1px 3px #000; pointer-events: none; }
.hud b { font-size: 38px; font-variant-numeric: tabular-nums; } .hud span { font-size: 18px; font-weight: 600; } .hud .hs { text-align: right; font-size: 13px; font-weight: 600; }
.lvl { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(0,0,0,.5); padding: 5px 10px; border-radius: 99px; white-space: nowrap; pointer-events: none; }
.camerr { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: #e6ece3; }
.camerr > div { max-width: 36ch; }
.camerr .btn:not(.primary) { color: var(--text); }
.pbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); background: var(--surface); }
.pbar .btn { flex: 1; }
.shutter { width: 70px; height: 70px; flex: 0 0 70px; border-radius: 50%; border: 4px solid var(--text); background: #ff9800; box-shadow: inset 0 0 0 4px var(--surface); cursor: pointer; }
.pform { display: flex; flex-direction: column; gap: 10px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); background: var(--surface); border-top: 1px solid var(--line); max-height: 60%; overflow-y: auto; }
.cam.mini + .pbar + .pform, .cam.mini ~ .pform { max-height: none; flex: 1; }
.qd { display: flex; gap: 6px; flex-wrap: wrap; }
.qd button { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-variant-numeric: tabular-nums; }
.qd button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.nsb { --zc: #7d8a78; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); max-width: 640px; width: 100%; margin: 0 auto; }
.nsb > * { flex-shrink: 0; }
.nsb[data-zone="r"] { --zc: #d63a2c; } .nsb[data-zone="o"] { --zc: #ef8a17; } .nsb[data-zone="g"] { --zc: #2e9d47; }
.tg { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.tg button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.tg button i { width: 10px; height: 10px; border-radius: 50%; }
.tg button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.dial { position: relative; width: min(74vw, 38vh, 320px); aspect-ratio: 1; max-width: 100%; margin: 0 auto; border-radius: 50%; border: 10px solid var(--zc); background: radial-gradient(circle, color-mix(in srgb, var(--zc) 20%, var(--surface)) 0 58%, var(--surface) 59%); display: grid; place-items: center; transition: border-color .25s, background .25s; }
.dial .arr { width: 62%; height: 62%; color: var(--zc); transition: transform .18s linear; }
.dial .dn { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 700; color: var(--muted); }
.dial .zl { position: absolute; bottom: 15%; left: 50%; transform: translateX(-50%); background: var(--zc); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.ro { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ro div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.ro b { display: block; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.ro div:first-child b { color: var(--zc); }
.ro small { color: var(--muted); font-size: 12px; }
.nmsg { margin: 0; min-height: 2.8em; }
.q4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.q4 .btn { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; padding: 8px 4px; }
.q4 .btn i { width: 12px; height: 12px; border-radius: 50%; }
#nMap.mapwrap { height: 220px; min-height: 0; }
#pMap.mapwrap { height: 240px; min-height: 0; margin-top: 6px; }
.tog { display: inline-flex; } .tog input { position: absolute; opacity: 0; pointer-events: none; }
.tog span { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.tog input:checked + span { border-color: var(--brand); color: var(--brand); font-weight: 600; }
.tog input:focus-visible + span { outline: 2px solid var(--brand); }
@media (prefers-reduced-motion: reduce) { .dial, .dial .arr { transition: none; } }
.autobox { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.autobox summary { cursor: pointer; }

/* ===================================================================
   Design 2026 – Waldgrün, Signalorange, schwebende Navigation
   Layout: ruhige Flächen, große Radien, Zahlen im Vordergrund
   =================================================================== */
:root {
  --bg: #eef2ec; --surface: #ffffff; --surface-2: #e7ece4; --text: #13201a; --muted: #5b6a61; --line: #dbe2d8;
  --brand: #1f5b3a; --brand-ink: #ffffff; --accent: #e8661c;
  --good: #2c8a4b; --ok: #b98500; --bad: #cf3d2c;
  --hero-a: #1f5b3a; --hero-b: #0e2b1d;
  --radius: 20px; --shadow: 0 1px 2px rgba(16, 32, 22, .05), 0 8px 24px rgba(16, 32, 22, .06);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a100d; --surface: #131b16; --surface-2: #1b2620; --text: #e6eee8; --muted: #93a39a; --line: #243129;
    --brand: #5cc98a; --brand-ink: #07130c; --accent: #ff8a3d; --good: #4cc27a; --ok: #e0b23a; --bad: #ff6a57;
    --hero-a: #1b4d32; --hero-b: #0b1f15; --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px rgba(0,0,0,.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a100d; --surface: #131b16; --surface-2: #1b2620; --text: #e6eee8; --muted: #93a39a; --line: #243129;
  --brand: #5cc98a; --brand-ink: #07130c; --accent: #ff8a3d; --good: #4cc27a; --ok: #e0b23a; --bad: #ff6a57;
  --hero-a: #1b4d32; --hero-b: #0b1f15; --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px rgba(0,0,0,.35); color-scheme: dark;
}
body { font-family: var(--font); font-size: 15px; letter-spacing: -0.005em; }
h1, h2, h3, .big, .kpi .v, .index { letter-spacing: -0.02em; }
.kpi .v, .hours, .big, .index, .ro b { font-variant-numeric: tabular-nums; }

/* Kopfzeile: durchscheinend mit Unschärfe */
header.top { top: env(safe-area-inset-top, 0px); border-bottom: 0; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
header.top h1 { font-size: 19px; font-weight: 800; }
header.top .src { background: var(--surface-2); padding: 3px 9px; border-radius: 999px; font-weight: 600; font-size: 11.5px; }
main { padding: 8px max(16px, env(safe-area-inset-right, 0px)) 120px max(16px, env(safe-area-inset-left, 0px)); }

/* Schwebende Navigationsleiste */
nav.tabs { left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 0;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 24px; max-width: 640px; margin: 0 auto;
  background: color-mix(in srgb, var(--surface) 84%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px); box-shadow: 0 10px 30px rgba(10, 20, 14, .18); }
nav.tabs .inner { padding: 6px; gap: 2px; }
nav.tabs button { border-radius: 18px; padding: 7px 2px 6px; font-size: 10.5px; font-weight: 600; transition: background .2s, color .2s; }
nav.tabs button svg { width: 22px; height: 22px; }
nav.tabs button[aria-selected="true"] { background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand); font-weight: 700; }

/* Karten */
.card { border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card h2 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.card h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

/* Wetter-Kopfkarte mit Verlauf */
.card.hero-card { background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 45%), linear-gradient(150deg, var(--hero-a), var(--hero-b));
  color: #f2f7f3; border: 0; box-shadow: 0 14px 40px rgba(14, 43, 29, .35); }
.hero-card .muted, .hero-card .small { color: rgba(242, 247, 243, .78); }
.hero-card strong { color: #fff; }
.hero-card .big { font-size: 56px; font-weight: 800; }
.hero-card .kpi { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .08); }
.hero-card .kpi .l { color: rgba(242, 247, 243, .7); }
.hero-card h3 { color: rgba(242, 247, 243, .7); }
.hero-card .compass circle { stroke: #fff; }

/* Kennzahlen */
.kpis { gap: 10px; }
.kpi { border-radius: 14px; padding: 10px 12px; }
.kpi .l { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi .v { font-size: 18px; font-weight: 800; margin-top: 2px; }
.index { border-radius: 999px; padding: 5px 12px; font-size: 13px; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }

/* Schaltflächen und Eingaben */
.btn { border: 0; background: var(--surface-2); border-radius: 999px; padding: 9px 16px; font-weight: 650; transition: transform .08s, filter .15s, background .15s; }
.btn:hover:not(:disabled) { filter: brightness(.97); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:focus-visible, nav.tabs button:focus-visible, .daybar button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn.primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn.danger { background: color-mix(in srgb, var(--bad) 12%, var(--surface)); color: var(--bad); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
label.f { font-weight: 600; font-size: 12.5px; }
label.f input, label.f select, label.f textarea { background: var(--surface-2); border: 1.5px solid transparent; border-radius: 12px; padding: 10px 12px; font-weight: 500; transition: border-color .15s, box-shadow .15s, background .15s; }
label.f input:focus, label.f select:focus, label.f textarea:focus { outline: none; background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color: var(--brand); }
.slider { height: 28px; }

/* Listen, Pillen, Tagesleiste */
.list li { padding: 12px 0; border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
.pill { font-weight: 650; padding: 3px 10px; }
.daybar { gap: 8px; }
.daybar button { border: 0; background: var(--surface-2); border-radius: 14px; padding: 8px 12px; font-weight: 650; }
.daybar button[aria-pressed="true"] { box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 30%, transparent); }
.hours td.sel { outline: 0; background: color-mix(in srgb, var(--brand) 14%, transparent); border-radius: 8px; }
.hours th:first-child, .hours td:first-child { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.timeline { height: 38px; border-radius: 12px; }
.notice { border-radius: 14px; border: 0; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); border-radius: 14px; padding: 12px 18px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* Karte */
.mapwrap { border-radius: var(--radius); border: 0; box-shadow: var(--shadow); }
.map-ctrl button { border: 0; border-radius: 12px; background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 4px 14px rgba(0, 0, 0, .15); font-weight: 700; }
.locbadge { border-radius: 999px; padding: 7px 12px; }

/* Dialog: auf dem Handy als Bottom-Sheet */
dialog.sheet { border: 0; padding: 0; width: 100%; max-width: min(560px, calc(100% - 32px)); border-radius: 24px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
dialog.sheet::backdrop { background: rgba(8, 14, 10, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@media (max-width: 600px) {
  dialog.sheet { max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 90vh; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom, 0px); }
  dialog.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 10px auto 0; }
}

/* Nachsuche-Start */
.ns-start { border-radius: var(--radius); background: linear-gradient(135deg, #c62828, #7f1414); box-shadow: 0 10px 26px rgba(198, 40, 40, .3); padding: 16px 18px; }
@media (prefers-reduced-motion: reduce) { .btn, nav.tabs button { transition: none; } }

/* Mobil: keine Zoom-Sprünge, große Tippflächen, kein Gummiband-Scrollen der ganzen Seite */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 25; background: color-mix(in srgb, var(--bg) 92%, transparent); }
@media (pointer: coarse) {
  label.f input, label.f select, label.f textarea, input, select, textarea { font-size: 16px; } /* iOS vergrößert sonst beim Antippen */
  .btn { min-height: 44px; }
  .btn.sm { min-height: 36px; padding: 6px 14px; }
  nav.tabs button { min-height: 52px; }
  .list li { min-height: 48px; }
  input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; }
}
button, .btn, nav.tabs button, .daybar button, [data-q] { touch-action: manipulation; }

/* Strecke: Untertabs, Segmentauswahl, Tabellen, Balken, Druck */
.segtabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; background: var(--surface-2); border-radius: 16px; overflow-x: auto; scrollbar-width: none; }
.segtabs button { flex: 1; border: 0; background: transparent; border-radius: 12px; padding: 9px 10px; font-weight: 700; color: var(--muted); white-space: nowrap; cursor: pointer; min-height: 40px; }
.segtabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.seg { display: flex; gap: 6px; }
.seg label { flex: 1; } .seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 10px 6px; border-radius: 12px; background: var(--surface-2); font-weight: 650; cursor: pointer; border: 1.5px solid transparent; }
.seg input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, var(--surface)); color: var(--brand); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.tbl { overflow-x: auto; margin: 0 -4px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 6px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px 6px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); vertical-align: top; }
.tbl .num { text-align: right; } .tbl .c { text-align: center; }
.tbl tr.sum td { font-weight: 800; border-top: 2px solid var(--line); border-bottom: 0; }
.tbl tr[data-stand] { cursor: pointer; }
.miss { color: var(--bad); font-weight: 700; }
.jlh { margin-top: 18px !important; font-size: 13px !important; }
#smap.mapwrap { height: 46vh; min-height: 280px; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 150px; padding-top: 18px; }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar > div { width: 100%; max-width: 26px; min-height: 2px; background: var(--brand); border-radius: 6px 6px 2px 2px; }
.bar .bv { font-size: 11px; font-weight: 700; margin-bottom: 3px; } .bar .bl { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.linkx { border: 0; background: none; color: var(--bad); font-weight: 800; cursor: pointer; padding: 0 2px; }
#printArea { display: none; }
@media print {
  body.printing > *:not(#printArea) { display: none !important; }
  body.printing #printArea { display: block; color: #000; font: 11pt/1.35 system-ui, sans-serif; }
  #printArea h1 { font-size: 16pt; margin: 0 0 4pt; } #printArea h3 { font-size: 12pt; margin: 14pt 0 4pt; color: #000 !important; }
  #printArea table { width: 100%; border-collapse: collapse; } #printArea th, #printArea td { border: 1px solid #999; padding: 3pt 5pt; font-size: 9.5pt; text-align: left; }
  #printArea .num { text-align: right; } #printArea .muted, #printArea .small { color: #333; font-size: 9pt; }
  #printArea tr { break-inside: avoid; }
}

/* Ansitzberichte */
.sichtrow { display: grid; grid-template-columns: 1fr 64px 64px auto; gap: 6px; align-items: end; margin-bottom: 6px; }
.sichtrow .btn { min-height: 40px; }
nav.tabs button { position: relative; }
.tbadge { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===================================================================
   Design 2026 · Stufe 2 – ruhiger, übersichtlicher
   Flächen statt Rahmen, klare Seitenüberschriften, Kacheln für die Lage
   =================================================================== */
:root { --bg: #eff3ee; --surface-2: #e9eee7; --radius: 22px; --shadow: 0 1px 2px rgba(16, 32, 22, .04), 0 6px 20px rgba(16, 32, 22, .05); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0a0f0c; --surface: #121a15; --surface-2: #1a241e; } }
:root[data-theme="dark"] { --bg: #0a0f0c; --surface: #121a15; --surface-2: #1a241e; }

.card { border: 0; padding: 18px; margin-bottom: 16px; }
.card h2 { font-size: 17px; }
.pagetitle { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 2px 16px; line-height: 1.1; text-wrap: balance; }
.pagetitle span { display: block; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.sect { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 22px 4px 10px; }
header.top { padding-top: 10px; padding-bottom: 10px; }
header.top h1 { font-size: 15px; font-weight: 700; color: var(--muted); }

/* Kopfkarte „Heute“ */
.hero-card { padding: 20px; }
.hero-top { gap: 8px; }
.chip-l { background: rgba(255, 255, 255, .14); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.hero2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.hero-card .big { font-size: 64px; line-height: .95; font-weight: 800; }
.hero-card .cond { font-size: 16px; font-weight: 650; margin: 6px 0 2px; }
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { width: 100%; height: 100%; }
.ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring b { font-size: 26px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ring span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .85; margin-top: 2px; }
.windrow { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .09); }
.windrow .compass { width: 58px; height: 58px; flex: none; }
.reasons { margin: 12px 2px 0; opacity: .85; }

/* Kacheln „Im Revier“ */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; border: 0; border-radius: 18px; padding: 12px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); cursor: pointer; font: inherit; min-height: 72px; }
.tile:disabled { cursor: default; }
.tile:not(:disabled):active { transform: scale(.98); }
.tile .ti { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.tile .ti svg { width: 21px; height: 21px; }
.tile b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile > span:last-child { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.25; }
.tile.good .ti { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.tile.bad .ti { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.tile.accent .ti { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.tile.bad b { color: var(--bad); }

/* Tage & Stunden */
.daybar { gap: 6px; margin-bottom: 10px; scrollbar-width: none; }
.daybar button { display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 7px 10px; background: var(--surface); box-shadow: var(--shadow); }
.daybar button span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.daybar button b { font-size: 16px; font-weight: 800; }
.daybar button[aria-pressed="true"] span { color: inherit; opacity: .85; }
.hourstrip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
.hourstrip::-webkit-scrollbar, .daybar::-webkit-scrollbar { display: none; }
.hc { scroll-snap-align: center; flex: none; width: 64px; border: 0; border-radius: 18px; padding: 10px 4px 8px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; overflow: hidden; }
.hc .hh { font-size: 12px; font-weight: 700; color: var(--muted); }
.hc .he { font-size: 20px; line-height: 1.2; }
.hc b { font-size: 16px; font-weight: 800; }
.hc .hw { font-size: 11.5px; font-weight: 700; display: flex; gap: 2px; align-items: center; }
.hc .hm { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hc .hi { position: absolute; left: 8px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; }
.hc .hi.idx-good { background: var(--good); } .hc .hi.idx-ok { background: var(--ok); } .hc .hi.idx-bad { background: var(--bad); }
.hc.night { background: var(--surface-2); box-shadow: none; }
.hc.night .he, .hc.night b { opacity: .7; }
.hc.sel { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 35%, transparent); }
.hc.sel .hh, .hc.sel .hm { color: inherit; opacity: .85; }
.legend-l { margin: 0 4px 6px; }

/* Wertepaare & Aufklapper */
.pairs { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 10px; }
.pairs > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 2px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.pairs > div:last-child { border-bottom: 0; }
.pairs span { color: var(--muted); font-size: 13.5px; }
.pairs b { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
details.more { margin-top: 8px; }
details.more > summary, details.autobox > summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--brand); padding: 8px 2px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: " ›"; display: inline-block; transition: transform .15s; }
details.more[open] > summary::after { transform: rotate(90deg); }

/* Listen etwas luftiger, Formular-Karten ruhiger */
.list li { gap: 12px; }
.list li strong { font-weight: 700; }
.notice { border-radius: 16px; }
.segtabs { border-radius: 18px; }
@media (prefers-reduced-motion: reduce) { details.more > summary::after { transition: none; } }

/* Anwesenheit & Revierwahl */
.presline { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.presline .dot { background: var(--muted); }
.presline.good .dot { background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 22%, transparent); }
.presline.bad .dot { background: var(--bad); }
.revsel { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.revsel span { font-size: 11px; opacity: .7; }

/* Kartensymbole */
.symi { flex: none; display: block; }
.symlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 2px 2px; font-size: 12px; color: var(--muted); }
.symlegend span { display: inline-flex; align-items: center; gap: 6px; }
.map-overlay .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.9); opacity: .45; } 100% { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map-overlay .pulse { animation: none; } }
.map-ctrl { gap: 8px; }
.map-ctrl button { width: 40px; height: 40px; border-radius: 14px; color: var(--text); }
.map-attr { border-radius: 8px 0 0 0; font-size: 10px; }
.mapwrap { background-color: #dfe7da; }
.typgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.typgrid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 14px; border: 1.5px solid transparent; background: var(--surface-2); color: var(--text); font: inherit; font-size: 11.5px; font-weight: 650; cursor: pointer; }
.typgrid button[aria-checked="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.typgrid button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.traj { width: 100%; height: auto; display: block; margin: 4px 0 10px; }
.tile .ti { font-size: 18px; font-weight: 800; }

/* Wildkameras */
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.kbild { position: relative; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #1a211c; cursor: pointer; }
.kbild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kmeta { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; font-size: 10.5px; font-weight: 700; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.7)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ktag { position: absolute; top: 5px; left: 5px; max-width: calc(100% - 10px); padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ktag.neu { background: var(--accent); }
.kgross { width: 100%; max-height: 52vh; object-fit: contain; border-radius: 14px; background: #111; display: block; cursor: zoom-in; }
.kchips { display: flex; flex-wrap: wrap; gap: 6px; }
.kchips button, .kchips.static span { border: 1.5px solid transparent; background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.kchips button[aria-pressed="true"] { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); border-color: var(--brand); color: var(--brand); }
.kchips.static span { cursor: default; }
.kchips.static span.plus { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.kadmin { padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.upurl code { display: block; font-size: 11.5px; word-break: break-all; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.hbars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; align-items: end; height: 56px; margin-top: 6px; }
.hbars i { display: block; border-radius: 3px 3px 1px 1px; }
.hlab { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 3px; }
/* Kleidung */
.kleid { margin-top: 16px; }
.kaltwarn { padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, #3b82f6 14%, var(--surface)); color: color-mix(in srgb, #1d4ed8 80%, var(--text)); font-weight: 700; margin-bottom: 10px; }
.kltemp { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); }

/* ---------- Drückjagd */
#djmap { height: min(62vh, 560px); border-radius: 18px; overflow: hidden; }
#djmap.pick { cursor: crosshair; outline: 3px solid #ff7a1a; outline-offset: -3px; }
.djhero { background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 28%, transparent) 0%, transparent 45%), linear-gradient(150deg, var(--hero-a), var(--hero-b)); color: #f2f7f3; border: 0; }
.djhero h2 { color: #fff; } .djhero a { color: #ffd2ae; } .djhero .djsub { color: rgba(242, 247, 243, .72); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: 11px; }
.djhero .btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
.djhero .pill { background: rgba(255, 255, 255, .14); color: #fff; } .djhero .pill.bad { background: #e8661c; color: #fff; } .djhero .pill.good { background: rgba(124, 240, 143, .2); color: #c8f7d0; }
.djkpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(52px, 1fr)); gap: 6px; margin-top: 12px; }
.djkpi div { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 8px 2px; text-align: center; min-width: 0; }
.djkpi b { display: block; font-size: 20px; font-weight: 800; } .djkpi span { font-size: 11px; opacity: .8; }
.djkpi .bad { background: #e8661c; }
.djtools { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 10px; padding-bottom: 2px; scrollbar-width: none; }
.djtools .btn { white-space: nowrap; flex: none; border-radius: 999px; font-weight: 650; }
.djnr { flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 999px; background: #1f5b3a; color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,.25); }
.djnr.da { background: #2e9d47; } .djnr.frei { background: #7d8a78; } .djnr.hund { background: #8d6e3f; }
.djliste li { cursor: pointer; }
.djwarn { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.djwarn li { font-size: 13px; padding: 8px 10px 8px 34px; border-radius: 10px; position: relative; background: var(--surface-2); }
.djwarn li::before { position: absolute; left: 11px; top: 7px; font-weight: 800; }
.djwarn li.bad { background: color-mix(in srgb, var(--bad) 14%, var(--surface)); color: var(--bad); } .djwarn li.bad::before { content: '!'; }
.djwarn li.warn { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); } .djwarn li.warn::before { content: '△'; color: var(--ok); }
.djwarn li.info { color: var(--muted); } .djwarn li.info::before { content: 'i'; }
.djfrei { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.djfrei li { padding: 9px 12px; border-radius: 12px; background: color-mix(in srgb, var(--good) 10%, var(--surface)); border-left: 4px solid var(--good); font-weight: 600; font-size: 14px; }
.djleg i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; } .djleg i.sek { border-radius: 2px; background: rgba(46, 157, 71, .3); border: 1.5px dashed #2e9d47; }
.djdate { flex: none; width: 46px; text-align: center; border-radius: 12px; background: var(--surface-2); padding: 4px 0; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.djdate b { display: block; font-size: 18px; color: var(--text); }
.djmein { border: 2px solid #ff7a1a; }
.djheute { border-left: 4px solid #e8661c; }
nav.tabs button { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { nav.tabs .inner { padding: 5px 4px; gap: 0; } nav.tabs button { font-size: 9.6px; letter-spacing: -.02em; padding: 7px 0 6px; } nav.tabs button svg { width: 21px; height: 21px; } }
@media (max-width: 370px) { nav.tabs button { font-size: 9px; letter-spacing: -.03em; } }

/* ---------- Notruf */
.sos { border: 0; background: #d63a2c; color: #fff; font: inherit; font-weight: 900; font-size: 13px; letter-spacing: .06em; border-radius: 999px; padding: 7px 12px; cursor: pointer;
  box-shadow: 0 0 0 3px color-mix(in srgb, #d63a2c 22%, transparent); touch-action: manipulation; user-select: none; -webkit-user-select: none; flex: none; }
.sos:active { transform: scale(.94); }
.nfhead { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.btn.nf112, a.nf112, .btn.sosbtn { background: #d63a2c; border-color: #d63a2c; color: #fff; font-weight: 800; text-decoration: none; }
.btn.nfsend { background: #d63a2c; border-color: #d63a2c; color: #fff; font-weight: 800; font-size: 16px; padding: 12px 18px; border-radius: 14px; }
.btn.good { background: var(--good); border-color: var(--good); color: #fff; font-weight: 700; }
#nfArten button[aria-pressed="true"] { background: color-mix(in srgb, #d63a2c 14%, var(--surface)); border-color: #d63a2c; color: #d63a2c; }
.nfkont { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); line-height: 1.5; }
.nfrec { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nfrec .btn.rec { background: #d63a2c; color: #fff; border-color: #d63a2c; animation: nfblink 1s infinite; }
@keyframes nfblink { 50% { opacity: .6; } }
.nfov { position: fixed; inset: 0; z-index: 100; background: rgba(120, 14, 8, .94); color: #fff; display: grid; place-items: center; padding: 20px; overflow: auto; }
.nfov.aktiv { background: rgba(20, 28, 23, .97); }
.nfcd { width: min(460px, 100%); text-align: center; display: grid; gap: 12px; }
.nfzahl { font-size: 96px; font-weight: 900; line-height: 1; }
.nfov .btn { justify-self: stretch; padding: 14px; font-size: 16px; border-radius: 14px; text-align: center; }
.nfabbr { background: #fff; color: #7a0e08; font-weight: 900; border: 0; }
.nferg { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; text-align: left; }
.nferg li { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 14px; }
.nferg li.ok { border-left: 4px solid #7cf08f; } .nferg li.bad { border-left: 4px solid #ff8a7a; }
#dlg .nferg li { background: var(--surface-2); }
.nfbtns { display: grid; gap: 8px; }
.nfov .btn:not(.nf112):not(.primary):not(.good):not(.nfabbr) { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); }
#nfBanner { position: fixed; left: 10px; right: 10px; top: calc(8px + env(safe-area-inset-top, 0px)); z-index: 90; display: grid; gap: 6px; max-width: 640px; margin: 0 auto; }
#nfBanner .nfb { background: #d63a2c; color: #fff; padding: 12px 14px; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.3); font-size: 14px; }
#nfBanner .btn { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); color: #fff; text-decoration: none; }
.nfpub { border: 3px solid #d63a2c; }
#nfMap { height: 50vh; min-height: 300px; border-radius: 18px; overflow: hidden; margin-top: 12px; }
.rpicon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #00843d; color: #fff; font-size: 30px; font-weight: 900; flex: none; }

/* ---------- Trefferbild */
.trbild { position: relative; width: 100%; max-width: 520px; margin: 0 auto; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.trbild svg, .trbild img { display: block; width: 100%; height: auto; border-radius: 12px; }
.trbild svg { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.trbild.gross { cursor: crosshair; }
.trkoerper { fill: #b58a5b; stroke: #6b4b2a; stroke-width: 2.5; stroke-linejoin: round; }
.trz { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.5; stroke-dasharray: 4 4; }
.trpunkt { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; pointer-events: none; }
.trpunkt.einschuss { background: #d63a2c; border: 3px solid #fff; box-shadow: 0 0 0 2px #d63a2c, 0 2px 6px rgba(0,0,0,.4); }
.trpunkt.ausschuss { background: transparent; border: 3px solid #d63a2c; box-shadow: 0 0 0 2px #fff; }
.trmini { max-width: 280px; margin-top: 8px; }
.thumb.sel { outline: 3px solid var(--brand); }

/* ---------- Jagdhund */
.hfoto { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: var(--surface-2); font-size: 24px; }
.hfoto.gross { width: 84px; height: 84px; border-radius: 20px; font-size: 40px; }
.hdat { flex: none; width: 78px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 440px) { header.top .src { display: none; } #who .btn { max-width: 96px; } header.top { gap: 8px; } }
a.btn { text-decoration: none; color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
a.btn.primary { color: var(--brand-ink); }

/* ---------- Revierauswahl auf der Startseite */
.revleiste { display: flex; gap: 8px; overflow-x: auto; margin: -4px -16px 14px; padding: 2px 16px 4px; scrollbar-width: none; }
.revleiste::-webkit-scrollbar { display: none; }
.revleiste button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow); }
.revleiste button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.revleiste button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.revleiste .revneu { border-style: dashed; color: var(--muted); box-shadow: none; }

/* ---------- Impf-Ampel und Push */
.ampel { --a: #7d8a78; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; margin-bottom: 14px;
  background: color-mix(in srgb, var(--a) 13%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--a) 45%, transparent); color: var(--text); }
.ampel i { flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 25%, transparent); }
.ampel strong { color: color-mix(in srgb, var(--a) 75%, var(--text)); }
.ampel.gut { --a: #2e9d47; } .ampel.bald { --a: #f08a00; } .ampel.ab { --a: #d63a2c; }
.ampel.ab i { animation: nfblink 1.2s infinite; }
.ampel.kurz { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; margin: 4px 0 0; border-radius: 999px; font-size: 12px; font-weight: 700; border-width: 1px; }
.ampel.kurz i { width: 9px; height: 9px; margin: 0; box-shadow: none; }
.pushic { font-size: 22px; filter: grayscale(1); opacity: .6; } .pushic.an { filter: none; opacity: 1; }
/* 8 Reiter: auf schmalen Handys enger stellen */
@media (max-width: 420px) { nav.tabs { left: max(6px, env(safe-area-inset-left, 0px)); right: max(6px, env(safe-area-inset-right, 0px)); } nav.tabs .inner { padding: 5px 3px; } nav.tabs button svg { width: 20px; height: 20px; } }
@media (max-width: 380px) { nav.tabs button { font-size: 8.6px; letter-spacing: -.035em; } }
@media (max-width: 480px) { nav.tabs { left: max(6px, env(safe-area-inset-left, 0px)); right: max(6px, env(safe-area-inset-right, 0px)); } nav.tabs .inner { padding: 5px 3px; gap: 0; }
  nav.tabs button { font-size: 9.6px; letter-spacing: -.02em; padding: 7px 0 6px; } nav.tabs button svg { width: 20px; height: 20px; } }
@media (max-width: 380px) { nav.tabs button { font-size: 8.6px; letter-spacing: -.035em; } }
@media (max-width: 340px) { nav.tabs button { font-size: 8px; letter-spacing: -.045em; } }
/* Notrufnummern zur Auswahl */
.nfmehr { margin-top: 14px; } .nfmehr summary { cursor: pointer; font-size: 14px; padding: 4px 0; }
.nfgrp { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 10px 0 6px; }
.nfnr { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.nfcall { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); color: var(--text); text-decoration: none; border: 1.5px solid transparent; min-width: 0; }
.nfcall b { font-size: 14px; } .nfcall span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.nfcall.haupt { background: #d63a2c; color: #fff; } .nfcall.haupt span { color: rgba(255,255,255,.85); }
.nfcall.rev { border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.nfov .nfmehr summary { color: #fff; } .nfov .nfgrp { color: rgba(255,255,255,.7); } .nfov .nfcall:not(.haupt) { background: rgba(255,255,255,.1); color: #fff; } .nfov .nfcall span { color: rgba(255,255,255,.75); }
.nfov .nfmehr { text-align: left; }
.nfwahl { display: grid; gap: 4px; } .nfwahl label { display: flex; gap: 8px; align-items: center; }

/* ---------- Revierarbeit */
.revblatt { margin: -4px 0 14px; } .revblatt span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.revblatt .zahl { background: #e8661c; color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.arbfilter { margin-bottom: 10px; } .arbfilter button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.arbk { cursor: pointer; padding: 14px; margin-bottom: 10px; }
.arbk.lauf { border-left: 4px solid var(--good); } .arbk.erl { opacity: .72; } .arbk.erl strong { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text) 40%, transparent); }
.arbic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 22px; }
.arbic.gross { width: 52px; height: 52px; font-size: 28px; border-radius: 16px; }
.arbmeta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pill.accent { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.arbok { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--good); background: var(--surface); color: var(--good); font-size: 20px; font-weight: 900; cursor: pointer; }
.arbok:active { background: var(--good); color: #fff; }
.arbkat { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.arbkat button { border: 1.5px solid transparent; background: var(--surface-2); border-radius: 12px; padding: 8px 4px; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text); }
.arbkat button span { font-size: 20px; } .arbkat button[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.kchips button.aus { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); border-color: var(--brand); color: var(--brand); }
.arbaus { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 6px; }
.arbaus label { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 14px; cursor: pointer; }
.arbaus input:checked + span { text-decoration: line-through; color: var(--muted); }
.arbpack { padding: 10px 0; border-bottom: 1px solid var(--line); }
.revblatt { gap: 4px; } .revblatt label { min-width: 0; } .revblatt span { white-space: nowrap; padding: 9px 4px; font-size: 14px; gap: 4px; }
@media (max-width: 400px) { .revblatt span { font-size: 12.5px; padding: 9px 2px; letter-spacing: -.01em; } .revblatt .zahl { font-size: 10px; padding: 1px 5px; } }

/* ---------- Revier auf der Karte wählen / Lage festlegen */
.rkmap.mapwrap { height: 320px; min-height: 0; }
.rkwrap { position: relative; }
.rkkreuz { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; z-index: 5;
  background: linear-gradient(#d63a2c, #d63a2c) center/3px 100% no-repeat, linear-gradient(#d63a2c, #d63a2c) center/100% 3px no-repeat; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 1px #fff); }
.rltreffer li { padding: 8px 0; } .rltreffer:empty { display: none; }
.revleiste .revkarte { border-style: dashed; color: var(--brand); box-shadow: none; }

/* ---------- Kartensuche */
.ksuche { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 14px; margin-bottom: 8px; box-shadow: var(--shadow); }
.ksuche:focus-within { border-color: var(--brand); }
.ksuche input { flex: 1; border: 0; background: none; font: inherit; font-size: 15px; padding: 8px 0; min-width: 0; outline: none; color: var(--text); }
.ksuche input::-webkit-search-cancel-button { display: none; }
.ksx { border: 0; background: var(--surface-2); border-radius: 50%; width: 30px; height: 30px; cursor: pointer; color: var(--muted); }
.ktreffer { list-style: none; margin: -2px 0 8px; padding: 0; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.ktreffer:empty { display: none; }
.ktreffer li { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ktreffer li:last-child { border-bottom: 0; } .ktreffer li:hover { background: var(--surface-2); }
.ktreffer .kt-titel { cursor: default; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 14px 4px; }
.kt-ic { width: 24px; text-align: center; }
.sysneu { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 8%, var(--surface)); font-size: 14px; }
.sysneu ul { margin: 6px 0 0; padding-left: 18px; } .sysneu li { margin: 2px 0; }
.sysstat.ok { color: var(--good); } .sysstat.fehler { color: var(--bad); }

/* ---------- Übersicht: Für dich, + Eintragen, Verwaltung als Menü */
.fuerdich { display: grid; gap: 6px; margin: 0 0 14px; }
.fuerdich .fd-titel { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 2px; }
.fuerdich .fd { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow); border-left: 5px solid var(--line); }
.fuerdich .fd.bad { border-left-color: var(--bad); } .fuerdich .fd.warn { border-left-color: #f08a00; } .fuerdich .fd.info { border-left-color: var(--brand); }
.fuerdich .fd-ic { font-size: 18px; }
.fuerdich.leer { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--good) 12%, var(--surface)); color: var(--good); font-weight: 650; font-size: 14px; }
.plusbtn { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 35; width: 58px; height: 58px; border-radius: 20px; border: 0;
  background: var(--accent); color: #fff; font-size: 34px; font-weight: 400; line-height: 1; cursor: pointer; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 45%, transparent), 0 2px 6px rgba(0,0,0,.2); }
.plusbtn:active { transform: scale(.94); }
#view { padding-bottom: 170px; }
.plusgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plusgrid button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; border: 1.5px solid transparent; background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; text-align: center; line-height: 1.2; }
.plusgrid button span { font-size: 26px; } .plusgrid button:active { border-color: var(--brand); }
.plusnot { width: 100%; margin-top: 10px; padding: 12px; font-size: 15px; }
details.vmenu { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 8px; overflow: hidden; }
details.vmenu > summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 750; font-size: 15.5px; }
details.vmenu > summary::-webkit-details-marker { display: none; }
.vm-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: 18px; flex: none; }
.vm-pfeil { color: var(--muted); font-size: 20px; transition: transform .2s; } details.vmenu[open] .vm-pfeil { transform: rotate(90deg); }
details.vmenu > .card.vm-inhalt { box-shadow: none; margin: 0; border-radius: 0; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); padding-top: 12px; }
details.vmenu > .card.vm-inhalt > h2:first-child { display: none; }
details.vmenu > .card.vm-inhalt > .row:first-child > h2 { display: none; }
.fuerdich .fd { padding: 10px 14px; font-size: 14px; }
.fd-n { background: var(--bad); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 10px; letter-spacing: .03em; margin-left: 6px; }
.fd-weitere { border: 0; background: none; color: var(--brand); font: inherit; font-weight: 750; font-size: 13.5px; padding: 4px 4px; cursor: pointer; justify-self: start; }
.fuerdich .fd[hidden] { display: none; }

/* ---------- Zeichnen: Knöpfe auf der Karte, Hinweis bei einfachem Tippen */
.drawctl { position: absolute; left: 10px; right: 10px; bottom: 34px; z-index: 6; display: flex; gap: 8px; justify-content: center; pointer-events: none; }
.drawctl button { pointer-events: auto; border: 0; border-radius: 999px; padding: 12px 18px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
  background: rgba(20, 28, 23, .88); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.drawctl button.ok { background: var(--brand); }
.drawctl button:disabled { opacity: .45; cursor: default; }
.map-tipp { position: absolute; z-index: 7; transform: translate(-50%, calc(-100% - 18px)); background: rgba(20, 28, 23, .9); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 6px 10px; border-radius: 10px; pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.map-tipp.an { opacity: 1; }
/* Notruf-Testmodus */
.nftest { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, #f08a00 16%, var(--surface)); border: 1.5px dashed #f08a00; font-size: 13px; color: var(--text); text-align: left; }
.nfov .nftest { background: rgba(240,138,0,.2); color: #fff; }
.sos.test { position: relative; background: #8a6d3b; box-shadow: none; }
.sos.test::after { content: 'TEST'; position: absolute; top: -7px; right: -6px; background: #f08a00; color: #fff; font-size: 8.5px; font-weight: 900; padding: 1px 4px; border-radius: 6px; letter-spacing: .04em; }
.nftest-karte { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 14px; }
.nftest-karte.an { background: color-mix(in srgb, #f08a00 14%, var(--surface)); border: 1.5px dashed #f08a00; }
.nftest-karte.aus { background: color-mix(in srgb, var(--bad) 10%, var(--surface)); border: 1.5px solid var(--bad); }

/* ======================================================================
   Handy & Touch: größere Tippflächen (≥ 40 px), lesbare Schrift, kein Zoom beim Tippen in Felder,
   Speichern-Leiste in Formularen immer sichtbar, Abstand zum Home-Balken
   ====================================================================== */
@media (pointer: coarse), (max-width: 600px) {
  html { -webkit-text-size-adjust: 100%; }
  body { -webkit-tap-highlight-color: transparent; }
  .btn { min-height: 42px; padding: 9px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
  .btn.sm { min-height: 38px; padding: 7px 12px; font-size: 14px; }
  select, textarea, input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]) { font-size: 16px !important; min-height: 44px; }
  textarea { min-height: 72px; }
  select { padding-right: 28px; }
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; flex: none; }
  label.small.row, .layerbar label, .nfwahl label, .arbaus label { min-height: 42px; }
  .layerbar { gap: 4px 10px; } .layerbar label { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px; }
  .kchips { gap: 8px; } .kchips button, .kchips.static span { min-height: 40px; padding: 8px 14px; font-size: 14px; }
  .revsel { min-height: 40px; }
  .sos { min-height: 40px; min-width: 58px; font-size: 14px; }
  .fd-weitere { min-height: 40px; }
  .ksuche input { font-size: 16px !important; min-height: 40px; }
  /* Links im Fließtext (Navigation, Telefonnummern …) mit größerer Trefferfläche */
  .small a:not(.btn), .pairs a:not(.btn), .djhero a:not(.btn), p a:not(.btn) { display: inline-block; padding: 8px 2px; margin: -8px 0; }
  /* Mindestgrößen für kleine Beschriftungen */
  .hc .hm, .hc .hh, .daybar button span { font-size: 12px; }
  .kbild .kmeta { font-size: 12px; } .kbild .ktag { font-size: 11.5px; } .hlab { font-size: 11px; }
  .revblatt .zahl, .fd-n { font-size: 11px; } .fuerdich .fd-titel { font-size: 12px; }
  .list li { min-height: 48px; }
  /* Formulare und Dialoge: Aktionsleiste unten fest, Inhalt scrollt */
  dialog.sheet { max-height: calc(100dvh - 12px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom, 0px); }
  #dlg form > .row:last-child, #dlg > div > .row:last-child:has(.btn.primary) {
    position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom, 0px)); z-index: 3; background: var(--surface);
    margin: 8px -16px -16px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
  #dlg form > .row:last-child .btn, #dlg > div > .row:last-child:has(.btn.primary) .btn { min-height: 46px; }
  /* Plus-Knopf nicht über Formularen/Karten-Steuerung; Abstand zum Home-Balken */
  .plusbtn { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .drawctl button { min-height: 48px; }
}
@media (pointer: coarse), (max-width: 600px) {
  details:not(.vmenu) > summary { min-height: 42px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
}
.plusbtn { transition: transform .25s, opacity .25s; } .plusbtn.weg { transform: translateY(160px); opacity: 0; pointer-events: none; }
.ebenen { margin-top: 8px; } .ebenen > summary { font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 36px; }
.ebenen > summary::-webkit-details-marker { display: none; } .ebenen > summary::before { content: '▸'; transition: transform .2s; } .ebenen[open] > summary::before { transform: rotate(90deg); }
.lagehinweis { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
