/* mod_wetterdiagramm – Layout „dwd“ */
.ow-dwd-leiste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 14px;
}
.ow-dwd-gruppe {
  display: inline-flex;
  border: 1px solid #1836ad;
  border-radius: 8px;
  overflow: hidden;
}
.ow-dwd-knopf {
  appearance: none;
  border: 0;
  border-right: 1px solid #1836ad;
  background: #fff;
  color: #1836ad;
  padding: 6px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.ow-dwd-knopf:last-child {
  border-right: 0;
}
.ow-dwd-knopf[aria-pressed="true"] {
  background: #1836ad;
  color: #fff;
}
.ow-dwd-knopf:focus-visible {
  outline: 3px solid #ff7400;
  outline-offset: -3px;
}
.ow-dwd-knopf:disabled {
  color: #868e96;
  cursor: not-allowed;
  text-decoration: line-through;
}
.ow-dwd-stand {
  color: #5b6470;
  font-size: .85rem;
}
/* Auswahl des Modelllaufs */
.ow-dwd-laufwahl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #343a40;
}
.ow-dwd-lauf {
  min-height: 40px;
  padding: 4px 8px;
  border: 1px solid #1836ad;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-weight: 400;
}
.ow-dwd-lauf:disabled {
  border-color: #adb5bd;
  color: #5b6470;
}

/* Tageskarten */
.ow-dwd-tage {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(96px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
  scroll-snap-type: x proximity;
}
.ow-dwd-tag {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  border: 1px solid #e3e6ea;
  border-top: 3px solid #ff7400;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
}
.ow-dwd-tag:nth-child(even) {
  border-top-color: #1836ad;
}
.ow-dwd-tag-name {
  font-weight: 700;
}
.ow-dwd-tag-rest {
  margin-top: -4px;
  font-size: .72rem;
  color: #5b6470;
}
.ow-dwd-tag-temp {
  font-size: 1rem;
}
.ow-dwd-tag-temp .max { color: #c92a2a; font-weight: 700; }
.ow-dwd-tag-temp .min { color: #1864ab; }
.ow-dwd-tag-regen { color: #1864ab; }
.ow-dwd-tag-warn { color: #a61e1e; font-weight: 600; }

.ow-dwd .ow-wd-chart.ow-dwd-meteogramm {
  height: 520px;
}

/* Feldberg-Kacheln als Auswahlknöpfe */
.ow-dwd-fb-kacheln .ow-akt-kachel[aria-pressed="true"] {
  box-shadow: 0 0 0 3px #1836ad inset;
}
.ow-dwd .ow-wd-chart.ow-dwd-fb-chart {
  height: 380px;
  margin-top: 14px;
}

/* Stationen: Karte + Rangliste */
.ow-dwd-stationen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
/* Karte und Rangfolge nebeneinander nur, wenn der Bereich selbst breit genug ist (Startseite: schmale Mittelspalte) */
.ow-dwd {
  container-type: inline-size;
}
@container (min-width: 980px) {
  .ow-dwd-stationen {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}
.ow-dwd-karte {
  margin: 0;
  border: 1px solid #e3e6ea;
  border-radius: 10px;
  background: #f4f8fb;
  overflow: hidden;
}
.ow-dwd-karte svg {
  display: block;
  width: 100%;
  height: auto;
}
.ow-dwd-karte .st:focus-visible circle {
  stroke: #ff7400;
  stroke-width: 4;
}
.ow-dwd-rangliste td:nth-child(2) {
  position: relative;
  min-width: 7em;
}
.ow-dwd-balken {
  position: absolute;
  inset: 4px auto 4px 0;
  border-radius: 3px;
  opacity: .25;
}
.ow-dwd-rangliste tr.eigen td {
  font-weight: 700;
  background: #fff4e6;
}
.ow-dwd .ow-wd-chart.ow-dwd-st-verlauf {
  height: 420px;
  margin-top: 14px;
}

@media (max-width: 767.98px) {
  .ow-dwd-stationen {
    grid-template-columns: 1fr;
  }
  /* Handy: Knopfleisten kleiner und seitlich wischbar, damit kein Knopf abgeschnitten wird */
  .ow-dwd-leiste {
    gap: 8px 12px;
  }
  .ow-dwd-gruppe {
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .ow-dwd-knopf {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
    padding: 7px 10px;
    font-size: .8rem;
  }
  .ow-dwd-laufwahl {
    font-size: .85rem;
  }
  .ow-dwd-lauf {
    min-height: 36px;
    font-size: .85rem;
  }
  .ow-dwd .ow-wd-chart.ow-dwd-meteogramm {
    height: 460px;
  }
}

/* Lokale Vorhersage nach Zambretti (eigene Stationsdaten), unter dem Meteogramm */
.ow-zamb {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid #dee2e6;
  border-left: 5px solid #f08c00;
  border-radius: 10px;
  background: linear-gradient(135deg, #f1f6ff 0%, #ffffff 70%);
}
.ow-zamb[hidden] { display: none; }
.ow-zamb-symbol { flex: 0 0 auto; line-height: 0; }
.ow-zamb-text { min-width: 0; }
.ow-zamb h3 {
  margin: 0 0 4px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #495057;
}
.ow-zamb h3 span { font-weight: 400; text-transform: none; letter-spacing: 0; }
.ow-zamb-haupt { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; line-height: 1.35; color: #1a1a1a; }
.ow-zamb-details { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 0; font-size: .85rem; color: #343a40; }
.ow-zamb-alt { color: #a61e1e; font-weight: 600; }
.ow-zamb-info { margin-top: 8px; font-size: .85rem; color: #495057; }
.ow-zamb-info summary { cursor: pointer; color: #0b5cad; }
.ow-zamb-info summary:focus-visible { outline: 3px solid #1c7ed6; outline-offset: 2px; }
.ow-zamb-info p { margin: 6px 0 0; max-width: 60ch; }
@media (max-width: 575.98px) {
  .ow-zamb { gap: 10px; padding: 12px; }
  .ow-zamb-symbol svg { width: 54px; height: 54px; }
  .ow-zamb-haupt { font-size: 1rem; }
}
