a.imglogo, a.medialogo {
  padding: 5px 0 5px 0;
}

#header, .header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    width: auto !important;
    margin: 0 auto !important;
}


/* 2. KLEINE BILDSCHIRME (Handy / Tablet) */
/* Schaltet die feste Höhe ab, damit sich die Fläche an das Logo anschmiegt */
@media (max-width: 768px) {
    #header, 
    .header, 
    #logo {
        height: auto !important;
        min-height: 0 !important;
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }
    
    /* Verhindert, dass das Logo auf dem Handy über den Rand hinausragt */
    #logo img {
        max-height: 80px !important;
        width: auto !important;
    }
}


.feuerwehr-home-button {
    display: inline-block;
    padding: 12px 24px;
    background: #555555;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.feuerwehr-home-button:hover,
.feuerwehr-home-button:focus {
    background: #222222;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
}




/* =========================================================
   FEUERWEHR-CHRONIK
   ========================================================= */

.ff-chronik {
    --ff-red: #bd0711;
    --ff-red-light: #dc2029;
    --ff-red-dark: #900008;

    --ff-dark: #2d2d2f;
    --ff-dark-light: #505052;

    --ff-text: #3d3e41;
    --ff-white: #ffffff;
    --ff-card: #ffffff;

    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 35px 25px;
    box-sizing: border-box;
}

.ff-chronik *,
.ff-chronik *::before,
.ff-chronik *::after {
    box-sizing: border-box;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.ff-chronik__timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-bottom: 26px;
}


/* Rote senkrechte Hauptlinie */

.ff-chronik__timeline::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 13px;
    left: 50%;

    width: 5px;
    border-radius: 999px;

    background: var(--ff-red);

    transform: translateX(-50%);
}


/* Abschlusspunkt */

.ff-chronik__timeline::after {
    content: "";
    position: absolute;
    z-index: 3;
    bottom: 1px;
    left: 50%;

    width: 13px;
    height: 13px;

    border-radius: 50%;
    background: var(--ff-red);

    transform: translateX(-50%);
}


/* =========================================================
   EINZELNES EREIGNIS
   ========================================================= */

.ff-chronik__item {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 105px minmax(0, 1fr);
    align-items: center;

    width: 100%;
}

.ff-chronik__item--left .ff-chronik__card {
    grid-column: 1;
}

.ff-chronik__item--right .ff-chronik__card {
    grid-column: 3;
}


/* Horizontale Verbindungslinien */

.ff-chronik__item::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 50%;

    width: 57px;
    height: 4px;

    border-radius: 999px;
    background: var(--ff-red);

    transform: translateY(-50%);
}

.ff-chronik__item--left::before {
    left: calc(50% - 57px);
}

.ff-chronik__item--right::before {
    left: 50%;
}


/* =========================================================
   ICON-KREISE
   ========================================================= */

.ff-chronik__marker {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 78px;
    height: 78px;
    padding: 0;

    overflow: hidden;

    border: 5px solid var(--ff-white);
    border-radius: 50%;

    line-height: 0;
    text-align: center;

    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.12),
        0 6px 16px rgba(0, 0, 0, 0.20);

    transform: translate(-50%, -50%);
}


/* Roter Kreis */

.ff-chronik__marker--red {
    background:
        radial-gradient(
            circle at 35% 30%,
            var(--ff-red-light) 0%,
            var(--ff-red) 55%,
            var(--ff-red-dark) 100%
        );
}


/* Dunkelgrauer Kreis */

.ff-chronik__marker--dark {
    background:
        radial-gradient(
            circle at 35% 30%,
            var(--ff-dark-light) 0%,
            var(--ff-dark) 57%,
            #19191a 100%
        );
}


/* Meilenstein-Kreis */

.ff-chronik__marker--milestone {
    background:
        radial-gradient(
            circle at 35% 30%,
            #ffe69b 0%,
            #d5aa2b 52%,
            #8a6710 100%
        );

    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.12),
        0 0 0 4px rgba(201, 162, 39, 0.22),
        0 7px 18px rgba(0, 0, 0, 0.22);
}


