
/* CSS Code starts here */
.price_and_back #auto-preis {
    /* Debug: Using background-color: #dc323f */
    background-color: #dc323f;
    color: #ffffff;
    /* ... rest of the CSS ... */
}

/* Modellmenü */
#filter-button {
    display: none;
}

.modellmenue ul {
    list-style-type: none;
    /* Entfernt die Listenaufzählungszeichen */
    padding: 0;
    /* Entfernt den Standard-Abstand */
    margin: 0;
    /* Entfernt den Standard-Außenabstand */
    display: flex;
    /* Stellt die Listenelemente in einer Reihe dar */
    flex-wrap: wrap;
    /* Ermöglicht das Umbruch der Listenelemente */
    gap: 10px;
    /* Definiert einen Abstand zwischen den Elementen */
}

/* Grundlegende Formular-Styles */
#email-senden {
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#email-senden h2 {
    text-align: center;
    color: #333;
}

#email-senden label {
    margin-top: 10px;
    display: block;
    color: #666;
}

#email-senden input[type="text"],
#email-senden input[type="tel"],
#email-senden input[type="email"],
#email-senden textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    /* Damit die Breite inklusive Padding ist */
}

#email-senden textarea {
    resize: vertical !important;
    /* Ermöglicht nur vertikales Skalieren */
    overflow-y: scroll !important;
}

#email-senden textarea::-webkit-scrollbar {
    width: 10px !important;
}

#email-senden textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#email-senden textarea::-webkit-scrollbar-thumb {
    background-color: gray;
}

#email-senden input[type="submit"]:hover {
    background-color: #004494;
}

/* Fokuseffekt für Eingabefelder */
#email-senden input[type="text"]:focus,
#email-senden input[type="tel"]:focus,
#email-senden input[type="email"]:focus,
#email-senden textarea:focus {
    border-color: #0056b3;
    outline: none;
    /* Entfernt den Standardfokus-Rahmen */
}

#deinname,
#telefonnummer,
#email,
#nachricht {
    margin: 0 !important;
}

@media (max-width: 500px) {
    #email-senden {
        padding: 15px !important;
    }

    #nachricht {
        height: 200px;
    }
}

.modellmenue li {
    background-color: #f0f0f0;
    /* Hintergrundfarbe der Boxen */
    border: 1px solid #ccc;
    /* Rand der Boxen */
    padding: 5px 10px;
    /* Innenabstand */
    border-radius: 5px;
    /* Abgerundete Ecken */
    cursor: pointer;
    /* Verändert den Mauszeiger, um Klickbarkeit anzudeuten */
}

.modellmenue li:hover {
    background-color: #e0e0e0;
    /* Hintergrundfarbe beim Überfahren */
}

.modellmenue li a {
    text-decoration: none;
    /* Entfernt die Unterstreichung des Links */
    color: #333;
    /* Farbe des Textes */
}

.head-container h1.seo-heins-headline {
    margin-bottom: 30px;
    /* Erhöht den Abstand unter der Überschrift */
}

.seo-heins-headline {
    font-size: 42px !important;
    /* Ändert die Schriftgröße nach Ihren Bedürfnissen */
    text-align: center;
    /* Zentriert den Text */
    color: #333333 !important;
    /* Weicheres Schwarz für weniger harten Kontrast */
}

/* SEO V2.0 Fahrzeug Links*/
.autoforce1-taxonomy-links {
    list-style-type: none;
    /* Entfernt die Listenaufzählungszeichen */
    padding: 0;
    /* Entfernt den Standard-Abstand */
    display: flex;
    /* Stellt die Listenelemente in einer Reihe dar */
    flex-wrap: wrap;
    /* Ermöglicht das Umbruch der Listenelemente */
    gap: 10px;
    /* Definiert einen Abstand zwischen den Elementen */
    justify-content: center;
    /* Zentriert die Elemente horizontal */
}

