/* =============================================================================
   style.css — Baumkataster Freiburg
   Theme: Hell — dunkle Schrift auf hellem Hintergrund
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Palette ─────────────────────────────────────────────────────────────────
   Ursprüngliche Töne bleiben erhalten, werden aber als Akzente verwendet.
   Hintergrund: cremig hell / Schrift: dunkelbraun                           */
:root {
  --light-gold:  #c4b84a;   /* gesättigter für hell-Kontrast */
  --soft-fawn:   #a07840;
  --smoky-rose:  #7a4840;
  --stone-brown: #3d3830;
  --ash-grey:    #6a7870;

  --bg:          #f5f2eb;   /* warmes Cremeweiß */
  --bg-2:        #ede9e0;   /* leicht dunkler für Karten/Panels */
  --text:        #2e2a22;   /* Dunkelbraun */
  --text-muted:  #7a7060;
  --border:      rgba(60, 50, 30, 0.12);
  --shadow:      rgba(60, 50, 30, 0.12);
  --header-h:    52px;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px var(--shadow);
}

.site-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--stone-brown);
}

/* ── Header Actions ──────────────────────────────────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.icon-btn:hover {
  color: var(--text);
  border-color: rgba(60,50,30,0.25);
  background: var(--bg-2);
}

.icon-btn.active {
  color: var(--text);
  background: var(--bg-2);
  border-color: rgba(60,50,30,0.35);
  box-shadow: inset 0 1px 3px rgba(60,50,30,0.1);
}

.icon-btn svg { width: 13px; height: 13px; }

/* ── Filter Button ───────────────────────────────────────────────────────── */
.filter-wrap { position: relative; }

.filter-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.filter-btn:hover {
  background: var(--bg-2);
  border-color: rgba(60,50,30,0.25);
}

.filter-btn svg { width: 13px; height: 13px; opacity: 0.6; flex-shrink: 0; }
.filter-btn .chevron { opacity: 0.4; margin-left: 2px; }

/* ── Dropdown ────────────────────────────────────────────────────────────── */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 250px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px var(--shadow);
  z-index: 2000;
  padding: 6px;
}

.dropdown.open { display: block; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}

.dropdown-item:hover { background: var(--bg-2); }

.dropdown-item svg { width: 13px; height: 13px; color: var(--text-muted); flex-shrink: 0; }

.dropdown-item-label { flex: 1; }

.dropdown-count {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: auto;
}

.dropdown-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.15);
}

/* Untermenü Gruppe */
.dropdown-group {
  border-top: 1px solid var(--border);
  margin-top: -1px;
  margin-top: 4px;
  padding-top: 4px;
}


/* Trennlinie: nur ein Strich zwischen Abschnitten */
#dropdown > .dropdown-group + .dropdown-group,
#dropdown > .dropdown-group ~ .dropdown-group {
  border-top: 1px solid var(--border);
}
#dropdown > .dropdown-group:first-child {
  border-top: none;
}
#dropdown > .dropdown-season-active + .dropdown-group,
#dropdown > .dropdown-item + .dropdown-group {
  border-top: 1px solid var(--border);
}

.dropdown-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}

.dropdown-group-header:hover { background: var(--bg-2); }
.dropdown-group-header svg { width: 13px; height: 13px; color: var(--text-muted); flex-shrink: 0; }

