.container-header .navbar-brand img {
    width: 34rem;
    min-width: 34rem;
    height: auto;
}
/* Navigationsleiste */
.container-header .container-nav {
    position: relative;
    background-color: #17242a;
    box-shadow: 0 0 0 100vmax #17242a;
    clip-path: inset(0 -100vmax);
    padding: 0.25rem 0;
}

/* Rote Linie über der Navigation */
.container-header .container-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 5px;
    background-color: #e30613;
    transform: translateX(-50%);
}

/* Menüpunkte */
.container-header .mod-menu > li > a {
    color: #ffffff;
    font-weight: 700;
    padding: 0.9rem 1.25rem;
    text-decoration: none;
}

/* Aktiver Menüpunkt und Hover */
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus {
    color: #ffffff;
    background-color: #e30613;
}

/* Gemeinsame Farben der Tourdarstellung */
:root {
    --tour-red: #e30613;
    --tour-dark: #17242a;
    --tour-muted: #5d686d;
    --tour-soft: #f3f5f6;
    --tour-border: #d9dfe2;
}

/* Trainingstour: Grundlayout und Typografie */
.tour-article {
    color: var(--tour-dark);
}

.tour-article > .page-header h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
}

.tour-article .com-content-article__body {
    font-size: 1rem;
    line-height: 1.7;
}

.tour-article .com-content-article__body p {
    margin-bottom: 1.15rem;
}

/* Der letzte Absatz dient als hervorgehobenes Tourfazit. */
.tour-article .com-content-article__body p:last-child {
    position: relative;
    margin: 1.75rem 0 0;
    padding: 1.15rem 1.25rem 1.15rem 1.5rem;
    background: #fff3f4;
    border-left: 5px solid var(--tour-red);
    border-radius: 0.35rem;
    font-weight: 650;
}

.tour-article .com-content-article__body p:last-child::before {
    content: "Fazit der Tour";
    display: block;
    margin-bottom: 0.35rem;
    color: var(--tour-red);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Kopfdaten der Trainingstour */
.tour-quickfacts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 1rem 0 1.5rem;
}

.tour-quickfact {
    min-width: 0;
    padding: 1rem 1.1rem;
    background: linear-gradient(145deg, #ffffff 0%, var(--tour-soft) 100%);
    border-top: 4px solid var(--tour-red);
    border-radius: 0.4rem;
    box-shadow: 0 0.35rem 1rem rgba(23, 36, 42, 0.08);
}

.tour-quickfact__label,
.tour-statistic__label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--tour-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.tour-quickfact__value {
    display: block;
    color: var(--tour-dark);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 800;
    line-height: 1.2;
}

/* Zweispaltige Geschichte: Bericht links, Tourmedien rechts */
.tour-story-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(21rem, 2fr);
    gap: clamp(1.25rem, 3vw, 2.25rem);
    align-items: start;
    margin-top: 1.25rem;
}

.tour-story-layout--single {
    grid-template-columns: minmax(0, 1fr);
}

.tour-story-layout__main,
.tour-story-layout__aside {
    min-width: 0;
}

.tour-story-layout__aside {
    display: grid;
    gap: 1.25rem;
}

/* Beitragsbild beziehungsweise Platzhalter */
.tour-article .item-image,
.tour-media-placeholder {
    margin: 0 0 2rem;
    border-radius: 0.6rem;
    overflow: hidden;
    box-shadow: 0 0.7rem 1.8rem rgba(23, 36, 42, 0.13);
}

.tour-article .item-image {
    float: none;
    width: 100%;
}

.tour-article .item-image img {
    display: block;
    width: 100%;
    max-height: 30rem;
    object-fit: cover;
}

.tour-media-placeholder {
    position: relative;
    display: flex;
    min-height: 18rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(23, 36, 42, 0.97), rgba(44, 61, 69, 0.93)),
        repeating-linear-gradient(125deg, transparent 0 3rem, rgba(255, 255, 255, 0.04) 3rem 3.2rem);
    text-align: center;
}

.tour-media-placeholder::after {
    content: "";
    position: absolute;
    right: -4rem;
    bottom: -6rem;
    width: 18rem;
    height: 18rem;
    border: 1.2rem solid rgba(227, 6, 19, 0.42);
    border-radius: 50%;
}

.tour-media-placeholder__icon {
    position: relative;
    z-index: 1;
    margin-bottom: 0.7rem;
    font-size: 2.6rem;
    line-height: 1;
}

.tour-media-placeholder__label,
.tour-media-placeholder__text {
    position: relative;
    z-index: 1;
}

.tour-media-placeholder__label {
    font-size: 1.4rem;
    font-weight: 800;
}

.tour-media-placeholder__text {
    margin-top: 0.3rem;
    color: #d4dadd;
}

/* Einheitliche Abschnittsüberschriften */
.tour-section-heading {
    margin-bottom: 1rem;
}

.tour-section-heading__eyebrow {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--tour-red);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.tour-section-heading h2,
.tour-song h2,
.tour-video h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    line-height: 1.2;
}

/* Komoot-Strecke */
.tour-route,
.tour-video,
.tour-statistics {
    margin: 3.25rem 0 1rem;
}

