html, body {
  height: 100%;
  margin: 0;
  background: #fafafa;
  font-family: system-ui, sans-serif;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Controls --- */
#controls {
  margin: 4px 0 6px;
  text-align: center;
}

#controls label {
  font-weight: 700;
  color: #0c80a1;
  margin-right: 6px;
}

#controls input[type="date"] {
  font-weight: 700;
  color: #0c80a1;
  border: 2px solid #0c80a1;
  border-radius: 6px;
  padding: 2px 5px;
  cursor: pointer;
}

/* --- Map --- */
#map {
  width: 100%;
  max-width: 1100px;
  height: 750px;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* --- Wind (Fix: Pfeil klein halten und sauber positionieren) --- */
#wind-info {
  margin-top: 10px;
  font-size: 1.2em;
  font-weight: 600;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 60px;
}

#wind-arrow {
  width: 48px;
  height: 48px;
  position: absolute;
  left: 50%;
  transform: translateX(-140px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#wind-arrow svg {
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  display: block;
}

#wind-text {
  position: absolute;
  left: 50%;
  transform: translateX(-80px);
  white-space: nowrap;
  text-align: left;
}

/* Mobile: Pfeil + Text nebeneinander */
@media (max-width: 600px) {
  #wind-info {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: auto;
    gap: 10px;
    width: 90%;
    margin: 10px auto 0 auto;
  }

  #wind-arrow {
    position: static;
    transform: none;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-right: 10px;
  }

  #wind-text {
    position: static;
    transform: none;
    flex: 1;
    white-space: nowrap;
    text-align: left;
  }
}

/* --- Timeline --- */
#timeline {
  width: 100%;
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

#timeline-bar {
  background: #0c80a1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  width: 100%;
  max-width: 1100px;
  color: #fff;
}

#time-display {
  min-width: 80px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#time-slider {
  flex-grow: 1;
}

/* --- Buttons --- */
#timeline-buttons {
  display: flex;
  gap: 8px;
}

#timeline-buttons button {
  background: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  border: none;
  cursor: pointer;
}

/* --- Sensor Labels --- */
.sensor-label {
  font-size: 0.8em;
  background: rgba(255,255,255,0.75);
  border-radius: 4px;
  padding: 1px 4px;
}