.autoforce1-taxonomy-links .taxonomy-link-item {
    margin-right: 10px;
    /* Fügt einen Abstand zwischen den Listenelementen hinzu */
    background-color: #f0f0f0;
    /* Hintergrundfarbe der Boxen, ähnlich wie im Modellmenü */
    border: 1px solid #ccc;
    /* Rand der Boxen, ähnlich wie im Modellmenü */
    padding: 5px 10px;
    /* Innenabstand, ähnlich wie im Modellmenü */
    border-radius: 5px;
    /* Abgerundete Ecken, ähnlich wie im Modellmenü */
    cursor: pointer;
    /* Verändert den Mauszeiger, um Klickbarkeit anzudeuten */
}

.autoforce1-taxonomy-links .taxonomy-link-item a {
    text-decoration: none;
    /* Entfernt die Unterstreichung des Links */
    color: #333;
    /* Farbe des Textes, für bessere Lesbarkeit */
    display: block;
    /* Stellt sicher, dass der gesamte Bereich klickbar ist */
}

/* Formular Anfrage */
.vertical-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.vertical-list>div {
    flex-basis: 45% !important;
}

.vertical-list select {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Whatsapp und Telefonbutton */
#contact-options .btn-success,
#contact-options .btn-info {
    background-color: #e3232e !important;
    color: #FFFFFF !important;
    padding: 20px !important;
    font-size: 20px !important;
    border: none !important;
    cursor: pointer !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    margin-top: 20px !important;
    text-align: center !important;
    text-decoration: none !important;
    display: block !important;
    line-height: 0.5 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: none !important;
    font-family: Michroma, sans-serif !important;
    font-weight: bold !important;
}

#contact-options .btn-success:hover,
#contact-options .btn-info:hover {
    background-color: #000 !important;
    color: #FFFFFF !important;
}

#contact-options .btn-success i,
#contact-options .btn-info i {
    margin-right: 10px !important;
}

/* SEO Fahrzeug Links Ende*/
.auto-item {
    display: flex;
    flex-direction: row;
    /* Elemente nebeneinander anordnen */
    align-items: flex-start;
    /* Inhalte oben ausrichten */
    border: 1px solid #ccc;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.auto-image {
    flex-basis: 20%;
    /* Bildcontainer nimmt 20% der .auto-item Breite ein */
    flex-shrink: 0;
    /* Verhindert das Schrumpfen des Bildcontainers */
    padding-right: 20px;
    /* Abstand zwischen Bild und Inhalt */
}

.auto-image img {
    width: 100%;
    /* Bild füllt den .auto-image Container aus */
    height: auto;
    max-width: 150px;
    /* Maximale Bildbreite festlegen */
    border: 1px solid #ccc;
    /* Optional: einen Rahmen hinzufügen */
}

.auto-content {
    flex-grow: 1;
    /* Inhaltscontainer nimmt den restlichen Platz ein */
}

.auto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.auto-header h2 {
    margin: 0;
    /* Entfernt den Standard-Margin von h2 */
}

.auto-price {
    background-color: #007bff;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
}

.auto-details {
    display: flex;
    /* Verwendet Flexbox für das Layout der Kinderelemente */
    flex-wrap: wrap;
    /* Erlaubt Elementen, in die nächste Zeile zu fließen, wenn der Platz nicht ausreicht */
    gap: 10px;
    /* Definiert einen Abstand zwischen den Kinderelementen */
}

.auto-details .detail {
    flex: 1 1 calc(50% - 10px);
    /* Erlaubt den Boxen, zu wachsen und schrumpfen, setzt die Basis auf 50% der Elternbreite abzüglich des Gaps */
    display: flex;
    /* Erstellt ein flexibles Box-Layout für den Inhalt der .detail-Elemente */
    align-items: center;
    /* Zentriert die Elemente vertikal */
    min-height: 50px;
    /* Stellt sicher, dass jede Detail-Box mindestens 50px hoch ist */
    padding: 0 10px;
    /* Fügt innen einen Abstand hinzu */
    box-sizing: border-box;
    /* Stellt sicher, dass Padding und Border in die Breite/Höhe der Box eingerechnet werden */
}

.detail {
    background-color: white;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-width: 200px;
    /* Minimale Breite für Detail-Boxen festlegen */
    margin-bottom: 10px;
    /* Fügt einen Abstand nach jedem Detail hinzu */
}

.details-link:hover {
    background-color: #218838;
}

