/* Layout: Ein-Bildschirm-App fürs Handy – Karte füllt alles, unten feste Tab-Leiste
   mit 5 großen, beschrifteten Knöpfen. Große Schrift (Atkinson Hyperlegible, für
   Sehschwäche entwickelt), Lodengrün als Grundton, Signalorange wie die Warnweste. */
:root {
  --bg: #e9eee6;
  --surface: #ffffff;
  --surface-2: #dfe6da;
  --fg: #172018;
  --muted: #4b584c;
  --line: #c3cdbd;
  --accent: #2f4a32;        /* Loden */
  --accent-fg: #ffffff;
  --signal: #d9480f;        /* Signalorange */
  --signal-fg: #ffffff;
  --ok: #2b7a3b;
  --ok-bg: #d8f0dc;
  --warn: #b35c00;
  --warn-bg: #fdebd3;
  --danger: #c0262d;
  --danger-bg: #fbe0e0;
  --shadow: 0 6px 24px rgba(20, 35, 20, .18);
  --map-filter: none;
  --bar-bg: var(--accent);
  --bar-fg: var(--accent-fg);
  --font: "Atkinson Hyperlegible", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs: 18px;
  --tab-h: 70px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="night"]) {
    --bg: #111611; --surface: #1b221b; --surface-2: #253025; --fg: #e9eee6; --muted: #a8b4a6; --line: #34412f;
    --accent: #9cc79a; --accent-fg: #0e1a0e; --signal: #ff8a4c; --signal-fg: #1a0a00;
    --ok: #74d68a; --ok-bg: #173a20; --warn: #ffb35c; --warn-bg: #3a2810; --danger: #ff7b7b; --danger-bg: #3d1717;
    --shadow: 0 6px 24px rgba(0, 0, 0, .5); --map-filter: brightness(.82);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111611; --surface: #1b221b; --surface-2: #253025; --fg: #e9eee6; --muted: #a8b4a6; --line: #34412f;
  --accent: #9cc79a; --accent-fg: #0e1a0e; --signal: #ff8a4c; --signal-fg: #1a0a00;
  --ok: #74d68a; --ok-bg: #173a20; --warn: #ffb35c; --warn-bg: #3a2810; --danger: #ff7b7b; --danger-bg: #3d1717;
  --shadow: 0 6px 24px rgba(0, 0, 0, .5); --map-filter: brightness(.82);
  color-scheme: dark;
}
/* Nachtmodus: nur Rottöne auf Schwarz – blendet nicht und schont die Dunkeladaption */
:root[data-theme="night"] {
  --bg: #000000; --surface: #0d0000; --surface-2: #1c0303; --fg: #e0463c; --muted: #9a2c25; --line: #3a0b08;
  --accent: #6e120d; --accent-fg: #ff9a90; --signal: #6e120d; --signal-fg: #ffb4ab;
  --bar-bg: #0d0000; --bar-fg: #e0463c;
  --ok: #ff8a80; --ok-bg: #240605; --warn: #ff6f61; --warn-bg: #240605; --danger: #8f1a12; --danger-bg: #330807;
  --shadow: none; --map-filter: grayscale(1) brightness(.35) sepia(1) hue-rotate(-50deg) saturate(4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
html { font-size: calc(var(--fs) * var(--scale, 1)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font);
  font-size: 1rem; line-height: 1.45; overscroll-behavior: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- App-Gerüst ---------- */
#app { display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.topbar {
  display: flex; align-items: center; gap: .5rem;
  padding: calc(.45rem + env(safe-area-inset-top, 0px)) 16px .45rem;
  background: var(--bar-bg); color: var(--bar-fg);
}
:root[data-theme="night"] .leaflet-overlay-pane,
:root[data-theme="night"] .leaflet-marker-pane,
:root[data-theme="night"] .map-btn,
:root[data-theme="night"] .map-wind { filter: grayscale(1) sepia(1) hue-rotate(-50deg) saturate(5) brightness(.6); }
.topbar-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.topbar-title strong { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title .muted { color: inherit; opacity: .8; font-size: .75rem; }
.chip-btn {
  border: 2px solid currentColor; background: transparent; color: inherit; border-radius: 999px;
  padding: .25rem .8rem; font-size: .9rem; font-weight: 700; max-width: 45vw;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 44px;
}
.icon-btn {
  min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit;
  font-size: 1.3rem; border-radius: 12px; display: grid; place-items: center;
}
#views { position: relative; overflow: hidden; }
.view { position: absolute; inset: 0; }
.page { overflow-y: auto; padding: 16px 16px 32px; -webkit-overflow-scrolling: touch; }
.page > * + * { margin-top: 1rem; }

.tabbar {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px); z-index: 500;
}
.tab {
  border: 0; background: transparent; color: var(--muted); height: var(--tab-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: .82rem; font-weight: 700;
}
.tab svg { width: 28px; height: 28px; fill: currentColor; }
.tab.is-active { color: var(--accent); }
.tab.is-active span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.tab-plus svg { background: var(--accent); fill: var(--accent-fg); border-radius: 50%; width: 34px; height: 34px; padding: 3px; }
.tab-sos { color: var(--danger); }
.tab-sos.is-active { color: var(--danger); }

/* ---------- Grundbausteine ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }
.card > * + * { margin-top: .6rem; }
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.section-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.row > .btn { flex: 1 1 8rem; }
.stack > * + * { margin-top: .6rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 56px; padding: .6rem 1.1rem; border-radius: 14px; border: 2px solid transparent;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; text-align: center; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-signal { background: var(--signal); color: var(--signal-fg); }
.btn-danger { background: var(--danger); color: #fff; }
:root[data-theme="night"] .btn-danger { color: #ffb4ab; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn-soft { background: var(--surface-2); color: var(--fg); }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 44px; padding: .35rem .8rem; font-size: .95rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 1.3em; height: 1.3em; fill: currentColor; flex: none; }

.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .65rem; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-neutral { background: var(--surface-2); color: var(--muted); }
.pill-signal { background: var(--signal); color: var(--signal-fg); }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: .8rem 0; border-top: 1px solid var(--line); display: flex; gap: .75rem; align-items: center; }
.list > li:first-child { border-top: 0; padding-top: .2rem; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 700; }
.thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2); }

/* Kacheln (große Auswahlflächen) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.2rem, 1fr)); gap: .6rem; }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tile {
  min-height: 64px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface);
  font-weight: 700; font-size: 1rem; padding: .5rem; display: flex; align-items: center; justify-content: center; text-align: center;
}
.tile[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.tile-big { min-height: 108px; flex-direction: column; gap: .4rem; font-size: 1.05rem; }
.tile-big svg { width: 36px; height: 36px; fill: var(--accent); }
.tile-big .tile-sub { font-size: .8rem; font-weight: 400; color: var(--muted); }

/* Formulare */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field > label, .field > .label { font-weight: 700; }
.input, select.input, textarea.input {
  width: 100%; min-height: 56px; padding: .6rem .9rem; border-radius: 12px; border: 2px solid var(--line);
  background: var(--surface); font-size: 1.05rem;
}
textarea.input { min-height: 96px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 44px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); padding: .3rem .9rem; font-weight: 700; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.stepper { display: flex; align-items: center; gap: 1rem; }
.stepper button { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface-2); font-size: 2rem; font-weight: 700; line-height: 1; }
.stepper output { font-size: 2.2rem; font-weight: 700; min-width: 3ch; text-align: center; }
.pos-status { padding: .7rem .9rem; border-radius: 12px; background: var(--surface-2); font-weight: 700; }
.pos-status.is-empty { color: var(--muted); font-weight: 400; }
.photo-preview { max-height: 180px; border-radius: 12px; }

/* Fortschrittsbalken (Abschussplan) */
.bar { height: 14px; border-radius: 7px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 7px; }
.bar.is-full > i { background: var(--ok); }
.bar.is-over > i { background: var(--danger); }

/* ---------- Karte ---------- */
#map { position: absolute; inset: 0; background: var(--surface-2); }
.leaflet-tile-pane { filter: var(--map-filter); }
.leaflet-container { font-family: var(--font); font-size: 1rem; }
.leaflet-control-attribution { font-size: 10px !important; }
.map-tools { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 450; }
.map-btn {
  width: 64px; min-height: 64px; border-radius: 14px; border: 0; background: var(--surface); color: var(--fg);
  box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; gap: 2px;
}
.map-btn svg { width: 26px; height: 26px; fill: currentColor; }
.map-wind {
  position: absolute; left: 12px; top: 12px; z-index: 450; background: var(--surface); color: var(--fg);
  border-radius: 14px; padding: .45rem .8rem .45rem .5rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .5rem;
  border: 0; font-weight: 700; max-width: calc(100% - 100px);
}
.map-wind .arrow { width: 40px; height: 40px; flex: none; }
.map-wind small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }

/* Ansitz-Pins */
.pin-wrap { background: none; border: 0; }
.pin {
  width: 40px; height: 40px; margin: 2px; border-radius: 10px; background: var(--accent); color: var(--accent-fg);
  border: 3px solid #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .45); position: relative;
}
.pin.typ-leiter { border-radius: 50%; }
.pin.typ-bock { border-radius: 4px; transform: rotate(45deg); }
.pin.typ-bock b { transform: rotate(-45deg); }
.pin.typ-erdsitz { border-radius: 50% 50% 8px 8px; }
.pin.wind-gut { box-shadow: 0 0 0 4px #37b24d, 0 2px 6px rgba(0, 0, 0, .45); }
.pin.wind-schlecht { box-shadow: 0 0 0 4px #e03131, 0 2px 6px rgba(0, 0, 0, .45); }
.pin.is-belegt { background: var(--signal); color: var(--signal-fg); }
.pin.is-gesperrt { background: #555; color: #fff; text-decoration: line-through; }
.pin.is-selected { outline: 4px solid #fff; outline-offset: 3px; }
.pin-badge {
  position: absolute; top: -10px; right: -10px; width: 22px; height: 22px; border-radius: 50%;
  background: #f59f00; color: #000; font-style: normal; font-size: .8rem; display: grid; place-items: center; border: 2px solid #fff;
}
.pin.typ-bock .pin-badge { transform: rotate(-45deg); }
.pin-label {
  position: absolute; left: 50%; top: 46px; transform: translateX(-50%); white-space: nowrap;
  background: rgba(0, 0, 0, .72); color: #fff; padding: 1px 7px; border-radius: 6px; font-size: .78rem; font-weight: 700;
  pointer-events: none; display: none; text-align: center; line-height: 1.25;
}
.pin-label em { font-style: normal; color: #ffc078; }
.show-labels .pin-label { display: block; }
.map-low .pin { scale: .72; }
.map-low .poi { scale: .8; }
.poi {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); color: #fff; margin: 2px;
}
.poi-kirrung { background: #8a5a2b; }
.poi-salz { background: #e9ecef; color: #333; }
.poi-kamera { background: #364fc7; }
.poi-parkplatz { background: #1971c2; border-radius: 6px; }
.poi-rettung { background: #e03131; border-radius: 6px; font-size: 1.1rem; }
.poi-schaden { background: repeating-linear-gradient(45deg, #f08c00 0 4px, #5c3d00 4px 8px); }
.poi-anschuss { background: #c92a2a; }
.poi-strecke { background: #212529; }
.poi-dj { background: var(--signal); width: 34px; height: 34px; font-size: .95rem; }
.beob-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; color: #fff; font-size: .6rem; font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); margin: 2px; }
.ring-label { background: none; border: 0; }
.ring-label span { display: inline-block; transform: translate(-50%, -50%); background: rgba(0, 0, 0, .7); color: #fff; font-size: .75rem; font-weight: 700; padding: 0 5px; border-radius: 5px; white-space: nowrap; }
.measure-label span { background: var(--signal); color: var(--signal-fg); font-size: .95rem; padding: 2px 8px; }
.leaflet-tooltip.big-tip { font-size: .95rem; font-weight: 700; }

/* Fadenkreuz zum Positionswählen */
.crosshair { position: absolute; inset: 0; z-index: 600; pointer-events: none; }
.crosshair-mark { position: absolute; left: 50%; top: 45%; width: 64px; height: 64px; transform: translate(-50%, -50%); }
.crosshair-mark::before, .crosshair-mark::after { content: ""; position: absolute; background: var(--signal); box-shadow: 0 0 0 2px #fff; }
.crosshair-mark::before { left: 50%; top: 0; bottom: 0; width: 4px; transform: translateX(-50%); }
.crosshair-mark::after { top: 50%; left: 0; right: 0; height: 4px; transform: translateY(-50%); }
.crosshair-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--surface); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow); pointer-events: auto; }
.crosshair-bar p { margin-bottom: .7rem; font-weight: 700; }

/* Bottom-Sheet für Ansitz-Details */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 550; background: var(--surface); color: var(--fg);
  border-radius: 20px 20px 0 0; box-shadow: 0 -6px 30px rgba(0, 0, 0, .25); max-height: 47%;
  display: flex; flex-direction: column; transition: max-height .25s ease;
}
.sheet.is-expanded { max-height: 88%; }
.sheet-handle { width: 56px; height: 6px; border-radius: 3px; background: var(--line); margin: 10px auto 4px; flex: none; }
.sheet-close { position: absolute; right: 8px; top: 6px; }
.sheet-body { overflow-y: auto; padding: .2rem 16px 1.2rem; }
.sheet-body > * + * { margin-top: .8rem; }
.sheet-head { padding-right: 44px; }
.btn-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.btn-row3 .btn { padding: .3rem .4rem; font-size: .9rem; min-height: 52px; }
.sheet-open .map-wind { display: none; }
.sheet-head h2 { font-size: 1.45rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; min-width: 0; }
.alert { border-radius: 12px; padding: .75rem .9rem; font-weight: 700; }
.alert-danger { background: var(--danger-bg); color: var(--danger); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }

/* Ebenen-Auswahl */
.layer-list label { display: flex; align-items: center; gap: .8rem; min-height: 52px; border-top: 1px solid var(--line); font-weight: 700; }
.layer-list label:first-child { border-top: 0; }
.layer-list input { width: 28px; height: 28px; accent-color: var(--accent); flex: none; }
.legend-dot { width: 26px; height: 26px; flex: none; font-size: .6rem; }

/* ---------- Seiten ---------- */
.page-head { display: flex; align-items: center; gap: .6rem; }
.page-head h1 { font-size: 1.5rem; flex: 1; }
.wind-hero { display: flex; gap: 1rem; align-items: center; }
.wind-hero svg { width: 96px; height: 96px; flex: none; }
.wind-hero .big { font-size: 1.6rem; font-weight: 700; line-height: 1.15; }
.hours { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(3.6rem, 1fr); gap: .4rem; overflow-x: auto; padding-bottom: .3rem; }
.hour { text-align: center; background: var(--surface-2); border-radius: 12px; padding: .4rem .2rem; font-size: .85rem; }
.hour svg { width: 30px; height: 30px; display: block; margin: .15rem auto; }
.sun-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.sun-grid div { background: var(--surface-2); border-radius: 12px; padding: .6rem .8rem; }
.sun-grid b { display: block; font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.sun-grid span { font-size: .85rem; color: var(--muted); }
.menu { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.menu li + li { border-top: 1px solid var(--line); }
.menu button { width: 100%; min-height: 64px; border: 0; background: transparent; display: flex; align-items: center; gap: .8rem; padding: .6rem 1rem; text-align: left; font-weight: 700; font-size: 1.05rem; }
.menu button .grow { flex: 1; }
.menu button::after { content: "›"; font-size: 1.6rem; color: var(--muted); }
.sos-btn { width: 100%; min-height: 110px; border-radius: 20px; border: 0; background: var(--danger); color: #fff; font-size: 2rem; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; }
.sos-btn small { font-size: 1rem; font-weight: 400; }
:root[data-theme="night"] .sos-btn { color: #ffb4ab; }
.coords { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
table.jz { width: 100%; border-collapse: collapse; }
table.jz td { padding: .6rem .3rem; border-top: 1px solid var(--line); vertical-align: top; }
table.jz td:last-child { text-align: right; white-space: nowrap; }
.feed-item { display: flex; gap: .7rem; align-items: flex-start; }

/* ---------- Modal (Vollbild auf dem Handy) ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; }
.modal-card { background: var(--bg); width: 100%; max-width: 640px; height: 100%; display: flex; flex-direction: column; }
@media (min-width: 700px) { .modal { align-items: center; } .modal-card { height: auto; max-height: 92%; border-radius: 20px; overflow: hidden; } }
.modal-head { display: flex; align-items: center; gap: .8rem; padding: calc(.6rem + env(safe-area-inset-top, 0px)) 16px .6rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.2rem; flex: 1; }
.modal-body { flex: 1; overflow-y: auto; padding: 16px; }
.modal-body > * + * { margin-top: 1.1rem; }
.modal-foot { padding: .8rem 16px calc(.8rem + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); display: flex; gap: .6rem; }
.modal-foot:empty { display: none; }
.modal-foot .btn { flex: 1; }

.dialog { position: fixed; inset: 0; z-index: 1100; background: rgba(0, 0, 0, .55); display: grid; place-items: center; padding: 16px; }
.dialog-card { background: var(--surface); border-radius: 20px; padding: 1.3rem; width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.dialog-card p { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; white-space: pre-line; }
.dialog-actions { display: flex; flex-direction: column; gap: .6rem; }

.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom, 0px)); z-index: 1200;
  background: var(--fg); color: var(--bg); padding: 1rem 1.1rem; border-radius: 14px; font-weight: 700; font-size: 1.05rem;
  box-shadow: var(--shadow); text-align: center;
}
.toast.is-danger { background: var(--danger); color: #fff; }

#print-area { display: none; }
@media print {
  #app, .modal, .dialog, .toast { display: none !important; }
  #print-area { display: block; color: #000; font-size: 12pt; }
  .standkarte { page-break-after: always; border: 2px solid #000; padding: 1cm; border-radius: 8px; }
  .standkarte h1 { font-size: 28pt; }
}

/* ---------- Server-Version: Einrichtung, Anmeldung, Offline ---------- */
.topbar.is-offline #revier-sub { opacity: 1; background: var(--warn); color: #fff; padding: 0 .4rem; border-radius: 6px; align-self: flex-start; }
.setup-hint {
  position: absolute; left: 12px; right: 88px; bottom: 16px; z-index: 450; background: var(--surface); color: var(--fg);
  border-radius: 16px; padding: .9rem 1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .5rem;
}
.setup-hint ol { margin: 0; padding-left: 1.3rem; }
.setup-hint li.done { color: var(--ok); text-decoration: line-through; }
.mode-bar {
  position: absolute; left: 12px; right: 88px; top: 12px; z-index: 460; background: var(--signal); color: var(--signal-fg);
  border-radius: 14px; padding: .7rem .9rem; box-shadow: var(--shadow); display: flex; gap: .6rem; align-items: center; font-weight: 700;
}
.mode-bar p { flex: 1; }
.mode-bar .btn { background: var(--surface); color: var(--fg); border: 0; }
.sheet-open .setup-hint, .sheet-open .mode-bar { display: none; }
.login-screen { position: fixed; inset: 0; z-index: 1300; background: var(--bg); display: grid; place-items: center; padding: 24px; }
.login-card { max-width: 420px; text-align: center; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.login-card h1 { font-size: 1.8rem; }
.login-card p { font-size: 1.15rem; }
.sperr-row { background: var(--surface-2); border-radius: 12px; padding: .7rem; display: flex; flex-direction: column; gap: .5rem; }
.sperr-row .row select { flex: 1; min-width: 0; }
#a-blick select { flex: 1; min-width: 0; }
.ns-row { background: var(--surface-2); }
