:root { --accent: #2a9d8f; --warn: #e76f51; --bg: #fff; --fg: #222; --muted: #666; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: system-ui, sans-serif; color: var(--fg); background: var(--bg); line-height: 1.5; }

/* --- Karte (in einem Wrapper, Bedienelemente liegen darüber) --- */
.map-wrap { position: relative; height: 70vh; min-height: 360px; }
.map-wrap.full { height: 100vh; height: 100dvh; min-height: 0; }
#map { position: absolute; inset: 0; }
body.is-full { overflow: hidden; }

.backlink { position: absolute; top: 10px; left: 10px; z-index: 1200;
  background: var(--bg); color: var(--fg); text-decoration: none;
  padding: 8px 12px; border-radius: 8px; box-shadow: 0 1px 6px rgba(0,0,0,.3); font-size: .95rem; }
/* Zoom-Steuerung unter den Zurück-Link schieben (nur Vollbild-Seite) */
body.is-full .leaflet-top.leaflet-left { margin-top: 46px; }

/* --- Landing-Layout --- */
.container { max-width: 900px; margin: 0 auto; padding: 0 16px; }
.site-header { background: var(--accent); color: #fff; padding: 18px 0; }
.site-header h1 { margin: 0; font-size: 1.5rem; }
.site-header p { margin: 4px 0 0; opacity: .92; font-size: .95rem; }
.intro { padding: 20px 0 0; }
.maptools { display: flex; justify-content: flex-end; padding: 12px 0; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 9px 16px; border-radius: 8px; font-size: .95rem; }
.airinfo { display: none; margin: 16px 0 4px; padding: 12px 14px; border-radius: 8px;
  background: #fff7ed; border: 1px solid #f0d9bf; font-size: .95rem; line-height: 1.4; }
.air-item { white-space: nowrap; }
.air-badge { color: #fff; border-radius: 4px; padding: 1px 7px; font-size: .82rem; margin-left: 2px; }
.air-hint { color: #7a5; color: var(--muted); font-size: .85rem; margin-top: 6px; }
.air-src { color: var(--muted); font-size: .75rem; margin-top: 6px; }
.air-src a { color: var(--muted); }

.info { padding: 22px 0; }
.info h2 { font-size: 1.2rem; margin: 18px 0 8px; }
.info ul { margin: 0; padding-left: 1.2em; }
.note { background: #fdece7; border-left: 4px solid var(--warn);
  padding: 10px 12px; border-radius: 4px; margin: 14px 0; }
.site-footer { border-top: 1px solid #eee; padding: 18px 0; color: var(--muted); font-size: .9rem; }
.site-footer a { color: var(--muted); }

/* --- Rechtstexte / Lesetext --- */
.prose { padding: 24px 0 40px; }
.prose h2 { font-size: 1.2rem; margin: 22px 0 8px; }
.prose p, .prose li { max-width: 70ch; }
.prose a { color: var(--accent); }
.prose .back { display: inline-block; margin-bottom: 8px; color: var(--muted); }

/* --- Bedienelemente (Kinder von .map-wrap, absolut positioniert) --- */
.panel { position: absolute; top: 10px; right: 10px; z-index: 1000;
  background: var(--bg); border-radius: 8px; box-shadow: 0 1px 6px rgba(0,0,0,.3);
  font-size: 15px; max-width: 70%; }
.panel-toggle { width: 100%; border: 0; background: var(--accent); color: #fff;
  padding: 10px 12px; border-radius: 8px 8px 0 0; font-size: 15px; cursor: pointer; }
.panel-body { padding: 8px 12px; max-height: 50vh; overflow: auto; }
.layer-group { font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .03em; color: var(--muted); margin: 10px 0 2px; }
.layer-group:first-child { margin-top: 0; }
.layer-row { display: block; padding: 6px 0; cursor: pointer; }

/* Punkt-Marker mit Icon (statt Kreis) */
.marker-divicon { background: none; border: 0; }
.marker-icon { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.marker-icon svg { width: 15px; height: 15px; fill: currentColor; display: block; }
.layer-row input { transform: scale(1.3); margin-right: 6px; vertical-align: middle; }
.actionbar { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1000;
  display: flex; gap: 8px; }
.actionbar button { flex: 1; border: 0; border-radius: 8px; padding: 14px 10px;
  font-size: 15px; background: var(--accent); color: #fff; cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,.3); }
.actionbar button:disabled { opacity: .6; }
.banner { position: absolute; left: 50%; transform: translateX(-50%); top: 10px;
  width: auto; max-width: min(92vw, 520px); z-index: 1100;
  padding: 12px 14px; border-radius: 8px; color: #fff; font-size: 15px; text-align: center;
  box-shadow: 0 1px 6px rgba(0,0,0,.3); display: none; }
/* im Vollbild zusätzlich unter den "zurück"-Link schieben */
body.is-full .banner { top: 56px; }
.banner[data-kind="warn"] { background: var(--warn); }
.banner[data-kind="near"] { background: #e8910c; }
.banner[data-kind="ok"]   { background: var(--accent); }
.banner[data-kind="info"] { background: #555; }
.attrib { position: absolute; left: 10px; bottom: 64px; z-index: 900;
  background: rgba(255,255,255,.85); border-radius: 6px; padding: 4px 8px;
  font-size: 11px; color: #333; max-width: 80%; }
