:root {
  --papier: #f7f5f1;
  --tinte: #24211e;
  --leise: #6b645b;
  --linie: #e2ddd4;
  --akzent: #2f5d3a;
  --fahrbahn: #f2d94e; --fahrbahn-rand: #a88d00;
  --parken: #4f97e3;   --parken-rand: #1f5fa8;
  --gruen: #43a047;    --gruen-rand: #1d6b26;
  --baum-neu: #7bd88f; --baum-neu-rand: #0f5132;
  --baum-alt: #c08a52; --baum-alt-rand: #6b3e12;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--tinte);
  line-height: 1.5;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--papier); }

.layout { display: grid; grid-template-columns: minmax(320px, 400px) 1fr; height: 100%; }
.karte { grid-column: 2; grid-row: 1; min-height: 0; }
.panel {
  grid-column: 1; grid-row: 1; overflow-y: auto; padding: 28px 28px 20px;
  border-right: 1px solid var(--linie); background: var(--papier);
}

.ort { margin: 0; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--leise); }
h1 { margin: 4px 0 14px; font-size: 26px; line-height: 1.2; font-weight: 700; }
h2 { margin: 0 0 8px; font-size: 15px; }
.intro { margin: 0 0 18px; font-size: 15px; }
a { color: var(--akzent); }

.ansicht { display: flex; margin: 0 0 20px; border: 1px solid var(--tinte); border-radius: 8px; overflow: hidden; }
.ansicht button {
  flex: 1; font: inherit; font-size: 14px; padding: 8px 10px; border: 0; background: transparent; color: var(--tinte); cursor: pointer;
}
.ansicht button + button { border-left: 1px solid var(--tinte); }
.ansicht button[aria-pressed="true"] { background: var(--tinte); color: #fff; }
.ansicht button:focus-visible { outline: 3px solid var(--akzent); outline-offset: -3px; }

.legende, .hinweis { margin: 0 0 20px; padding: 16px; background: #fff; border: 1px solid var(--linie); border-radius: 10px; }
.legende ul { list-style: none; margin: 0 0 10px; padding: 0; }
.legende li + li { border-top: 1px solid #f0ece5; }
.legende label { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 14.5px; }
.legende input { width: 16px; height: 16px; margin: 0; accent-color: var(--akzent); flex: 0 0 auto; }
.legende .name { flex: 1; }
.legende .wert { color: var(--leise); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13.5px; }
.fl, .pt { flex: 0 0 auto; display: inline-block; border: 1.5px solid; }
.fl { width: 22px; height: 14px; border-radius: 3px; }
.pt { width: 14px; height: 14px; border-radius: 50%; margin: 0 4px; }
.fl.fahrbahn { background: var(--fahrbahn); border-color: var(--fahrbahn-rand); }
.fl.parken { background: var(--parken); border-color: var(--parken-rand); }
.fl.gruen { background: var(--gruen); border-color: var(--gruen-rand); }
.pt.neu { background: var(--baum-neu); border-color: var(--baum-neu-rand); }
.pt.alt { background: var(--baum-alt); border-color: var(--baum-alt-rand); }
.breiten { margin: 0 0 6px; font-size: 14px; }
.tipp { margin: 0; font-size: 13px; color: var(--leise); }
.hinweis p { margin: 0; font-size: 14px; }
.panel.heute .legende { opacity: .45; }

footer { font-size: 12.5px; color: var(--leise); }
footer p { margin: 0 0 8px; }

/* Popups */
.maplibregl-popup-content { font: 13.5px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; padding: 10px 14px; border-radius: 8px; }
.maplibregl-popup-content strong { display: block; font-size: 14px; }

@media (max-width: 760px) {
  html, body { height: auto; }
  .layout { display: block; }
  .karte { height: 62svh; min-height: 340px; }
  .panel { border-right: 0; border-top: 1px solid var(--linie); padding: 20px 18px 16px; overflow: visible; }
  h1 { font-size: 22px; }
}