.dropdown-group-header-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dropdown-group-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sort-btn {
  padding: 2px 7px;
  font-size: 0.62rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s, color 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.sort-btn.active {
  background: var(--stone-brown);
  color: var(--bg);
  border-color: var(--stone-brown);
}

.sort-btn:hover:not(.active) { background: var(--bg-2); }

.dropdown-group-chevron {
  width: 12px; height: 12px;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.dropdown-group-chevron.open { transform: rotate(180deg); }

.dropdown-sub {
  display: none;
  max-height: 220px;
  overflow-y: auto;
  padding-top: 2px;
}

.dropdown-sub.open { display: block; }
.dropdown-sub::-webkit-scrollbar { width: 3px; }
.dropdown-sub::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.dropdown-sub-item { padding-left: 14px; }

.dropdown-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 3px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Saisonale Filter */
.dropdown-season-active {
  background: rgba(196, 184, 74, 0.08);
  border: 1px solid rgba(196, 184, 74, 0.3);
  border-radius: 6px;
  cursor: pointer;
}

.dropdown-season-active:hover { background: rgba(196, 184, 74, 0.14); }

.dropdown-season-inactive {
  opacity: 0.4;
  cursor: default;
}

.dropdown-season-badge {
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-active {
  background: rgba(196, 184, 74, 0.2);
  color: #7a6a10;
  font-weight: 500;
  animation: badge-pulse 2s ease-in-out infinite;
}

.badge-inactive {
  background: var(--bg-2);
  color: var(--text-muted);
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

/* ── Map ─────────────────────────────────────────────────────────────────── */
#map {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
}

/* ── Legende ─────────────────────────────────────────────────────────────── */
#legend {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 800;
  background: rgba(245, 242, 235, 0.92);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  backdrop-filter: blur(6px);
  min-width: 150px;
  box-shadow: 0 4px 16px var(--shadow);
}

.legend-title {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 9px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.74rem;
  color: var(--text);
}

.legend-item:last-child { margin-bottom: 0; }

.legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.15);
}

/* ── Popup ───────────────────────────────────────────────────────────────── */
.leaflet-popup-content-wrapper {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px var(--shadow) !important;
  font-family: 'DM Sans', sans-serif !important;
  color: var(--text) !important;
}

.leaflet-popup-tip { background: var(--bg) !important; }

.leaflet-popup-content {
  margin: 13px 15px !important;
  font-size: 0.82rem;
  line-height: 1;
}

.popup-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--stone-brown);
  margin-bottom: 2px;
}

.popup-latin {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.popup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.popup-stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
}

.popup-stat-label {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.popup-stat-value {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--stone-brown);
}

/* ── Leaflet controls ────────────────────────────────────────────────────── */
.leaflet-control-zoom {
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow) !important;
}

.leaflet-control-zoom a {
  background: var(--bg) !important;
  color: var(--text-muted) !important;
  border-bottom: 1px solid var(--border) !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  font-size: 15px !important;
}

.leaflet-control-zoom a:hover {
  background: var(--bg-2) !important;
  color: var(--text) !important;
}

.leaflet-control-zoom-out { border-bottom: none !important; }

.leaflet-control-attribution {
  background: rgba(245, 242, 235, 0.88) !important;
  color: var(--text-muted) !important;
  font-size: 0.6rem !important;
}

.leaflet-control-attribution a { color: var(--text-muted) !important; }

/* ── Cluster ─────────────────────────────────────────────────────────────── */
.marker-cluster div {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
}

.marker-cluster-small     { background-color: rgba(160, 120, 64, 0.18) !important; }
.marker-cluster-small div { background-color: rgba(160, 120, 64, 0.7) !important; color: #fff !important; }

.marker-cluster-medium     { background-color: rgba(122, 72, 64, 0.18) !important; }
.marker-cluster-medium div { background-color: rgba(122, 72, 64, 0.75) !important; color: #fff !important; }

.marker-cluster-large     { background-color: rgba(61, 56, 48, 0.18) !important; }
.marker-cluster-large div { background-color: rgba(61, 56, 48, 0.82) !important; color: #fff !important; }

/* ── About Overlay ───────────────────────────────────────────────────────── */
.about-overlay {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  z-index: 950;
  background: rgba(245, 242, 235, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow-y: auto;
  animation: fadeIn 0.22s ease;
}

.about-overlay.hidden { display: none; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.about-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  position: relative;
}

.about-close {
  position: absolute;
  top: 20px; right: 20px;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.about-close:hover { color: var(--text); background: var(--bg-2); }
.about-close svg { width: 15px; height: 15px; }

.about-inner h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--stone-brown);
  margin-bottom: 6px;
}

.about-subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.about-inner section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.about-inner section:last-of-type { border-bottom: none; }

.about-inner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--soft-fawn);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.about-inner p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 12px;
}

.about-inner p:last-child { margin-bottom: 0; }

.about-inner a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.about-inner a:hover { color: var(--stone-brown); }

.about-inner code {
  font-family: monospace;
  font-size: 0.8rem;
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--stone-brown);
  border: 1px solid var(--border);
}

