: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.gps { background: color-mix(in srgb, #1e88e5 16%, transparent); color: #1e6fc0; font-weight: 600; }
.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); }
.ov [hidden] { display: none !important; }
.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: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid #ff9800; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.45); z-index: 2; }
.tapm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #ff9800; }
.tapm span { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); white-space: nowrap; font-size: 12px; font-weight: 700; color: #fff; background: #ff9800; border-radius: 6px; padding: 1px 6px; }
.tapm.an { border-color: #e53935; } .tapm.an::after { background: #e53935; } .tapm.an span { background: #e53935; }
.pline { position: absolute; width: 0; border-left: 2px dashed #ff9800; margin-left: -1px; pointer-events: none; opacity: .9; filter: drop-shadow(0 0 1px rgba(0,0,0,.7)); }
.pmode { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.6); z-index: 3; }
.pmode button { min-height: 40px; padding: 6px 12px; border: 0; border-radius: 9px; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.pmode button.on { background: rgba(255,255,255,.22); }
.pmode .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; } .pmode .dot.z { background: #ff9800; } .pmode .dot.a { background: #e53935; }
.ptip { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); max-width: 92%; text-align: center; font-size: 13px; color: #fff; background: rgba(0,0,0,.6); border-radius: 8px; padding: 4px 10px; pointer-events: none; z-index: 3; }
/* Nach dem Foto: Bild bleibt groß, Formular darunter, ganze Ansicht scrollt */
.ov.review { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ov.review .ovh { position: sticky; top: 0; z-index: 5; }
.ov.review .cam { flex: 0 0 auto; height: min(70vh, 720px); min-height: 320px; }
.ov.review .cam.mini { height: 0; min-height: 0; }
.ov.review .pform { max-height: none; overflow: visible; flex: 0 0 auto; }
.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: 64%; height: 64%; color: var(--zc); transition: transform .25s ease-out; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.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: 3%; 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); }
.kfav { position: absolute; top: 4px; right: 6px; color: #ffd23f; font-size: 17px; text-shadow: 0 1px 3px rgba(0,0,0,.7); line-height: 1; }
.kki { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 9%, transparent); }
.ktier { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.kbalken { display: inline-block; width: 46px; height: 6px; border-radius: 3px; background: var(--line); margin-right: 6px; vertical-align: middle; overflow: hidden; } .kbalken i { display: block; height: 100%; }
.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: 110px; } 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; }
.rltreffer { max-height: 9.5em; overflow-y: auto; } .rltreffer li.akt { background: color-mix(in srgb, var(--brand) 14%, transparent); border-radius: 8px; padding-left: 8px; } .rltreffer li.akt strong::before { content: "📍 "; }
.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; }
/* Bereich festlegen (Schussbereich / guter Wind) */
.sekmodus button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.sekwrap { position: relative; }
.sekmap.mapwrap { height: min(52vh, 380px); }
.sekfang { position: absolute; inset: 0; z-index: 3; touch-action: none; cursor: crosshair; border-radius: var(--radius); box-shadow: inset 0 0 0 3px color-mix(in srgb, #2e9d47 60%, transparent); }
.sekhilfe { margin: 6px 0 0; min-height: 1.4em; }
.sekwerte { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.sekwerte strong { flex: 1 1 200px; }
.sekweite.f { display: flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; }
.sekweite input { width: 84px; }
.sekkompass { margin-top: 8px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.sekkurs { text-align: center; margin-bottom: 8px; }
.sekkurs span { display: block; font-size: 30px; font-weight: 800; color: #1e88e5; font-variant-numeric: tabular-nums; }
.sekkurs small { color: var(--muted); }
.sekvorschau { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.sekvorschau svg { flex: none; }
/* Ansitz-Infos */
.anskurz { margin: 4px 0 10px; }
.anskurz-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.anskurz-g div, .ans-licht div { background: var(--surface-2); border-radius: 10px; padding: 6px 8px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.anskurz-g span, .ans-licht span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anskurz-g b, .ans-licht b { font-size: 16px; font-variant-numeric: tabular-nums; }
.ans-licht { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (min-width: 520px) { .ans-licht { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 440px) { .anskurz-g { grid-template-columns: repeat(2, 1fr); } }
.ans-mond { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.ans-mondsym { font-size: 30px; line-height: 1; }
.ans-tabelle { overflow-x: auto; }
.ans-tabelle table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.ans-tabelle th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; padding: 2px 6px; }
.ans-tabelle td { padding: 5px 6px; border-top: 1px solid var(--line); white-space: nowrap; }
.ans-tabelle td .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.ans-tabelle small { color: var(--muted); }
.ansmap.mapwrap { height: 300px; }
.mp-ic { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, var(--surface)); border: 2px solid var(--c); font-size: 15px; }
.mpliste.auto li { opacity: .9; }
.mprichtung { gap: 6px; flex-wrap: wrap; align-items: center; }
.ansbanner { position: fixed; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 50; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px;
  background: var(--surface); box-shadow: 0 6px 24px rgba(0,0,0,.18); border: 2px solid var(--brand); max-width: 560px; margin: 0 auto; animation: ansein .25s ease-out; }
@keyframes ansein { from { transform: translateY(-12px); opacity: 0; } }
.ansprache { font-size: .7em; font-weight: 600; color: var(--muted); }
.vbliste li { gap: 8px; }
.vb-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, #d32f2f 14%, var(--surface)); border: 2px solid #d32f2f; font-size: 14px; }
/* Gebiet zeichnen: Art wählen */
.gtypwahl { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 6px; scrollbar-width: thin; }
.gtypwahl button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 11px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.gtypwahl button i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; }
.gtypwahl button i.lin { height: 4px; border-radius: 2px; width: 18px; }
.gtypwahl button i.sch { background: repeating-linear-gradient(45deg, var(--c) 0 3px, color-mix(in srgb, var(--c) 25%, transparent) 3px 6px); }
.gtypwahl button[aria-checked="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); }

/* ===================================================================
   Design-Vorschläge (umschaltbar unter Verwaltung → Daten & Darstellung)
   A „Jagdhütte“: warm, klassisch – Pergament, Moosgrün, Holzbraun, Serifen-Überschriften
   B „Signal“: modern, kontrastreich – Signalorange, kantige Schrift, dunkle Leisten
   =================================================================== */
/* ---------- A: Jagdhütte ---------- */
:root[data-design="huette"] {
  --bg: #f3ede1; --surface: #fffcf5; --surface-2: #ece3d1; --text: #2b2118; --muted: #76685a; --line: #ddd1ba;
  --brand: #3d5d2b; --brand-ink: #fffaf0; --accent: #a0522d; --good: #3f7d2a; --ok: #b07d12; --bad: #b5372a;
  --hero-a: #3d5d2b; --hero-b: #2a1d12; --radius: 14px; --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 1px 2px rgba(60, 40, 20, .08), 0 6px 18px rgba(60, 40, 20, .07);
}
@media (prefers-color-scheme: dark) { :root[data-design="huette"]:not([data-theme="light"]) {
  --bg: #16110c; --surface: #211a13; --surface-2: #2c231a; --text: #f0e6d4; --muted: #b5a58e; --line: #3b3025;
  --brand: #a3c47d; --brand-ink: #18120b; --accent: #e3a066; --good: #9cc56e; --ok: #e2b552; --bad: #ff7a62;
  --hero-a: #34502a; --hero-b: #1c140c; --shadow: 0 10px 30px rgba(0,0,0,.4); color-scheme: dark; } }
:root[data-design="huette"][data-theme="dark"] {
  --bg: #16110c; --surface: #211a13; --surface-2: #2c231a; --text: #f0e6d4; --muted: #b5a58e; --line: #3b3025;
  --brand: #a3c47d; --brand-ink: #18120b; --accent: #e3a066; --good: #9cc56e; --ok: #e2b552; --bad: #ff7a62;
  --hero-a: #34502a; --hero-b: #1c140c; --shadow: 0 10px 30px rgba(0,0,0,.4); color-scheme: dark; }
[data-design="huette"] body { background-image: radial-gradient(color-mix(in srgb, var(--accent) 6%, transparent) 1px, transparent 1px); background-size: 22px 22px; }
[data-design="huette"] .card { border: 1px solid var(--line); }
[data-design="huette"] .pagetitle, [data-design="huette"] .card h2, [data-design="huette"] #dlg h2, [data-design="huette"] .hero-card .big, [data-design="huette"] header.top h1 {
  font-family: var(--serif); font-weight: 650; letter-spacing: -0.01em; }
[data-design="huette"] .pagetitle { font-size: 32px; }
[data-design="huette"] .sect { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 17px; font-weight: 600; color: var(--accent); }
[data-design="huette"] .btn { border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
[data-design="huette"] .btn.primary { border-color: var(--brand); box-shadow: 0 3px 0 color-mix(in srgb, var(--brand) 55%, #000 45%); }
[data-design="huette"] .btn.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--brand) 55%, #000 45%); }
[data-design="huette"] nav.tabs { border-radius: 16px; background: color-mix(in srgb, #2b2118 92%, transparent); border-color: #4a3a2a; }
[data-design="huette"] nav.tabs button { color: #cdbfa8; }
[data-design="huette"] nav.tabs button[aria-selected="true"] { background: rgba(255, 245, 225, .12); color: #f6e7c8; }
[data-design="huette"] .pill { border-radius: 6px; }
[data-design="huette"] header.top { background: color-mix(in srgb, var(--bg) 88%, transparent); }
[data-design="huette"] .card.hero-card { background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); }

/* ---------- B: Signal ---------- */
:root[data-design="signal"] {
  --bg: #eceeec; --surface: #ffffff; --surface-2: #e3e6e3; --text: #0e1311; --muted: #56605a; --line: #cfd4cf;
  --brand: #ff6a00; --brand-ink: #140a00; --accent: #ff6a00; --good: #1f9d55; --ok: #d49b00; --bad: #e0362b;
  --hero-a: #18201b; --hero-b: #0b0f0d; --radius: 10px; --cond: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --shadow: 0 1px 0 rgba(0,0,0,.04), 0 2px 10px rgba(0,0,0,.05);
}
@media (prefers-color-scheme: dark) { :root[data-design="signal"]:not([data-theme="light"]) {
  --bg: #090b0a; --surface: #141816; --surface-2: #1d2320; --text: #f2f5f3; --muted: #9aa59f; --line: #2a322e;
  --brand: #ff7a1a; --brand-ink: #140a00; --accent: #ff7a1a; --good: #3ccf7a; --ok: #f0c040; --bad: #ff5a4c;
  --hero-a: #1a211d; --hero-b: #050706; --shadow: none; color-scheme: dark; } }
:root[data-design="signal"][data-theme="dark"] {
  --bg: #090b0a; --surface: #141816; --surface-2: #1d2320; --text: #f2f5f3; --muted: #9aa59f; --line: #2a322e;
  --brand: #ff7a1a; --brand-ink: #140a00; --accent: #ff7a1a; --good: #3ccf7a; --ok: #f0c040; --bad: #ff5a4c;
  --hero-a: #1a211d; --hero-b: #050706; --shadow: none; color-scheme: dark; }
[data-design="signal"] body { font-family: var(--font); font-size: 15.5px; }
[data-design="signal"] .card { border: 1.5px solid var(--line); }
[data-design="signal"] .pagetitle, [data-design="signal"] .sect, [data-design="signal"] .card h2, [data-design="signal"] #dlg h2, [data-design="signal"] .hero-card .big, [data-design="signal"] .kpi .v {
  font-family: var(--cond); letter-spacing: .01em; }
[data-design="signal"] .pagetitle { text-transform: uppercase; font-size: 34px; font-weight: 700; }
[data-design="signal"] .pagetitle span { font-family: var(--font); text-transform: none; }
[data-design="signal"] .card h2, [data-design="signal"] #dlg h2 { text-transform: uppercase; font-weight: 700; font-size: 19px; }
[data-design="signal"] .sect { color: var(--text); border-left: 4px solid var(--accent); padding-left: 8px; letter-spacing: .1em; }
[data-design="signal"] .btn { border-radius: 8px; font-weight: 700; border: 1.5px solid var(--line); background: var(--surface); }
[data-design="signal"] .btn.primary { border-color: var(--brand); text-transform: uppercase; letter-spacing: .04em; box-shadow: none; }
[data-design="signal"] header.top { background: #0e1311; color: #f2f5f3; }
[data-design="signal"] header.top h1 { color: #c9d1cc; }
[data-design="signal"] nav.tabs { border-radius: 12px; background: #0e1311; border: 1px solid #222a26; }
[data-design="signal"] nav.tabs button { color: #9aa59f; }
[data-design="signal"] nav.tabs button[aria-selected="true"] { background: var(--accent); color: #140a00; }
[data-design="signal"] .card.hero-card { background: linear-gradient(150deg, var(--hero-a), var(--hero-b)); border: 0; box-shadow: inset 0 -4px 0 var(--accent); }
[data-design="signal"] .pill { border-radius: 4px; font-weight: 700; }
[data-design="signal"] .mapwrap { border-radius: 10px; }
[data-design="signal"] header.top .btn, [data-design="signal"] header.top button:not(.sos) { background: #1d2320; color: #f2f5f3; border: 1px solid #2f3833; }
[data-design="signal"] header.top .src { color: #9aa59f; }
[data-design="signal"] header.top h1 button.revsel:not(.sos) { background: transparent; border: 0; color: #f2f5f3; }

.ans-notiz { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: 14px; white-space: normal; border-left: 4px solid var(--accent); }
/* Hervorgehobene Knöpfe in beiden Stilen nicht überschreiben */
[data-design] .btn.primary, [data-design] a.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
[data-design] .btn.danger { background: color-mix(in srgb, var(--bad) 12%, var(--surface)); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
[data-design] .btn.nf112, [data-design] .btn.sosbtn { background: var(--bad); color: #fff; border-color: var(--bad); }
[data-design] .btn:disabled { opacity: .5; }
/* Schließen/Abbrechen in Dialogen und Auswahlfenstern immer orange – gut von den übrigen Knöpfen zu unterscheiden */
.btn[data-close], #dlg .btn#sekAbbr, #dlg .btn#mpAbbr, #dlg .btn#pkAbbr, #dlg .btn#anNotizAbbr, [data-design] .btn[data-close] {
  background: #f07a1a; border-color: #f07a1a; color: #fff; font-weight: 700; }
.btn[data-close]:hover, .btn[data-close]:focus-visible { filter: brightness(1.06); }

/* Revierarbeiten auf der Startseite */
.arbheute-box { margin: 0 0 16px; }
.arbheute { display: flex; gap: 10px; align-items: center; background: var(--surface); border-radius: 16px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow); border-left: 4px solid var(--line); cursor: pointer; }
.arbheute.laeuft { border-left-color: #1e88e5; }
.arbheute.ueber { border-left-color: var(--bad); }
.arbheute .arbic { font-size: 22px; flex: none; }
.arbh-knoepfe { display: flex; flex-direction: column; gap: 6px; flex: none; }
.arbh-knoepfe .btn { white-space: nowrap; }
.arbheute-box .fd-titel { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

/* Schließen-Knopf oben rechts in jedem Fenster – bleibt beim Scrollen sichtbar */
.dlg-x { position: sticky; top: 8px; float: right; margin: 8px 8px -48px 0; z-index: 6; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: #f07a1a; color: #fff; font-size: 18px; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.25); display: grid; place-items: center; }
.dlg-x:active { transform: scale(.94); }
#dlg > div > h2:first-child, #dlg > div > .row:first-child h2 { padding-right: 46px; }
/* Fenster nie unter Statusleiste/Notch oder Home-Balken (Home-Bildschirm-App auf dem iPhone) */
dialog.sheet { max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 12px); overflow-y: auto; overscroll-behavior: contain; }

/* Checklisten */
.clbar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 6px 0 2px; }
.clbar.gross { height: 10px; }
.clbar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }
.clschritte { margin: 0; padding-left: 0; list-style: none; counter-reset: cl; }
.clschritte > li { counter-increment: cl; padding: 10px 0 10px 34px; border-top: 1px solid var(--line); position: relative; }
.clschritte > li::before { content: counter(cl); position: absolute; left: 0; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--muted); }
.clschritte > li.ok::before { content: "✓"; background: var(--brand); color: var(--brand-ink); }
.clschritte > li.ok .clhaken span { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.clhaken { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.clhaken input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--brand); }
.clfotos { margin-top: 6px; }

/* Wildursprungsschein */
.wusabschn { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 8px; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.wuscheck { gap: 8px; align-items: flex-start; line-height: 1.35; } .wuscheck input { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.wuscheck.warn { color: var(--bad); }
.sigpad { position: relative; height: 130px; border: 2px dashed var(--line); border-radius: 12px; background: var(--surface); margin-top: 4px; touch-action: none; }
.sigpad canvas { width: 100%; height: 100%; display: block; border-radius: 12px; }
.sigpad .sigweg { position: absolute; right: 6px; top: 6px; }
.sigpad .sighint { position: absolute; left: 0; right: 0; bottom: 40%; text-align: center; color: var(--muted); font-size: 13px; pointer-events: none; display: none; }
.sigpad.leer .sighint { display: block; }
.wusform .seg { margin-top: 4px; }

.zurueck { margin: 4px 0 6px; }

/* Untere Leiste in zwei Zeilen (Handy): größere Symbole und Beschriftungen */
@media (max-width: 760px) {
  /* obere Reihe 6 Reiter, untere Reihe 5 Reiter – gemeinsames Raster mit 30 Spalten */
  nav.tabs .inner { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px 2px; padding: 6px; }
  nav.tabs .inner > button { grid-column: span 6; min-width: 0; }
  nav.tabs .inner > button:nth-child(-n+6) { grid-column: span 5; }
  nav.tabs button { padding: 7px 2px 6px; font-size: 12px; min-height: 54px; border-radius: 16px; }
  nav.tabs button svg { width: 26px; height: 26px; }
  main { padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px)); }
  .plusbtn { bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important; }
  .toast { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  .plusbtn.weg { transform: translateY(220px); }
}
/* Revierkarte etwas kleiner, damit Zeitleiste, Knöpfe und Listen ohne viel Scrollen erreichbar sind */
#map.mapwrap { height: 35vh; min-height: 220px; }
@media (max-width: 760px) { #map.mapwrap { height: 31vh; min-height: 200px; } }
/* Reiterleiste fest am unteren Bildschirmrand (volle Breite, Home-Balken des iPhones berücksichtigt) */
nav.tabs { left: 0; right: 0; bottom: 0; margin: 0; max-width: none; border-radius: 18px 18px 0 0; border-left: 0; border-right: 0; border-bottom: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -6px 20px rgba(10, 20, 14, .12); }
nav.tabs .inner { max-width: 980px; margin: 0 auto; }
@media (max-width: 760px) {
  main { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  .plusbtn { bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important; }
  .toast { bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
}
[data-design] nav.tabs { border-radius: 18px 18px 0 0; left: 0; right: 0; bottom: 0; }
.gpsmess { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: -2px; }
.pkmap.mapwrap { height: min(55vh, 420px); }

/* ---------- Messenger */
.chatav { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: var(--brand); }
.chatav.gr { background: color-mix(in srgb, var(--brand) 18%, var(--surface)); font-size: 18px; }
.chatvor { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatbadge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; }
.chatkopf { gap: 8px; margin: -4px 40px 8px 0; }
.chatverlauf { height: min(60vh, 520px); overflow-y: auto; padding: 8px 4px; display: flex; flex-direction: column; gap: 3px; background: color-mix(in srgb, var(--brand) 5%, var(--surface-2)); border-radius: 14px; overscroll-behavior: contain; }
.chattag { align-self: center; font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--surface); padding: 2px 10px; border-radius: 999px; margin: 8px 0 4px; }
.blase { max-width: 82%; align-self: flex-start; background: var(--surface); padding: 7px 10px 4px; border-radius: 4px 14px 14px 14px; box-shadow: 0 1px 1px rgba(0,0,0,.06); overflow-wrap: anywhere; margin-top: 5px; }
.blase.folge { margin-top: 0; border-radius: 14px; }
.blase.ich { align-self: flex-end; background: color-mix(in srgb, var(--brand) 16%, var(--surface)); border-radius: 14px 4px 14px 14px; }
.blase.ich.folge { border-radius: 14px; }
.blname { font-size: 12px; font-weight: 800; color: var(--brand); margin-bottom: 2px; }
.blzeit { font-size: 10.5px; color: var(--muted); text-align: right; margin-top: 2px; }
.bldel { border: 0; background: none; padding: 0 0 0 4px; cursor: pointer; font-size: 11px; opacity: .6; }
.chateingabe { display: flex; gap: 6px; align-items: flex-end; margin-top: 8px; }
.chateingabe textarea { flex: 1; resize: none; min-height: 40px; max-height: 140px; border-radius: 20px; padding: 9px 14px; font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.umfrage { min-width: 220px; }
.umfopt { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.umfopt > * { position: relative; }
.umfbar { position: absolute !important; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--brand) 14%, transparent); }
.umfkreis { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--brand); display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #fff; flex: none; }
.umfopt.an .umfkreis { background: var(--brand); }
.umfnamen { margin: 2px 0 0 10px; }
.umfform { margin-top: 8px; padding: 10px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 6px; }
.umfopts { display: grid; gap: 6px; } .umfopts input { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }

.kstatus { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 8px 0 4px; color: var(--text); }
.kstatus span { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 40px; }
.kstatus small { font-size: 11px; color: var(--muted); font-weight: 700; } .kstatus b { font-size: 18px; line-height: 22px; }
.kreport { white-space: pre-wrap; font-size: 11.5px; background: var(--surface-2); padding: 8px; border-radius: 8px; max-height: 220px; overflow: auto; }

.smtplog { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.smtplog li { padding: 4px 8px; border-radius: 8px; background: var(--surface-2); }
.smtplog li span { color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }
.smtplog li.ok b { color: var(--good, #2f8f46); } .smtplog li.fehler b { color: var(--bad); } .smtplog li.fehler { background: color-mix(in srgb, var(--bad) 10%, var(--surface-2)); }

.kmail { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); }

.kcheck { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; } .kcheck input[type=checkbox] { flex: none; margin-top: 2px; width: 18px; height: 18px; }

/* Streckenbuch je Wildart nebeneinander (auf dem Handy wischen) */
.sbansicht { flex: none; } .sbansicht span { padding: 6px 10px; font-size: 13px; }
.sbspalten { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 2px 6px; margin: 0 -4px; }
.sbspalte { scroll-snap-align: start; background: var(--surface-2); border-radius: 14px; padding: 10px; min-width: 0; }
.sbkopf { border-left: 4px solid; padding-left: 8px; margin-bottom: 8px; }
.sbliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 60vh; overflow-y: auto; }
.sbliste li { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 10px; padding: 6px 8px; cursor: pointer; font-size: 14px; }
.sbnr { min-width: 24px; text-align: right; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }

.kfelder { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin: 8px 0 6px; }
.kfelder div { background: var(--surface-2); border-radius: 10px; padding: 6px 9px; min-width: 0; }
.kfelder dt { font-size: 11px; color: var(--muted); font-weight: 700; } .kfelder dd { margin: 1px 0 0; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }

.kmenue > summary { cursor: pointer; list-style: none; } .kmenue > summary::-webkit-details-marker { display: none; }
.kmenue > summary::after { content: '›'; float: right; font-size: 22px; color: var(--muted); transition: transform .2s; } .kmenue[open] > summary::after { transform: rotate(90deg); }
.kkurz { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--text); } .kkurz svg { height: 18px; width: auto; }

[hidden] { display: none !important; }

.trifrei { margin: 10px 0; padding: 10px 12px; border-radius: 12px; border-left: 4px solid; }
.trifrei.good { background: color-mix(in srgb, var(--good, #2f8f46) 10%, transparent); border-color: var(--good, #2f8f46); }
.trifrei.warn { background: color-mix(in srgb, #f0a020 12%, transparent); border-color: #f0a020; }
.trifrei.bad { background: color-mix(in srgb, var(--bad) 10%, transparent); border-color: var(--bad); }

.smzeile { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* Dokument-Ansicht (PDF/Foto) mit Schließen-Leiste */
.dokans { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: env(safe-area-inset-top, 0px) 0 0; background: var(--bg); display: flex; flex-direction: column; }
.dokans::backdrop { background: rgba(0,0,0,.5); }
.dokkopf { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dokkopf [data-dzu] { background: var(--accent); color: #fff; }
.dokkopf span { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dokans iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.dokbild { flex: 1; overflow: auto; display: grid; place-items: center; padding: 8px; padding-bottom: env(safe-area-inset-bottom, 0px); } .dokbild img { max-width: 100%; height: auto; }

.dokseiten { flex: 1; overflow: auto; padding: 8px 8px calc(16px + env(safe-area-inset-bottom, 0px)); -webkit-overflow-scrolling: touch; }
.dokseiten canvas { display: block; width: 100%; height: auto; margin: 0 auto 10px; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.18); }
.dokseiten.dokiframe { display: flex; padding: 0; } .dokseiten.dokiframe iframe { flex: 1; width: 100%; border: 0; }

/* Betrachter/in: nur ansehen – Knöpfe zum Eintragen ausblenden (persönliche Dinge wie Hund, Kleidung, Jagdschein bleiben) */
body.nurlesen :is(#mapCheckin, [data-checkin], [data-book], #newA, #sNew, #sImport, [data-clstart], #clNeu, #arbNeu, #bNew, #dBericht, #dCheck, #dBook, #kUp, [data-chat="gruppe"].btn, #addStand) { display: none !important; }

/* Prüfung Wildursprungsschein ↔ Streckenbuch */
.wuspruef { width: 100%; font-size: .85rem; margin-top: 4px; }
.wuspruef td, .wuspruef th { padding: 3px 6px; text-align: left; }
.wuspruef tr.abw td { color: var(--bad); font-weight: 600; }
.wuspruefbox { margin: 10px 0; padding: 8px 10px; border-radius: 12px; background: var(--card2, rgba(0,0,0,.04)); }
.wuspruefbox summary { cursor: pointer; }

/* Ampel Schwarzwild: Ursprungsschein + Wildmarke */
.wusampel { flex: none; display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-left: 4px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px color-mix(in srgb, currentColor 35%, transparent); }
.wusampel.gruen { background: #2e9e4f; color: #2e9e4f; }
.wusampel.gelb { background: #f2b705; color: #f2b705; }
.wusampel.rot { background: #d93025; color: #d93025; }
.wusfehlt { color: var(--bad); font-weight: 600; }
.wusampel-legende { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.wusampel-legende .wusampel { margin: 0 4px 0 0; vertical-align: -2px; }

/* Verwaltung: Gruppenüberschriften */
.vgruppe { margin: 18px 4px 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vgruppe:first-of-type { margin-top: 4px; }

/* Was anziehen: weglassen und Begründungen */
.kchips.static span.minus { text-decoration: line-through; color: var(--muted); background: transparent; border-color: var(--line); }
.klgruende { margin: 10px 0 0; padding-left: 18px; font-size: 14px; }
.klgruende li { margin: 3px 0; }
.klfenster label span { font-size: 13px; }

/* Karte: Wind-Zeitleiste (jetzt bis 48 h) und Windanzeige */
.windleiste { position: relative; }
.windleiste .wl-pfeile, .windleiste .wl-marken { position: relative; height: 30px; margin: 6px 12px 0; }
.windleiste .wl-marken { height: 14px; margin-top: 0; }
.wl-pfeile span { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: 10px; line-height: 1; color: var(--muted); }
.wl-pfeile i { font-style: normal; font-weight: 900; font-size: 15px; display: inline-block; }
.wl-pfeile b { font-weight: 700; margin-top: 1px; }
.wl-marken span { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.wl-marken span:first-child { transform: none; font-weight: 800; color: var(--brand, #1f5a3a); }
.windleiste .slider { margin: 2px 0 0; }
.windrose { position: absolute; left: 10px; top: 10px; z-index: 5; pointer-events: none; text-align: center; font-size: 11px; font-weight: 800; color: #18241c; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.windrose .wr-zeit { font-weight: 600; font-size: 10px; }

/* Wind je Sitz: grün passt, orange grenzwertig, rot schlecht */
.windknoepfe { display: flex; flex-wrap: wrap; gap: 3px; }
.windknopf { border: 0; border-radius: 999px; padding: 2px 6px; font: inherit; font-size: 9.5px; line-height: 13px; font-weight: 750; color: #fff; cursor: pointer; }
.windleiste .wl-legende { font-size: 9px; line-height: 1.2; margin-top: 3px !important; }
.windleiste .wpunkt { width: 6px; height: 6px; }
.windknopf.good { background: #2e7d32; } .windknopf.warn { background: #ef8a17; } .windknopf.bad { background: #c62828; }
.wpunkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: 0; }
.wpunkt.good { background: #2e7d32; } .wpunkt.warn { background: #ef8a17; } .wpunkt.bad { background: #c62828; }
.pill.warn { background: color-mix(in srgb, #ef8a17 18%, var(--surface)); color: #b45f06; }

/* Wehender Wind über der Karte */
.windanim { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 4; border-radius: inherit; mix-blend-mode: normal; }

/* Wildunfall */
.wuheute-box { margin-bottom: 12px; display: grid; gap: 8px; }
.wuheute { background: #c62828; color: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 4px 16px rgba(198,40,40,.35); cursor: pointer; animation: wurand 1.6s ease-in-out infinite; display: grid; gap: 3px; }
.wuheute a:not(.btn) { color: #fff; font-weight: 700; }
.wuheute .wu-kopf { display: flex; align-items: center; gap: 8px; letter-spacing: .06em; }
.wuheute .wu-ort { font-size: 1.25rem; font-weight: 800; }
.wuheute .wu-meldung { opacity: .95; white-space: pre-wrap; }
.wuheute .wu-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.wuheute .btn { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.5); }
.wuheute .btn.wu-an { background: #fff; color: #c62828; font-weight: 800; }
.wu-blink { width: 12px; height: 12px; border-radius: 50%; background: #ff5252; box-shadow: 0 0 0 0 rgba(255,82,82,.8); animation: wublink 1s ease-in-out infinite; flex: none; }
.wuheute .wu-blink { background: #fff; }
@keyframes wublink { 50% { opacity: .2; } }
@keyframes wurand { 50% { box-shadow: 0 0 0 4px rgba(198,40,40,.35), 0 4px 16px rgba(198,40,40,.35); } }
.map-overlay .wu-punkt { animation: wublink 1s ease-in-out infinite; }
.wukarte { margin-top: 10px; border: 2px solid rgba(198,40,40,.35); }
.wu-neu { background: #c62828 !important; color: #fff !important; border-color: #c62828 !important; }
.btn.wu-an { font-weight: 800; }
.wu-zeile { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line, #e3e7e0); cursor: pointer; }
.wu-zeile.offen b { color: #c62828; }
.wu-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; }
.wu-dl dt { color: var(--muted, #6b776c); font-size: .85rem; }
.wu-dl dd { margin: 0; }
.wu-senden { background: #c62828 !important; border-color: #c62828 !important; }
@media (prefers-reduced-motion: reduce) { .wuheute, .wu-blink, .map-overlay .wu-punkt { animation: none; } }

.wu-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wu-chip { border: 1.5px solid #d9b3b3; background: #fff; color: #7a1f1f; border-radius: 999px; padding: 6px 11px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.wu-chip.an { background: #c62828; border-color: #c62828; color: #fff; }
.kms-gruppe { padding: 8px 0; border-top: 1px solid var(--line, #e3e7e0); }
.kms-zeile { display: flex; align-items: center; gap: 8px; padding: 3px 0 3px 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.km-auswahl { display: grid; gap: 6px; margin-top: 6px; }
.km-auswahl .btn { text-align: left; white-space: normal; height: auto; padding: 8px 10px; line-height: 1.3; }

.map-ovl { pointer-events: none; }

.km-vorschlag { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.km-vorschlag:empty { display: none; }
.km-chip { border: 1.5px solid #178a17; background: #fff; color: #145f14; border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 800; cursor: pointer; }
.km-frage { color: #145f14; font-weight: 700; }
.km-alt { margin-top: 8px; }

#wuMap.mapwrap { height: 230px; min-height: 0; }

.km-chip.km-strecke { font-weight: 700; text-align: left; border-radius: 12px; }
.km-chip.an { background: #178a17; color: #fff; }
.km-vorschlag .km-frage { flex-basis: 100%; }
.ktreffer li.an { background: rgba(23,138,23,.1); }

/* gesperrte Karte: Seite scrollt über die Karte, Verschieben erst nach Doppeltippen */
.mapwrap.gesperrt { touch-action: pan-y; }
.mapwrap.gesperrt .map-ctrl [data-sperre] { background: #fff3e0; }

/* Erklärungen zum Aufklappen (spart Platz) */
.wl-erkl { margin-top: 3px; font-size: 10px; line-height: 1.35; }
.wl-erkl summary, .karte-erkl summary { cursor: pointer; list-style: none; display: inline-block; font-weight: 700; }
.wl-erkl summary::-webkit-details-marker, .karte-erkl summary::-webkit-details-marker { display: none; }
.wl-erkl[open] summary, .karte-erkl[open] summary { margin-bottom: 3px; }
.karte-erkl { margin: 8px 2px; }

/* kurze Kameraliste */
.kliste summary { cursor: pointer; list-style: none; }
.kliste summary::-webkit-details-marker { display: none; }
.kl-tab { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 12.5px; }
.kl-tab td { padding: 5px 4px; border-top: 1px solid var(--line, #e3e7e0); vertical-align: middle; }
.kl-tab td:last-child { text-align: right; white-space: nowrap; font-size: 11.5px; }
.kl-adr { border: 0; background: none; padding: 0; font: inherit; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: inherit; cursor: copy; text-align: left; word-break: break-all; }

/* Logo */
.toplogo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1.5px rgba(255,255,255,.7); }
.authlogo { display: block; width: 100%; height: auto; border-radius: 12px; margin: -4px 0 12px; }

/* Schriftzug immer sichtbar: eigene schmale Zeile oben in der (mitlaufenden) Kopfzeile */
header.top { flex-wrap: wrap; row-gap: 6px; }
.brandbar { flex-basis: 100%; display: flex; justify-content: center; margin-top: -4px; }
.brandbar img { height: 54px; width: auto; border-radius: 9px; display: block; background: #b1c59e; }
@media (min-width: 760px) { .brandbar { flex-basis: auto; margin: 0; } .brandbar img { height: 48px; } }

/* Kameras & Freigaben: je Kamera zum Aufklappen */
details.kad-auf > summary { cursor: pointer; list-style: none; }
details.kad-auf > summary::-webkit-details-marker { display: none; }
details.kad-auf > summary .row strong::after { content: ' ▸'; color: var(--muted); font-weight: 600; }
details.kad-auf[open] > summary .row strong::after { content: ' ▾'; }
details.kad-auf[open] > summary { margin-bottom: 6px; }

.kliste .kl-pfeil::after { content: '▸'; color: var(--muted); margin-left: 6px; }
.kliste[open] .kl-pfeil::after { content: '▾'; }
/* Morgenreport: langer KI-Text auf 3 Zeilen gekürzt, Antippen zeigt alles */
.krep-text.zu { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
/* Kamerabilder auswählen zum Löschen */
.kgrid.kwahl .kbild { outline: 2px solid transparent; }
.kgrid.kwahl .kbild::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.35); box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.kgrid.kwahl .kbild.gewaehlt { outline: 3px solid #c62828; outline-offset: -3px; }
.kgrid.kwahl .kbild.gewaehlt::after { content: '✓'; background: #c62828; color: #fff; font-size: 16px; font-weight: 700; line-height: 22px; text-align: center; }
.kgrid.kwahl .kbild.gewaehlt img { opacity: .75; }
#kFavBox summary::-webkit-details-marker { display: none; }

/* ===================================================================
   C „HuntWithJoe“: Farben und Stil des Logos – Salbeigrün, Waldgrün, Oliv, Bronze, Serifen-Kursiv
   =================================================================== */
:root[data-design="joe"] {
  --sage: #b1c59e; --sage-2: #c5d6b5; --forest: #1f3516; --forest-2: #2b4620; --olive: #3d520f; --bronze: #a6741f;
  --bg: #e2ead7; --surface: #f7f9f1; --surface-2: #e7eedd; --text: #1a2912; --muted: #55684a; --line: #c6d4b6;
  --brand: #2a4a1c; --brand-ink: #f3f7ea; --accent: #a6741f; --good: #3b7a2a; --ok: #ad8212; --bad: #b3372a;
  --hero-a: #3b5b29; --hero-b: #1c2e12; --radius: 16px; --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --shadow: 0 1px 0 rgba(255,255,255,.75) inset, 0 1px 2px rgba(31, 53, 22, .08), 0 6px 18px rgba(31, 53, 22, .08);
}
@media (prefers-color-scheme: dark) { :root[data-design="joe"]:not([data-theme="light"]) {
  --bg: #0e160b; --surface: #172212; --surface-2: #203019; --text: #e3ecd6; --muted: #9db08e; --line: #2c3d23;
  --brand: #a9c48f; --brand-ink: #10190b; --accent: #d5a24a; --good: #8fc46e; --ok: #e0b552; --bad: #ff7a62;
  --hero-a: #2f4a22; --hero-b: #0d150a; --shadow: 0 10px 30px rgba(0,0,0,.4); color-scheme: dark; } }
:root[data-design="joe"][data-theme="dark"] {
  --bg: #0e160b; --surface: #172212; --surface-2: #203019; --text: #e3ecd6; --muted: #9db08e; --line: #2c3d23;
  --brand: #a9c48f; --brand-ink: #10190b; --accent: #d5a24a; --good: #8fc46e; --ok: #e0b552; --bad: #ff7a62;
  --hero-a: #2f4a22; --hero-b: #0d150a; --shadow: 0 10px 30px rgba(0,0,0,.4); color-scheme: dark; }
[data-design="joe"] body { background: var(--bg) radial-gradient(ellipse at 50% -10%, color-mix(in srgb, var(--sage) 55%, transparent), transparent 60%) no-repeat; }
/* Kopfzeile im Salbeigrün des Logos – der Schriftzug geht nahtlos in die Leiste über */
/* Kopfzeile, Statusleiste und Schriftzug eine Fläche: exakt das Salbeigrün des Logos, hell wie dunkel */
[data-design="joe"] header.top { background: #b1c59e; -webkit-backdrop-filter: none; backdrop-filter: none; color: #1f3516; box-shadow: 0 1px 0 rgba(31,53,22,.14), 0 8px 18px rgba(0,0,0,.10); }
[data-design="joe"] body::before { background: #b1c59e; }
[data-design="joe"] header.top .src { background: rgba(255,255,255,.4); color: #1f3516; }
[data-design="joe"] header.top h1, [data-design="joe"] header.top h1 button.revsel:not(.sos) { color: #1f3516; }
[data-design="joe"] header.top .btn, [data-design="joe"] header.top button:not(.sos):not(.revsel) { background: rgba(255,255,255,.42); color: #1f3516; border-color: transparent; }
[data-design="joe"] .brandbar img { border-radius: 0; box-shadow: none; background: transparent; }
[data-design="joe"] .pagetitle, [data-design="joe"] .card h2, [data-design="joe"] #dlg h2, [data-design="joe"] .hero-card .big {
  font-family: var(--serif); font-style: italic; font-weight: 700; letter-spacing: -0.01em; color: var(--brand); }
[data-design="joe"] .hero-card .big { color: inherit; }
[data-design="joe"] .pagetitle { font-size: 32px; }
[data-design="joe"] .sect { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 17px; font-weight: 700; color: var(--olive); }
[data-design="joe"] .card { border: 1px solid var(--line); }
[data-design="joe"] .btn { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
[data-design="joe"] .btn.primary { box-shadow: 0 3px 0 color-mix(in srgb, var(--brand) 55%, #000 45%); }
[data-design="joe"] .btn.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--brand) 55%, #000 45%); }
[data-design="joe"] .pill { border-radius: 999px; }
/* Untere Leiste in Waldgrün wie Bäume und Bogen im Logo, aktiver Reiter salbeigrün */
[data-design="joe"] nav.tabs { background: color-mix(in srgb, var(--forest) 96%, transparent); border-color: #34502a; }
[data-design="joe"] nav.tabs button { color: #c3d4b0; }
[data-design="joe"] nav.tabs button[aria-selected="true"] { background: var(--sage); color: var(--forest); }
[data-design="joe"] .card.hero-card { background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); }
@media (prefers-color-scheme: dark) { :root[data-design="joe"]:not([data-theme="light"]) body { background: var(--bg) radial-gradient(ellipse at 50% -10%, rgba(52, 80, 38, .55), transparent 60%) no-repeat; } }
:root[data-design="joe"][data-theme="dark"] body { background: var(--bg) radial-gradient(ellipse at 50% -10%, rgba(52, 80, 38, .55), transparent 60%) no-repeat; }

/* Schießbuch */
.sbbild { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; }
.sbbild.leer { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px; }
.sbnotiz { margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sbfest { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
#sbMap.mapwrap { height: 220px; min-height: 0; }
.sbbars { display: flex; align-items: flex-end; gap: 4px; height: 130px; margin: 4px 0 12px; }
.sbbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.sbsaeule { width: 100%; max-width: 30px; background: var(--brand); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.sbn { font-size: 11.5px; font-weight: 700; color: var(--muted); height: 16px; }
.sbl { font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.sbkpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sbkpi { background: var(--surface-2); border-radius: 12px; padding: 8px 6px; text-align: center; display: flex; flex-direction: column; }
.sbkpi b { font-size: 20px; } .sbkpi span { font-size: 11.5px; color: var(--muted); }
.kki.kki-falsch { border-left: 3px solid var(--accent); }

/* Kalender */
.kal-gitter { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.kal-wt { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); padding-bottom: 2px; }
.kal-tag { aspect-ratio: 1 / 1; border: 1px solid transparent; border-radius: 10px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; padding: 0; }
.kal-tag.heute { border-color: var(--brand); font-weight: 800; }
.kal-tag.gewaehlt { background: var(--brand); color: var(--brand-ink); }
.kal-tag i { display: flex; gap: 2px; height: 6px; }
.kal-tag i b, .kal-marke { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.kal-tag i b.jagd, .kal-marke.jagd { background: #c0392b; }
.kal-tag.gewaehlt i b { background: var(--brand-ink); }
.kal-marke { width: 10px; height: 10px; flex: none; margin-top: 6px; align-self: flex-start; }

/* Blätter im Reiter „Revier“: vier gleich breite Felder, Zahl als kleines Abzeichen oben rechts */
.seg.revblatt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.revblatt label { position: relative; min-width: 0; }
.revblatt span { display: block; padding: 10px 2px; font-size: clamp(11.5px, 3.4vw, 14px); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.revblatt .zahl { position: absolute; top: -7px; right: -3px; font-size: 10.5px; line-height: 1.45; padding: 0 6px; min-width: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg); pointer-events: none; }
@media (max-width: 400px) { .revblatt span { padding: 9px 1px; } .revblatt .zahl { font-size: 10px; padding: 0 5px; } }
.revblatt i { font-style: normal; } .revblatt .kurz { display: none; }
@media (max-width: 380px) { .revblatt .lang { display: none; } .revblatt .kurz { display: inline; } }
#who .btn { display: inline-flex; align-items: center; justify-content: flex-start; gap: 4px; min-width: 0; }
#who .who-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* Abzeichen der Revier-Blätter nicht unter der Kopfzeile verschwinden lassen */
.seg.revblatt { margin-top: 14px; }
.revblatt .zahl { top: -6px; }
/* iPhone (Home-Bildschirm/App): Inhalt um die Statusleiste nach unten schieben – sonst verdeckt die
   klebende Kopfzeile (top: safe-area) oben ein Stück der Seite (Überschrift, Blätter-Leiste) */
.app { padding-top: env(safe-area-inset-top, 0px); }

/* Kalender: Geburtstage */
.kal-tag i b.geb, .kal-marke.geb { background: #e05a9a; }
.kal-tag.geb span::after { content: '🎂'; font-size: 9px; position: relative; top: -6px; margin-left: 1px; }
li.kal-geb strong { color: #c2407e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) li.kal-geb strong { color: #f08cbc; } }
:root[data-theme="dark"] li.kal-geb strong { color: #f08cbc; }
.nwdatei { position: relative; display: inline-block; } .nwdatei .thumb-x { position: absolute; top: -6px; right: -6px; }
.nwkonto .kchips { gap: 6px; } .nwkonto .kchips button { font-size: 13px; padding: 6px 10px; }
.ord-balken { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; } .ord-balken i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
a.btn.aus { opacity: .5; pointer-events: auto; }
.organ { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.organ .kchips button { font-size: 13px; padding: 6px 10px; }
