/* Grundlegendes Layout */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f8;
  color: #333;
}

#map {
  width: 100%;
  height: 70vh;
  border-bottom: 4px solid #ddd;
}

/* Steuerpanel */
.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.controls label {
  font-weight: 500;
  margin-right: 0.5rem;
}

.controls input[type="text"],
.controls select {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.controls input[type="range"] {
  width: 200px;
}

#calculateBtn {
  background: #0078d7;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

#calculateBtn:hover {
  background: #005fa3;
}

/* Etappenliste */
#etappenliste {
  padding: 1.5rem;
  background: white;
  margin: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#etappenliste h3 {
  margin-top: 0;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
}

#etappenliste ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#etappenliste li {
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
  cursor: pointer;
}

#etappenliste li:hover {
  background: #eaf4ff;
  font-weight: 500;
}

/* Gesamtroute */
#gesamtroute {
  text-align: center;
  padding-bottom: 2rem;
  font-size: 1.1rem;
  color: #0078d7;
}

/* Responsive */
@media (max-width: 768px) {
  .controls {
    flex-direction: column;
    align-items: stretch;
    width: 80%;          
  margin: 0 auto;
  }
}
  #map {
     width: 80%;          /* 100% - 2×10% */
  margin: 0 auto;
  height: 80vh;  
  }

