/* ============================================================
   Wetterkarte (Leaflet) – Styles
   Eingebunden in index.html (Sektion #wetter)
   ============================================================ */

/* ======================= SUCHFELD ======================= */
#ortInput {
  margin-top: 10px;
  padding: 8px 36px 8px 10px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

#clearBtn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #999;
  display: none;
}

#vorschlaege {
  display: none;
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  max-height: 250px;
  overflow-y: auto;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* ======================= DATUMS-LEISTE ======================= */
#forecastBar {
  text-align: center;
  margin-top: 8px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.forecast-day {
  margin: 0 4px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  background: #eee;
  color: #333;
  font-weight: 500;
  transition: all 0.2s;
}


.forecast-day.active {
  background: #007bff;
  color: white;
  font-weight: bold;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.day-card {
  min-width: 56px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 5px 6px;
  line-height: 1.2;
  text-align: center;
  color: #333;
  transition: all 0.2s;
  cursor: pointer;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.day-card.active {
  background: rgba(0,0,0,0.1);
}

.day-card:hover {
  background: rgba(0,0,0,0.05);
}

.day-card .day {
  font-size: 13px;
  font-weight: 600;
}

.day-card .wx-icon {
  font-size: 22px;
  line-height: 1;
  margin: 2px 0;
}

.day-card .temp {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.temp .tag {
  font-weight: 600;
}

.temp .nacht {
  color: #666;
  font-weight: 400;
}


/* ======================= KARTE ======================= */
#wetter-map {
  flex: 1 1 auto;      /* füllt die restliche Höhe der rechten Spalte */
  min-height: 320px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px;
  position: relative;
}

/* Mobil (Spalten untereinander): feste Höhe, da keine Nachbarspalte */
@media (max-width: 991px) {
  #wetter-map {
    flex: none;
    height: 450px;
  }
}

.locate-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s;
}

.locate-btn:hover {
  background: #f3f3f3;
  transform: scale(1.05);
}
