body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
}

.navbar {
  display: flex;
  align-items: center;
  background-color: white;
  padding: 10px;
  color: black;
  border-bottom: 1px solid #ccc;
}

.logo img {
  height: 40px;
  margin-right: 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.nav-links li a {
  color: black;
  text-decoration: none;
  font-weight: bold;
}

#search-container {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 10px 14px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 300px;
  max-width: 90%;
}

#addressInput {
  padding: 5px;
  width: 100%;
  box-sizing: border-box;
}

#searchBtn {
  padding: 6px;
  background-color: #D9111B;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

#result {
  font-size: 0.9em;
  margin-top: 5px;
}

.map {
  height: calc(100vh - 60px); /* Navbar abziehen */
  width: 100%;
}

/* Popup Overlay */
#infoPopup {
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3); /* halbtransparent */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Popup Box */
.popup-content {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 20px 30px;
  border: 1px solid #ccc;
  border-radius: 10px;
  width: 300px;
  max-width: 90%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Schließen-Button (X) */
.popup-content .close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
}


#bottom-controls {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
}

/* Info-Button */
#infoButton {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #D9111B;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Transparenz-Slider */
#opacity-control {
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 12px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

#opacitySlider {
  cursor: pointer;
  width: 120px;
}


#legendButton {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #11d9cf;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#legendPopup {
  position: absolute;
  bottom: 60px; /* etwas oberhalb des Buttons */
  left: 15px;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: none;
  z-index: 2000;
}

#legendPopup object {
  width: 250px;
  height: auto;
}

#logo-kua {
  position: absolute;
    z-index: 2000;
}

#logo-kua img {
  height: 20px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

#logo-kua img:hover {
  opacity: 1;
}


/*#layerButtonContainer {
  position: absolute;
  top: 75px;
  right: 10px;
  z-index: 1000;
}
*/


#layerSwitchButton {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

#layerSwitchButton img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
}



/* Einwilligungsbanner für Nominatim-Nutzung */
#consentBanner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #f8f8f8;
  padding: 10px;
  text-align: center;
  border-top: 1px solid #ccc;
  z-index: 1000;
}

#consentBanner p {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #333;
}

#consentBanner button {
  margin: 0 5px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  background-color: #0078d4;
  color: white;
  border-radius: 4px;
}

#consentBanner button:hover {
  background-color: #005a9e;
}