@media (max-width: 768px) {
    #filter-button {
        display: block;
        width: 100%;
        padding: 15px;
        font-size: 18px;
        text-align: center;
        color: #000;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        margin-bottom: 20px;
    }

    .autoforce1-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        /* Stellt sicher, dass der Wrapper die volle Breite einnimmt */
    }

    .auto-item {
        flex-direction: column;
    }

    .auto-image {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .auto-content {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 500px) {
    #filter-button {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

/*
.autoforce1-filter {
    flex: 0 0 31%; /* Beibehalten der Formulargröße, wie ursprünglich definiert */
margin-right: 20px;
}

*/ .filter-row {
    display: flex;
    justify-content: space-between;
    /* Sorgt für Abstand zwischen den Spalten */
    width: 100%;
    /* Nutzt die volle Breite des Elternelements */
}

.filter-col {
    flex: 1;
    /* Erlaubt den Spalten, den verfügbaren Platz auszufüllen */
    margin-right: 15px;
    /* Fügt einen rechten Margin zur ersten Spalte hinzu */
}

.filter-col:last-child {
    margin-right: 0;
    /* Entfernt den Margin der letzten Spalte, um Konsistenz zu wahren */
}

.autoforce1-filter form select {
    width: 100%;
    /* Dropdowns nehmen die volle Breite ihrer Container an */
    border: 1px solid #5e5e5e;
    color: #5e5e5e;
    padding: 8px;
    box-sizing: border-box;
    /* Inkludiert Padding und Border in die Breite */
}

.autoforce1-filter form button {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    /* Abstand nach oben für den Button */
    font-size: 15px;
    color: #FFFFFF;
    background-color: #B53935;
    border: none;
    cursor: pointer;
}

.autoforce1-filter {
    width: 25%;
    background-color: #F9F9F9;
    padding: 0px 10px;
    border-radius: 3px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}

.autoforce1-filter form label {
    color: #5e5e5e;
    display: block;
    width: 100%;
    /*     border-top: 1px solid #d5d5d5; */
    margin-top: 15px;
    padding-top: 5px;
    text-transform: capitalize;
}

.autoforce1-filter form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.autoforce1-filter form .filter-row {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
}

.autoforce1-filter form .filter-col {
    flex: 1;
    margin-right: 10px;
}

.autoforce1-filter form .filter-col:last-child {
    margin-right: 0;
}

.autoforce1-filter form div label {
    font-size: 13px;
}

.autoforce1-filter form div select {
    font-size: 14px;
    padding: 10px 7px;
    width: 100%;
}

.autoforce1-wrapper {
    display: flex;
}

.no-link,
.no-link * {
    text-decoration: none !important;
    /* Entfernt die Unterstreichung */
    color: inherit;
    /* Behält die Textfarbe bei */
    display: inherit;
    /* Behält das Display-Verhalten bei */
    width: inherit;
    /* Behält die Breite bei */
    height: inherit;
    /* Behält die Höhe bei */
}

/* Carousel Styles*/
@mixin aspect-ratio($width, $height) {
    position: relative;

    &:before {
        display: block;
        content: '';
        width: 100%;
        padding-top: (\$height / \$width) * 100%;
    }

    >img {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
    }
}

section {
    background: #F4F4F4;
    padding: 50px 0;
}

.container {
    max-width: 1044px;
    margin: 0 auto;
    padding: 0 20px;
}

.carousel {
    display: block;
    text-align: left;
    position: relative;
    margin-bottom: 22px;
}

.carousel__slides {
    position: relative;
    z-index: 1;
    padding: 0;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    display: flex;
}

.carousel__slide {
    position: relative;
    display: block;
    flex: 1 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: all 300ms ease-out;
    vertical-align: top;
    box-sizing: border-box;
    white-space: normal;

    figure {
        margin: 0;
    }

    figure div {
        width: 100%;
        /* Setzt die Breite des Containers auf 100% */
        overflow: hidden;
        /* Verhindert Überlaufen des Inhalts */
    }

    figure img {
        width: 100%;
        /* Breite des Bildes auf 100% */
        height: auto;
        /* Passt die Höhe automatisch an, um das Seitenverhältnis zu bewahren */
        display: block;
        /* Verhindert unerwünschte Abstände unterhalb des Bildes */
    }

    div {
        width: 100%;
    }

    img {
        display: block;
        flex: 1 1 auto;
        object-fit: cover;
    }

    figcaption {
        align-self: flex-end;
        padding: 20px 20px 0 20px;
        flex: 0 0 auto;
        width: 25%;
        min-width: 150px;
    }

    .credit {
        margin-top: 1rem;
        color: rgba(0, 0, 0, 0.5);
        display: block;
    }
}

.carousel__thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* für etwas Abstand zwischen den Thumbnails */
    margin-top: 10px;
    /* 10px Abstand nach oben zum Hauptbild */
}

