/* =============================================================================
   wetter.css – Wettervorhersage in der Ausschreibung (Open-Meteo)
   Nutzt die Farben und Schriften aus ultras.css.
   ============================================================================= */

.wetter {
    --regen: #8FC1E3;
    padding: 22px 28px 18px;
    border-radius: 20px;
    background-color: var(--tafel);
}

.wetter h3 {
    margin: 0 0 14px;
}

.wetter h4 {
    margin: 0 0 4px;
    font-family: var(--schrift-kopf);
    font-size: 18px;
}

/* -----------------------------------------------------------------------------
   Tageskacheln
   ----------------------------------------------------------------------------- */
.wetter-tage {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wetter-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 10px 4px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background-color: var(--tafel-2);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.wetter-tag.renntag {
    border-color: var(--akzent);
}

.wt-datum {
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
}

.renntag .wt-datum {
    color: var(--akzent);
}

.wetter-tag .ws {
    width: 40px;
    height: 40px;
    margin: 2px 0;
}

.wt-temp {
    color: var(--text-leise);
    font-size: 15px;
}

.wt-temp b {
    color: var(--text);
    font-size: 18px;
}

.wt-regen,
.wt-wind {
    min-height: 1.3em;
    color: var(--text-leise);
    font-size: 12px;
}

.wt-regen {
    color: var(--regen);
}

/* Wettersymbole */
.ws {
    overflow: visible;
}

.ws-sonne {
    fill: var(--akzent);
}

.ws-sonne-strahl path {
    fill: none;
    stroke: var(--akzent);
    stroke-width: 1.6;
    stroke-linecap: round;
}

.ws-wolke {
    fill: var(--text-2);
    stroke: var(--tafel-2);
    stroke-width: 1;
}

.ws-tropfen,
.ws-nebel {
    fill: none;
    stroke: var(--regen);
    stroke-width: 1.8;
    stroke-linecap: round;
}

.ws-nebel {
    stroke: var(--text-leise);
}

.ws-schnee {
    fill: #FFFFFF;
}

.ws-blitz {
    fill: none;
    stroke: var(--akzent);
    stroke-width: 1.8;
    stroke-linejoin: round;
}

/* -----------------------------------------------------------------------------
   Kurven am Lauftag
   ----------------------------------------------------------------------------- */
.wetter-rennen {
    margin-top: 24px;
}

.wetter-erklaerung {
    margin: 0 0 12px;
    color: var(--text-2);
    font-size: 15px;
}

.wetter-unsicher {
    color: var(--warnung);
}

.wetter-kurven {
    position: relative;
    min-height: 200px;
    touch-action: pan-y;
    user-select: none;
}

.wetter-kurven svg {
    display: block;
    overflow: visible;
}

.wk-raster {
    stroke: var(--linie);
    stroke-width: 1;
}

.wk-null {
    stroke: var(--regen);
    stroke-width: 1;
    stroke-dasharray: 4 3;
}

.wk-achse {
    fill: var(--text-leise);
    font: 11px var(--schrift);
    font-variant-numeric: tabular-nums;
}

.wk-km {
    fill: var(--rand);
}

.wk-titel {
    fill: var(--text-2);
    font: 600 12px var(--schrift);
    letter-spacing: .04em;
}

.wk-titel tspan.leise {
    fill: var(--text-leise);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
}

.wk-tafel {
    fill: var(--tafel-2);
    fill-opacity: .45;
}

.wk-nacht {
    fill: #000000;
    fill-opacity: .28;
}

.wk-temp {
    fill: none;
    stroke: var(--akzent);
    stroke-width: 2.2;
    stroke-linejoin: round;
}

.wk-gefuehlt {
    fill: none;
    stroke: var(--akzent);
    stroke-opacity: .55;
    stroke-width: 1.5;
    stroke-dasharray: 5 4;
}

.wk-regen {
    fill: var(--regen);
    fill-opacity: .85;
}

.wk-trocken {
    fill: var(--text-leise);
    font: 13px var(--schrift);
}

.wk-regen-p {
    fill: none;
    stroke: var(--regen);
    stroke-width: 1.5;
    stroke-dasharray: 2 3;
}

.wk-wind {
    fill: none;
    stroke: var(--text);
    stroke-width: 2;
    stroke-linejoin: round;
}

.wk-boeen {
    fill: none;
    stroke: var(--text);
    stroke-opacity: .5;
    stroke-width: 1.5;
    stroke-dasharray: 5 4;
}

.wk-wolken {
    fill: var(--text-leise);
    fill-opacity: .35;
    stroke: var(--text-leise);
    stroke-width: 1.5;
}

.wk-marke {
    stroke: var(--text-2);
    stroke-width: 1;
    stroke-dasharray: 3 3;
}

.wk-marke.start {
    stroke: var(--akzent);
    stroke-dasharray: none;
}

.wk-marke-text {
    fill: var(--text-2);
    font: 600 11px var(--schrift);
}

.wk-marke-text.start {
    fill: var(--akzent);
}

.wk-cursor {
    stroke: var(--text);
    stroke-width: 1;
}

.wk-info {
    position: absolute;
    top: 0;
    display: none;
    min-width: 190px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--grund);
    box-shadow: 0 1px 8px rgba(0, 0, 0, .5);
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.wk-info b {
    font-size: 14px;
}

.wk-info .leise {
    color: var(--text-leise);
}

.wetter-hinweis {
    margin: 16px 0 0;
    color: var(--text-2);
}

.wetter-quelle {
    margin: 16px 0 0;
    color: var(--text-leise);
    font-size: 12px;
}

/* -----------------------------------------------------------------------------
   Zielzeit-Regler
   ----------------------------------------------------------------------------- */
.wetter-zielzeiten {
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
    padding: 14px 18px;
    border-radius: 14px;
    background-color: var(--tafel-2);
}

.wz-wahl {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wetter .wz-knopf {
    padding: 7px 16px;
    border: 1px solid var(--rand);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
}

.wetter .wz-knopf:hover {
    border-color: var(--text);
    background: transparent;
    color: var(--text);
}

.wetter .wz-knopf[aria-pressed="true"] {
    border-color: var(--akzent);
    background: var(--akzent);
    color: var(--auf-akzent);
}

.wetter .wz-knopf:focus-visible {
    outline: 2px solid var(--akzent);
    outline-offset: 2px;
}

.wz-titel {
    font-weight: 600;
}

.wz-zeile {
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) minmax(0, 17em);
    align-items: center;
    gap: 6px 16px;
}

.wz-zeile label {
    font-weight: 600;
}

.wz-zeile input[type="range"] {
    width: 100%;
    accent-color: var(--akzent);
}

.wz-zeile output {
    color: var(--text-2);
    font-variant-numeric: tabular-nums;
}

.wz-zeile output b {
    color: var(--akzent);
}

.wetter-teil {
    margin: 22px 0 6px;
    color: var(--text-2);
    font-size: 15px;
    font-weight: 600;
}

/* -----------------------------------------------------------------------------
   Unterwegs: Höhenprofil nach Temperatur
   ----------------------------------------------------------------------------- */
.wu-strecke {
    margin-top: 14px;
}

.wu-strecke h5 {
    margin: 0 0 2px;
    font-family: var(--schrift-kopf);
    font-size: 16px;
}

.wu-profil {
    position: relative;
    touch-action: pan-y;
    user-select: none;
}

.wu-profil svg {
    display: block;
    overflow: visible;
}

.wu-fazit {
    margin: 0 0 4px;
    color: var(--text-2);
    font-size: 14px;
}

.wu-frost {
    color: #9FD0F5;
}

.wu-flaeche {
    stroke: none;
}

.wu-linie {
    fill: none;
    stroke: var(--grund);
    stroke-width: 1.6;
    stroke-linejoin: round;
}

.wu-nacht {
    pointer-events: none;
}

.wu-nacht-linie {
    stroke: var(--grund);
    stroke-width: 3;
    stroke-opacity: .55;
}

.wu-nacht-band {
    fill: var(--text-leise);
}

.wu-regen {
    fill: var(--regen);
}

.wu-schnee path {
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.wu-legende {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    margin-top: 12px;
    color: var(--text-leise);
    font-size: 12px;
}

.wu-skala {
    display: block;
    width: 220px;
    max-width: 100%;
    height: 10px;
    border-radius: 5px;
}

.wu-skala-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wu-skala-text {
    display: flex;
    justify-content: space-between;
    width: 220px;
    max-width: 100%;
    font-variant-numeric: tabular-nums;
}

.wu-legende-nacht::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 4px;
    margin-right: 6px;
    vertical-align: middle;
    background: var(--text-leise);
}

@media (max-width: 640px) {
    .wz-zeile {
        grid-template-columns: 1fr;
    }

    .wetter-zielzeiten {
        padding: 12px 14px;
    }
}

@media (max-width: 640px) {
    .wetter {
        padding: 18px 16px 14px;
    }

    .wetter-tage {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .wt-wind {
        display: none;
    }
}
