/* Fullscreen-Control Button (Leaflet) — Glassy */
.leaflet-control.map-fullscreen-control.leaflet-bar{
  border-radius: 14px;
  overflow: hidden;

  /* glass base */
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255,255,255,0.14);

  /* frosted glass */
  -webkit-backdrop-filter: blur(1px) saturate(140%);
  backdrop-filter: blur(1px) saturate(140%);

  /* subtle depth */
 /* box-shadow:
    0 10px 30px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.12); */
} 

/* fallback if backdrop-filter not supported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .leaflet-control.map-fullscreen-control{
    background: rgba(15, 23, 42, 0.75);
  }
}

.leaflet-control.map-fullscreen-control button{
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;

  border: 0;
  background: transparent;
  color: var(--text, #e5e7eb);
  cursor: pointer;

  /* nicer interactions */
  transition: background-color 0.15s ease, transform 0.08s ease, opacity 0.15s ease;
}

.leaflet-control.map-fullscreen-control button:hover{
  background: rgba(255,255,255,0.10);
}

.leaflet-control.map-fullscreen-control button:active{
  transform: translateY(1px);
  background: rgba(255,255,255,0.14);
}

.leaflet-control.map-fullscreen-control button:focus-visible{
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(99, 102, 241, 0.55);
}

/* Wenn echte Fullscreen-API aktiv ist */
.map-fullscreen-target.is-fullscreen{
  width: 100%;
  height: 100%;
}

/* Pseudo-Fullscreen (iOS-sicher) */
body.map-pseudo-fullscreen .map-fullscreen-active{
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;

  /* Fallback */
  height: 100vh !important;

  /* iOS/modern: dynamische Viewport-Höhe */
  height: 100dvh !important;

  z-index: 99999 !important;
  background: #000;
}

/* Optional: wenn du lieber "sichtbarer Bildschirm" statt "max" willst */
@supports (height: 100svh){
  body.map-pseudo-fullscreen .map-fullscreen-active{
    height: 100svh !important;
  }
}

body.map-pseudo-fullscreen{
  overflow: hidden;
}

/* Fullscreen icon (inline SVG) */
.leaflet-control.map-fullscreen-control button svg{
  display: block;
  opacity: 0.92;
}

.leaflet-control.map-fullscreen-control button{
  opacity: 0.92;
}

.leaflet-control.map-fullscreen-control button:hover{
  opacity: 1;
}

/* =========================================
   Leaflet Scale — nur Linie + Text
========================================= */

/* Leaflet Scale — Linie + Text, mittig, Accent-Farbe */
.leaflet-control-scale{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 10px !important;
}

/* Leaflet Scale — KEIN Blur / KEIN Glass */
.leaflet-control-scale,
.leaflet-control-scale *{
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Text über Linie, mittig */
.leaflet-control-scale-line{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;

  color: var(--accent) !important;
  text-align: center !important;

  /* Linie */
  border-bottom: 2px solid var(--accent) !important;

  /* Abstand Text ↔ Linie */
  padding: 0 2px 3px 2px !important;

  font-size: 12px !important;
  line-height: 1 !important;

  /* Lesbarkeit auf Luftbild */
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}