.carousel>input {
    width: 0px;
    height: 0px;
    margin: 0px;
    padding: 0px;
    border: none;
    opacity: 0;
    position: absolute;
}

.page-header {
    display: none;
}

body section {
    padding: 0;
    background-color: transparent;
}

.autoforce1-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#auto-preis {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    /* oder eine andere Höhe, je nach Bedarf */
    width: 100%;
    /* Optional, abhängig vom gewünschten Layout */
    color: #FFFFFF !important;
    /* Setzt die Schriftfarbe auf Weiß */
}

.autoforce1-list {
    width: 70%;
    margin-left: auto;
}

.autoforce1-list .pagination {
    text-align: center;
}

.autoforce1-list .pagination span {
    border: 1px solid #ccc;
    width: 30px;
    height: 30px;
    display: inline-block;
    padding-top: 1px;
}

.autoforce1-list .pagination a {
    border: 1px solid #ccc;
    padding-top: 1px;
    width: 30px;
    height: 30px;
    display: inline-block;
    text-decoration: none;
}

.autoforce1-list .auto-header h2 {
    font-size: 20px;
    line-height: 25px;
}

.auto-item .auto-item-first {
    width: 30%;
}

.auto-item .auto-item-second {
    width: 65%;
    margin-left: auto;
}

.auto-item .auto-item-first .auto-image {
    padding-right: 0;
    margin-right: 0;
}

.auto-item .auto-item-first img {
    max-width: 100%;
}

.auto-item .auto-item-second .btns {
    display: flex;
    justify-content: space-between;
}

.elementor-element-71822427 {
    background-color: #000 !important;
}

.main_car {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.main_car .left_detail_car {
    width: 58%;
    background-color: #F9F9F9;
    padding: 0;
    border-radius: 3px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}

.main_car .left_detail_car .carousel__thumbnails {
    padding: 0;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

.main_car .left_detail_car .carousel__thumbnails li {
    list-style: none;
    display: inline;
    cursor: pointer;
    width: 50px;
    height: 50px;
    max-width: calc((100% / 10) - 20px);
}

.main_car .left_detail_car .carousel__thumbnails li label {
    cursor: pointer;
    width: 50px;
    height: 50px;
}

.main_car .left_detail_car .carousel__thumbnails li label img {
    width: 50px;
    height: 40px;
}

.main_car .left_detail_car #auto-ausstattung {
    padding: 0 20px 20px 20px;
}

.main_car .right_detail_car {
    width: 40%;
    position: relative;
    margin-left: auto;
    background-color: #F9F9F9;
    padding: 20px 15px;
    border-radius: 3px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}

.main_car .right_detail_car #auto-titel {
    font-size: 30px;
    margin-top: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.main_car .right_detail_car #back-button {
    position: absolute;
    top: 0;
    left: 0;
}

.main_car .right_detail_car #back-button a {
    color: #fff;
    background-color: #000;
    padding: 10px 20px;
    display: inline-block;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    border-bottom-right-radius: 10px;
    height: 44px;
    display: flex;
    /* Macht das Element zu einem Flex-Container */
    justify-content: center;
    /* Zentriert den Inhalt horizontal */
    align-items: center;
    /* Zentriert den Inhalt vertikal */
    width: 100%;
    /* Optional: Stellt sicher, dass das Element die volle Breite einnimmt */
}

.main_car .right_detail_car p {
    margin: 0;
    padding: 5px 0;
}

.main_car .right_detail_car strong {
    font-weight: bold;
}

.main_car .right_detail_car #auto-beschreibung {
    font-weight: bold;
}

