:root { font-family: system-ui, sans-serif; color: #203b34; background: #f4f7f5; }
* { box-sizing: border-box; }
body { margin: 0; }
header { padding: 28px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: white; border-bottom: 1px solid #dce5df; }
h1 { margin: 6px 0 10px; font-size: clamp(24px, 3vw, 34px); }
header p { margin: 0; color: #587067; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: 2px; }
.upload, button { display: inline-block; border: 0; border-radius: 8px; background: #176b4d; color: white; padding: 12px 18px; font: inherit; font-weight: 600; cursor: pointer; }
.upload { white-space: nowrap; }
.upload:hover, button:hover { background: #105238; }
#csv-file { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
body:has(#csv-file:focus-visible) .upload, button:focus-visible { outline: 3px solid #df9b22; outline-offset: 3px; }
main { display: grid; grid-template-columns: 310px 1fr; min-height: 560px; height: calc(100dvh - 205px); }
aside { padding: 24px; overflow-y: auto; background: #fff; border-right: 1px solid #dce5df; }
h2 { margin: 0 0 10px; font-size: 20px; }
#count { background: #e6f2eb; border-radius: 20px; padding: 3px 10px; font-size: 14px; }
#source, .hint { color: #65796f; font-size: 13px; overflow-wrap: anywhere; }
#status { font-size: 14px; line-height: 1.5; }
#positions { list-style: none; margin: 20px 0; padding: 0; }
#positions li { margin-bottom: 10px; }
.position { width: 100%; text-align: left; background: #f0f6f2; color: #203b34; border: 1px solid #dae6de; }
.position:hover { background: #e1eee6; }
.position small { display: block; font-weight: 400; margin-top: 5px; }
.hint { line-height: 1.8; margin: 24px 0; }
#map { min-height: 420px; background: #e4ece6; }
footer { padding: 14px 24px; font-size: 12px; color: #65796f; }
/* Gut lesbar, nicht eingeklappt und auch auf kleinen Displays innerhalb der Karte. */
#map .leaflet-control-attribution { max-width: 100%; padding: 4px 8px; background: #fff; color: #203b34; font-size: 12px; line-height: 1.5; white-space: normal; }
#map .leaflet-control-attribution a, footer a { color: #105238; text-decoration: underline; }
#map .leaflet-control-attribution a:focus-visible, footer a:focus-visible { outline: 2px solid #105238; outline-offset: 2px; }
.address-tooltip { min-width: 33vw; max-width: 80vw; white-space: normal; font-size: 13px; line-height: 1.5; }
.address-tooltip dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0; }
.address-tooltip dt { font-weight: 600; }
.address-tooltip dd { margin: 0; overflow-wrap: anywhere; }
.address-tooltip a { color: #105238; font-size: 11px; text-decoration: underline; }
.flag-icon { background: none; border: none; }
.flag-icon svg { display: block; filter: drop-shadow(0 2px 2px #0005); }
@media (max-width: 700px) {
  header { padding: 22px; flex-direction: column; align-items: flex-start; }
  main { display: flex; flex-direction: column-reverse; height: auto; min-height: 0; }
  #map { height: 55dvh; min-height: 350px; }
  aside { border-right: none; }
}
