:root {
    --brand-color: #bf0909;
    --main-border-color: #d6d6d6;
    --thumbnail-border-color: #d6d6d6;
    --default-font-size: 1rem;
}

.contact--button {
    display: none;
}

.hidden {
    display: none !important;
}

.vehicle-container {
    display: none;
}

.atg {
    display: block;
    border: 1px solid var(--main-border-color);
    box-sizing: border-box;
    padding: 4px;
}

.container {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.header {
    background-color: var(--brand-color);
    width: 100%;
    max-height: 150px;
    height: auto;
    overflow: hidden;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 10px;
}

.header.vehicle-container {
    max-height: none;
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.vehicle-container .vehicle-btn {
    flex-basis: 33%;
    flex-grow: 1;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    overflow: hidden;
    box-sizing: border-box;
}

.contact--button .btn {
    display: inline-block;
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 4px;
    padding: 10px 20px;
    color: #000000;
    text-decoration: none;
    text-align: center;
    font-size: var(--default-font-size);
    cursor: pointer;
    font-weight: 400;
}

.contact--button .btn:first-child {
    margin-right: 20px;
}

.inner {
    display: flex;
    justify-content: space-between;
    flex-flow: row wrap;
    align-items: center;
}

.img-infos {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.img-container {
    box-sizing: border-box;
    flex: 1 1 100%;
}

.info-container {
    box-sizing: border-box;
    flex: 1 1 100%;
}

.pad {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.pad .top {
    font-weight: 300;
    font-size: calc(var(--default-font-size) * 1.15);
}

.pad .top ul {
    list-style: none;
    padding: 0;
}

.pad .top ul li {
    display: block;
    line-height: calc(var(--default-font-size) * 1.5);
    padding: 0;
}

.pad .top ul li:first-child {
    font-size: calc(var(--default-font-size) * 1.2);
    font-weight: 700;
}

.pad .pad-bottom {
    display: flex;
    flex-direction: column;
    width: 100%;
    row-gap: 15px;
}

.btn {
    display: block;
    background-color: var(--brand-color);
    border: 1px solid #000000;
    border-radius: 4px;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-size: var(--default-font-size);
    cursor: pointer;
    font-weight: 400;
}

.small {
    font-size: var(--default-font-size);
    font-weight: 400;
}

.ul {
    margin: 0 20px;
    padding: 10px;
    list-style: conic-gradient(#ffffff, var(--brand-color));
    font-size: var(--default-font-size);
}

.copy {
    font-size: 0.8rem;
}

/* Container-Layout: Hauptbild oben, Thumbs unten */
.gallery {
    display: flex;
    flex-direction: column; /* Stapelt .stage und .thumbs untereinander */
    width: 100%;
    max-width: 600px; /* Optional: Breite begrenzen */
    margin: 0 auto;
    min-width: 400px;
}

/* Hauptbild-Bereich (.stage) */
.stage ul {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 450px; /* Feste Höhe für das Hauptbild */
}

/* Versteckt die Radio-Buttons */
.stage input[type="radio"] {
    display: none;
}

/* Alle Bilder standardmäßig ausblenden */
.stage .lightbox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Nur das Bild anzeigen, dessen Radio-Button :checked ist */
.stage input[type="radio"]:checked + .lightbox {
    opacity: 1;
    z-index: 2;
}

/* Thumbnail-Leiste (.thumbs) */
.thumbs {
    margin-top: 15px; /* Abstand zum Hauptbild */
}

.thumbs ul {
    display: flex;
    justify-content: center; /* Thumbnails mittig unter dem Bild */
    list-style: none;
    padding: 0;
    gap: 10px; /* Abstand zwischen den Thumbnails */
    flex-wrap: wrap;
}

.thumbs li div {
    width: 80px;
    height: 60px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--thumbnail-border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
}

/* Optisches Feedback beim Hovern oder aktiven Thumbnail */
.thumbs li div:hover {
    border-color: #333;
}

@media screen and (min-width: 1024px) {
    .img-container {
        flex: 1 1 50%;
    }

    .info-container {
        flex: 1 2 50%;
        padding-left: 25px;
    }
}

@media screen and (min-width: 800px) {
    .mobile {
        display: none !important;
    }

    .vehicle-container {
        display: flex;
        flex-direction: row;
        width: 100%;
        max-width: 100%;
        height: auto;
        overflow: hidden;
        box-sizing: border-box;
        column-gap: 10px;
        row-gap: 10px;
        flex-wrap: wrap;
    }
}

@media (min-width: 550px) {
    .contact--button {
        display: block;
    }
}