.auto-details {
    margin-bottom: 12px;
}

.auto-details .detail {
    width: 49%;
    margin-bottom: 2px;
}

.auto-details .detail:nth-child(2n+0) {
    margin-left: auto;
}

.auto-item {
    padding: 10px;
}

.slider-image {
    object-fit: contain !important;
    width: 100%;
    height: 100%;
}

.carousel>input:nth-of-type(1):checked~.carousel__thumbnails li:nth-of-type(1) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(2):checked~.carousel__thumbnails li:nth-of-type(2) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(3):checked~.carousel__thumbnails li:nth-of-type(3) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(4):checked~.carousel__thumbnails li:nth-of-type(4) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(5):checked~.carousel__thumbnails li:nth-of-type(5) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(6):checked~.carousel__thumbnails li:nth-of-type(6) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(7):checked~.carousel__thumbnails li:nth-of-type(7) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(8):checked~.carousel__thumbnails li:nth-of-type(8) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(9):checked~.carousel__thumbnails li:nth-of-type(9) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(10):checked~.carousel__thumbnails li:nth-of-type(10) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(11):checked~.carousel__thumbnails li:nth-of-type(11) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(12):checked~.carousel__thumbnails li:nth-of-type(12) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(13):checked~.carousel__thumbnails li:nth-of-type(13) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(14):checked~.carousel__thumbnails li:nth-of-type(14) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(15):checked~.carousel__thumbnails li:nth-of-type(15) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(16):checked~.carousel__thumbnails li:nth-of-type(16) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(17):checked~.carousel__thumbnails li:nth-of-type(17) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(18):checked~.carousel__thumbnails li:nth-of-type(18) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(19):checked~.carousel__thumbnails li:nth-of-type(19) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(20):checked~.carousel__thumbnails li:nth-of-type(20) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(21):checked~.carousel__thumbnails li:nth-of-type(21) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(22):checked~.carousel__thumbnails li:nth-of-type(22) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(23):checked~.carousel__thumbnails li:nth-of-type(23) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(24):checked~.carousel__thumbnails li:nth-of-type(24) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(25):checked~.carousel__thumbnails li:nth-of-type(25) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(26):checked~.carousel__thumbnails li:nth-of-type(26) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(27):checked~.carousel__thumbnails li:nth-of-type(27) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(28):checked~.carousel__thumbnails li:nth-of-type(28) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(29):checked~.carousel__thumbnails li:nth-of-type(29) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

.carousel>input:nth-of-type(30):checked~.carousel__thumbnails li:nth-of-type(30) img {
    box-shadow: 0px 0px 0px 5px #FDC411 !important;
}

/* Mobile (bis 539px) */
@media screen and (max-width: 539px) {
    .slider-for {
        height: 300px;
    }
}

/* Kleine Tablets (540px - 767px) */
@media screen and (min-width: 540px) and (max-width: 767px) {
    .slider-for {
        height: 270px;  /* Angepasst für 540x720 Verhältnis */
    }
}

/* Tablet/iPad Mini (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .slider-for {
        height: 350px;
    }
}

/* Desktop (ab 1024px) */
@media screen and (min-width: 1024px) {
    .slider-for {
        height: 500px;
    }
}

.slider-for .slick-slide {
    min-height: 300px;
    max-height: 500px;
    height: auto;
    position: relative;
}

.slider-nav {
    margin-top: 10px;
    height: 100px;
}

.slider-nav .slick-slide {
    height: 100px;
    position: relative;
}

.slider-for .slick-slide img,
.slider-nav .slick-slide img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.slider-nav .slick-slide {
    border: 5px solid #fff;
}

.slider-nav .slick-slide {
    cursor: pointer;
}

.slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9;
    padding: 10px 3px 6px 3px;
}

.slick-next {
    right: 0;
}

.slick-arrow img {
    width: 30px;
}

.slick-previous {
    left: 0;
}

.left_detail_car .price_and_back {
    display: none;
}

.main_car .left_detail_car #auto-titel {
    display: none;
}

.custom_paging {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #000;
    color: #fff;
    padding: 4px 0;
    width: 52px;
    text-align: center;
    border-top-left-radius: 5px;
}