/* SVG-Icon zentrieren */

.ff-chronik__icon {
    position: static;

    display: block;
    flex: 0 0 auto;

    width: 39px;
    height: 39px;
    max-width: none;
    max-height: none;

    margin: 0;
    padding: 0;
    border: 0;

    object-fit: contain;
    object-position: center center;

    transform: none;
}


/* Globale Bildregeln des Joomla-Templates überschreiben */

.ff-chronik .ff-chronik__marker img.ff-chronik__icon {
    position: static !important;
    display: block !important;

    width: 39px !important;
    height: 39px !important;
    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;

    float: none !important;
    inset: auto !important;

    object-fit: contain !important;
    object-position: center center !important;

    transform: none !important;
}


/* =========================================================
   KARTEN
   ========================================================= */

.ff-chronik__card {
    position: relative;

    min-height: 175px;
    overflow: hidden;

    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 8px;

    background: var(--ff-card);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.05);
}


/* Meilenstein-Karte */

.ff-chronik__item--milestone .ff-chronik__card {
    border: 2px solid #c9a227;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.11),
        0 0 0 4px rgba(201, 162, 39, 0.09);
}


/* Karteninhalt */

.ff-chronik__content {
    position: relative;
    z-index: 4;

    padding: 24px 28px;
}


/* Rechte Karten rechtsbündig */

.ff-chronik__item--right .ff-chronik__content {
    text-align: right;
}


/* =========================================================
   MEILENSTEIN-BADGE
   ========================================================= */

.ff-chronik__badge {
    display: inline-block;

    margin-bottom: 7px;
    padding: 3px 9px;

    border-radius: 999px;

    background: #c9a227;
    color: #ffffff;

    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
}

.ff-chronik__item--right .ff-chronik__badge {
    margin-left: auto;
}


/* =========================================================
   JAHRESZAHL UND UNTERSTRICH
   ========================================================= */

.ff-chronik__content time {
    position: relative;
    display: block;

    margin: 0 0 22px;

    font-size: clamp(1.4rem, 1.9vw, 1.9rem);
    font-weight: 800;
    line-height: 1;
}


/* Unterstrich */

.ff-chronik__content time::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;

    width: 50px;
    height: 3px;
}

/* Unterstrich rechter Eintrag */

.ff-chronik__item--right .ff-chronik__content time::after {
    right: 0;
    left: auto;
}

/* Red-Jahreszahl */

.ff-chronik__item--red .ff-chronik__content time {
    color: var(--ff-red);
}

.ff-chronik__item--red .ff-chronik__content time::after {
    background: var(--ff-red);
}

/* Dark-Jahreszahl */

.ff-chronik__item--dark .ff-chronik__content time {
    color: var(--ff-dark);
}

.ff-chronik__item--dark .ff-chronik__content time::after {
    background: var(--ff-dark);
}

/* Meilenstein-Jahreszahl */

.ff-chronik__item--milestone .ff-chronik__content time {
    color: #9a7415;
}

.ff-chronik__item--milestone .ff-chronik__content time::after {
    background: #c9a227;
}


/* =========================================================
   ÜBERSCHRIFT UND TEXT
   ========================================================= */

.ff-chronik__content h3 {
    margin: 0 0 7px;

    color: #121214;

    font-size: clamp(0.98rem, 1.3vw, 1.18rem);
    font-weight: 750;
    line-height: 1.28;
}

.ff-chronik__content p {
    margin: 0;

    color: var(--ff-text);

    font-size: 0.82rem;
    line-height: 1.5;
}


/* =========================================================
   KARTEN MIT HINTERGRUNDBILD
   ========================================================= */

.ff-chronik__card--image {
    isolation: isolate;

    background-image: var(--chronik-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}


/* Grauschleier */

.ff-chronik__card--image::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
}


/* Rechte Bildkarte: Bild links, Text rechts */

