/* ================== WEATHER.CSS ================== */
/* Wetter-Widget: symmetrisches Raster, linke/rechte Außenbereiche gleich breit */

.header-weather {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 50;
  user-select: none;
  pointer-events: none;

  width: 455px;
  max-width: calc(100vw - 28px);
}

.weather-card {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;

  color: #fff;
  background: rgba(24, 39, 58, 0.62);

  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);

  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);

  overflow: hidden;
}

.weather-place {
  font-size: 0.82rem;
  font-weight: 100;
  line-height: 1.2;
  margin-bottom: 6px;
  white-space: nowrap;
  text-align: center;
}

.weather-place span {
  position: relative;
  left: 50px; /* weiter nach rechts: Wert erhöhen */
}

.weather-main {
  display: grid;
  grid-template-columns: 1.35fr 1px 0.9fr 1px 1.35fr;
  align-items: center;
  column-gap: 12px;
  width: 100%;
}

.weather-temp,
.weather-wind,
.weather-sunset {
  min-width: 0;
  text-align: center;
}

/* LINKE SPALTE */
.weather-temp {
  margin-top: -20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  line-height: 1.05;
  overflow: hidden;
}

.weather-temp > div:first-child {
  font-size: 1.65rem;
  white-space: nowrap;
}

/* Wettertext + Icon unter Temperatur */
.weather-status {
  margin-top: -5px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.2;

  width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.weather-status span {
  position: relative;
  top: -5px;
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* WIND / SONNENUNTERGANG */
.weather-wind,
.weather-sunset {
  margin-top: -5px;
  font-size: 0.90rem;
  font-weight: 500;
  line-height: 1.55;
  white-space: nowrap;
  overflow: hidden;
}

.weather-wind > div,
.weather-sunset > div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
}

.weather-sunset div:last-child {
  font-weight: 500;
  opacity: 0.95;
}

.weather-divider {
  width: 1px;
  height: 58px;
  background: rgba(255, 255, 255, 0.24);
}

.weather-img-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
  margin-right: 5px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.45));
}

.weather-current-icon {
  width: 42px !important;
  height: 42px !important;

  margin-right: 0;
}

.weather-wind-icon,
.weather-sunset-icon {
  position: relative;
  top: -1px;
}

/* ---------------- TABLET ---------------- */

@media (max-width: 900px) {
  .header-weather {
    top: 10px;
    right: 10px;
    width: 320px;
    max-width: calc(100vw - 20px);
  }

  .weather-card {
    padding: 10px 12px;
  }

  .weather-main {
    grid-template-columns: 1fr;
    row-gap: 7px;
  }

  .weather-divider {
    display: none;
  }
}

/* ---------------- HANDY ---------------- */

@media (max-width: 600px) {
  .header-weather {
    top: 8px;
    right: 8px;
    width: 220px;
    max-width: calc(100vw - 16px);
  }

  .weather-card {
    padding: 9px 10px;
    border-radius: 12px;
  }

  .weather-place {
    font-size: 0.62rem;
    margin-bottom: 5px;
  }

  .weather-temp > div:first-child {
    font-size: 1.15rem;
  }

  .weather-status,
  .weather-wind,
  .weather-sunset {
    font-size: 0.62rem;
  }

  .weather-current-icon {
    width: 22px;
    height: 22px;
  }

  .weather-img-icon {
    width: 15px;
    height: 15px;
    margin-right: 4px;
  }
}