/* === Stationenbereich === */
#station-container {
  flex: 1;
  margin-left: 5px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.station-box {
  width: 100%;
  flex: 1;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: #222;
  text-decoration: none;
  animation: station-enter 0.24s ease-out;
}

@keyframes station-enter {
  from { opacity: 0.55; transform: translateX(7px); }
  to { opacity: 1; transform: translateX(0); }
}

.station-detail-link {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.station-box.stale {
  background: #f9e6e6;
}

.station-balcony-mini {
  flex: 0 0 30px;
  width: min(72%, 230px);
  margin: 3px auto 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.09);
  color: #075985;
  font-size: 0.78rem;
  text-decoration: none;
}

.station-balcony-mini strong {
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

html.dark .station-balcony-mini,
body.darkmode .station-balcony-mini {
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
}

.station-name {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.station-updated {
  margin-bottom: 1rem;
  color: #666;
  font-size: 1rem;
}

.station-temperature {
  margin: 1rem 0;
  font-size: 3.8rem;
  font-weight: bold;
}

.station-daily-values {
  margin-top: 1.5rem;
  color: #444;
  font-size: 0.9rem;
}

html.dark .station-updated,
body.darkmode .station-updated { color: #aaa; }

html.dark .station-daily-values,
body.darkmode .station-daily-values { color: #ccc; }

.data-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 1rem;
  margin: 4px 0;
}

.station-extremes {
  margin: -4px 0 8px;
  color: #607080;
  font-size: 0.82rem;
  font-weight: 700;
}

.station-wind {
  min-height: 1.35rem;
  margin: 0.25rem 0 0.8rem;
  color: #303b44;
  font-size: 1rem;
  line-height: 1.25;
  white-space: nowrap;
}

html.dark .station-extremes,
html.dark .station-wind {
  color: #aab4c0;
}

.update-time {
  font-size: 0.75rem;
  margin-top: 6px;
  color: #555;
}

.station-name.fallback {
  color: #e11d48;
  opacity: 0.9;
}

.station-nav {
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(0, 68, 102, 0.1);
}

.station-nav-button {
  width: 38px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(0, 68, 102, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #004466;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.station-nav-button:active {
  transform: translateY(1px);
}

.station-nav-dots {
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.station-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b8c5cc;
  cursor: pointer;
  transition: width 0.2s ease, border-radius 0.2s ease, background 0.2s ease;
}

.station-dot.is-active {
  width: 18px;
  border-radius: 999px;
  background: #1677b8;
}

html.dark .station-nav-button,
body.darkmode .station-nav-button {
  background: rgba(31, 34, 39, 0.94);
  border-color: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
}

html.dark .station-nav,
body.darkmode .station-nav {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.daylight {
  width: min(78%, 280px);
  margin: 12px auto 0;
}

.daylight-times {
  display: flex;
  justify-content: space-between;
  color: #607080;
  font-size: 0.68rem;
}

html.dark .daylight-times { color: #aab4c0; }

.station-source-warning {
  margin-bottom: 1rem;
  color: #c62828;
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-height: 820px) {
  .station-updated { margin-bottom: 0.45rem; }
  .station-temperature { margin: 0.45rem 0; }
  .station-extremes { margin-bottom: 4px; }
  .station-wind { margin-bottom: 0.4rem; }
  .data-row { margin: 2px 0; }
  .station-daily-values { margin-top: 0.55rem; }
  .daylight { margin-top: 6px; }
  .station-source-warning { margin-bottom: 0.35rem; }
}