.ff-chronik__item--right .ff-chronik__card--image::before {
    background:
        linear-gradient(
            90deg,
            rgba(245, 245, 245, 0.55) 0%,
            rgba(245, 245, 245, 0.62) 30%,
            rgba(245, 245, 245, 0.85) 60%,
            rgba(250, 250, 250, 0.98) 100%
        );
}


/* Linke Bildkarte: Text links, Bild rechts */

.ff-chronik__item--left .ff-chronik__card--image::before {
    background:
        linear-gradient(
            90deg,
            rgba(250, 250, 250, 0.98) 0%,
            rgba(245, 245, 245, 0.85) 40%,
            rgba(245, 245, 245, 0.62) 70%,
            rgba(245, 245, 245, 0.55) 100%
        );
}


/* Leichte Bildentsättigung */

.ff-chronik__card--image::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;

    background: rgba(165, 165, 165, 0.18);
    mix-blend-mode: saturation;

    pointer-events: none;
}


/* =========================================================
   HOVER-EFFEKTE
   ========================================================= */

@media (hover: hover) {

    .ff-chronik__card {
        transition:
            transform 0.25s ease,
            box-shadow 0.25s ease;
    }

    .ff-chronik__marker {
        transition:
            transform 0.25s ease,
            box-shadow 0.25s ease;
    }

    .ff-chronik__item:hover .ff-chronik__card {
        transform: translateY(-3px);

        box-shadow:
            0 12px 30px rgba(0, 0, 0, 0.12),
            0 3px 8px rgba(0, 0, 0, 0.06);
    }

    .ff-chronik__item:hover .ff-chronik__marker {
        transform: translate(-50%, -50%) scale(1.05);

        box-shadow:
            0 0 0 1px rgba(0, 0, 0, 0.12),
            0 9px 22px rgba(0, 0, 0, 0.24);
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .ff-chronik {
        padding: 28px 16px;
    }

    .ff-chronik__timeline {
        gap: 22px;
        padding-left: 82px;
    }

    .ff-chronik__timeline::before {
        left: 36px;
        transform: none;
    }

    .ff-chronik__timeline::after {
        left: 32px;
        transform: none;
    }

    .ff-chronik__item {
        display: block;
    }

    .ff-chronik__item--left .ff-chronik__card,
    .ff-chronik__item--right .ff-chronik__card {
        width: 100%;
    }

    .ff-chronik__item--right .ff-chronik__content {
        text-align: left;
    }

    .ff-chronik__item--right .ff-chronik__content time {
        color: var(--ff-red);
    }

    .ff-chronik__item--right .ff-chronik__content time::after {
        right: auto;
        left: 0;

        background: var(--ff-red);
    }

    .ff-chronik__item--right .ff-chronik__badge {
        margin-left: 0;
    }

    .ff-chronik__marker {
        top: 43px;
        left: -46px;

        width: 70px;
        height: 70px;

        transform: translate(-50%, -50%);
    }

    .ff-chronik .ff-chronik__marker img.ff-chronik__icon {
        width: 34px !important;
        height: 34px !important;
    }

    .ff-chronik__item::before,
    .ff-chronik__item--left::before,
    .ff-chronik__item--right::before {
        top: 43px;
        left: -46px;

        width: 46px;
        height: 4px;

        background: var(--ff-red);

        transform: none;
    }

    .ff-chronik__content {
        padding: 22px 24px;
    }

    .ff-chronik__content time {
        margin-bottom: 21px;
        font-size: 1.38rem;
    }

    .ff-chronik__content time::after {
        bottom: -10px;
        width: 48px;
    }

    .ff-chronik__content h3 {
        font-size: 1rem;
    }

    .ff-chronik__content p {
        font-size: 0.81rem;
        line-height: 1.48;
    }

    .ff-chronik__item--right .ff-chronik__card--image::before,
    .ff-chronik__item--left .ff-chronik__card--image::before {
        background:
            linear-gradient(
                90deg,
                rgba(248, 248, 248, 0.96) 0%,
                rgba(248, 248, 248, 0.87) 58%,
                rgba(235, 235, 235, 0.66) 100%
            );
    }
}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 520px) {

    .ff-chronik {
        padding-right: 8px;
        padding-left: 8px;
    }

    .ff-chronik__timeline {
        gap: 18px;
        padding-left: 58px;
    }

    .ff-chronik__timeline::before {
        left: 25px;
        width: 4px;
    }

    .ff-chronik__timeline::after {
        left: 20px;
    }

    .ff-chronik__marker {
        top: 36px;
        left: -33px;

        width: 56px;
        height: 56px;

        border-width: 4px;
    }

    .ff-chronik .ff-chronik__marker img.ff-chronik__icon {
        width: 27px !important;
        height: 27px !important;
    }

    .ff-chronik__item::before,
    .ff-chronik__item--left::before,
    .ff-chronik__item--right::before {
        top: 36px;
        left: -33px;

        width: 33px;
        height: 3px;
    }

    .ff-chronik__card {
        min-height: auto;
    }

    .ff-chronik__content {
        padding: 19px 17px;
    }

    .ff-chronik__content time {
        margin-bottom: 19px;
        font-size: 1.28rem;
    }

    .ff-chronik__content time::after {
        bottom: -9px;

        width: 44px;
        height: 2px;
    }

    .ff-chronik__content h3 {
        margin-bottom: 6px;
        font-size: 0.96rem;
    }

    .ff-chronik__content p {
        font-size: 0.79rem;
        line-height: 1.46;
    }

    .ff-chronik__badge {
        margin-bottom: 6px;
        padding: 3px 8px;
        font-size: 0.59rem;
    }

    .ff-chronik__item--right .ff-chronik__card--image::before,
    .ff-chronik__item--left .ff-chronik__card--image::before {
        background: rgba(245, 245, 245, 0.87);
    }
}