.about-author {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 4px;
}

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--smoky-rose);
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.about-author strong {
  display: block;
  font-size: 0.92rem;
  color: var(--stone-brown);
  margin-bottom: 6px;
}

.about-footer {
  margin-top: 48px;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.about-footer a { color: var(--text-muted); text-decoration: none; }
.about-footer a:hover { color: var(--stone-brown); }

/* ── Responsive Mobile ───────────────────────────────────────────────────── */
@media (max-width: 600px) {

  /* Header komplett ausblenden */
  header { display: none; }

  /* Karte füllt ganzen Bildschirm */
  #map { top: 0; }

  /* About Overlay füllt ganzen Bildschirm */
  .about-overlay { top: 0; }

  /* Zoom-Buttons verstecken */
  .leaflet-control-zoom { display: none !important; }

  /* Floating Buttons oben rechts */
  .mobile-fab-top {
    display: flex !important;
  }

  /* FAB Button unten */
  .mobile-fab-open {
    display: flex !important;
  }

  /* Legende auf Mobile ausblenden — ist im Bottom Sheet */
  #legend { display: none; }

  /* Popup */
  .leaflet-popup-content-wrapper { max-width: 85vw !important; }

  /* About */
  .about-content { padding: 28px 16px 60px; }
  .about-inner h1 { font-size: 1.5rem; }
  .about-author { flex-direction: column; gap: 10px; }
}

/* ── Floating Buttons oben rechts (Mobile only) ──────────────────────────── */
.mobile-fab-top {
  display: none;
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1100;
  gap: 6px;
  flex-direction: row;
}

.mobile-fab-top .icon-btn {
  width: 40px;
  height: 40px;
  background: rgba(245, 242, 235, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px var(--shadow);
  border-radius: 10px;
}

/* ── FAB Open Button (Mobile) ────────────────────────────────────────────── */
.mobile-fab-open {
  display: none;
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  height: 48px;
  background: var(--stone-brown);
  color: var(--bg);
  border: none;
  border-radius: 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(60, 50, 30, 0.3);
}

.mobile-fab-open svg { width: 15px; height: 15px; }

/* ── Bottom Sheet ────────────────────────────────────────────────────────── */
.bottom-sheet-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1199;
  background: rgba(60, 50, 30, 0.3);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s;
}

.bottom-sheet-backdrop.open {
  display: block;
  opacity: 1;
}

.bottom-sheet {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1200;
  background: var(--bg);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 32px var(--shadow);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 75vh;
  display: flex;
  flex-direction: column;
}

.bottom-sheet.open {
  transform: translateY(0);
}

.bottom-sheet-handle { display: none; }

.bottom-sheet-header {
  padding: 8px 16px 0;
  flex-shrink: 0;
}

.bottom-sheet-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.sheet-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.sheet-tab.active {
  color: var(--stone-brown);
  border-bottom-color: var(--stone-brown);
}

.sheet-tab svg { width: 13px; height: 13px; }

.bottom-sheet-content {
  overflow-y: auto;
  padding: 8px 10px 32px;
  flex: 1;
}

/* ── Legende Toggle ──────────────────────────────────────────────────────── */
.legend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding-bottom: 2px;
}

.legend-chevron {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

#legend-body {
  margin-top: 8px;
  transition: none;
}


