/* Wasserstaende Raubling – an das Design von linnerer.com angelehnt */
:root {
  --blau: #0080c8; --blau-dunkel: #005f96; --blau-hell: #dff0fa;
  --text: #1a1a1a; --text2: #4a4a4a; --muted: #757575; --rand: #d0e8f5; --bg: #fff; --bg2: #eef2f5;
  --s1: #f2c200; --s2: #f08c00; --s3: #d9480f; --s4: #9c1c1c; --ok: #2f9e44;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.45; }
body.embed { background: transparent; }
main { max-width: 1200px; margin: 0 auto; padding: 12px; }
.kopf { max-width: 1200px; margin: 0 auto; padding: 16px 12px 0; }
.kopf h1 { margin: 0 0 4px; font-size: 1.5rem; color: var(--blau-dunkel); }
.kopf p { margin: 0; color: var(--text2); }

.lage { border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; background: var(--bg2); font-weight: 600; }
.lage.ok { background: #e6f6ea; color: #1e6b30; }
.lage.s1 { background: #fff6cc; color: #6b5300; } .lage.s2 { background: #ffe8cc; color: #7a4100; }
.lage.s3, .lage.s4 { background: #ffe0e0; color: #8a1414; }
.lage small { display: block; font-weight: 400; color: var(--text2); margin-top: 2px; }

.oben { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 860px) { .oben { grid-template-columns: 1fr; } }
.karte { height: 430px; border-radius: 10px; border: 1px solid var(--rand); overflow: hidden; background: #e9eef3; }
@media (max-width: 860px) { .karte { height: 340px; } }
.detail { border: 1px solid var(--rand); border-radius: 10px; padding: 12px 14px; min-height: 300px; }
.detail-leer { color: var(--muted); margin: 40px 0; text-align: center; }
.detail h2 { margin: 0 0 2px; font-size: 1.1rem; }
.detail .unter { color: var(--muted); font-size: .85rem; margin: 0 0 8px; }
.detail .gross { font-size: 1.8rem; font-weight: 700; color: var(--blau-dunkel); }
.detail .gross small { font-size: .95rem; font-weight: 500; color: var(--text2); }
.bereiche { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.bereiche button { border: 1px solid var(--rand); background: #fff; border-radius: 999px; padding: 3px 10px; font: inherit; font-size: .85rem; cursor: pointer; color: var(--blau-dunkel); }
.bereiche button[aria-pressed="true"] { background: var(--blau); border-color: var(--blau); color: #fff; }
.diagramm svg { width: 100%; height: auto; display: block; }
.diagramm .achse { stroke: #c9d6e0; stroke-width: 1; }
.diagramm .gitter { stroke: #eef2f5; stroke-width: 1; }
.diagramm text { font-size: 11px; fill: var(--muted); }
.diagramm .linie { fill: none; stroke: var(--blau); stroke-width: 1.8; }
.diagramm .flaeche { fill: rgba(0,128,200,.08); stroke: none; }
.diagramm .balken { fill: #4c9be8; }
.diagramm .ref { stroke-width: 1.2; stroke-dasharray: 5 4; }
.diagramm .ref-text { font-size: 10.5px; }
.legende { font-size: .8rem; color: var(--text2); margin: 6px 0 0; }
.legende span { display: inline-block; margin-right: 10px; }
.legende i { display: inline-block; width: 14px; height: 0; border-top: 2px dashed; vertical-align: middle; margin-right: 4px; }
.kennwerte { font-size: .85rem; color: var(--text2); margin: 8px 0 0; padding-left: 18px; }
.kennwerte li { margin: 2px 0; }
.detail a { color: var(--blau); }

.listen { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; margin-top: 12px; }
.gruppe { border: 1px solid var(--rand); border-radius: 10px; padding: 8px 12px 10px; }
.gruppe h3 { margin: 4px 0 6px; font-size: 1rem; color: var(--blau-dunkel); }
.gruppe .ghinweis { font-size: .8rem; color: var(--muted); margin: -2px 0 6px; }
.zeile { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 4px; border: 0; border-top: 1px solid #f0f3f6;
  background: none; font: inherit; text-align: left; cursor: pointer; color: inherit; border-radius: 6px; }
.zeile:hover, .zeile.aktiv { background: var(--blau-hell); }
.zeile .n { flex: 1; min-width: 0; }
.zeile .n small { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile .w { font-weight: 700; white-space: nowrap; }
.zeile .t { font-size: .8rem; color: var(--muted); white-space: nowrap; min-width: 58px; text-align: right; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; margin-left: 4px; color: #fff; vertical-align: 1px; }
.badge.s1 { background: var(--s1); color: #3d3000; } .badge.s2 { background: var(--s2); } .badge.s3 { background: var(--s3); } .badge.s4 { background: var(--s4); }
.badge.hoch { background: #1971c2; } .badge.tief { background: #868e96; }

.pin { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; }
.pin.pegel, .pin.osem { background: var(--blau); } .pin.regen { background: #2b8a3e; } .pin.gw { background: #8b5e34; }
.pin.s1 { background: var(--s1); color: #3d3000; } .pin.s2 { background: var(--s2); } .pin.s3 { background: var(--s3); } .pin.s4 { background: var(--s4); }
.pin.aktiv { outline: 3px solid #1a1a1a; }
.leaflet-tooltip.wert { font-weight: 700; padding: 1px 5px; }
.quelle { font-size: .78rem; color: var(--muted); margin: 14px 0 4px; }
.quelle a { color: inherit; }
.bereiche button[disabled] { opacity: .4; cursor: not-allowed; }
.bereiche .seit { font-size: .78rem; color: var(--muted); align-self: center; margin-left: 4px; }