/* =========================================================
   REDUZIERTE ANIMATIONEN
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .ff-chronik__card,
    .ff-chronik__marker {
        transition: none;
    }
}

/* =========================================================
   DESKTOP: EREIGNISSE VERTIKAL ÜBERLAPPEN LASSEN
   ========================================================= */

@media screen and (min-width: 900px) {

    /* Normalen Abstand zwischen den Ereignissen entfernen */
    .ff-chronik__timeline {
        gap: 0 !important;
    }

    /*
     * Jedes Ereignis ab dem zweiten wird nach oben gezogen.
     * Da die Karten abwechselnd links und rechts stehen,
     * können sie sich in der Höhe überlagern.
     */
    .ff-chronik__item + .ff-chronik__item {
        margin-top: -25px;
    }

    /* Karten und Marker bleiben über der roten Linie */
    .ff-chronik__item {
        position: relative;
        z-index: 2;
    }

    .ff-chronik__card {
        position: relative;
        z-index: 3;
    }

    .ff-chronik__marker {
        z-index: 10;
    }
}

/* =========================================================
   TIMELINE – VERLINKTE KARTE OHNE LINK-UNTERSTREICHUNG
   ========================================================= */

a.ff-chronik__card--link,
a.ff-chronik__card--link:link,
a.ff-chronik__card--link:visited,
a.ff-chronik__card--link:hover,
a.ff-chronik__card--link:focus,
a.ff-chronik__card--link:active {
    display: block;

    color: inherit !important;

    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-thickness: 0 !important;

    cursor: pointer;
}


/*
 * WICHTIG:
 * inline-block verhindert, dass die Textdekoration
 * des Links in den Karteninhalt weitergegeben wird.
 */

a.ff-chronik__card--link .ff-chronik__content {
    display: inline-block;
    width: 100%;

    text-decoration: none !important;
}


/* Jahr, Überschrift und Beschreibung */

a.ff-chronik__card--link .ff-chronik__content time,
a.ff-chronik__card--link .ff-chronik__content h3,
a.ff-chronik__card--link .ff-chronik__content p {
    text-decoration: none !important;
    text-decoration-line: none !important;
}


/* Farben wie bisher beibehalten */