.tour-route__embed {
    overflow: hidden;
    background-color: var(--tour-soft);
    border: 1px solid var(--tour-border);
    border-radius: 0.6rem;
    box-shadow: 0 0.6rem 1.6rem rgba(23, 36, 42, 0.1);
}

.tour-route__embed iframe,
.tour-song__player iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* Schaltflächen */
.tour-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    color: #ffffff;
    background-color: var(--tour-red);
    border: 2px solid var(--tour-red);
    border-radius: 0.35rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.tour-button:hover,
.tour-button:focus {
    color: #ffffff;
    background-color: #ba0510;
    border-color: #ba0510;
    transform: translateY(-1px);
}

.tour-button--dark {
    color: var(--tour-dark);
    background-color: #ffffff;
    border-color: #ffffff;
}

.tour-button--dark:hover,
.tour-button--dark:focus {
    color: #ffffff;
    background-color: var(--tour-red);
    border-color: var(--tour-red);
}

/* Song des Tages */
.tour-song {
    display: grid;
    grid-template-columns: minmax(14rem, 0.8fr) minmax(18rem, 1.2fr);
    gap: 1.5rem;
    align-items: center;
    margin: 3.25rem 0 1rem;
    padding: 1.5rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--tour-dark), #273b44);
    border-top: 5px solid var(--tour-red);
    border-radius: 0.6rem;
    box-shadow: 0 0.7rem 1.8rem rgba(23, 36, 42, 0.18);
}

.tour-song h2 {
    color: #ffffff;
}

.tour-song__description p {
    margin: 0.35rem 0 0;
    color: #d4dadd;
    font-size: 1.05rem;
}

.tour-song__player {
    min-width: 0;
    overflow: hidden;
    border-radius: 0.75rem;
}

/* Kompakte Karten in der rechten Spalte */
.tour-story-layout__aside .tour-route,
.tour-story-layout__aside .tour-song,
.tour-story-layout__aside .tour-video {
    margin: 0;
}

.tour-story-layout__aside .tour-route__embed iframe {
    height: 430px;
}

.tour-story-layout__aside .tour-route .tour-button {
    width: 100%;
}

.tour-story-layout__aside .tour-song {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1.25rem;
}

/* Optionale Videokarte */
.tour-video {
    padding: 1.4rem 1.5rem;
    background-color: var(--tour-soft);
    border-left: 5px solid var(--tour-red);
    border-radius: 0.5rem;
}

/* Gruppierte Tourstatistik */
.tour-statistics {
    padding-top: 1.75rem;
    border-top: 1px solid var(--tour-border);
}

.tour-statistics__groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.tour-stat-group {
    min-width: 0;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid var(--tour-border);
    border-radius: 0.5rem;
    box-shadow: 0 0.35rem 1rem rgba(23, 36, 42, 0.07);
}

.tour-stat-group h3 {
    margin: 0;
    padding: 0.8rem 1rem;
    color: #ffffff;
    background-color: var(--tour-dark);
    border-left: 5px solid var(--tour-red);
    font-size: 1rem;
    line-height: 1.25;
}

.tour-stat-group__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.8rem;
}

.tour-stat-group--single .tour-statistic {
    grid-column: 1 / -1;
}

.tour-statistic {
    min-width: 0;
    padding: 0.75rem 0.85rem;
    background-color: var(--tour-soft);
    border-left: 3px solid var(--tour-red);
    border-radius: 0.3rem;
}

