/* mod_wetterdiagramm – Layout „bilanzen“ (Tabs/Grundstil kommen aus wetterdiagramm.css) */
.ow-bil-erklaerung {
  color: #343a40;
  margin: 0 0 12px;
}
.ow-bil-erklaerung small {
  display: block;
  margin-top: 4px;
  color: #5b6470;
}
.ow-bil-kennzahl {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 12px;
}
.ow-bil-tabelle-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}
.ow-bil-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: .92rem;
}
.ow-bil-tabelle caption {
  caption-side: top;
  padding: 0 0 6px;
  font-weight: 700;
  color: #1836ad;
  text-align: left;
}
.ow-bil-stand {
  font-weight: 400;
  color: #5b6470;
  font-size: .85rem;
}
.ow-bil-tabelle th,
.ow-bil-tabelle td {
  padding: 6px 8px;
  border-bottom: 1px solid #e3e6ea;
  text-align: right;
  white-space: nowrap;
}
.ow-bil-tabelle th:first-child,
.ow-bil-tabelle td:first-child {
  text-align: left;
}
.ow-bil-tabelle thead th {
  font-size: .8rem;
  color: #5b6470;
}
.ow-bil-badge {
  display: inline-block;
  min-width: 7.5em;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
}
/* Kontraste ≥ 4.5:1 */
.ow-bil-k-2 { background: #c92a2a; color: #fff; }   /* viel zu trocken */
.ow-bil-k-1 { background: #ffe8cc; color: #8a3b00; } /* zu trocken */
.ow-bil-k0  { background: #e9ecef; color: #343a40; } /* normal */
.ow-bil-k1  { background: #d0ebff; color: #0b4a8b; } /* zu nass */
.ow-bil-k2  { background: #1864ab; color: #fff; }    /* viel zu nass */

/* Stationsrekorde */
.ow-rek-wahl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ow-rek-wahl label {
  font-weight: 600;
}
.ow-rek-par {
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #adb5bd;
  border-radius: 6px;
  max-width: 100%;
}
.ow-rek-tabelle thead td {
  border: 0;
}
.ow-rek-tabelle thead th[scope="colgroup"] {
  text-align: center;
  font-size: .85rem;
  color: #fff;
  border-radius: 6px 6px 0 0;
}
.ow-rek-hoch { background: #c92a2a; }
.ow-rek-tief { background: #1864ab; }
.ow-rek-tabelle td.ow-rek-wert {
  font-weight: 700;
  text-align: center;
  min-width: 4.2em;
}
.ow-rek-tabelle td.ow-rek-datum {
  text-align: left;
  color: #343a40;
}
.ow-rek-tabelle td.ow-rek-datum small {
  color: #5b6470;
}
/* Monatsspalte bleibt beim seitlichen Wischen stehen */
.ow-rek-tabelle tbody th[scope="row"],
.ow-rek-tabelle thead tr:last-child th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
}
.ow-rek-trenner th span {
  position: sticky;
  left: 8px;
}
.ow-rek-trenner th {
  background: #f1f3f5;
  color: #1836ad;
  font-size: .85rem;
}
.ow-rek-gesamt th,
.ow-rek-gesamt td {
  border-top: 2px solid #343a40;
}
.ow-rek-neu {
  display: inline-block;
  padding: 0 6px;
  border-radius: 999px;
  background: #a63c06; /* Kontrast ≥ 4.5:1 */
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
}
.ow-rek-wrap:focus-visible {
  outline: 2px solid #1836ad;
  outline-offset: 2px;
}

.ow-bil .ow-wd-chart {
  height: 400px;
  margin-bottom: 18px;
}
.ow-bil .ow-wd-chart.ow-bil-a-frost {
  height: 620px;
}
@media (max-width: 575.98px) {
  .ow-bil .ow-wd-chart {
    height: 340px;
  }
  .ow-bil .ow-wd-chart.ow-bil-a-frost {
    height: 560px;
  }
  .ow-bil-tabelle {
    font-size: .82rem;
  }
}