a.ff-chronik__card--link .ff-chronik__content h3 {
    color: #121214 !important;
}

a.ff-chronik__card--link .ff-chronik__content p {
    color: var(--ff-text) !important;
}


/* Unterstreichungs-Effekte des Templates verhindern */

a.ff-chronik__card--link .ff-chronik__content h3,
a.ff-chronik__card--link .ff-chronik__content p {
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
}


/* Hover-Effekt der Karte bleibt erhalten */

@media (hover: hover) {

    a.ff-chronik__card--link:hover {
        transform: translateY(-3px);

        box-shadow:
            0 12px 30px rgba(0, 0, 0, 0.12),
            0 3px 8px rgba(0, 0, 0, 0.06);
    }
}

.ff-chronik__boxplus-link {
    display: none !important;
}

.ff-chronik__card--clickable {
    cursor: pointer;
}


/* =========================================================
   FEUERWEHR-Fahrzeugslider
   ========================================================= */

.fahrzeug-box {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
    gap: 40px;
    align-items: stretch;

    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}


/* =========================================================
   LINKE SEITE – GALERIE
   ========================================================= */

.fahrzeug-galerie {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   HAUPTBILD
   ========================================================= */

.fahrzeug-bild {
    width: 100%;

    /*
     * Die Höhe bleibt beim Bildwechsel gleich.
     * Auf großen Bildschirmen maximal 560 px,
     * auf kleineren Ansichten passt sie sich an.
     */
    height: clamp(380px, 34vw, 560px);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 8px;
    background: #f3f3f3;
}

.fahrzeug-bild img {
    display: block;

    width: 100%;
    height: 100%;

    /*
     * Das Bild wird NICHT abgeschnitten.
     * Hochformat bleibt Hochformat,
     * Querformat bleibt Querformat.
     */
    object-fit: contain;
    object-position: center;
}


/* =========================================================
   NAVIGATION UNTER DEM HAUPTBILD
   ========================================================= */

.fahrzeug-navigation {
    display: flex;
    align-items: center;

    width: 100%;
    min-width: 0;

    gap: 10px;
    margin-top: 12px;
}


/* =========================================================
   PFEILE
   ========================================================= */

.fahrzeug-prev,
.fahrzeug-next {
    flex: 0 0 42px;

    width: 42px;
    height: 70px;

    border: 0;
    border-radius: 5px;

    background: #eeeeee;
    color: #555555;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.fahrzeug-prev:hover,
.fahrzeug-next:hover {
    background: #dddddd;
    color: #555555;
}

.fahrzeug-prev:focus,
.fahrzeug-next:focus {
    outline: 2px solid rgba(85, 85, 85, 0.35);
    outline-offset: 2px;
}


/* =========================================================
   KLEINE VORSCHAUBILDER
   ========================================================= */

.fahrzeug-thumbnails {
    display: flex;

    flex: 1;
    min-width: 0;

    gap: 8px;

    /*
     * Wenn nicht alle Bilder Platz haben,
     * wird horizontal gescrollt.
     */
    overflow-x: auto;
    overflow-y: hidden;

    /*
     * Angenehmes Wischen auf Tablet und Handy.
     */
    -webkit-overflow-scrolling: touch;

    /*
     * Die Bilder rasten beim Wischen leicht ein.
     */
    scroll-snap-type: x proximity;

    /*
     * Etwas Platz für die dezente Scrollbar.
     */
    padding-bottom: 4px;

    /*
     * Firefox
     */
    scrollbar-width: thin;
    scrollbar-color: rgba(85, 85, 85, 0.25) transparent;
}


/* =========================================================
   DEZENTE SCROLLBAR
   Chrome / Edge / Safari
   ========================================================= */

.fahrzeug-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.fahrzeug-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.fahrzeug-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(85, 85, 85, 0.25);
    border-radius: 10px;
}

.fahrzeug-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(85, 85, 85, 0.4);
}


/* =========================================================
   THUMBNAILS
   ========================================================= */

