/* Reset & Grundlayout */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  overflow: hidden;
  background-color: #f0f2f5;
}

/* Karte */
#map {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 60px;
  left: 0;
  z-index: 1;
}

/* 🧭 Taskbar */
#taskbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #1e1e2f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#taskbar #logo {
  font-size: 20px;
  font-weight: bold;
  color: #00bcd4;
  user-select: none;
}

#taskbar .taskbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

#taskbar button {
  background-color: #00bcd4;
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

#taskbar button:hover {
  background-color: #0097a7;
}

#taskbar input[type="text"],
#taskbar input[type="password"] {
  padding: 7px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 180px;
}

/* Hamburger-Menü (Platzhalter, falls du es später noch einfügst) */
#hamburgerMenu {
  background: none;
  border: none;
  font-size: 22px;
  color: white;
  cursor: pointer;
}

/* 🧩 Sidebar */
#sidebar {
  position: absolute;
  top: 60px;
  left: 0;
  width: 320px;
  height: calc(100% - 60px);
  background-color: #ffffff;
  border-top-right-radius: 12px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
  padding: 16px;
  overflow-y: auto;
  z-index: 1001;
  transition: transform 0.3s ease;
}

#sidebar.collapsed {
  transform: translateX(-100%);
}

#toggleSidebarBtn {
  width: 100%;
  background-color: #37474f;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 15px;
  font-weight: bold;
}

#toggleSidebarBtn:hover {
  background-color: #263238;
}

#sidebar details {
  margin-bottom: 20px;
}

#sidebar input[type="text"],
#sidebar input[type="number"],
#sidebar input[type="color"],
#sidebar select {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

#sidebar button {
  background-color: #43a047;
  border: none;
  color: white;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

#sidebar button:hover {
  background-color: #2e7d32;
}

/* Popups */
.popup {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  z-index: 2000;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  min-width: 320px;
}

.popup h2 {
  margin-top: 0;
  font-size: 20px;
  color: #333;
}

.popup label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  color: #444;
}

.popup input[type="text"],
.popup input[type="number"],
.popup input[type="color"] {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.popup button {
  margin-top: 16px;
  background-color: #00bcd4;
  color: white;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.popup button:hover {
  background-color: #0097a7;
}

/* Marker-Liste */
#markerList {
  list-style: none;
  padding-left: 0;
  max-height: 200px;
  overflow-y: auto;
}

#markerList li {
  padding: 4px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

@media print {
  html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: white;
  }

  #map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #sidebar,
  #taskbar,
  #startPopup,
  #menuOverlay,
  .leaflet-control-container,
  .leaflet-marker-icon,
  .leaflet-popup,
  .user-location-marker,
  .user-location-tooltip {
    display: none !important;
  }
}

/* 📋 Hamburger-Menü */
#hamburgerBtn {
  background: none;
  border: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
}

#menuOverlay {
  position: fixed;
  top: 60px;
  right: 0;
  width: 280px;
  height: calc(100% - 60px);
  background-color: #ffffff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  padding: 20px;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.menu-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-content h2 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #2c3e50;
}

.menu-content button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.menu-content button:hover {
  background-color: #2980b9;
}

.menu-content input[type="text"],
.menu-content input[type="password"] {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

