:root {
  --hintergrund: #eef4f1;
  --fläche: #ffffff;
  --text: #142326;
  --text-weich: #51666a;
  --linie: rgba(20, 35, 38, 0.18);
  --akzent: #1f8a70;
  --akzent-zwei: #f2a33a;
  --warnung: #c75656;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
  background: var(--hintergrund);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.kopf {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid var(--linie);
  background: #102428;
  color: #f8fbfa;
}

.kennung {
  margin: 0 0 4px;
  color: #9edbd1;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.5rem);
  line-height: 1.05;
}

.kopf__text {
  max-width: 760px;
  margin: 7px 0 0;
  color: #c8ded9;
  font-size: 0.94rem;
  line-height: 1.35;
}

.kopf__status {
  min-width: 170px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 800;
  text-align: center;
}

.kartenbereich {
  position: relative;
  min-height: 0;
}

.karte {
  width: 100%;
  height: min(68vh, calc(100vh - 220px));
  min-height: 460px;
  background: #dfe8e7;
}

.statusleiste {
  position: relative;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 12px clamp(16px, 3vw, 34px) 0;
  padding: 12px 14px;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.statusleiste div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.statusleiste strong {
  font-size: 0.98rem;
}

.statusleiste span {
  color: var(--text-weich);
  font-size: 0.9rem;
  font-weight: 700;
}

.leerhinweis {
  position: absolute;
  z-index: 450;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(92vw, 520px);
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 48px rgba(16, 36, 40, 0.18);
  text-align: center;
  transform: translate(-50%, -50%);
}

.leerhinweis[hidden] {
  display: none;
}

.leerhinweis strong {
  font-size: 1.05rem;
}

.leerhinweis span {
  color: var(--text-weich);
  line-height: 1.45;
}

.erklaerung {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px clamp(16px, 3vw, 34px) 22px;
  background: var(--hintergrund);
}

.erklaerung article {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: var(--fläche);
}

.erklaerung h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.2;
}

.erklaerung p {
  margin: 0;
  color: var(--text-weich);
  font-size: 0.92rem;
  line-height: 1.45;
}

.fb2l-popup .leaflet-popup-content {
  min-width: 230px;
}

.fb2l-popup strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1rem;
}

.fb2l-popup span {
  display: block;
  color: var(--text-weich);
  font-size: 0.9rem;
  line-height: 1.35;
}

.fuss {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px clamp(16px, 3vw, 34px);
  border-top: 1px solid var(--linie);
  background: var(--fläche);
  color: var(--text-weich);
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .kopf,
  .statusleiste,
  .fuss {
    align-items: flex-start;
    flex-direction: column;
  }

  .kopf__status {
    min-width: 0;
    width: 100%;
    text-align: left;
  }

  .erklaerung {
    grid-template-columns: 1fr;
  }

  .karte {
    height: min(62vh, calc(100vh - 300px));
    min-height: 520px;
  }
}

/* © 2026 Erik Schauer, do1ffe@darc.de */
