html, body { height: 100%; margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#map { height: 100%; }
.panel {
  background: rgba(255,255,255,.96); padding: 10px 12px; border-radius: 6px;
  box-shadow: 0 1px 5px rgba(0,0,0,.4); font-size: 13px; line-height: 1.45; width: 320px;
}
.panel h1 { font-size: 15px; margin: 0 0 6px 0; }
.panel h2 { font-size: 12px; margin: 10px 0 4px 0; text-transform: uppercase; letter-spacing: .04em; color: #555; border-top: 1px solid #ddd; padding-top: 6px; }
.panel .muted { color: #666; font-size: 12px; }
.panel label { display: block; cursor: pointer; }
.panel select, .panel button, .panel input[type=range] { width: 100%; margin-top: 4px; font-size: 12px; }
.panel button { padding: 5px 8px; cursor: pointer; }
.panel .kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px 6px; font-size: 12px; margin-top: 4px; }
.panel .kpi b { font-size: 14px; }
.kpi .new { color: #1a7f37; } .kpi .changed { color: #b8860b; } .kpi .removed { color: #d62728; } .kpi .unchanged { color: #666; }
.swatch { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; border: 1px solid #333; }
.swatch.dashed { border: 2px dashed #d62728; background: transparent; }
.swatch.dot { border-radius: 50%; background: #d62728; border-color: #7a0000; }
.swatch.new { background: #2ecc71; border-color: #1a7f37; }
.swatch.changed { background: #f1c40f; border-color: #b8860b; }
.swatch.unchanged { background: #bbb; border-color: #888; }
.leaflet-popup-content { max-height: 320px; overflow: auto; }
.leaflet-popup-content table { border-collapse: collapse; font-size: 12px; }
.leaflet-popup-content td { padding: 1px 6px 1px 0; vertical-align: top; }
.leaflet-popup-content td:first-child { color: #555; white-space: nowrap; }
.attribution-note { font-size: 11px; color: #444; margin-top: 6px; }
#banner {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1000;
  background: #c00; color: #fff; font-weight: 700; padding: 6px 18px; border-radius: 0 0 8px 8px;
  letter-spacing: .08em; box-shadow: 0 2px 6px rgba(0,0,0,.4); display: none;
}
#errorlist {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1000; display: none;
  background: rgba(255,255,255,.96); border-radius: 6px; box-shadow: 0 1px 5px rgba(0,0,0,.4);
  font-size: 12px; max-width: 70%; max-height: 160px; overflow: auto; padding: 8px 12px;
}
#errorlist h3 { margin: 0 0 4px 0; font-size: 12px; }
.tag-sim { background: #c00; color: #fff; border-radius: 3px; padding: 0 4px; font-size: 10px; margin-left: 4px; }
.panel .logout { float: right; font-size: 11px; color: #555; }

/* Login-Seite */
body.login { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #eef1f5; }
.card { background: #fff; padding: 24px 28px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.15); width: 320px; font-size: 14px; }
.card h1 { font-size: 17px; margin: 0 0 8px 0; }
.card label { display: block; margin: 12px 0 0 0; font-size: 13px; color: #333; }
.card input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 7px 8px; font-size: 14px; border: 1px solid #bbb; border-radius: 4px; }
.card button { margin-top: 16px; width: 100%; padding: 8px; font-size: 14px; cursor: pointer; background: #1f5fbf; color: #fff; border: 0; border-radius: 4px; }
.card .error { background: #fde8e8; color: #a00; padding: 6px 8px; border-radius: 4px; font-size: 13px; }
.card .muted { color: #666; font-size: 12px; }
.card .small { font-size: 11px; margin-top: 14px; }
