/* Fuchsjagd – dunkel gehalten, damit das Display im Ansitz nicht blendet */
:root {
  --night: #111812;
  --loden: #1c2720;
  --loden-2: #27352b;
  --line: rgba(233, 228, 214, .15);
  --bone: #e9e4d6;
  --muted: #a3aa98;
  --moss: #93b46c;
  --moss-ink: #142109;
  --fox: #e2761b;
  --fox-ink: #1d0f03;
  --danger: #ef6a5b;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-cond: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--night);
  color: var(--bone);
  font: 16px/1.45 var(--f-body);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--fox); outline-offset: 2px; }

#map { position: fixed; inset: 0; background: #0c120e; }

/* ---------- Kopfzeile mit Streckenzähler ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(var(--sat) + 8px) 12px 8px 14px;
  background: rgba(17, 24, 18, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.title {
  flex: 1; min-width: 0;
  margin: 0; font: 600 19px/1.05 var(--f-cond); letter-spacing: .005em;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.tally {
  flex: none; display: flex; align-items: stretch;
  background: var(--fox); color: var(--fox-ink);
  border: 0; border-radius: 10px; padding: 0; overflow: hidden;
}
.tally .t { display: flex; align-items: center; gap: 3px; padding: 4px 8px; }
.tally .t + .t { border-left: 1px solid rgba(29, 15, 3, .25); }
.tally .t i { font-style: normal; font-size: 17px; line-height: 1; }
.tally .t b { font: 700 28px/1 var(--f-cond); font-variant-numeric: tabular-nums; }
.tally .t.zero { opacity: .55; }
@media (max-width: 360px) { .tally .t { padding: 4px 6px; } .tally .t b { font-size: 24px; } }

/* ---------- Kartenumschalter & Standort ---------- */
.map-ctrl {
  position: fixed; z-index: 1000; right: 12px; top: calc(var(--sat) + 70px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.layer-switch, .overlay-switch {
  display: flex; padding: 3px; border-radius: 10px;
  background: rgba(17, 24, 18, .9); border: 1px solid var(--line);
}
.layer-switch button {
  border: 0; background: none; padding: 7px 12px; border-radius: 7px;
  font: 600 15px/1 var(--f-cond); color: var(--muted);
}
.layer-switch button[aria-pressed="true"] { background: var(--bone); color: var(--night); }

.locate {
  position: fixed; z-index: 1000; right: 12px; bottom: calc(var(--sab) + 84px);
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(17, 24, 18, .92); border: 1px solid var(--line); color: var(--bone);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

/* ---------- Aktionsleiste ---------- */
.actions {
  position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 50px 50px 1fr 1fr; gap: 7px;
  padding: 10px 12px calc(var(--sab) + 10px);
  background: rgba(17, 24, 18, .92); border-top: 1px solid var(--line);
}
.act {
  height: 54px; border: 0; border-radius: 12px;
  font: 600 19px/1 var(--f-cond); letter-spacing: .01em;
}
.act-list { background: var(--loden-2); color: var(--bone); display: grid; place-items: center; }
.act-seat { background: var(--moss); color: var(--moss-ink); }
.act-kill { background: var(--fox); color: var(--fox-ink); }
.act:active, .primary:active { transform: translateY(1px); }

body.picking .actions, body.picking .locate { display: none; }

.pickbar {
  position: fixed; z-index: 1100; left: 12px; right: 12px; bottom: calc(var(--sab) + 12px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 14px; border-radius: 14px;
  background: var(--loden); border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}
.pickbar span { font-size: 15px; }
.pickbar button {
  flex: none; border: 0; border-radius: 10px; padding: 12px 16px;
  background: var(--fox); color: var(--fox-ink); font: 600 17px/1 var(--f-cond);
}

/* Leaflet-Steuerelemente frei von Leisten halten */
.leaflet-top { top: calc(var(--sat) + 62px); }
.leaflet-bottom { bottom: calc(var(--sab) + 76px); }
.leaflet-control-attribution {
  background: rgba(17, 24, 18, .7) !important; color: var(--muted) !important; font-size: 10px;
}
.leaflet-control-attribution a { color: var(--bone) !important; }

/* ---------- Marker ---------- */
.fj-icon { background: none; border: 0; }
.mk {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}
.mk-seat { background: var(--moss); color: var(--moss-ink); }
.mk-seat.upcoming { background: #56634b; color: var(--bone); border-style: dashed; }
.mk-seat.ended { background: #4a4d47; color: #bbb; opacity: .6; }
.mk-kill { background: var(--fox); font-size: 18px; line-height: 1; }
.mk-kill.mk-dachs { background: #b9bcb3; }
.mk-kill.mk-wildschwein { background: #8a5a36; }
.mk-kill b {
  position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 4px;
  border-radius: 10px; background: #fff; color: #000;
  font: 700 12px/19px var(--f-body); text-align: center;
}
.mk-draft {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid #fff; background: rgba(226, 118, 27, .55);
  box-shadow: 0 0 0 6px rgba(226, 118, 27, .3), 0 2px 8px rgba(0, 0, 0, .6);
}
.me-dot { fill: #4aa3ff; fill-opacity: 1; stroke: #fff; stroke-width: 3; }
.me-acc { fill: #4aa3ff; fill-opacity: .12; stroke: #4aa3ff; stroke-opacity: .5; stroke-width: 1; }

/* ---------- Popups ---------- */
.fj-popup .leaflet-popup-content-wrapper,
.fj-popup .leaflet-popup-tip { background: var(--loden); color: var(--bone); }
.fj-popup .leaflet-popup-content-wrapper { border-radius: 12px; border: 1px solid var(--line); }
.fj-popup .leaflet-popup-content { margin: 12px 14px; font: 15px/1.4 var(--f-body); }
.fj-popup a.leaflet-popup-close-button { color: var(--muted); font-size: 22px; width: 30px; height: 30px; }
.pp-h { font: 600 20px/1.1 var(--f-cond); margin-bottom: 4px; padding-right: 18px; }
.pp-m { color: var(--muted); font-size: 14px; }
.pp-t { margin-top: 6px; font-weight: 500; }
.pp-t.active { color: var(--moss); }
.pp-t.ended { color: var(--muted); }
.pp-n { margin-top: 6px; white-space: pre-line; }

.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: zoom-in; background: var(--night); }

.del {
  display: block; width: 100%; margin-top: 10px; padding: 9px 10px;
  background: none; border: 1px solid var(--danger); border-radius: 9px;
  color: var(--danger); font: 600 15px/1 var(--f-cond);
}
.del.sm { width: auto; margin-top: 0; flex: none; padding: 7px 10px; }

/* ---------- Bottom Sheets ---------- */
.backdrop { position: fixed; inset: 0; z-index: 1150; background: rgba(0, 0, 0, .35); }
.sheet {
  position: fixed; z-index: 1200; left: 0; right: 0; bottom: 0;
  max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 16px calc(var(--sab) + 18px);
  background: var(--loden); border-top: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .5);
  animation: sheet-in .2s ease-out;
}
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
@media (min-width: 720px) {
  .sheet { left: auto; right: 16px; bottom: 16px; width: 440px; border-radius: 18px; border: 1px solid var(--line); }
}
.grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 2px auto 10px; }
.sheet h2 {
  margin: 0 0 14px; display: flex; align-items: center; justify-content: space-between;
  font: 600 26px/1.1 var(--f-cond);
}
.x { background: none; border: 0; color: var(--muted); font-size: 30px; line-height: 1; padding: 0 6px; }
.hint { margin: 0 0 12px; color: var(--muted); }
.err { color: var(--danger); margin: -4px 0 10px; }

.pos {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 14px; padding: 9px 10px 9px 12px;
  background: var(--loden-2); border-radius: 10px;
}
.pos span { font-size: 14px; font-variant-numeric: tabular-nums; }
.ghost {
  flex: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font: 600 14px/1 var(--f-cond); color: var(--bone);
}

label, .field { display: block; margin-bottom: 12px; min-width: 0; }
label > span, .field-lbl { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
input, textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--bone);
  background: var(--night); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
input[type="datetime-local"] { padding: 10px 8px; min-height: 46px; }
input:focus, textarea:focus { border-color: var(--fox); outline: none; }
textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.stepper { display: grid; grid-template-columns: 44px 1fr 44px; gap: 6px; }
.stepper button {
  border: 1px solid var(--line); background: var(--loden-2); border-radius: 10px;
  font: 600 22px/1 var(--f-body);
}
.stepper input { text-align: center; font: 700 22px/1 var(--f-cond); padding: 8px 4px; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.photos { display: flex; flex-wrap: wrap; gap: 8px; }
.ph, .add-photo { width: 76px; height: 76px; border-radius: 10px; margin: 0; }
.ph { position: relative; }
.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.ph button {
  position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--loden); background: var(--bone); color: var(--night);
  font-size: 16px; line-height: 1; padding: 0;
}
.add-photo {
  display: grid; place-items: center; cursor: pointer;
  border: 1.5px dashed var(--muted); color: var(--bone);
}
.add-photo span { margin: 0; color: var(--bone); font: 600 16px/1 var(--f-cond); }

.primary {
  display: block; width: 100%; height: 54px; margin-top: 6px;
  border: 0; border-radius: 12px; font: 600 20px/1 var(--f-cond);
}
.primary.seat { background: var(--moss); color: var(--moss-ink); }
.primary.kill { background: var(--fox); color: var(--fox-ink); }
.primary:disabled { opacity: .6; }

/* ---------- Liste ---------- */
.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  padding: 3px; margin-bottom: 6px; border-radius: 10px; background: var(--night);
}
.tab { border: 0; background: none; padding: 9px; border-radius: 8px; color: var(--muted); font: 600 17px/1 var(--f-cond); }
.tab[aria-selected="true"] { background: var(--loden-2); color: var(--bone); }
.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 2px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.list li:last-child { border-bottom: 0; }
.list strong { display: block; font-weight: 600; }
.list small { display: block; color: var(--muted); font-size: 14px; }
.list .empty { display: block; text-align: center; color: var(--muted); padding: 28px 0; cursor: default; }
.grow { flex: 1; min-width: 0; }
.dot { flex: none; width: 11px; height: 11px; margin-top: 6px; border-radius: 50%; }
.dot.active { background: var(--moss); box-shadow: 0 0 0 3px rgba(147, 180, 108, .25); }
.dot.upcoming { border: 2px dashed var(--muted); }
.dot.ended { background: #555; }
.cnt { flex: none; min-width: 44px; display: flex; flex-direction: column; align-items: center; gap: 2px; font: 700 26px/1 var(--f-cond); color: var(--fox); }
.cnt i { font-style: normal; font-size: 20px; }

/* ---------- Toast & Lightbox ---------- */
.toast {
  position: fixed; z-index: 1300; left: 50%; top: calc(var(--sat) + 72px);
  transform: translate(-50%, -8px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 10px;
  background: var(--bone); color: var(--night); font-weight: 500;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); color: #fff; }

.lightbox {
  position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center;
  padding: calc(var(--sat) + 12px) 12px calc(var(--sab) + 12px);
  background: rgba(0, 0, 0, .92); cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }

/* ---------- Wildart-Auswahl ---------- */
.species { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.species legend { padding: 0; margin-bottom: 4px; }
.species label { margin: 0; }
.species input { position: absolute; opacity: 0; pointer-events: none; }
.species label > span {
  display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0;
  padding: 10px 4px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--night); color: var(--bone); font: 600 16px/1.1 var(--f-cond); cursor: pointer; text-align: center;
}
.species label > span i { font-style: normal; font-size: 26px; line-height: 1; }
.species input:checked + span { border-color: var(--fox); background: rgba(226, 118, 27, .16); }
.species input:focus-visible + span { outline: 2px solid var(--fox); outline-offset: 2px; }

/* ---------- Passwortseite ---------- */
body.gate-body { overflow: auto; min-height: 100%; display: grid; place-items: center; padding: calc(var(--sat) + 24px) 20px calc(var(--sab) + 24px); }
.gate { width: 100%; max-width: 360px; text-align: center; }
.gate-icon { display: block; margin: 0 auto 14px; border-radius: 16px; }
.gate h1 { font: 600 30px/1.1 var(--f-cond); margin: 0 0 24px; }
.gate-form { text-align: left; }
.gate-form input { font-size: 18px; padding: 13px 14px; }
.gate-err { color: var(--danger); margin: 0 0 12px; }
.gate-hint { color: var(--muted); font-size: 14px; text-align: center; margin: 14px 0 0; }

/* ---------- Ansitz-Zähler ---------- */
.sitting {
  flex: none; display: flex; align-items: center; gap: 5px; align-self: stretch;
  padding: 3px 10px 3px 6px; border-radius: 10px; border: 0;
  background: var(--moss); color: var(--moss-ink);
}
.sitting b { font: 700 28px/1 var(--f-cond); font-variant-numeric: tabular-nums; }
.sitting.zero { background: var(--loden-2); color: var(--muted); }
.kanzel-mini {
  position: relative; width: 26px; height: 26px; flex: none;
}
.kanzel-mini::before {
  content: ""; position: absolute; inset: 0;
  background: #f0ece4; border: 1.5px solid #8a7a5a; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
}
.kanzel-mini img { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; object-fit: contain; }
.topbar { gap: 8px; }
@media (max-width: 380px) {
  .title { font-size: 16px; }
  .sitting { padding: 3px 7px 3px 5px; }
  .sitting b { font-size: 24px; }
}

/* ---------- Kanzel-Marker (aus Revierhelfer) ---------- */
.kanzel { position: relative; width: 32px; height: 40px; }
.kanzel-pin {
  position: absolute; left: 0; top: 0; width: 32px; height: 32px;
  background: #f0ece4; border: 2px solid #8a7a5a;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.kanzel-img {
  position: absolute; left: 3px; top: 3px; width: 26px; height: 26px;
  object-fit: contain; pointer-events: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.kanzel.upcoming .kanzel-pin { border-style: dashed; }
.kanzel.upcoming .kanzel-img { opacity: .8; }
.kanzel.ended { opacity: .45; filter: grayscale(.8); }
.kanzel.active .kanzel-pin { border-color: #6a9a3a; box-shadow: 0 0 0 4px rgba(147, 180, 108, .6), 0 2px 8px rgba(0, 0, 0, .5); }

/* ---------- Chat-Knopf ---------- */
.act-chat { position: relative; background: var(--loden-2); color: var(--bone); display: grid; place-items: center; }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: var(--fox); color: var(--fox-ink);
  font: 700 13px/22px var(--f-body); text-align: center; box-shadow: 0 0 0 2px var(--night);
}

/* ---------- Verlauf & Chat ---------- */
.chat-sheet { display: flex; flex-direction: column; height: 86dvh; max-height: 86dvh; overflow: hidden; padding-bottom: calc(var(--sab) + 10px); }
.chat-sheet:not([hidden]) { display: flex; }
.chat-sheet h2 { margin-bottom: 8px; }
.feed { list-style: none; margin: 0 -16px; padding: 4px 16px 10px; flex: 1; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.feed .day { text-align: center; margin: 12px 0 8px; }
.feed .day span { font-size: 12px; color: var(--muted); background: var(--loden-2); padding: 3px 10px; border-radius: 20px; }
.feed-note { color: var(--muted); text-align: center; padding: 30px 10px; }
.feed .ev {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: start;
  margin: 6px 0; padding: 7px 10px; border-radius: 10px; background: rgba(233, 228, 214, .05);
  font-size: 14px; color: var(--muted);
}
.feed .ev p { margin: 0; color: var(--bone); }
.feed .ev.link { cursor: pointer; }
.feed .ev.link:hover p { text-decoration: underline; }
.ev-ico { font-size: 17px; line-height: 1.2; text-align: center; }
.feed time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.feed .msg { display: flex; margin: 6px 0; }
.feed .msg.me { justify-content: flex-end; }
.bubble {
  max-width: 82%; padding: 7px 11px 5px; border-radius: 14px 14px 14px 4px;
  background: var(--loden-2); overflow-wrap: anywhere;
}
.msg.me .bubble { background: #3a4d2e; border-radius: 14px 14px 4px 14px; }
.bubble b { display: block; font: 600 15px/1.2 var(--f-cond); color: var(--moss); margin-bottom: 2px; }
.bubble p { margin: 0; white-space: pre-line; }
.bubble .meta { display: flex; justify-content: flex-end; gap: 10px; align-items: center; margin-top: 2px; }
.msg-del { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12px; text-decoration: underline; }

.chat-form { flex: none; border-top: 1px solid var(--line); padding-top: 8px; margin: 0 -4px; }
.chat-form .who { display: none; background: none; border: 0; padding: 0 4px 6px; color: var(--muted); font-size: 13px; text-align: left; }
.chat-form .who b { color: var(--bone); font-weight: 600; }
.chat-form.named .who { display: block; }
.chat-form.named #chatName { display: none; }
#chatName { margin-bottom: 6px; padding: 9px 12px; }
.chat-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-row textarea { flex: 1; resize: none; min-height: 46px; max-height: 120px; line-height: 1.35; }
.send {
  flex: none; width: 48px; height: 46px; border: 0; border-radius: 12px;
  background: var(--fox); color: var(--fox-ink); display: grid; place-items: center;
}
.send:disabled { opacity: .5; }

/* ---------- Einblendungen Wind / Ringe ---------- */
.overlay-switch button {
  display: flex; align-items: center; gap: 5px;
  border: 0; background: none; padding: 7px 10px; border-radius: 7px;
  font: 600 15px/1 var(--f-cond); color: var(--muted);
}
.overlay-switch button[aria-pressed="true"] { background: #7cc8ff; color: #06243a; }
.overlay-switch button[data-overlay="rings"][aria-pressed="true"] { background: var(--bone); color: var(--night); }

/* ---------- Wind-Anzeige ---------- */
.wind-chip {
  position: fixed; z-index: 1000; left: 12px; top: calc(var(--sat) + 70px);
  display: flex; align-items: center; gap: 6px; padding: 5px 11px 5px 7px;
  border-radius: 10px; border: 1px solid rgba(124, 200, 255, .45);
  background: rgba(17, 24, 18, .9); color: #7cc8ff;
}
.wind-chip.stale { border-style: dashed; opacity: .75; }
.wind-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.wind-txt b { font: 600 17px/1.05 var(--f-cond); color: var(--bone); }
.wind-txt small { font-size: 12px; color: var(--muted); }

.wind-now { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.wn-arrow { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(124, 200, 255, .12); border: 1.5px solid rgba(124, 200, 255, .5); color: #7cc8ff; }
.wn-dir { font: 600 24px/1.1 var(--f-cond); }
.wn-dir span { font: 500 15px var(--f-body); color: var(--muted); }
.wn-speed { font-size: 16px; margin-top: 2px; }
.wn-scent { font-size: 14px; color: #7cc8ff; margin-top: 4px; }
.wind-hint { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; font-size: 14px;
  background: rgba(226, 118, 27, .14); border: 1px solid rgba(226, 118, 27, .5); }
.wind-strip { display: flex; gap: 4px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -4px; scroll-snap-type: x proximity; }
.ws {
  position: relative; flex: none; width: 50px; padding: 8px 0 6px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--night); color: #7cc8ff; scroll-snap-align: start;
}
.ws.past { opacity: .45; }
.ws.now { background: rgba(124, 200, 255, .16); outline: 1.5px solid #7cc8ff; }
.ws-t { font: 600 14px/1 var(--f-cond); color: var(--bone); }
.ws-d { font: 600 14px/1 var(--f-cond); color: var(--bone); }
.ws-s { font: 700 17px/1 var(--f-cond); color: var(--bone); }
.ws-g { font-size: 11px; color: var(--muted); min-height: 13px; }
.ws-day { position: absolute; top: -2px; left: 4px; font-size: 10px; color: var(--muted); }
.wind-legend { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.pp-wind { margin-top: 6px; font-size: 14px; color: #7cc8ff; }
.pp-wind .pp-m { font-size: 13px; }

/* Kegel und Ringe auf der Karte */
.leaflet-overlay-pane path.cone-own { fill: #a9dcff; }
.leaflet-overlay-pane path.ring { stroke: #1d2b21; stroke-opacity: .75; }
body.sat .leaflet-overlay-pane path.ring { stroke: #ffffff; stroke-opacity: .85; }
.ring-lbl span {
  display: block; text-align: center; font: 600 12px/16px var(--f-cond);
  color: #1d2b21; text-shadow: 0 0 3px #fff, 0 0 3px #fff;
}
body.sat .ring-lbl span { color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.z-lo .ring-lbl { display: none; }
@media (max-width: 380px) {
  .overlay-switch button { padding: 7px 8px; font-size: 14px; }
}

/* ---------- Mittelpunkt-Overlay wie Revierhelfer ---------- */
.center-ov { position: absolute; inset: 0; z-index: 450; pointer-events: none; }
.center-ov svg { display: block; }
.cring { fill: none; stroke: #facc15; stroke-width: 2.5; stroke-dasharray: 8 4; stroke-opacity: .95; }
.cring-lbl {
  fill: #fde68a; font: 700 11px system-ui, -apple-system, sans-serif; white-space: pre;
  stroke: rgba(0, 0, 0, .8); stroke-width: 3.5px; paint-order: stroke; stroke-linejoin: round;
}
.cross { stroke: #facc15; stroke-width: 3; }

/* Blickrichtung (Kompass) am eigenen Standort */
.heading-cone { overflow: visible; }
.hc1 { fill: rgb(255, 200, 50); fill-opacity: .3; }
.hc2 { fill: rgb(255, 200, 50); fill-opacity: .7; }
.hc3 { fill: rgb(255, 200, 50); fill-opacity: 1; }

/* Gegenwind / Rückenwind */
.wind-chip .wind-rel {
  margin-left: 4px; padding-left: 8px; border-left: 1px solid var(--line);
  font: 600 14px/1.1 var(--f-cond); white-space: nowrap;
}
.rel-gegen { color: #4ade80; }
.rel-rueck { color: #f87171; }
.rel-seite { color: #fbbf24; }
.rel-vorn { color: #a3e635; }
.rel-hinten { color: #fb923c; }
.wind-chip.err { color: var(--muted); border-color: var(--line); }
.wn-rel { margin-top: 6px; font: 600 17px/1.2 var(--f-cond); }
.wn-rel span { font: 400 13px var(--f-body); color: var(--muted); }
.wn-rel-hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
@media (max-width: 380px) { .wind-chip .wind-rel { font-size: 13px; padding-left: 6px; } }

/* ---------- Sitz abmelden ---------- */
.act-seat.act-leave { background: transparent; color: var(--moss); box-shadow: inset 0 0 0 2px var(--moss); }

/* ---------- Wildart-Bilder (Revierhelfer) ---------- */
.art-img { display: inline-block; object-fit: contain; vertical-align: middle; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mk-kill .mk-img { width: 26px; height: 26px; }
.pp-img { width: 28px; height: 28px; margin: -4px 2px 0 0; }
.cnt-img { width: 30px; height: 30px; }
.ev-img { width: 22px; height: 22px; }
.tally-img { width: 22px; height: 22px; }
.species-img { width: 40px; height: 40px; }

/* Wildart-Medaillons aus Revierhelfer statt farbigem Kreis */
.mk-kill.has-img { background: none; border: 0; box-shadow: none; }
.mk-kill.has-img .mk-img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, .55); }
.ev-kanzel { background: #f0ece4; border-radius: 5px; padding: 1px; }

/* ---------- Windkegel wie Revierhelfer ---------- */
.wind-cone { position: absolute; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.wind-cone[hidden] { display: none; }
.wc-img {
  width: 82px; height: 82px; transform-origin: center center;
  transform: rotate(var(--rh-wind-rot, 0deg));
  animation: rhWindConeSwing 2.4s ease-in-out infinite;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .45));
}
.wc-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wc-lbl {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, 26px);
  font: 600 9.5px system-ui, -apple-system, sans-serif; color: #dff0ff; white-space: nowrap; letter-spacing: .03em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 6px rgba(0, 0, 0, .8);
}
@keyframes rhWindConeSwing {
  0%, 100% { transform: rotate(var(--rh-wind-rot, 0deg)) translateX(0) scale(1); }
  50% { transform: rotate(var(--rh-wind-rot, 0deg)) translateX(8px) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) { .wc-img { animation: none; } }

/* Sitzart */
.sitzarten .species-img { width: 44px; height: 44px; background: #f0ece4; border-radius: 8px; padding: 2px; }
.pp-art { display: flex; align-items: center; gap: 6px; }
.pp-sitz-img { width: 26px; height: 26px; background: #f0ece4; border-radius: 5px; }

.wn-src { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pos span { line-height: 1.35; }

/* ---------- Manueller Standort ---------- */
.me-dot.me-manual { fill: #e2761b; stroke: #fff; stroke-width: 3; stroke-dasharray: 3 2; }
.me-pin { position: absolute; left: 50%; top: 50%; z-index: 800; width: 32px; height: 44px; margin: -44px 0 0 -16px; pointer-events: none; display: none; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .5)); }
body.picking-center .me-pin { display: block; }
/* Beim Positionieren nur der Pin: Distanzringe, Fadenkreuz und Windkegel ausblenden */
body.picking .center-ov { display: none; }
.pickbar { flex-wrap: wrap; }
.pick-btns { display: flex; gap: 8px; margin-left: auto; }
.pickbar .pick-cancel { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px var(--line); }
.me-state { margin: 0 0 10px; font-size: 16px; font-weight: 500; }
.me-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.me-actions .ghost { flex: 1 1 45%; padding: 11px 10px; font-size: 15px; }
.danger-txt { color: var(--danger) !important; border-color: rgba(239, 106, 91, .5) !important; }

/* ---------- Mobil: Formulare ohne seitliches Scrollen ---------- */
.sheet { overflow-x: hidden; }
/* Unsichtbare Auswahlfelder (Sitzart/Wildart) im eigenen Kästchen halten – sonst ragen sie über den Rand */
.species label { position: relative; }
.species input { top: 0; left: 0; width: 1px; height: 1px; margin: 0; }
/* Spalten dürfen schmaler werden als der Inhalt der Felder */
.row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* Datum/Uhrzeit: iPhone hält sonst an der eigenen Breite fest */
input[type="datetime-local"] { -webkit-appearance: none; appearance: none; display: block; max-width: 100%; text-align: left; }
input[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; }
/* Auf dem Handy „von“ und „bis“ untereinander, damit Datum und Uhrzeit vollständig lesbar sind */
@media (max-width: 499px) {
  .row2.times { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
/* Positionsfeld: langer Hinweistext bricht um, Knopf rutscht bei Bedarf darunter */
.pos { flex-wrap: wrap; }
.pos span { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.pos .ghost { margin-left: auto; }
.pos.long span { flex-basis: 100%; }
