/* =============================================================================
   weather2: Wetter-Widget (Partials/CurrentWeather/Metric.html)
   ========================================================================== */

.weather {
  padding: 1.5em;
  background: rgb(var(--c-neutral-lighter));
}

.weather__now {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em 1.5em;
}

.weather__icon {
  width: 96px;
  height: auto;
}

.weather__temp {
  color: rgb(var(--c-primary));
  font-size: 3.2em;
  line-height: 1;
}

.weather__condition {
  margin-top: 0.3em;
  color: rgb(var(--c-primary));
  text-transform: uppercase;
}

.weather__minmax {
  display: flex;
  gap: 1em;
  font-size: var(--f-size-s-1);
}

.weather__details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 1.5em;
}

.weather__tile {
  display: flex;
  flex-direction: column;
  padding: 0.8em 1em;
  background: rgb(var(--c-neutral-lightest));
}

.weather__tileicon {
  margin-bottom: 0.3em;
  color: rgb(var(--c-primary));
  font-size: 1.4em;
}

.weather__label {
  font-size: var(--f-size-s-1);
  line-height: 1.4;
  text-transform: uppercase;
}

.weather__value {
  color: rgb(var(--c-neutral-darker, var(--c-neutral-dark)));
  font-size: 1.2em;
  line-height: 1.4;
}

.weather__value small {
  display: block;
  font-size: var(--f-size-s-1);
}

.weather__time {
  margin-top: 1em;
  font-size: var(--f-size-s-1);
  text-align: right;
}

@media (min-width: 641px) {
  .weather {
    padding: 2em;
  }

  .weather__icon {
    width: 120px;
  }

  .weather__temp {
    font-size: 4em;
  }

  .weather__details {
    grid-template-columns: repeat(4, 1fr);
  }
}