.fahrzeug-thumbnails img {
    /*
     * Wichtig:
     * Die Bilder dürfen NICHT kleiner werden.
     */
    flex: 0 0 100px;

    width: 100px;
    height: 70px;

    object-fit: cover;

    border-radius: 5px;
    border: 2px solid transparent;

    box-sizing: border-box;

    cursor: pointer;

    opacity: 0.65;

    scroll-snap-align: start;

    transition:
        opacity 0.2s ease,
        border-color 0.2s ease;
}

.fahrzeug-thumbnails img:hover {
    opacity: 1;
}

.fahrzeug-thumbnails img.active {
    opacity: 1;
    border-color: #555555;
}


/* =========================================================
   RECHTE SEITE – TECHNISCHE DATEN
   ========================================================= */

.fahrzeug-daten {
    width: 100%;
    height: 100%;

    box-sizing: border-box;

    background: #f5f5f5;

    padding: 28px 30px;

    border-radius: 8px;
}


/* Fahrzeugname */

.fahrzeug-daten h2 {
    margin-top: 0;
    margin-bottom: 25px;

    font-size: 32px;
    line-height: 1.2;

    color: #555555;
}


/* Einzelne Datenzeilen */

.fahrzeug-daten-zeile {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);

    gap: 20px;

    padding: 12px 0;

    border-bottom: 1px solid #dddddd;

    font-size: 16px;
    line-height: 1.5;
}


/* Bezeichnung links */

.fahrzeug-daten-zeile strong {
    color: #555555;
    font-weight: 700;
}


/* Inhalt rechts */

.fahrzeug-daten-zeile span {
    color: #222222;

    text-align: right;

    /*
     * Auch umgebrochene Zeilen
     * bleiben rechtsbündig.
     */
    justify-self: stretch;

    overflow-wrap: anywhere;
}

/* =========================================================
   TABLET / SCHMÄLERE DESKTOPANSICHT
   ========================================================= */

@media (max-width: 1050px) {

    .fahrzeug-box {
        grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);
        gap: 25px;
    }

    .fahrzeug-bild {
        height: clamp(320px, 42vw, 450px);
    }

    .fahrzeug-daten {
        padding: 24px;
    }

    .fahrzeug-daten h2 {
        font-size: 28px;
    }

}


/* =========================================================
   TABLET HOCHKANT / KLEINE BILDSCHIRME
   ========================================================= */

@media (max-width: 800px) {

    .fahrzeug-box {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /*
     * Wenn Galerie und technische Daten
     * untereinander stehen, muss die rechte Box
     * nicht mehr dieselbe Höhe wie die Galerie haben.
     */
    .fahrzeug-daten {
        height: auto;
    }

    .fahrzeug-bild {
        height: clamp(300px, 60vw, 430px);
    }

    /*
     * Vorschaubilder bleiben weiterhin gleich groß.
     */
    .fahrzeug-thumbnails img {
        flex: 0 0 100px;

        width: 100px;
        height: 70px;
    }

}


/* =========================================================
   HANDY
   ========================================================= */

@media (max-width: 520px) {

    .fahrzeug-bild {
        height: 300px;
    }

    .fahrzeug-navigation {
        gap: 7px;
        margin-top: 10px;
    }

    .fahrzeug-prev,
    .fahrzeug-next {
        flex: 0 0 38px;

        width: 38px;
        height: 60px;

        font-size: 28px;
    }

    .fahrzeug-thumbnails {
        gap: 6px;
    }

    .fahrzeug-thumbnails img {
        /*
         * Auch am Handy nicht zusammenquetschen.
         */
        flex: 0 0 90px;

        width: 90px;
        height: 63px;
    }

    .fahrzeug-daten {
        padding: 20px;
    }

    .fahrzeug-daten h2 {
        margin-bottom: 18px;

        font-size: 26px;
    }

    .fahrzeug-daten-zeile {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .fahrzeug-daten-zeile span {
        text-align: left;
    }

    .fahrzeug-daten-zeile strong {
        text-align: left;
    }

}