.tour-statistic__value {
    display: block;
    color: var(--tour-dark);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* Temperaturbereich als horizontales Thermometer */
.tour-stat-group--temperature {
    overflow: visible;
}

.tour-thermometer {
    padding: 1rem 1.15rem 0.9rem;
}

.tour-thermometer__labels {
    position: relative;
    height: 3.6rem;
    margin: 0 0.5rem 0 2rem;
}

.tour-thermometer__reading {
    position: absolute;
    display: flex;
    min-width: 4.6rem;
    flex-direction: column;
    line-height: 1.1;
    white-space: nowrap;
}

.tour-thermometer__reading small {
    color: var(--tour-muted);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.tour-thermometer__reading strong {
    margin-top: 0.2rem;
    color: var(--tour-dark);
    font-size: 1rem;
}

.tour-thermometer__reading--min {
    left: var(--tour-temp-min);
    bottom: 0;
    align-items: flex-end;
    transform: translateX(-100%);
}

.tour-thermometer__reading--average {
    left: var(--tour-temp-average);
    top: 0;
    align-items: center;
    transform: translateX(-50%);
}

.tour-thermometer__reading--max {
    left: var(--tour-temp-max);
    bottom: 0;
    align-items: flex-start;
}

.tour-thermometer__instrument {
    position: relative;
    height: 1.35rem;
    margin-left: 2rem;
}

.tour-thermometer__bulb {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: -1.85rem;
    width: 1.65rem;
    height: 1.65rem;
    background-color: #3f78b5;
    border: 0.25rem solid #dce5eb;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #b8c5cc;
    transform: translateY(-50%);
}

.tour-thermometer__track {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 0.8rem;
    overflow: hidden;
    background: linear-gradient(90deg, #dceaf7 0%, #e5f1df 35%, #f7edd2 62%, #f7dcda 100%);
    border: 1px solid #b8c5cc;
    border-radius: 999px;
    transform: translateY(-50%);
}

.tour-thermometer__track::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #2474c6 0%, #64ad5a 35%, #efa62e 62%, #dc3545 100%);
    clip-path: polygon(
        var(--tour-temp-min) 0,
        var(--tour-temp-max) 0,
        var(--tour-temp-max) 100%,
        var(--tour-temp-min) 100%
    );
}

.tour-thermometer__marker {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 0.2rem;
    height: 1.5rem;
    background-color: var(--tour-dark);
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

.tour-thermometer__marker--min {
    left: var(--tour-temp-min);
}

.tour-thermometer__marker--average {
    left: var(--tour-temp-average);
    width: 0.34rem;
    height: 1.85rem;
    background-color: var(--tour-red);
}

.tour-thermometer__marker--max {
    left: var(--tour-temp-max);
}

.tour-thermometer__scale {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin: 0.45rem 0 0 2rem;
    color: var(--tour-muted);
    font-size: 0.66rem;
}

.tour-thermometer__scale span {
    text-align: center;
}

.tour-thermometer__scale span:first-child {
    text-align: left;
}

.tour-thermometer__scale span:last-child {
    text-align: right;
}

/* Alte automatische Joomla-Feldliste ausblenden */
.com-content-article > .fields-container,
.com-content-category-blog .fields-container,
.blog .fields-container {
    display: none;
}

/* Trainingstagebuch: gleichwertige Tourkarten */
.tour-overview__title {
    margin-bottom: 0;
}

.tour-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tour-overview-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--tour-border);
    border-top: 0.22rem solid var(--tour-red);
    border-radius: 0.75rem;
    box-shadow: 0 0.65rem 1.6rem rgba(23, 36, 42, 0.1);
}

.tour-overview-card__visual {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--tour-dark);
}

.tour-overview-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
}

.tour-overview-card:hover .tour-overview-card__visual img {
    transform: scale(1.025);
}

.tour-overview-card__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.35rem;
    color: #fff;
    background:
        radial-gradient(circle at 90% 115%, transparent 0 21%, rgba(239, 0, 11, 0.38) 21.5% 25%, transparent 25.5%),
        linear-gradient(135deg, #16252c 0%, #30434c 100%);
    font-weight: 750;
}

.tour-overview-card__placeholder-icon {
    font-size: 1.35rem;
}

.tour-overview-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.15rem;
}

.tour-overview-card__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 0 0 1rem;
}

.tour-overview-card__facts > div {
    min-width: 0;
    padding: 0.55rem 0.45rem;
    background: var(--tour-soft);
    border-radius: 0.35rem;
}

.tour-overview-card__facts dt {
    margin: 0 0 0.15rem;
    color: var(--tour-muted);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.tour-overview-card__facts dd {
    overflow: hidden;
    margin: 0;
    color: var(--tour-dark);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tour-overview-card__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
    line-height: 1.2;
}

.tour-overview-card__title a {
    color: var(--tour-dark);
    text-decoration: none;
}

.tour-overview-card__title a:hover,
.tour-overview-card__title a:focus-visible {
    color: var(--tour-red);
}

.tour-overview-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 1.2rem;
    color: #33454d;
    font-size: 0.92rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.tour-overview-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: auto;
    padding: 0.72rem 0.9rem;
    color: #fff;
    background: var(--tour-red);
    border-radius: 0.32rem;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.tour-overview-card__button:hover,
.tour-overview-card__button:focus-visible {
    color: #fff;
    background: #c9000a;
}

@media (max-width: 1000px) {
    .tour-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 660px) {
    .tour-overview-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 960px) {
    .tour-story-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .tour-story-layout__aside .tour-route__embed iframe {
        height: 540px;
    }
}

@media (max-width: 850px) {
    .tour-song,
    .tour-statistics__groups {
        grid-template-columns: 1fr;
    }

    .tour-route__embed iframe {
        height: 540px;
    }
}

@media (max-width: 640px) {
    .container-header .navbar-brand img {
        width: min(100%, 24rem);
        min-width: 0;
    }

    .tour-quickfacts,
    .tour-stat-group__grid {
        grid-template-columns: 1fr;
    }

    .tour-stat-group--single .tour-statistic {
        grid-column: auto;
    }

    .tour-thermometer {
        padding-inline: 0.8rem;
    }

    .tour-thermometer__labels,
    .tour-thermometer__scale {
        margin-left: 1.75rem;
    }

    .tour-thermometer__instrument {
        margin-left: 1.75rem;
    }

    .tour-thermometer__scale {
        font-size: 0.58rem;
    }

    .tour-media-placeholder {
        min-height: 14rem;
    }

    .tour-route__embed iframe {
        height: 460px;
    }

    .tour-story-layout__aside .tour-route__embed iframe {
        height: 460px;
    }

    .tour-song {
        padding: 1.2rem;
    }

    .tour-button {
        width: 100%;
    }
}
