﻿/* Trainingsläufe */

.training-runs {
    background: #f7f7f3;
    color: #25272b;
    font-family: "Manrope", sans-serif;
}

/* Feste Spalten für eine durchgehend gleiche Ausrichtung */

.training-runs__item {
    box-sizing: border-box;
    display: grid;
    grid-template-columns:
        200px
        210px
        100px
        minmax(0, 1fr)
        minmax(0, 0.65fr);
    align-items: baseline;
    gap: 12px 20px;

    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px clamp(20px, 4vw, 64px);

    font-size: 14px;
    line-height: 1.5;
}

.training-runs__item + .training-runs__item {
    border-top: 1px solid #e3e4de;
}

.training-runs__item > * {
    min-width: 0;
}

.training-runs__label {
    font-weight: 700;
    text-transform: uppercase;
}

/* Leere Beschriftung bleibt am Desktop als Platzhalter bestehen */

.training-runs__date {
    font-weight: 500;
}

.training-runs__time,
.training-runs__location {
    padding-left: 20px;
    border-left: 1px solid #c9cac5;
}

.training-runs__location {
    overflow-wrap: anywhere;
}

.training-runs__title {
    color: #666970;
    font-size: 13px;
    overflow-wrap: anywhere;
}

/* Keine Trennlinie anzeigen, wenn kein Ort hinterlegt ist */

.training-runs__location:not(:has(*)):empty {
    border-left: 0;
}

.training-runs__empty {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
    font-size: 14px;
    line-height: 1.5;
}

/* Tablet: Ort und Laufname unter Datum/Uhrzeit */

@media (max-width: 1100px) {
    .training-runs__item {
        grid-template-columns:
            190px
            minmax(0, 1fr)
            100px;
        gap: 8px 20px;
        padding: 20px 24px;
    }

    .training-runs__location {
        grid-column: 2 / -1;
        padding-left: 0;
        border-left: 0;
    }

    .training-runs__title {
        grid-column: 2 / -1;
    }
}

/* Smartphone */

@media (max-width: 767px) {
    .training-runs__item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 16px;
        padding: 22px 20px;
    }

    .training-runs__label {
        grid-column: 1 / -1;
        margin-bottom: 4px;
    }

    /* Auch bei enthaltenen Leerzeichen keinen Platz reservieren */
    .training-runs__item:not(:first-child) .training-runs__label {
        display: none;
    }

    .training-runs__date {
        grid-column: 1;
    }

    .training-runs__time {
        grid-column: 2;
        padding-left: 0;
        border-left: 0;
        white-space: nowrap;
    }

    .training-runs__location,
    .training-runs__title {
        grid-column: 1 / -1;
        padding-left: 0;
        border-left: 0;
    }
}

.training-runs {
    color: var(--color-text);
}

.training-runs__item {
    grid-template-columns:
        215px
        225px
        110px
        minmax(0, 1fr)
        minmax(0, 0.65fr);

    padding-block: 18px;
    font-size: 15px;
}

.training-runs__label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.training-runs__date,
.training-runs__time {
    color: var(--color-text);
    font-weight: 600;
}

.training-runs__title {
    color: #555b64;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .training-runs__item {
        grid-template-columns: 190px minmax(0, 1fr) 110px;
    }
}

@media (max-width: 767px) {
    .training-runs__item {
        grid-template-columns: minmax(0, 1fr) auto;
        padding-block: 22px;
    }
}



/* Aktuelles auf der Startseite */

.home-news {
    padding: clamp(40px, 5vw, 80px) var(--site-gutter, 24px);
    background: #f7f7f3;
}

.home-news__inner {
    max-width: 1440px;
    margin-inline: auto;
}

.home-news__heading {
    margin: 0 0 28px;
    color: var(--color-text);
    font-size: clamp(26px, 2.5vw, 36px);
    font-weight: 600;
    line-height: 1.2;
}

/* Ein großer Beitrag links, drei kleine rechts */

.home-news__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 20px 36px;
    align-items: stretch;
}

.home-news__card {
    display: grid;
    grid-template-columns: 32% minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;

    border-radius: 20px;
    background: #fff;
}

.home-news__card--featured {
    grid-column: 1;
    grid-row: 1 / span 3;

    display: flex;
    flex-direction: column;

    border-radius: 0;
    background: transparent;
}

.home-news__card:not(.home-news__card--featured) {
    grid-column: 2;
}