/* ── Stadt-Dropdown ──────────────────────────────────────────────────────────── */
.stadt-item { align-items: flex-start; gap: 10px; padding: 9px 10px; }

.ampel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  display: inline-block;
}

.stadt-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stadt-name {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
}

.stadt-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.ampel-error {
  color: #b03030;
  font-size: 0.66rem;
  display: block;
}

/* ── Datenquellen in About ───────────────────────────────────────────────────── */
.quelle-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.quelle-item:last-child { border-bottom: none; }

.quelle-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.quelle-citation {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  line-height: 1.6 !important;
}

.quelle-meta {
  font-size: 0.72rem !important;
  color: var(--text-muted) !important;
  margin-top: 4px !important;
}

/* ── Legende im Bottom Sheet ─────────────────────────────────────────────── */
#sheet-legende-content .legend-item {
  padding: 5px 4px;
  font-size: 0.82rem;
}

/* ── Dropdown Abschnittsüberschrift ─────────────────────────────────────── */
.dropdown-section-label {
  padding: 4px 12px 2px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Autor Avatar mit Bild-Fallback ─────────────────────────────────────── */
#author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--stone-brown);
  display: flex;
  align-items: center;
  justify-content: center;
}

#author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-initials {
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 500;
  align-items: center;
  justify-content: center;
}

/* ── Impressum ───────────────────────────────────────────────────────────── */
.impressum {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 8px;
}

.impressum h2 {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.impressum p {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  line-height: 1.7 !important;
}

/* ── Alpha Badge ─────────────────────────────────────────────────────────── */
.alpha-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: #c8840a;
  background: #fdf3e3;
  border: 1px solid #e8c07a;
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: middle;
  letter-spacing: 0.06em;
  margin-left: 4px;
  position: relative;
  top: -1px;
}

/* ── Site Logo ───────────────────────────────────────────────────────────── */
.site-logo {
  height: var(--header-h);
  width: auto;
  vertical-align: middle;
  margin-right: 6px;
  position: relative;
  top: -1px;
}


/* ── Lade-Kreisel (neben Stadt-Dropdown) ────────────────────────────────── */
.lade-kreisel {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(74, 154, 96, 0.25);
  border-top-color: #4a9a60;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.lade-kreisel.hidden {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Standort-Button (Leaflet.Locatecontrol) ─────────────────────────────── */
.leaflet-control-locate {
  margin-top: 8px !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow) !important;
}

.leaflet-control-locate a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--bg) !important;
  color: var(--text-muted) !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
}

.leaflet-control-locate a:hover {
  background: var(--bg-2) !important;
  color: var(--text) !important;
}

/* Plugin-Pfeil ersetzen durch Lucide locate-Icon */
/* Plugin zeichnet Pfeil via border-trick oder Pseudo-Element — alles deaktivieren */
.leaflet-control-locate-location-arrow {
  border: none !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-left: none !important;
  background: none !important;
  background-image: none !important;
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  animation: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.leaflet-control-locate-location-arrow::before,
.leaflet-control-locate-location-arrow::after {
  display: none !important;
  content: none !important;
  border: none !important;
}

.leaflet-control-locate.active .leaflet-control-locate-location-arrow svg,
.leaflet-control-locate.following .leaflet-control-locate-location-arrow svg {
  color: #4a9a60;
}

.leaflet-control-locate.active a,
.leaflet-control-locate.following a {
  color: #4a9a60 !important;
}

/* ── Datenschutz ─────────────────────────────────────────────────────────── */
.about-content h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin: 1rem 0 0.3rem;
}

.datenschutz-hinweis {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
/* Dropdown im Bottom-Sheet: kein absolutes Positioning */
#sheet-filter-content #dropdown,
#sheet-stadt-content #stadt-dropdown {
  display: block !important;
  position: static !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-width: 0 !important;
  transform: none !important;
  width: 100% !important;
}