/* Saisonkarten Engine – gemeinsames Layout für alle vier Karten.
   Layout: Kopfzeile, darunter Panel (links, Desktop) + Karte (rechts); mobil Karte oben, Liste darunter.
   Farben kommen pro Seite als Tokens aus der Site-Konfiguration (siehe build.mjs). */


:root {
  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --topbar-h: 64px;
  --shadow: 0 10px 30px -12px rgb(0 0 0 / .45);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1000;
  display: flex; align-items: center; gap: 12px;
  min-height: var(--topbar-h); padding-inline: 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: var(--on-accent); }
.brand-mark svg { width: 20px; height: 20px; }
.brand-text { display: grid; line-height: 1.1; min-width: 0; }
.brand-name { font: 700 17px/1.1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 11.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.search { position: relative; margin-left: auto; flex: 0 1 300px; min-width: 0; }
.search input {
  width: 100%; height: 40px; padding: 0 12px 0 36px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.search > svg { position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-results {
  position: absolute; top: 46px; left: 0; right: 0; z-index: 10; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow);
}
.search-results button { width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: var(--r-s); background: none; cursor: pointer; }
.search-results button:hover, .search-results button[aria-selected="true"] { background: var(--surface-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { background: transparent; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 14px; }

/* ---------- Demo-Hinweis ---------- */
.demo-banner {
  display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 7px 16px; font-size: 13px; text-align: center;
  background: var(--accent-2); color: var(--on-accent-2);
}

/* ---------- App-Bereich ---------- */
.app {
  display: grid; grid-template-columns: minmax(340px, 420px) 1fr;
  height: calc(100svh - var(--topbar-h)); min-height: 560px; max-height: 980px;
}
.panel { overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg); min-width: 0; }
.panel-inner { display: grid; gap: 18px; padding: 22px 20px 28px; }
.mapwrap { position: relative; min-width: 0; }
#map { position: absolute; inset: 0; background: var(--map-bg); }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hero h1 {
  margin: 6px 0 8px; font: 700 clamp(28px, 3.1vw, 38px)/1.04 var(--f-display);
  letter-spacing: -.02em; text-wrap: balance;
}
.hero p { margin: 0; color: var(--muted); max-width: 46ch; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { padding: 10px 12px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.stat b { display: block; font: 700 22px/1.1 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { font-size: 12px; color: var(--muted); }

.cta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cta-row .btn-primary { flex: 1 1 auto; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); }
.chip[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.filter-label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }

/* Rangliste (Glühwein) */
.ranking { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rank-col { padding: 12px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.rank-col h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rank-col ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.rank-col li { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 13.5px; align-items: baseline; }
.rank-col li span { overflow-wrap: anywhere; line-height: 1.3; }
.rank-col li b { font-variant-numeric: tabular-nums; }

/* Liste */
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; }
.list-head h2 { white-space: nowrap; }
.list-head h2 { margin: 0; font: 600 18px/1.2 var(--f-display); }
.list-head small { color: var(--muted); }
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.entry {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: start;
  padding: 12px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; text-align: left; width: 100%;
}
.entry:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.entry-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.entry-ico svg { width: 20px; height: 20px; }
.entry-main { min-width: 0; }
.entry-title { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.entry-meta { font-size: 13px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.entry-side { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.entry-side small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin: 4px 4px 0 0; }
.tag-demo { background: var(--accent-2); color: var(--on-accent-2); }
.tag-pending { background: transparent; border: 1px dashed var(--muted); }
.tag-sev[data-sev="2"] { background: color-mix(in srgb, var(--accent-2) 16%, transparent); color: var(--accent-2); }
.tag-sev[data-sev="3"] { background: var(--danger); color: #fff; }
.empty { padding: 18px; border-radius: var(--r-m); border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* ---------- Karten-Overlays ---------- */
.map-tools { position: absolute; top: 14px; right: 14px; z-index: 500; display: grid; gap: 8px; }
.map-tools .btn { box-shadow: var(--shadow); }
.pick-pin { position: absolute; left: 50%; top: 50%; z-index: 600; transform: translate(-50%, -100%); pointer-events: none; display: none; }
.pick-pin .mk { animation: bob 1.2s ease-in-out infinite; }
.pick-bar {
  position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 600;
  display: none; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  width: min(560px, calc(100% - 28px)); padding: 12px 14px; border-radius: var(--r-l);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.pick-bar p { margin: 0; flex: 1 1 220px; font-size: 14px; }
.pick-bar p small { display: block; color: var(--muted); }
body.picking .pick-pin { display: block; }
body.picking .pick-bar { display: flex; }
body.picking .map-tools { display: none; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* Marker */
.mk {
  --c: var(--accent);
  width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  background: var(--c); border: 2.5px solid var(--marker-ring); box-shadow: 0 6px 14px -4px rgb(0 0 0 / .55);
  display: grid; place-items: center;
}
.mk svg { width: 17px; height: 17px; transform: rotate(45deg); color: var(--marker-ink); }
.mk-pending { opacity: .7; border-style: dashed; }
.mk-alert { box-shadow: 0 0 0 5px color-mix(in srgb, var(--danger) 45%, transparent), 0 6px 14px -4px rgb(0 0 0 / .55); }
.mk-price {
  transform: none; width: auto; height: 28px; padding: 0 10px; border-radius: 999px; position: relative;
  font: 700 13px/28px var(--f-body); color: #1b1012; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.mk-price::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; background: var(--c); transform: translateX(-50%) rotate(45deg); border-right: 2.5px solid var(--marker-ring); border-bottom: 2.5px solid var(--marker-ring); }
.cluster {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}
.cluster b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 700 13px var(--f-body); font-variant-numeric: tabular-nums; }

.cluster-price { width: 56px; height: 56px; background: color-mix(in srgb, var(--c) 28%, transparent); }
.cluster-price b { width: 46px; height: 46px; background: var(--c); color: #1b1012; display: grid; place-content: center; line-height: 1; font-size: 13px; text-align: center; }
.cluster-price small { display: block; font-size: 9.5px; font-weight: 600; opacity: .75; margin-top: 2px; }

/* Leaflet-Popup im Seitenstil */
.leaflet-popup-content-wrapper { background: var(--surface); color: var(--ink); border-radius: var(--r-m); box-shadow: var(--shadow); border: 1px solid var(--line); }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content { margin: 14px 16px; font: 400 14px/1.45 var(--f-body); min-width: 220px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.pop h3 { margin: 0 0 4px; font: 700 17px/1.2 var(--f-display); }
.pop dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: 13.5px; }
.pop dt { color: var(--muted); }
.pop dd { margin: 0; overflow-wrap: anywhere; }
.pop .pop-price { font: 700 30px/1 var(--f-display); font-variant-numeric: tabular-nums; margin: 6px 0 2px; }
.pop .pop-note { margin: 10px 0 0; padding: 8px 10px; border-radius: var(--r-s); background: var(--surface-2); font-size: 12.5px; color: var(--muted); }
.pop .pop-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pop .pop-actions .btn { height: 32px; padding: 0 11px; font-size: 13px; }
.leaflet-container { font-family: var(--f-body); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--bg) 80%, transparent) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bar a { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.city-label { background: none; border: 0; box-shadow: none; color: var(--muted); font: 600 11.5px var(--f-body); }
.city-label::before { display: none; }

/* ---------- Formular-Sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 2000; background: rgb(0 0 0 / .5); display: grid; place-items: end center; padding: 0; }
.sheet-backdrop[hidden] { display: none !important; }
.sheet {
  width: min(560px, 100%); max-height: min(88svh, 900px); overflow-y: auto;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--r-l) var(--r-l) 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 720px) { .sheet-backdrop { place-items: center; padding: 16px; } .sheet { border-radius: var(--r-l); } }
.sheet-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; }
.sheet-head h2 { margin: 0; font: 700 24px/1.15 var(--f-display); }
.sheet-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 14px; }
.field small { color: var(--muted); font-size: 12.5px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-s);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.field textarea { min-height: 84px; resize: vertical; }
.radios { display: flex; flex-wrap: wrap; gap: 6px; }
.radio { position: relative; }
.radio input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.radio span i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.radio input:checked + span { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.radio input:checked + span i { box-shadow: 0 0 0 2px var(--on-accent); }
.radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-radius: var(--r-s); background: var(--surface-2); }
.suggest-label { width: 100%; font-size: 12.5px; color: var(--muted); }
.suggest-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; text-align: left; }
.suggest-chip small { color: var(--muted); font-weight: 400; font-size: 12px; white-space: nowrap; }
.suggest-chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.suggest-chip[aria-pressed="true"] small { color: var(--on-accent); opacity: .8; }
.field-row:not(:has(> :not([hidden]))) { display: none; }
.field[hidden] { display: none !important; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .field-row { grid-template-columns: 1fr; } }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.check { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.consent { display: flex; gap: 10px; align-items: start; font-size: 14px; }
.consent input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.form-error { color: var(--danger); font-size: 13.5px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success { text-align: center; padding: 10px 0; display: grid; gap: 10px; justify-items: center; }
.success .big { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.success .big svg { width: 32px; height: 32px; }
.success h2 { margin: 0; font: 700 24px/1.2 var(--f-display); }
.success p { margin: 0; color: var(--muted); max-width: 40ch; }

body.sheet-open { overflow: hidden; }
.season-note { padding: 12px 14px; border-radius: var(--r-m); background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 3000;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow); max-width: calc(100% - 32px);
}

/* ---------- SEO-Inhalt unter der Karte ---------- */
.content { border-top: 1px solid var(--line); padding: 56px 16px 32px; }
.content-inner { max-width: 1080px; margin: 0 auto; display: grid; gap: 48px; }
.content h2 { margin: 0 0 12px; font: 700 clamp(24px, 2.6vw, 32px)/1.15 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.content p { max-width: 68ch; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.how { padding: 18px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.how h3 { margin: 0 0 6px; font-size: 16px; }
.how p { margin: 0; color: var(--muted); font-size: 14.5px; }
.how .step { font: 700 13px var(--f-body); color: var(--accent); letter-spacing: .08em; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; max-width: 820px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.section-lede { margin: -4px 0 14px; color: var(--muted); font-size: 14.5px; }
.static-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 28px; }
.static-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.static-list li a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; }
.static-list li small { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.static-list .sl-price { margin-left: auto; color: var(--accent); font-variant-numeric: tabular-nums; }
.static-list .sl-sev { font-size: 12.5px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink); }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.price-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.price-table tbody th { font-weight: 600; }
.price-table tbody th a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; }
.price-table tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.price-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table td:nth-child(2) { font-weight: 700; color: var(--accent); }
.price-table td:last-child, .price-table thead th:last-child { text-align: right; color: var(--muted); }
@media (max-width: 480px) { .price-table thead th:nth-child(2) { font-size: 0; } .price-table thead th:nth-child(2)::after { content: "je 0,2 l"; font-size: 12px; } }
.city-grid { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.city-grid a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
.city-grid a:hover { border-color: var(--accent); }
.city-grid a[aria-current="page"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.city-grid a b { margin-left: 4px; color: var(--accent); font-variant-numeric: tabular-nums; }
.city-grid a[aria-current="page"] b { color: inherit; }
.sister { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.sister a { display: block; padding: 14px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.sister a b { display: block; font-family: var(--f-display); font-size: 17px; }
.sister a span { color: var(--muted); font-size: 13.5px; }
.ad-slot { min-height: 90px; border: 1px dashed var(--line); border-radius: var(--r-m); display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.foot { border-top: 1px solid var(--line); padding: 24px 16px; color: var(--muted); font-size: 13.5px; }
.foot-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.foot a { color: var(--muted); }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  :root { --topbar-h: 58px; }
  .brand-sub { display: none; }
  .search { flex-basis: 180px; }
  .topbar .btn-add-top { display: none; }
  .app { display: flex; flex-direction: column-reverse; height: auto; max-height: none; min-height: 0; }
  .mapwrap { height: 58svh; min-height: 340px; }
  .panel { border-right: 0; overflow: visible; }
  .panel-inner { padding: 18px 16px 24px; }
  .hero h1 { font-size: 28px; }
}
.map-add { display: none; }
@media (max-width: 860px) { .map-tools .map-add { display: inline-flex; } }
@media (max-width: 520px) { .brand-text { display: none; } .search { flex: 1 1 auto; } }
@media (max-width: 380px) { .stats { grid-template-columns: 1fr 1fr; } .stats .stat:nth-child(3) { display: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.leaflet-container a.btn { color: var(--ink); }

/* ---------- Vereinfachtes Melden ---------- */
.cta-row .btn-big { height: 46px; font-size: 15px; }
.btn-icon { width: 46px; padding: 0; flex: none; }
.cta-row .btn-primary { flex: 1 1 100%; }
.cta-row [data-locate] { flex: 1 1 auto; }


.mini { position: relative; height: 190px; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); margin-bottom: 8px; }
#minimap { position: absolute; inset: 0; background: var(--map-bg); }
.mini-pin { position: absolute; left: 50%; top: 50%; z-index: 500; transform: translate(-50%, -100%); pointer-events: none; }
.mini-pin .mk { width: 30px; height: 30px; }
.mini-locate { position: absolute; left: 10px; top: 10px; z-index: 500; box-shadow: var(--shadow); background: var(--surface); }
.mini .leaflet-control-zoom { margin: 0 10px 10px 0; }
.mini-status { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.mini-status b { color: var(--ink); }
.mini-status.warn { color: var(--ink); padding: 8px 12px; border-radius: var(--r-s); background: color-mix(in srgb, var(--accent) 16%, transparent); }

.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-chip { min-height: 44px; min-width: 76px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 16px var(--f-body); font-variant-numeric: tabular-nums; cursor: pointer; }
.quick-chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }

.radios-big { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radios-big .radio span { width: 100%; min-height: 84px; border-radius: var(--r-m); flex-direction: column; justify-content: center; text-align: center; gap: 6px; font-size: 15px; padding: 10px; }
.radios-big .tile-ico { display: grid; place-items: center; width: 34px; height: 34px; }
.radios-big .tile-ico svg { width: 30px; height: 30px; }
.radios-big .radio input:checked + span .tile-ico { color: var(--on-accent) !important; }

details.more { border-top: 1px solid var(--line); padding-top: 12px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; padding: 4px 0; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+ "; }
details.more[open] summary::before { content: "– "; }
details.more summary small { color: var(--muted); font-weight: 400; }
details.more > .form { margin-top: 12px; }
.btn-send { height: 52px; font-size: 16px; }
.confirm { color: var(--muted); font-size: 12.5px; }

.snack {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 3000;
  width: min(520px, calc(100% - 24px)); display: grid; grid-template-columns: auto 1fr auto; gap: 8px 12px; align-items: center;
  padding: 14px 14px 14px 16px; border-radius: var(--r-l); background: var(--ink); color: var(--bg); box-shadow: var(--shadow);
  animation: snack-in .25s ease-out;
}
.snack p { margin: 0; font-size: 14.5px; font-weight: 600; }
.snack-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.snack-ico svg { width: 18px; height: 18px; }
.snack-actions { grid-column: 2 / 4; display: flex; gap: 8px; flex-wrap: wrap; }
.snack-actions .btn { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.snack-actions .btn-primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.snack-x { grid-column: 3; grid-row: 1; background: none; border: 0; color: var(--bg); opacity: .7; font-size: 16px; cursor: pointer; padding: 4px; }
@keyframes snack-in { from { transform: translate(-50%, 16px); opacity: 0; } }
.mapwrap { scroll-margin-top: var(--topbar-h); }
/* Fußleiste im Formular: Fehlermeldung direkt über dem Senden-Knopf, beides bleibt sichtbar */
.form-foot { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom, 0px)); z-index: 5; display: grid; gap: 8px; margin: 0 -20px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--sheet-bg, var(--bg)); box-shadow: 0 -12px 18px -6px var(--sheet-bg, var(--bg)); }
.form-foot:not(:has(.btn-send)):not(:has(.form-error:not([hidden]))) { display: none; }
.form-foot .form-error { margin: 0; padding: 8px 12px; border-radius: var(--r-s); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.mini-status.bad { background: color-mix(in srgb, var(--danger) 18%, transparent); outline: 2px solid color-mix(in srgb, var(--danger) 55%, transparent); }
@keyframes nudge { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.mini-locate.nudge { animation: nudge .45s ease-in-out 2; box-shadow: 0 0 0 3px var(--accent); }
.rank-empty p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.45; }
.ranking:has(> .rank-col:only-child) { grid-template-columns: 1fr; }

.leaflet-container a.btn.btn-primary { color: var(--on-accent); }
