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

.map {
  width: 100%;
  height: 100%;
  position: absolute;
}

.sidebar {
  width: 300px;
  background: rgba(255, 255, 255, 0.95);
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 10px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}

.sidebar-header {
  text-align: center;
  margin-bottom: 10px;
}



#search-section {
  margin-bottom: 20px;
}

#searchInput {
  width: 100%;
  padding: 5px;
}

.accordion-button {
  background: #eee;
  border: none;
  width: 100%;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
}

.accordion-button.active, .accordion-button:hover {
  background: #ccc;
}

.accordion-panel {
  padding: 0 10px;
  display: none;
  overflow: hidden;
}

.layer-entry {
  margin: 5px 0;
}

.layer-entry input[type="checkbox"] {
  margin-right: 5px;
}

#sidebar-footer {
  margin-top: 20px;
  text-align: center;
}

.info-page, .login-page, .upload-page {
  padding: 30px;
  max-width: 500px;
  margin: 50px auto;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

button {
  padding: 8px 12px;
  font-size: 16px;
  margin-top: 10px;
  cursor: pointer;
}

input[type="text"], input[type="password"], input[type="file"], select {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
}

#toggleSidebar {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1001;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 3px;
}

.sidebar.collapsed {
  transform: translateX(-100%);
}



/* Sidebar soll nur vertikal scrollbar sein */
.sidebar {
  overflow-y: auto;
  overflow-x: hidden;
}

/* Layer-Einträge sollen nicht über die Sidebar hinausragen */
.layer-entry {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap; /* Umbrüche zulassen */
}

/* Transparenz-Slider kleiner */
.layer-entry input[type="range"] {
  max-width: 100px;
  flex-shrink: 0;
}


#basemapSwitcher {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1001;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 14px;
}

#basemapSwitcher select {
  font-size: 14px;
  padding: 4px;
}


.feldgruppe summary {
  font-weight: bold;
  cursor: pointer;
  background: #f2f2f2;
  padding: 5px;
  margin-top: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.feldgruppe[open] summary {
  background: #e0e0e0;
}

