html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
}

#map {
  position: absolute;
  inset: 0;
}

/* Panel rechts oben */

#panels {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

#topButtons {
  display: flex;
  gap: 6px;
}

#topButtons button {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

#routePanel {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  padding: 8px;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#routeMode {
  font-weight: 600;
  margin-bottom: 4px;
}

#routeHints {
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
}

#routeInfo {
  font-size: 12px;
  margin-bottom: 6px;
}

#clearRoute {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  cursor: pointer;
}

#status {
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  max-width: 320px;
}

/* HUD unten */

#hud {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  max-width: 80%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  display: none; /* wird per JS auf block gesetzt */
}

#hudText {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
