.mde-weather-widget {
  display: flex;
  align-items: stretch;
  gap: 32px;
  padding: 20px 0 32px;
  color: #323232;
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  font-weight: 600;
}

.mde-weather-widget__today {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  flex: 0 0 176px;
  width: 176px;
}

.mde-weather-widget__label {
  margin: 0;
  width: 100%;
  font-size: 18px;
  line-height: 1.5;
  text-align: right;
}

.mde-weather-widget__today-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: 100%;
}

.mde-weather-widget__today-temp {
  margin: 0;
  font-size: 40px;
  line-height: 1.2;
  white-space: nowrap;
}

.mde-weather-widget__divider {
  width: 1px;
  align-self: stretch;
  background-color: #707070;
}

.mde-weather-widget__forecast {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.mde-weather-widget__heading {
  margin: 0;
  font-family: "Roboto Condensed", "Open Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
}

.mde-weather-widget__days {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mde-weather-widget__day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mde-weather-widget__weekday {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.mde-weather-widget__day-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.mde-weather-widget__day-temp {
  margin: 0;
  font-size: 24px;
  line-height: 1.5;
  white-space: nowrap;
}

.mde-weather-widget__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: #323232;
}

.mde-weather-widget__icon--lg {
  width: 56px;
  height: 56px;
}

/*
 * Minimal mode — header-bar variant: temp + icon inline.
 *
 * The colour has to follow the header background, which is a theme decision:
 * muenchen.de has a blue header top (--header-top-bg-color: #1B98D5) and needs
 * white, christkindlmarkt overrides that background to white and needs a dark
 * value. White stays the default so the reference theme keeps working untouched;
 * a theme that differs sets --mde-weather-widget-minimal-color on the header.
 * The icon inherits it via `color: inherit` + stroke="currentColor".
 */
.mde-weather-widget--minimal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--mde-weather-widget-minimal-color, #FFFFFF);
}

.mde-weather-widget--minimal__temp {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  white-space: nowrap;
  color: inherit;
}

.mde-weather-widget--minimal__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: inherit;
}

/* Extended mode — full day cards with 06/12/18 hourly slots. */
.mde-weather-widget--extended {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 20px 0 32px;
}

.mde-weather-widget--extended__title {
  margin: 0;
}

.mde-weather-widget--extended__day {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #707070;
}

.mde-weather-widget--extended__day:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.mde-weather-widget--extended__day-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mde-weather-widget--extended__day-title {
  margin: 0;
  font-family: "Roboto Condensed", "Open Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  color: #323232;
}

.mde-weather-widget--extended__range {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #707070;
  white-space: nowrap;
}

.mde-weather-widget--extended__range abbr {
  text-decoration: none;
  font-weight: 700;
}

.mde-weather-widget--extended__overview {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mde-weather-widget--extended__overview-temp {
  margin: 0;
  font-size: 40px;
  line-height: 1.2;
  color: #323232;
  white-space: nowrap;
}

.mde-weather-widget--extended__overview-label {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: #323232;
  flex: 1 1 auto;
  min-width: 0;
}

.mde-weather-widget--extended__slots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mde-weather-widget--extended__slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

.mde-weather-widget--extended__slot-hour {
  margin: 0;
  font-family: "Roboto Condensed", "Open Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #707070;
}

.mde-weather-widget--extended__slot-temp {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  color: #323232;
  white-space: nowrap;
}

.mde-weather-widget--extended__slot-meta {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: #323232;
}

.mde-weather-widget--extended__slot-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.mde-weather-widget--extended__slot-meta dt {
  margin: 0;
  font-weight: 400;
  color: #707070;
}

.mde-weather-widget--extended__slot-meta dd {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .mde-weather-widget--extended__slots {
    grid-template-columns: 1fr;
  }
  .mde-weather-widget--extended__day-title {
    font-size: 20px;
  }
  .mde-weather-widget--extended__overview-temp {
    font-size: 32px;
  }
}

/*
 * Paragraph context — the widget is wrapped in the theme's grid
 * (container > m-component__grid > m-component__column).
 *
 * The theme styles .m-component__column only when scoped to a concrete
 * component (.m-component-accordion .m-component__column, -pillar, …) and ships
 * no rules for the weather widget, so the column would be an unstyled flex item
 * inside .m-component__grid — which carries negative side margins. Without the
 * rules below the widget is pulled outside the container gutters and, being
 * full width, is far wider than the body copy it sits under.
 *
 * These mirror the theme's own column rules for .m-component-accordion /
 * -pillar verbatim, including the offset+narrowing from 992px up that keeps the
 * component inside the same centred content column as the surrounding text.
 */
.m-component-weather-widget .m-component__column {
  flex: 0 0 auto;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  margin-top: var(--mde-gutter-y, 0);
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}

@media (min-width: 768px) {
  .m-component-weather-widget .m-component__column {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (min-width: 992px) {
  .m-component-weather-widget .m-component__column {
    margin-left: 16.6666666667%;
    width: 66.6666666667%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (min-width: 1200px) {
  .m-component-weather-widget .m-component__column {
    margin-left: 25%;
    width: 50%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/*
 * The paragraph keeps the base side-by-side layout (today | vertical divider |
 * forecast); only the today block differs from the compact block variant, where
 * it is flush right against the divider. In the paragraph it is centred in its
 * column, so the label sits centred above the temperature + icon.
 */
.paragraph--type--weather-widget .mde-weather-widget__today {
  align-items: center;
}

.paragraph--type--weather-widget .mde-weather-widget__label {
  text-align: center;
}

.paragraph--type--weather-widget .mde-weather-widget__today-row {
  justify-content: center;
}

@media (max-width: 768px) {
  .mde-weather-widget {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .mde-weather-widget__today {
    flex: 0 0 auto;
  }

  .mde-weather-widget__label {
    text-align: center;
    font-size: 16px;
  }

  .mde-weather-widget__divider {
    width: 100%;
    height: 1px;
    align-self: stretch;
  }

  .mde-weather-widget__forecast {
    width: 100%;
    flex: 0 0 auto;
  }

  .mde-weather-widget__heading {
    font-size: 20px;
  }

  .mde-weather-widget__weekday {
    font-size: 16px;
  }
}