.home-news__image {
    display: block;
    min-width: 0;
    min-height: 160px;
    overflow: hidden;
    background: #e8e9e4;
}

.home-news__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
}

.home-news__card--featured .home-news__image {
    aspect-ratio: 3 / 2;
    min-height: 0;
    border-radius: 20px;
}

.home-news__card--featured .home-news__image img {
    min-height: 0;
}

.home-news__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 24px 28px;
}

.home-news__card--featured .home-news__content {
    padding: 22px 0 0;
}

.home-news__date {
    display: block;
    margin-bottom: 10px;
    color: var(--color-primary);
    font-size: 14px;
    line-height: 1.5;
}

.home-news__title {
    margin: 0 0 16px;
    font-size: clamp(18px, 1.5vw, 22px);
    font-weight: 600;
    line-height: 1.3;
    text-wrap: pretty;
    overflow-wrap: anywhere;
}

.home-news__card--featured .home-news__title {
    font-size: clamp(24px, 2.2vw, 32px);
}

.home-news__title a {
    color: var(--color-text);
    text-decoration: none;
}

.home-news__title a:hover {
    color: var(--color-primary);
}

.home-news__more {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    min-height: 44px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.home-news__more:hover {
    color: var(--color-primary);
}

.home-news__card--no-image {
    grid-template-columns: minmax(0, 1fr);
}

/* Tablet und Smartphone */

@media (max-width: 991px) {
    .home-news {
        padding: 40px 24px;
    }

    .home-news__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .home-news__card--featured,
    .home-news__card:not(.home-news__card--featured) {
        grid-column: auto;
        grid-row: auto;
    }

    .home-news__card--featured {
        margin-bottom: 12px;
    }

    .home-news__card--featured .home-news__image {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 575px) {
    .home-news {
        padding: 36px 20px;
    }

    .home-news__heading {
        margin-bottom: 24px;
    }

    .home-news__card {
        border-radius: 16px;
    }

    .home-news__card--featured {
        border-radius: 0;
    }

    .home-news__content {
        padding: 16px;
    }

    .home-news__date {
        font-size: 12px;
    }

    .home-news__title {
        font-size: 18px;
        margin-bottom: 8px;
    }
}


/* Rechte News-Karten: quadratische Vorschaubilder */

.home-news__card:not(.home-news__card--featured) {
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
}

.home-news__card:not(.home-news__card--featured) .home-news__image {
    width: 160px;
    height: 160px;
    min-height: 0;
    aspect-ratio: 1;
    align-self: center;
}

.home-news__card:not(.home-news__card--featured) .home-news__image img {
    width: 100%;
    height: 100%;
    min-height: 0;

    object-fit: cover;
    object-position: center;
}

/* Karten ohne Foto weiterhin über die gesamte Breite */

.home-news__card.home-news__card--no-image {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 575px) {
    .home-news__card:not(.home-news__card--featured) {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .home-news__card:not(.home-news__card--featured) .home-news__image {
        width: 110px;
        height: 110px;
    }

    .home-news__card.home-news__card--no-image {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Rechte News-Bilder über die gesamte Kartenhöhe */

.home-news__card:not(.home-news__card--featured) {
    align-items: stretch;
}

.home-news__card:not(.home-news__card--featured) .home-news__image {
    position: relative;
    align-self: stretch;

    width: 100%;
    height: auto;
    min-height: 160px;
    aspect-ratio: auto;
}

.home-news__card:not(.home-news__card--featured) .home-news__image img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    min-height: 0;

    object-fit: cover;
    object-position: center;
}

@media (max-width: 575px) {
    .home-news__card:not(.home-news__card--featured) .home-news__image {
        width: 100%;
        height: auto;
        min-height: 110px;
    }
}


/* Rechte News-Bilder: 30 % breiter */

.home-news__card:not(.home-news__card--featured) {
    grid-template-columns: 208px minmax(0, 1fr);
}

/* Smartphone ebenfalls 30 % breiter: 110 → 143 px */

@media (max-width: 575px) {
    .home-news__card:not(.home-news__card--featured) {
        grid-template-columns: 143px minmax(0, 1fr);
    }
}

/* Karten ohne Bild */

.home-news__card.home-news__card--no-image {
    grid-template-columns: minmax(0, 1fr);
}


/* Nächste Termine auf der Startseite */

.home-events {
    padding: 40px var(--site-gutter, 24px);
    background: #fff;
}

.home-events__inner {
    max-width: 1440px;
    margin-inline: auto;
}

.home-events__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 24px;
}

.home-events__heading {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(26px, 2.5vw, 36px);
    font-weight: 600;
    line-height: 1.2;
}

.home-events__all {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    min-height: 44px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.home-events__all:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.home-events__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    border: 1px solid #e4e5df;
    border-radius: 18px;
    background: #fff;
}

.home-events__card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-content: start;
    gap: 20px;

    min-width: 0;
    margin: 20px 0;
    padding: 8px 24px;
}

.home-events__card + .home-events__card {
    border-left: 1px solid #e4e5df;
}

.home-events__date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.home-events__day {
    color: var(--color-primary);
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.home-events__month {
    margin-top: 6px;
    color: var(--color-text);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.home-events__year {
    margin-top: 3px;
    color: var(--color-muted);
    font-size: 12px;
}

.home-events__content {
    min-width: 0;
}

.home-events__title {
    margin: 0 0 12px;
    color: var(--color-text);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.home-events__location {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Tablet: zwei Termine pro Zeile */

@media (max-width: 1100px) {
    .home-events__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-events__card:nth-child(odd) {
        border-left: 0;
    }

    .home-events__card:nth-child(n + 3) {
        margin-top: 0;
        padding-top: 24px;
        border-top: 1px solid #e4e5df;
    }
}

/* Smartphone: Termine untereinander */

@media (max-width: 575px) {
    .home-events {
        padding: 32px 20px;
    }

    .home-events__header {
        flex-wrap: wrap;
        margin-bottom: 18px;
    }

    .home-events__all {
        font-size: 13px;
    }

    .home-events__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-events__card {
        margin: 0;
        padding: 22px 20px;
        border-left: 0;
    }

    .home-events__card + .home-events__card {
        border-left: 0;
        border-top: 1px solid #e4e5df;
    }

    .home-events__card:nth-child(n + 3) {
        padding-top: 22px;
    }
}



/* Bewerb: Veranstaltung auf der Startseite */

.race-promo {
    padding: clamp(40px, 5vw, 80px) var(--site-gutter, 24px);
    background: #f7f7f3;
}

.race-promo__inner {
    max-width: 1440px;
    margin-inline: auto;
}

.race-promo__header {
    margin-bottom: 28px;
}

.race-promo__title {
    margin: 0 0 8px;
    color: var(--color-text);
    font-size: clamp(26px, 2.5vw, 36px);
    font-weight: 600;
    line-height: 1.2;
}

.race-promo__date {
    margin: 0;
    color: var(--color-primary);
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 600;
    line-height: 1.3;
}

.race-promo__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* Großes Bild */

.race-promo__visual {
    position: relative;
    min-width: 0;
    min-height: 400px;
    overflow: hidden;
    border-radius: 20px;
    background: #e5e7e0;
}

.race-promo__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Anmelden-Button links unten */

.race-promo__button {
    position: absolute;
    left: 28px;
    bottom: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    max-width: calc(100% - 56px);
    min-height: 56px;
    padding: 15px 28px;

    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;

    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.race-promo__button:hover {
    background: var(--color-primary-hover);
    color: #fff;
}

.race-promo__button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

/* Infoboxen */

.race-promo__facts {
    display: grid;
    gap: 20px;
    align-content: stretch;
    min-width: 0;
}

.race-promo__fact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;

    min-width: 0;
    padding: 24px 28px;
    border-radius: 20px;
    background: #fff;
    overflow-wrap: anywhere;
}

.race-promo__part {
    display: block;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.4;
}

.race-promo__part--0 {
    color: var(--color-primary);
    font-size: clamp(26px, 2.6vw, 40px);
    font-weight: 600;
    line-height: 1.15;
}

/* Erste Box: große Zahl links, Erklärung rechts */

.race-promo__fact:first-child {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: center;
    align-items: center;
    gap: 4px 20px;
}

.race-promo__fact:first-child .race-promo__part--0 {
    grid-column: 1;
    grid-row: 1 / span 2;
    font-size: clamp(48px, 5vw, 72px);
}

.race-promo__fact:first-child .race-promo__part--1 {
    grid-column: 2;
    color: var(--color-text);
    font-size: 21px;
    font-weight: 600;
}

.race-promo__fact:first-child .race-promo__part--2 {
    grid-column: 2;
}

/* Drei Angaben: Beschriftung, hervorgehobener Ort, Zusatz */

.race-promo__fact--three:not(:first-child)
.race-promo__part--0 {
    color: var(--color-text);
    font-size: 16px;
    font-weight: 600;
}

.race-promo__fact--three:not(:first-child)
.race-promo__part--1 {
    color: var(--color-primary);
    font-size: clamp(26px, 2.6vw, 40px);
    font-weight: 600;
    line-height: 1.15;
}

/* Tablet und Smartphone */

@media (max-width: 991px) {
    .race-promo {
        padding: 40px 24px;
    }

    .race-promo__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .race-promo__visual {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .race-promo__facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .race-promo__fact {
        padding: 20px;
    }

    .race-promo__fact:first-child {
        gap: 4px 12px;
    }

    .race-promo__fact:first-child .race-promo__part--1 {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .race-promo__facts {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575px) {
    .race-promo {
        padding: 36px 20px;
    }

    .race-promo__visual {
        aspect-ratio: 4 / 3;
        border-radius: 16px;
    }

    .race-promo__button {
        left: 18px;
        bottom: 18px;
        max-width: calc(100% - 36px);
        min-height: 50px;
        padding: 12px 22px;
        font-size: 15px;
    }

    .race-promo__fact {
        border-radius: 16px;
    }
}


/* Bewerb: Feinschliff */

.race-promo__header {
    margin-bottom: 24px;
}

.race-promo__title {
    margin-bottom: 4px;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.race-promo__date {
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Bild etwas stärker gewichten */

.race-promo__grid {
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    gap: 20px;
}

.race-promo__visual {
    min-height: 420px;
    border-radius: 18px;
}

/* Drei gleich hohe Infoboxen */

.race-promo__facts {
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.race-promo__fact {
    padding: 22px 28px;
    border-radius: 18px;
    gap: 7px;
}

.race-promo__part {
    font-size: 16px;
    line-height: 1.4;
}

.race-promo__part--0 {
    font-size: clamp(28px, 2.8vw, 42px);
    font-weight: 700;
    letter-spacing: -0.035em;
}

/* Zahl und Beschriftung enger zusammenhalten */

.race-promo__fact:first-child {
    grid-template-rows: auto auto;
    gap: 3px 20px;
}

.race-promo__fact:first-child .race-promo__part--0 {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
}

.race-promo__fact:first-child .race-promo__part--1 {
    align-self: end;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.race-promo__fact:first-child .race-promo__part--2 {
    align-self: start;
}

/* Start & Ziel */

.race-promo__fact--three:not(:first-child)
.race-promo__part--0 {
    font-size: 16px;
    font-weight: 700;
}

.race-promo__fact--three:not(:first-child)
.race-promo__part--1 {
    font-size: clamp(28px, 2.8vw, 42px);
    font-weight: 700;
    letter-spacing: -0.035em;
}

/* Anmelden-Button */

.race-promo__button {
    left: 24px;
    bottom: 24px;
    max-width: calc(100% - 48px);
    min-height: 58px;
    padding: 15px 30px;
    font-size: 17px;
    font-weight: 700;
}

/* Responsive Darstellung erhalten */

@media (max-width: 991px) {
    .race-promo__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .race-promo__visual {
        min-height: 0;
    }

    .race-promo__facts {
        grid-template-rows: auto;
    }

    .race-promo__fact {
        padding: 20px;
    }

    .race-promo__fact:first-child .race-promo__part--0 {
        font-size: 56px;
    }

    .race-promo__fact:first-child .race-promo__part--1 {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .race-promo__button {
        left: 18px;
        bottom: 18px;
        max-width: calc(100% - 36px);
        min-height: 52px;
        padding: 13px 24px;
        font-size: 16px;
    }
}




/* Laufrechner und Wetter */

.running-tools {
    padding: 40px var(--site-gutter, 24px);
    background: #fff;
}

.running-tools__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 28px;

    max-width: 1440px;
    margin-inline: auto;
}

.pace-card,
.weather-card {
    min-width: 0;
    padding: 28px;

    border: 1px solid #e4e5df;
    border-radius: 20px;
    background: #f7f7f3;
}

.running-tools__heading {
    margin: 0 0 10px;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.3;
}

.pace-card__intro,
.weather-card__intro {
    margin: 0 0 22px;
    color: var(--color-muted);
    font-size: 15px;
}

.pace-calculator__hint {
    margin-bottom: 18px;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.6;
}

.pace-calculator__presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.pace-calculator__presets button {
    min-height: 36px;
    padding: 6px 12px;

    border: 1px solid #d7dad3;
    border-radius: 999px;
    background: #fff;
    color: var(--color-text);

    font-size: 13px;
    font-weight: 600;
}

.pace-calculator__presets button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pace-calculator__fields {
    display: grid;
    gap: 14px;
}

.pace-calculator__field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 1fr);
    align-items: center;
    gap: 12px;

    font-size: 14px;
    font-weight: 500;
}

.pace-calculator__field small {
    color: var(--color-muted);
    font-weight: 400;
}

.pace-calculator__input {
    position: relative;
    min-width: 0;
}

.pace-calculator__input input {
    min-height: 46px;
    padding-right: 42px;
    border-radius: 8px;
    background: #fff;
}

.pace-calculator__input input[aria-invalid="true"] {
    border-color: var(--color-primary);
}

.pace-calculator__input > button {
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-50%);

    width: 40px;
    height: 42px;
    padding: 0;

    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--color-muted);
    font-size: 22px;
}

.pace-calculator__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.pace-calculator__actions button {
    flex: 1;
    min-height: 48px;
    padding: 12px 20px;

    border: 1px solid #cdd1c9;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;
}

.pace-calculator__calculate {
    border-color: var(--color-primary) !important;
    background: var(--color-primary);
    color: #fff;
}

.pace-calculator__calculate:hover {
    background: var(--color-primary-hover);
}

.pace-calculator__reset {
    background: #fff;
    color: var(--color-text);
}

.pace-calculator__message {
    margin: 18px 0 0;
    color: #a20d25;
    font-size: 14px;
}

.pace-calculator__result {
    margin-top: 24px;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
}

.pace-calculator__result h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
}

.pace-calculator__result dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}

.pace-calculator__result dt {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 500;
}

.pace-calculator__result dd {
    margin: 4px 0 0;
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* Wetter: Originalgröße des gelieferten Widgets */

.weather-card__frame {
    display: flex;
    justify-content: center;
    padding: 24px;
    border-radius: 14px;
    background: #fff;
}

/* Berechnete Werte dezent hervorheben */

.pace-calculator__input input.is-calculated {
    color: var(--color-text);
    background: #f0f3ef;
    border-color: #cdd5ca;
    font-weight: 600;
}

/* Rot ausschließlich bei ungültigen Eingaben */

.pace-calculator__input input[aria-invalid="true"] {
    border-color: #b42318;
    background: #fff;
}

/* Wetter-Widget vergrößern */

.weather-card__frame {
    container-type: inline-size;
    padding: 24px 0;
    border-radius: 14px;
    background: #fff;
}

.weather-card__scaled {
    /* Fallback: zweifache Originalgröße */
    --weather-scale: 2;

    position: relative;
    width: calc(186px * var(--weather-scale));
    height: calc(172px * var(--weather-scale));
    margin-inline: auto;
}

/* Automatisch an die verfügbare Kartenbreite anpassen */

@supports (width: 1cqw) {
    .weather-card__scaled {
        --weather-scale: clamp(1, calc(100cqw / 186px), 3);
    }
}

.weather-card__scaled iframe {
    position: absolute;
    top: 0;
    left: 0;

    display: block;
    width: 186px;
    height: 172px;
    max-width: none;
    border: 0;

    transform: scale(var(--weather-scale));
    transform-origin: top left;
}

@media (max-width: 575px) {
    .weather-card__scaled {
        --weather-scale: 1.3;
    }
}

.weather-card__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 16px;

    color: var(--color-primary);
    font-size: 13px;
    text-decoration: none;
}

.weather-card__link:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .running-tools {
        padding: 32px 24px;
    }

    .running-tools__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .running-tools {
        padding: 28px 20px;
    }

    .pace-card,
    .weather-card {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .pace-calculator__field {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .pace-calculator__result dl {
        grid-template-columns: minmax(0, 1fr);
    }
}


.weather-card__scaled {
    --weather-scale: 1.7;
}

@supports (width: 1cqw) {
    .weather-card__scaled {
        --weather-scale: clamp(1, calc(100cqw / 186px), 1.7);
    }
}

@media (max-width: 575px) {
    .weather-card__scaled {
        --weather-scale: 1.3;
    }
}


/* Beide Boxen am Desktop gleich hoch */

.running-tools__inner {
    align-items: stretch;
}

.pace-card,
.weather-card {
    padding: 24px;
}

.running-tools__heading {
    margin-bottom: 8px;
    font-size: 23px;
}

.pace-card__intro,
.weather-card__intro {
    margin-bottom: 16px;
    font-size: 14px;
}

/* Rechner kompakter */

.pace-calculator__hint {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.5;
}

.pace-calculator__presets {
    gap: 6px;
    margin-bottom: 16px;
}

.pace-calculator__presets button {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 12px;
}

.pace-calculator__fields {
    gap: 10px;
}

.pace-calculator__field {
    gap: 10px;
    font-size: 13px;
}

.pace-calculator__input input {
    min-height: 42px;
    padding-block: 8px;
    font-size: 14px;
}

.pace-calculator__input > button {
    height: 40px;
}

.pace-calculator__actions {
    gap: 10px;
    margin-top: 16px;
}

.pace-calculator__actions button {
    min-height: 44px;
    padding: 10px 16px;
}

.pace-calculator__message {
    margin-top: 12px;
    font-size: 13px;
}

/* Wetter im verbleibenden Platz zentrieren */

.weather-card {
    display: flex;
    flex-direction: column;
}

.weather-card__frame {
    display: grid;
    place-items: center;
    flex: 1;
    padding: 16px 0;
}

/* Untereinander: natürliche Höhe statt erzwungener Gleichhöhe */

@media (max-width: 991px) {
    .running-tools__inner {
        align-items: start;
    }

    .weather-card__frame {
        flex: none;
    }
}

@media (max-width: 575px) {
    .pace-card,
    .weather-card {
        padding: 20px 18px;
    }
}

/* Feldbeschriftungen */

.pace-calculator__field {
    font-size: 14px;
}

/* Einheiten und Formathinweise */

.pace-calculator__field small {
    font-size: 12px;
}

/* Eingaben und berechnete Werte */

.pace-calculator__input input {
    font-size: 16px;
}

/* Erklärung oberhalb des Formulars */

.pace-calculator__hint {
    font-size: 14px;
    line-height: 1.5;
}

/* Distanz-Schnellwahl */

.pace-calculator__presets button {
    font-size: 13px;
}



/* Allgemeiner Infobereich auf der Startseite */

.articles.start > .article.Informationen {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;

    margin: 0;
    padding: clamp(40px, 5vw, 72px) var(--site-gutter, 24px);

    background: #fff;
}

/* Gleiche maximale Inhaltsbreite wie bei den anderen Bereichen */

.articles.start > .Informationen > * {
    width: 100%;
    max-width: 1440px;
    min-width: 0;
    margin-inline: auto;
}

/* Titel vor dem Bild anzeigen */

.articles.start > .Informationen > .article__title {
    order: -2;

    margin-block: 0 24px;

    color: var(--color-text);
    font-size: clamp(26px, 2.5vw, 36px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

/* Panoramabild */

.articles.start > .Informationen > .article__image {
    order: -1;
    position: relative;

    display: block;
    height: clamp(240px, 23vw, 360px);
    min-height: 0;
    margin-block: 0 28px;

    border-radius: 20px;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Text auf angenehme Lesebreite begrenzen */

.articles.start > .Informationen .article__main {
    max-width: 1050px;

    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.8;
    white-space: normal;
}

.articles.start > .Informationen .article__main p {
    margin: 0 0 24px;
}

.articles.start > .Informationen .article__main p:last-child {
    margin-bottom: 0;
}

.articles.start > .Informationen .article__main a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.articles.start > .Informationen .article__main a:hover {
    color: var(--color-primary-hover);
}

/* Tablet */

@media (max-width: 991px) {
    .articles.start > .article.Informationen {
        padding: 40px 24px;
    }

    .articles.start > .Informationen > .article__image {
        height: 280px;
    }
}

/* Smartphone */

@media (max-width: 575px) {
    .articles.start > .article.Informationen {
        padding: 36px 20px;
    }

    .articles.start > .Informationen > .article__title {
        margin-bottom: 20px;
    }

    .articles.start > .Informationen > .article__image {
        height: 220px;
        margin-bottom: 24px;
        border-radius: 16px;
    }

    .articles.start > .Informationen .article__main {
        font-size: 16px;
        line-height: 1.7;
    }
}