:root { --rot: #e21d1d; --grund: #121214; --flaeche: #1d1d21; --text: #f2f2f2; --grau: #a7a7ad; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--grund); color: var(--text);
  font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { display: flex; flex-direction: column; }
/* Leiste unter der Kopfzeile: gleicher zentrierter Container wie die Kopfzeile (72rem), alles mittig */
.leiste { flex: none; padding: 22px max(16px, env(safe-area-inset-right)) 22px max(16px, env(safe-area-inset-left));
  border-bottom: 3px solid var(--rot); background: var(--flaeche); }
.leiste-innen { max-width: 72rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center;
  gap: 14px; text-align: center; }
.leiste-zeile { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; flex-wrap: wrap; }
h1 { margin: 0; font-size: 1.35rem; letter-spacing: .01em; }
.zaehler { background: var(--rot); color: #fff; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
#karte { flex: 1; min-height: 320px; }
.eintragen { flex: none; padding: 24px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left));
  background: var(--flaeche); border-bottom: 1px solid #34343c; }
.eintragen-innen { max-width: 42rem; margin: 0 auto; display: flex; flex-direction: column; gap: 16px;
  text-align: center; }
.hinweis { margin: 0; }
.knoepfe { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
button { min-height: 52px; min-width: 160px; padding: 0 22px; font-size: 1.05rem; font-weight: 700;
  border-radius: 10px; border: 2px solid #55555c; background: #2a2a30; color: var(--text); cursor: pointer; }
button.rot { background: var(--rot); border-color: var(--rot); color: #fff; }
button:disabled { opacity: .4; cursor: not-allowed; filter: saturate(.6); box-shadow: none; }
.status { margin: 0; min-height: 1.4em; color: var(--grau); }
.status.ok { color: #7bd88f; } .status.fehler { color: #ff8a8a; }
.leaflet-container { background: #2b2b30; font: inherit; }
.leaflet-control-zoom a { width: 44px !important; height: 44px !important; line-height: 44px !important;
  font-size: 22px !important; }
.leaflet-popup-content { font-size: 1rem; font-weight: 600; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgba(226, 29, 29, .35); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
  background-color: rgba(226, 29, 29, .85); color: #fff; font-weight: 700; }
.punkt { width: 18px; height: 18px; border-radius: 50%; background: var(--rot); border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,.5); }
.punkt.eigen { width: 26px; height: 26px; background: #fff; border-color: var(--rot); border-width: 5px; }
@media (max-width: 500px) { h1 { font-size: 1.15rem; } .knoepfe { flex-direction: column; }
  .knoepfe button { width: 100%; min-width: 0; } .leiste { padding-block: 16px; } .eintragen { padding-block: 18px; } }
/* Profilbild-Pins: rundes Bild mit rotem Rand; Fehler -> roter Punkt */
.punkt.bild { width: 38px; height: 38px; border: 3px solid var(--rot); background: #2a2a30; overflow: hidden;
  box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,.6); }
.punkt.bild img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.punkt.ersatz { margin: 10px; }
.punkt.hervor { animation: hervor 0.8s ease-in-out 3; }
@keyframes hervor { 50% { transform: scale(1.45); box-shadow: 0 0 0 4px #fff, 0 0 18px 6px rgba(226,29,29,.9); } }
/* Suche in der Kopfleiste */
.leiste { position: relative; z-index: 1100; }
/* gemeinsame Kopfzeile der Bummsbunnys-Seiten ueber der Leiste, ueber Leaflet-Bedienelementen (z 1000) */
.bbk-kopf { z-index: 2000; flex: none; }
.suche { position: relative; flex: 0 1 420px; min-width: 0; }
.suche input { width: 100%; min-height: 48px; padding: 12px 16px; font: inherit; color: var(--text);
  background: #2a2a30; border: 2px solid #55555c; border-radius: 10px; }
.suche input:focus { outline: none; border-color: var(--rot); }
.suchliste { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 4px 0;
  list-style: none; max-height: min(60vh, 440px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--flaeche); border: 2px solid #55555c; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.6); }
.suchliste button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; min-width: 0;
  padding: 6px 12px; border: 0; border-radius: 0; background: none; font-size: 1rem; font-weight: 600;
  text-align: left; }
.suchliste button:hover, .suchliste button:focus { background: #2a2a30; outline: none; }
.suchliste .mini { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--rot); }
.suchliste .mini.punkt { width: 18px; height: 18px; margin: 0 5px; border: 3px solid #fff; box-shadow: none; }
.suchliste .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suchliste .user { color: var(--grau); font-weight: 400; font-size: .9rem; white-space: nowrap; }
.suchliste .leer { padding: 12px 14px; color: var(--grau); }
/* Plus-Knopf unten rechts ueber der Quellenangabe, daumenfreundlich */
.plus { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: calc(40px + env(safe-area-inset-bottom));
  z-index: 1000; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 22px 0 18px;
  border-radius: 999px; background: var(--rot); color: #fff; font-weight: 700; font-size: 1.05rem;
  text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.55); border: 2px solid #fff; }
.plus span { font-size: 1.7rem; line-height: 1; margin-top: -2px; }
.plus:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.fertig { margin: 0; }
.fertig a, .zurueck { color: #fff; font-weight: 700; }
@media (max-width: 500px) { .leiste-zeile { flex-direction: column; } .suche { flex: none; width: 100%; } }
.hinweis.zustimmung { font-size: .95rem; color: var(--grau); }
