/* style.css */
.map-container {
  display: flex;
  justify-content: center;   /*horizontal zentrieren */
 /* align-items: center;       vertikal zentrieren */
  height: 70vh;            /* 100% der Höhe des Viewports */
}
#map {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-container:has(#map:empty) {
  height: 0px;
}

.map-container:has(#map:empty) + [data-type="openstreetmap"] {
  display: block;
  text-align: center;
  padding: 40px 0;
  background: var(--weisstrans03);
}

/* Stil für die Suchleiste: Border und Radius */
.leaflet-control-geocoder-form input {
  border: 2px solid #000000;
  border-radius: 0px;
  padding: 6px 8px;
}

.leaflet-control-geocoder-form input::placeholder {
  color: #666;
  font-style: italic;
}

/* Zoom-Steuerelemente horizontal anordnen */
.leaflet-left .leaflet-control-zoom {
  display: flex;             /* Elemente nebeneinander anordnen */
  flex-direction: row;       /* horizontal statt vertikal */
}
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  border: 1px solid #ccc;
  border-radius: 2px;
}
.leaflet-control-zoom-in:hover,
.leaflet-control-zoom-out:hover {
  background-color: #f0f0f0;
  color: #000;
}


.legend {
  background: white;
  color: #113c84;
  line-height: 1.5em;
  padding: 10px;
  font-size: 14px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  border-radius: 5px;
}

.legend i {
  width: 18px;
  height: 18px;
  float: left;
  margin-right: 8px;
  opacity: 0.7;
}

.leaflet-tile {
  filter: grayscale(90%);
}

.leaflet-pane {
    z-index: 1 !important;
}

.leaflet-top, 
.leaflet-bottom {
    z-index: 2 !important;
}