.custom_paging li {
    display: none;
}

.custom_paging li.slick-active {
    display: inline-block;
    font-weight: bold;
}

/* detail-template.css */
#anfrageFormular input[type="submit"] {
    font-family: "Roboto", sans-serif !important;
}

@media (min-width: 768px) {

    /* Anpassung für Desktops */
    .mobile-anfrage {
        display: none;
    }

    .mobile-basisdaten {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    .desktop-anfrage {
        display: none;
    }

    .desktop-basisdaten {
        display: none;
    }

    .mobile-anfrage {
        margin-top: 1rem;
        /* Beispiel: 1rem Abstand */
    }

    .mobile-basisdaten {
        margin-left: 1rem;
        /* Beispiel: 1rem Abstand */
        margin-top: 2rem;
    }

    .auto-item .auto-item-first {
        width: 100%;
    }

    .auto-item .auto-item-second {
        width: 100%;
    }

    .auto-details .detail {
        min-width: 49%;
    }
}

@media only screen and (max-width: 414px) {
    .auto-details .detail {
        min-width: 100%;
    }

    .auto-item .auto-item-second .btns {
        display: block;
    }

    .auto-item .auto-item-second span.auto-price {
        width: 100%;
        margin-bottom: 20px;
        display: block;
    }

    .auto-item .auto-item-second a.details-link {
        width: 100%;
    }

    .main_car .left_detail_car .carousel__thumbnails li {
        max-width: calc((100% / 5) - 20px);
    }

    .carousel__thumbnails {
        gap: 8px;
    }

    .main_car .right_detail_car #auto-titel {
        font-size: 21px;
        margin-top: 92px;
    }

    .main_car .right_detail_car #back-button {
        width: 100%;
    }

    .main_car .right_detail_car #back-button a {
        text-align: center;
        width: 100%;
        border-radius: 0;
    }

    .main_car .right_detail_car #auto-preis {
        margin-top: 44px;
        width: 100%;
        border-radius: 0;
    }

    .left_detail_car .price_and_back {
        display: block;
    }

    .main_car .left_detail_car #auto-preis {
        width: 100%;
    }

    .main_car .left_detail_car #back-button {
        width: 100%;
    }
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: auto;
    height: auto;
    max-width: 100%;
    /* add this to prevent the image from exceeding the viewport width */
    max-height: 100vh;
    /* add this to prevent the image from exceeding the viewport height */
    z-index: 90 !important;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.next,
.previous {
    position: absolute;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
}

.next {
    right: 20px;
}

.previous {
    left: 20px;
}

.lightbox .next,
.lightbox .previous {
    top: 49% !important;
    z-index: 100;
    background-color: #e3232e;
    height: 45px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
}

.lightbox .close {
    z-index: 100;
}

.lightbox .next {
    border-radius: 0 7px 7px 0;
    right: 10px
}

.lightbox .previous {
    border-radius: 7px 0 0 7px;
    left: 10px;
}

.lightbox .image-count {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    z-index: 1000 !important;
    color: #ffff;
    font-size: 14px;
    background-color: #000000;
    padding: 0 7px;
}







/* Responsive adjustments */
@media screen and (max-width: 768px) {

    .next,
    .previous {
        font-size: 24px;
    }
}

@media screen and (max-width: 480px) {

    .next,
    .previous {
        font-size: 20px;
        top: auto;
        bottom: 20px;
        transform: translateY(0);
    }

    .next {
        right: 30px;
    }

    .previous {
        left: 30px;
    }
}

#anfrageFormular input[type="submit"],
.btn-success,
.btn-info {
    display: block !important;
    width: 100% !important;
    padding: 10px 20px !important;
    font-size: 18px !important;
    line-height: 1.5 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    margin-bottom: 10px !important;
    font-weight: bold !important;
}


#anfrageFormular input[type="submit"] {
  background-color: #dc323f;
  color: white !important;
  font-weight:bold !important;
}

.btn-success,
.btn-info {
  background-color: #dc323f;
  color: white !important;
  font-weight:bold !important;
}

#anfrageFormular input[type="submit"]:hover,
.btn-success:hover,
.btn-info:hover {
  background-color: #dc323f;
  font-weight:bold !important;
}
