/* ========================================
   Fahrzeug Detail Page - Responsive Improvements
   Original design preserved with mobile optimizations
   ======================================== */

/* CSS Variables for easier theme management */
:root {
    --primary-blue: #0052a0;
    --accent-orange: #ff7f27;
    --success-green: #21ba7b;
    --danger-red: #e53232;
    --warning-yellow: #ffd500;
    --light-gray: #f1f1f1;
    --border-gray: #d4d4d4;
}

.FZG-Head {
    position: relative;
}

.Zubehoer {
    position: relative;
    width: 21vw;
    height: 21.5vw;
    float: left;
}
.Zubehoer-headline {
    position: relative;
    height: 3vw;
    color: #000000;
    font-family: "rubik_lightbold";
    font-size: 1.5vw;
}
.activelink {
    background-color: #ff7f27 !important;
    color: white;
}
    .activelink:visited {
        color: white;
    }

    .activelink:hover {
        opacity: 0.5;
    }
.additionalcolors {
    padding: 0vw 1.5vw;
    font-family: "ubuntu_condensedregular";
    font-size: 1.125vw;
    text-align: left;
}
.alert-box {
    position: relative;
    width: 100%;
    height: 5vw;
    background-color: red;
    text-align: center;
    line-height: 5vw;
}

    .alert-box p {
        color: #ffffff;
        font-family: "rubik_medium";
        font-size: 1.125vw;
    }
.alink {
    color: #ffffff;
    text-decoration: none;
}

    .alink:hover {
        color: #ffffff;
        text-decoration: underline;
    }
.bolded-line {
    position: relative;
    width: 18vw;
    margin-left: 1.5vw;
    margin-top: 1.5vw;
    height: 5.875vw;
    color: #000000;
    font-family: "rubik_lightbold";
    font-size: 0.9vw;
}
.car-descriptiom {
    position: relative;
    margin-left: 1vw;
    margin-top: 0.5vw;
    font-family: "rubik_lightbold";
    float: left;
}
.car-details {
    position: relative;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0 1vw;
    height: 2.5vw;
    border-radius: 0.25vw;
    border: 0.0625vw solid #d4d4d4;
    font-family: "rubik_regular";
    font-size: 1.125vw;
    box-sizing: border-box;
}
.car-gallery {
    /* Style for "Bitmap" */
    position: relative;
}
.car-values {
    position: relative;
    margin-right: 1vw;
    margin-top: 0.5vw;
    font-family: "rubik_lightbold";
    float: right;
}
.cardetails {
    position: relative;
    height: 1.75vw;
    width: 100%;
    text-align: center;
    margin: 1vw;
    font-family: "rubik_lightbold";
    font-size: 1.5vw;
}

.color-circle {
    height: 2vw;
    width: 2vw;
    border-radius: 50%;
    display: inline-block;
}

.contact-block {
    position: relative;
    width: 100%;
    height: 8.75vw;
    background-color: #0052a0;
}

    .contact-block p {
        position: relative;
        left: 7.5625vw;
        top: 0.5vw;
        padding-top: 0;
        padding-left: 0;
    }

    .contact-block .phoneicon {
        position: absolute;
        height: 3.2vw;
        width: 3.2vw;
        top: 2vw;
        left: 1.8vw;
        background-color: #ff7f27;
        background-image: url('cssimages/phone.svg');
        background-position: 50% 50%;
        background-size: 15vw 15vw;
        border-radius: 50%;
        display: inline-block;
    }

    .contact-block .teltext {
        position: absolute;
        left: 5.5vw;
        top: 2vw;
        padding-left: 0;
        padding-top: 0;
        width: calc(100% - 6.5vw);
        font-size: 3.2vw;
        line-height: 1.2;
        box-sizing: border-box;
        color: #ffffff;
        font-family: "ubuntu_condensedregular";
        text-transform: uppercase;
        letter-spacing: -0.08vw;
    }
.contact-box {
    position: relative;
    width: 50vw;
    height: 100%;
    border-radius: 0.5vw;
    background-color: #ffffff;
    float: right;
    border: 0.0625vw solid rgba(0,0,0,0.2);
}
.contact-font {
    font-family: "nunito_sanssemibold";
    font-size: 0.8125vw;
}
.contact1 {
    margin-top: 2vw;
    width: 100%;
    height: 1.5vw;
    color: #000000;
    font-family: "rubik_regular";
    font-size: 1.125vw;
    text-align: center;
}

.contact2 {
    margin-top: 0.5vw;
    margin-bottom: 2vw;
    width: 100%;
    height: 3vw;
    color: #000000;
    font-family: "rubik_lightbold";
    font-size: 1.25vw;
    text-align: center;
}
.details-bg {
    background-color: #e1e1e1;
}
.details-crumb {
    position: relative;
    width: 100%;
    height: 3vw;
    padding-left: 1vw;
    font-family: "rubik_regular";
    font-size: 0.875vw;
    text-align: left;
    line-height: 3vw;
}
.features {
    position: relative;
    margin-top: 3vw;
    left: 12.5vw;
    width: 75vw;
    height: 100%;
}
.fin-box {
    position: relative;
    border-radius: 0.25vw;
    border: 0.0625vw solid #d4d4d4;
    width: 75vw;
    height: 18.75vw;
}
.fin-left, .fin-right {
    position: relative;
    width: 31.5vw;
    margin: 1.5vw;
    float: left;
}

.fin-left-row {
    position: relative;
    width: 31.5vw;
    height: 2.25vw;
}

.fin-left-text {
    position: relative;
    width: 13vw;
    height: 2.25vw;
    color: #000000;
    font-family: "rubik_regular";
    font-size: 1.125vw;
    float: left;
}

.fin-left-data {
    position: relative;
    width: 13vw;
    height: 2.25vw;
    color: #000000;
    font-family: "rubik_lightbold";
    font-size: 1.12vw;
    float: right;
    text-align: right;
}

.fin-right-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fin-right-text {
    position: relative;
    width: 19.5vw;
    height: 2vw;
    line-height: 2vw;
    color: #21ba7b;
    font-family: "rubik_medium";
    font-size: 1.5vw;
    text-align: left;
}

.fin-right-data {
    position: relative;
    width: 14vw;
    height: 3vw;
    line-height: 3vw;
    color: #21ba7b;
    font-family: "rubik_lightbold";
    font-size: 2.5vw;
    text-align: right;
}

.fin-right p {
    position: relative;
    top: 1vw;
    width: 100%;
    color: #000000;
    font-family: "rubik_regular";
    font-size: 0.875vw;
    line-height: 0.875vw;
    text-align: left;
}
.finanzierung {
    position: relative;
    margin-top: 3vw;
    bottom: 0vw;
    left: 12.5vw;
    width: 75vw;
    height: 100%;
    align-content: center;
}
.fzg-navbar-left {
    position: relative;
    margin-left: 0;
    width: 100%;
    height: auto;
    min-height: 40vw;
    padding: 0;
    border-radius: 0.5vw;
    background-color: white;
    box-sizing: border-box;
}
.head1 {
    position: relative;
    width: 100%;
    height: 50%;
    text-align: center;
    font-family: "rubik_lightbold";
    font-size: 2vw;
    vertical-align: middle;
    top: 20%
}
.headline {
    position: relative;
    width: 33vw;
    height: 3vw;
    color: #000000;
    font-family: "rubik_lightbold";
    font-size: 1.5vw;
}
.icon-arrow {
    background-image: url("./cssimages/arrow-3.png");
    background-size: cover;
    display: inline-block;
    height: 1.125vw;
    width: 1.125vw;
}
.icon-checkmark {
    background-image: url("./cssimages/checkmark2.png");
    background-size: cover;
    display: inline-block;
    height: 1vw;
    width: 1vw;
}
.iz-promo-amount {
    color: #e30613;
    font-family: "rubik_medium";
    font-size: 1.125vw;
}
.iz-promo-wrapper {
    position: relative;
    width: 100%;
    height: 5vw;
    background-color: red;
    text-align: center;
    line-height: 5vw;
    background-color: #ffd500;
}
.kontakt {
    position: relative;
    margin-top: 3vw;
    left: 12.5vw;
    width: 75vw;
    height: 100%;
    overflow: hidden;
}
.kontaktspan {
    position: absolute;
    bottom: 1vw;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: "rubik_medium";
    font-size: 1.5vw;
    color: #ffffff;
}
.languagebox {
    position: relative;
    top: 2vw;
    width: 100%;
    height: auto;
    overflow: auto;
}
.languages {
    position: relative;
    float: left;
    margin-left: 1.5vw;
    width: calc(50% - 1.5vw);
    height: auto;
    font-family: "rubik_medium";
    font-size: 0.65vw;
    line-height: 1.5vw;
}
.list-group-item {
    font-family: "rubik_medium";
    font-size: 0.77vw;
}
.list-group-item2 {
    font-family: "rubik_medium";
    font-size: 0.63vw;
}
.manufactorer {
    max-width: 30vw;
    max-height: 11vw;
    width: 80%;
    height: auto;
}
.middle-group {
    position: relative;
    width: 100%;
    padding: 0 0 0 0;
    /* height: 100%; */
}
.modell-hersteller {
    position: relative;
    width: 100%;
    height: 11vw;
}
.modher-img {
    position: relative;
    display: flex;
    width: 30%;
    height: 11vw;
    float: left;
    align-items: center;
    justify-content: center;
}

.modher, .modher2, .modher3 {
    position: relative;
    width: 70%;
    height: 11vw;
    float: left;
    /*padding-left: 0.7125vw;*/
    text-align: center;
}

    .modher h1 {
        position: relative;
        width: 100%;
        height: 70%;
        color: #000000;
        font-family: "rubik_lightbold";
        font-size: 2vw;
    }

    .modher2 h1 {
        position: relative;
        width: 100%;
        height: 70%;
        color: #000000;
        font-family: "rubik_lightbold";
        font-size: 2vw;
    }

    .modher3 h1 {
        position: relative;
        width: 100%;
        height: 70%;
        color: #000000;
        font-family: "rubik_lightbold";
        font-size: 2vw;
    }

    .modher a, .modher2 a, .modher3 a {
        color: #000000;
        text-decoration: none;
    }

.normal-features {
    border-radius: 0.25vw;
    border: 0.0625vw solid #d4d4d4;
    padding: 2vw;
    background-color: white;
}

.normal-feature {
    padding: 0.5vw 0vw 0.5vw 3vw;
}

    .normal-feature:hover {
        background-color: red;
        color: white;
    }
.normal-line {
    position: relative;
    width: 18vw;
    margin-left: 1.5vw;
    margin-top: 1.5vw;
    margin-bottom: -0.25vw;
    height: 1.1vw;
    color: #000000;
    font-family: "rubik_regular";
    font-size: 1.1vw;
}
.phoneicon {
    position: absolute;
    height: 3vw;
    width: 3vw;
    background-color: #ff7f27;
    background-image: url('cssimages/phone.svg');
    background-position: 50% 50%;
    background-size: 15vw 15vw;
    border-radius: 50%;
    display: inline-block;
    top: 3.75vw;
    left: -2.5vw
}
.price-bar-right {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 40vw;
    border-radius: 8px;
    padding: 0 0 0 0;
    background-color: white;
}
.quick-info {
    position: relative;
    margin-top: -1vw;
    height: 100%;
    width: 100%
}
.quicklinks {
    position: relative;
    width: 100%;
    height: 100%;
    padding-bottom: 1.5vw;
}

    .quicklinks a {
        position: relative;
        background-color: #f1f1f1;
        display: block;
        font-family: "ubuntu_condensedregular";
        font-size: 1.125vw;
        margin: 0.75vw 1.5vw 0 1.5vw;
        width: auto;
        height: 3vw;
        padding-left: 1vw;
        padding-top: 0.875vw;
        text-decoration: none;
        box-sizing: border-box;
    }

        .quicklinks a:visited {
            text-decoration: none;
        }

        .quicklinks a:hover {
            opacity: 0.5;
        }
.recommendation {
    margin-top: 5vw;
    margin-left: 4vw;
    width: 95%;
    height: 100%;
    overflow: hidden;
}
.righttop {
    position: relative;
    width: 100%;
    height: 10.25vw;
}

.rightleft {
    position: relative;
    width: 60%;
    float: left;
    padding-left: 1.5vw;
}

.rightdesc {
    position: relative;
    width: 100%;
    top: 1.5vw;
    color: #000000;
    font-family: "rubik_lightbold";
    font-size: 2vw;
}
.rightdesc2 {
	position: relative;
	width: 100%;
	top: 1.5vw;
	color: #000000;
	font-family: "rubik_lightbold";
	font-size: 1.8vw;
}
.rightmwst {
    position: relative;
    width: 100%;
    color: #e53232;
    top: 1vw;
    font-family: "rubik_medium";
    font-size: 1vw;
}

.rightprice {
    position: relative;
    width: 100%;
    top: 0.5vw;
    color: #e53232;
    font-family: "rubik_lightbold";
    font-size: 2.5vw;
}

.rightright {
    position: relative;
    width: 40%;
    top: 2.5vw;
    float: left;
}
.savingsbox {
    position: relative;
    margin-left: 1.5vw;
    margin-right: 1.5vw;
    width: calc(100% - 3vw);
    height: 3.5vw;
    border-radius: 0.5vw;
    background-color: #ff7f27;
    margin-bottom: 0.75vw;
}

    .savingsbox p {
        position: relative;
        float: left;
        top: 1vw;
        left: 0.6875vw;
        width: 8.375vw;
        height: 1.3125vw;
        color: #ffffff;
        font-family: "rubik_lightbold";
        font-size: 1.125vw;
        text-align: left;
    }

    .savingsbox span {
        position: relative;
        float: right;
        bottom: 1.5vw;
        right: 1vw;
        height: 1.3125vw;
        color: #ffffff;
        font-family: "rubik_lightbold";
        font-size: 1.5vw;
        text-align: right;
    }
.showbox {
    position: relative;
    margin-left: 1.5vw;
    margin-right: 1.5vw;
    width: calc(100% - 3vw);
    height: 3.5vw;
    margin-bottom: 0.75vw;
}

.showbox-interest {
    position: relative;
    float: left;
    width: 48%;
    height: 3.5vw;
    border-radius: 0.5vw;
    background-color: rgba(229,50,62,0.2);
}

.showbox-interest-p {
    position: relative;
    width: 100%;
    height: 1.0625vw;
    top: 1vw;
    color: #e53232;
    font-family: "rubik_lightbold";
    font-size: 0.875vw;
    text-align: center;
}

.showbox-countdown {
    position: relative;
    float: right;
    width: 48%;
    height: 3.5vw;
    border-radius: 0.5vw;
    background-color: rgba(229,50,62,0.2);
}
.sub1 {
    position: relative;
    width: 100%;
    height: 30%;
    color: #000000;
    text-align: center;
}
.subby {
    position: relative;
    width: 100%;
    height: 50%;
    color: #858585;
    font-family: "rubik_medium";
    font-size: 1.125vw;
    text-align: center;
    top: 20%;
}
.teltext {
    position: absolute;
    color: #ffffff;
    font-family: "ubuntu_condensedregular";
    font-size: 4vw;
    text-decoration: none;
    text-transform: uppercase;
    padding-left: 1.785vw;
    padding-top: 2.5vw;
    font-style: normal;
    letter-spacing: -0.125vw;
    line-height: normal;
}

    .teltext a {
        color: #ffffff;
        text-decoration: none;
    }

    .teltext:hover {
        color: #ffffff;
        text-decoration: underline;
    }
.top-feature {
    background-color: white;
    border-radius: 4px;
    border: 1px solid #d4d4d4;
    margin: 20px 20px;
    padding: 20px 10px;
    /* font-family: "rubik_lightbold"; */
    font-family: "ubuntu_condensedregular";
    font-size: 1.125vw;
    text-align: center;
}
    .top-feature:hover {
        background-color: #3c3c3c;
        color: white;
    }
.umwelt {
    overflow: hidden;
}
.umwelt-cat {
    position: relative;
    margin-top: 3vw;
    left: 12.5vw;
    width: 75vw;
    height: 100%;
}
.umwelt-text, .umwelt-data {
    position: relative;
    height: 1.125vw;
    color: #000000;
    font-family: "rubik_regular";
    font-size: 1vw;
}
.utility {
    position: relative;
    width: 21vw;
    height: 25vw;
    border-radius: 0.25vw;
    border: 0.0625vw solid rgba(0,0,0,0.2);
    text-align: justify;
    float: left;
}
.color-anfrage {
    background-color: #0052a0;
}

    .color-anfrage a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 3.5vw;
        text-decoration: none;
        padding: 0 1.5vw;
        box-sizing: border-box;
    }

    .color-anfrage p {
        position: static !important;
        float: none !important;
        top: 0 !important;
        left: 0 !important;
        width: auto !important;
        height: auto !important;
        color: #ffffff;
        font-family: "ubuntu_condensedregular";
        font-size: 1.125vw;
        margin: 0;
        padding: 0;
    }

    .color-anfrage i {
        position: static !important;
        float: none !important;
        top: 0 !important;
        right: 0 !important;
        color: #ffffff;
        font-family: "rubik_lightbold";
        font-size: 1.5vw;
        margin: 0;
        padding: 0;
    }
.color-monthly {
    background-color: #21ba7b;
}
.color-monthly-leasing {
    background-color: #FFEA29;
}
    .color-monthly p {
        position: relative;
        float: left;
        top: 1vw;
        left: 0.6875vw;
        width: 12.375vw;
        height: 1.3125vw;
        color: #ffffff;
        font-family: "rubik_medium";
        font-size: 0.875vw;
        text-align: left;
    }
.color-monthly-leasing p {
    position: relative;
    float: left;
    top: 1vw;
    left: 0.6875vw;
    width: 12.375vw;
    height: 1.3125vw;
    color: #0052a0;
    font-family: "rubik_medium";
    font-size: 0.875vw;
    text-align: left;
}
.color-monthly-leasing span {
    position: relative;
    float: right;
    bottom: 1.5vw;
    right: 1vw;
    height: 1.3125vw;
    color: #0052a0;
    font-family: "rubik_lightbold";
    font-size: 1.5vw;
    text-align: right;
}
.mym3 {
    margin: 1vw 3vw 1vw 3vw;
}
.colorme-orange {
    color: #ff7f27;
}
#HA-vault {
    display: none;
}
.sizemeup {
    margin-top: 0.5vw;
    font-size: 1.2vw;
}
.privacy {
    padding-left: 1.5vw;
}
.contact-send {
    width: 19.5vw;
    height: 4.5vw;
    border-radius: 0.5vw;
    border-color: #FFF;
    background-color: var(--primary-blue);
    color: #ffffff;
    font-size: 1.5vw;
    text-align: left;
    padding-left: 2vw;
}

/* ========================================
   RESPONSIVE DESIGN - Mobile Optimizations
   ======================================== */

/* Tablet Landscape (1024px and below) */
@media screen and (max-width: 1024px) {
    .fzg-navbar-left,
    .middle-group,
    .price-bar-right {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .FZG-Head {
        display: flex;
        flex-direction: column;
    }

    .features,
    .finanzierung,
    .kontakt,
    .umwelt-cat {
        left: 2vw;
        width: 96vw;
    }
}

/* Tablet Portrait (768px and below) */
@media screen and (max-width: 768px) {
    /* Typography scaling */
    .modher h1, .modher2 h1, .modher3 h1 {
        font-size: clamp(1.2rem, 3vw, 2rem);
    }

    .teltext {
        font-size: clamp(1.5rem, 5vw, 3rem);
        padding-left: 4rem;
    }

    .cardetails {
        font-size: clamp(1rem, 2vw, 1.5rem);
    }

    /* Layout adjustments */
    

    .contact-block {
        height: auto;
        padding: 1rem 1rem 0.75rem 1rem;
        text-align: center;
        position: relative;
    }

    .contact-block .phoneicon {
        position: relative;
        height: 50px;
        width: 50px;
        top: 0;
        left: 0;
        transform: none;
        background-size: 250px 250px;
        display: inline-block;
        vertical-align: middle;
        margin-right: 0.75rem;
    }

    .contact-block .teltext,
    .contact-block a .teltext {
        position: relative;
        font-size: 1.75rem;
        left: 0;
        top: 0;
        transform: none;
        width: auto;
        line-height: 1.2;
        letter-spacing: -0.5px;
        display: inline-block;
        vertical-align: middle;
        padding-left: 0;
        margin: 0;
    }

    .contact-block > a {
        display: inline-block;
        vertical-align: middle;
    }

    .kontaktspan {
        position: static !important;
        display: block !important;
        width: 100%;
        font-size: 1.1rem;
        text-align: center;
        margin-top: 0.5rem;
        bottom: auto !important;
    }

    .kontaktspan a {
        color: #ffffff;
        text-decoration: none;
    }

    .phoneicon {
        position: static;
        display: inline-block;
        margin-right: 1rem;
    }

    .quicklinks a {
        width: calc(100% - 3vw);
        font-size: clamp(0.9rem, 2vw, 1.125rem);
    }

    /* Savings boxes */
    .savingsbox {
        height: auto;
        min-height: 3.5vw;
        padding: 1rem;
    }

    .savingsbox p,
    .savingsbox span {
        position: static;
        display: inline-block;
        width: auto;
    }

    /* Price bar adjustments */
    .rightdesc, .rightprice {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

    /* Zubehör section */


    .utility {
        width: 100%;
        height: auto;
    }

    .contact-box {
        width: 100%;
        float: left;
    }
}

/* Mobile (576px and below) */
@media screen and (max-width: 576px) {
    /* Force readable font sizes */
    body {
        font-size: 14px;
    }

    .modher h1, .modher2 h1, .modher3 h1 {
        font-size: 1.25rem;
    }

    .teltext {
        font-size: 1.5rem;
    }

    /* Stack manufacturer logo and model */
    .modell-hersteller {
        height: auto;
    }

    .modher-img {
        width: 100%;
        float: none;
        display: block;
        text-align: center;
        margin-bottom: 1rem;
    }

    .modher, .modher2, .modher3 {
        width: 100%;
        float: none;
        height: auto;
    }

    /* Navigation */
    .quicklinks a {
        padding: 0.75rem 1rem;
        height: auto;
        font-size: 1rem;
    }

    /* Car details list */

    .car-values {
        text-align: left;
        margin-top: 0.25rem;
    }

    /* Contact block for small mobile */
    .contact-block {
        height: auto !important;
        min-height: auto !important;
        padding: 0.75rem !important;
        text-align: center;
        position: relative;
        display: block !important;
    }

    .contact-block .phoneicon {
        position: relative !important;
        height: 45px !important;
        width: 45px !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        background-size: 225px 225px !important;
        display: inline-block !important;
        vertical-align: middle;
        margin-right: 0.5rem;
    }

    .contact-block .teltext,
    .contact-block a .teltext {
        position: relative !important;
        font-size: 1.5rem !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        width: auto !important;
        line-height: 1.2;
        letter-spacing: -0.5px;
        display: inline !important;
        vertical-align: middle;
        padding: 0 !important;
        margin: 0 !important;
    }

    .contact-block > a {
        display: inline-block !important;
        vertical-align: middle;
    }

    /* Force kontaktspan to new line */
    .contact-block::after {
        content: "";
        display: block;
        width: 100%;
        height: 0;
    }

    .kontaktspan {
        position: static !important;
        display: block !important;
        width: 100% !important;
        font-size: 1rem !important;
        text-align: center !important;
        margin-top: 0.75rem !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        bottom: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        clear: both !important;
        float: none !important;
    }

    .kontaktspan a {
        color: #ffffff !important;
        text-decoration: none;
        font-size: 1rem !important;
    }

    /* Responsive features */
    .top-feature {
        font-size: 0.95rem;
        margin: 10px 5px;
        padding: 15px 8px;
    }

    

    .fin-left-row {
        width: 100%;
        height: auto;
    }

    


    /* Showbox */
    .showbox-interest,
    .showbox-countdown {
        width: calc(50% - 0.5rem);
        font-size: 0.75rem;
    }

    /* Language box */
    .languages {
        width: 45%;
        font-size: 0.7rem;
        margin: 0.25rem;
    }

    /* Contact form */
    .contact-send {
        width: 100%;
        height: auto;
        padding: 1rem;
        font-size: 1.125rem;
    }

    /* Features and sections */
    .features,
    .finanzierung,
    .kontakt,
    .umwelt-cat {
        left: 1vw;
        width: 98vw;
    }

    .headline {
        width: 100%;
        font-size: 1.25rem;
    }.middle-group {
		margin-top: 5vw;
		width: 100%;
		order: 3;
	}
}

/* Extra small devices */
@media screen and (max-width: 375px) {
    .modher h1, .modher2 h1, .modher3 h1 {
        font-size: 1.1rem;
    }

    .quicklinks a {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }

    .top-feature {
        font-size: 0.85rem;
        padding: 12px 6px;
    }

    .showbox-interest,
    .showbox-countdown {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Mobile (640px and below) - Fahrzeug Page Specific */
@media screen and (max-width: 640px) {
    /* Fahrzeug Page Layout */
    .FZG-Head {
        position: relative;
        width: 95vw;
        height: 100%;
        padding: 5vw 0vw 5vw 2.5vw;
    }

    .fzg-navbar-left {
        width: 100%;
        height: auto;
        min-height: 95vw;
        margin-left: 0;
        margin-top: 5vw;
        order: 1;
    }

    .modell-hersteller {
        width: 100%;
        height: auto;
    }

    .modher-img {
        height: 100%;
    }

    .modher, .modher2, .modher3 {
        height: 100%;
        padding-left: 1.71vw;
    }

    .modher h1 {
        top: 9.6vw;
        width: 100%;
        height: 5.7vw;
        font-size: 4.8vw;
        text-align: center;
    }

    .modher h1 a, .modher2 h1 a, .modher3 h1 a {
        color: #000000;
        text-decoration: none;
    }

    .modher .subby {
        top: 6.5vw;
        width: 40vw;
        height: 3.15vw;
        font-size: 2.7vw;
    }

    .modher2 .subby {
        top: 6.5vw;
        width: 100%;
        height: 3.15vw;
        font-size: 2.7vw;
        text-align: center;
    }

    .modher2 h1 {
        top: 9.6vw;
        width: 40vw;
        height: 5.7vw;
        font-size: 4.8vw;
    }

    .modher3 h1 {
        top: 9.6vw;
        width: 40vw;
        height: 5.7vw;
        font-size: 4.8vw;
    }

    /* Contact Block - Mobile Fix */
    .contact-block {
        height: 21vw;
    }

    .contact-block .phoneicon {
        top: 3.6vw;
        left: 20vw;
        height: 7.2vw;
        width: 7.2vw;
        background-size: 36vw 36vw;
    }

    .kontaktspan {
        top: 13.2vw;
        font-size: 4.2vw;
    }

    .contact-block .teltext {
        left: 31vw;
        top: 1.2vw;
        font-size: 9.6vw;
        letter-spacing: -0.3vw;
    }

    /* Quick Links */
    .quicklinks a {
        font-size: 2.7vw;
        margin-left: 3.6vw;
        margin-top: 1.8vw;
        width: 90%;
        height: 7.2vw;
        padding-left: 5%;
        padding-top: 2.1vw;
    }

    /* Middle Group */
    .middle-group {
        margin-top: 5vw;
        width: 100%;
        order: 3;
    }

    /* Hide elements on mobile */
    .gallery-elements, .more-gallery, .back-to-search, .alert-box, .details-crumb {
        display: none;
    }

    /* Car Details */
    .cardetails {
        position: relative;
        height: 4.5vw;
        width: 100%;
        text-align: center;
        margin: 1vw;
        font-size: 4vw;
    }

    .car-details {
        position: relative;
        width: 100%;
        margin-left: 1vw;
        height: 6vw;
        font-size: 3vw;
    }

    /* Price Bar Right */
    .price-bar-right {
        margin-top: 5vw;
        width: 100%;
        height: auto;
        order: 2;
        padding-left: 2.1vw;
        padding-bottom: 1.5vw;
    }

    .righttop {
        height: 24.6vw;
    }

    .rightleft {
        height: 100%;
    }

    .rightdesc {
        margin-top: 3.6vw;
        height: 4.8vw;
        font-size: 4.8vw;
        top: 0;
    }

    .rightmwst {
        margin-top: 2.4vw;
        height: 2.4vw;
        font-size: 2.4vw;
        top: 0;
    }

    .rightprice {
        margin-top: 1.1vw;
        height: 5.5vw;
        font-size: 5.5vw;
        top: 0;
    }

    .rightright {
        top: 6vw;
        height: 100%;
    }

    .list-group-item {
        font-size: 2.1vw;
    }

    /* Savings and Show Boxes */
    .savingsbox, .showbox {
        margin-left: 1.5vw;
        margin-right: 1.5vw;
        width: calc(100% - 7.2vw);
        height: 8.4vw;
        margin-bottom: 1.8vw;
        align-items: center;
        justify-content: flex-end;
        display: flex;
    }

    .savingsbox p {
        top: 3vw;
        left: 1.65vw;
        width: 40vw;
        height: 3.15vw;
        font-size: 2.7vw;
        margin-right: auto;
    }

    .savingsbox span {
        bottom: 0;
        right: 2.4vw;
        height: 3.15vw;
        font-size: 3.6vw;
        text-align: right;
    }

    /* Center the color-anfrage box content in mobile */
    .savingsbox.color-anfrage {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .color-anfrage a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2vw;
        width: auto;
        height: auto;
        text-decoration: none;
        overflow: visible;
    }

    .color-anfrage p {
        position: static;
        float: none;
        width: auto;
        height: auto;
        top: auto;
        left: auto;
        margin: 0;
        padding: 0;
        text-align: center;
        font-size: 3.5vw;
    }

    .color-anfrage i {
        position: static;
        float: none;
        height: auto;
        top: auto;
        right: auto;
        margin: 0;
        padding: 0;
        font-size: 4vw;
    }

    .showbox-interest, .showbox-countdown {
        width: 50%;
        margin-left: 2.5vw;
        margin-right: 2.5vw;
        height: 100%;
    }

    .showbox-interest-p {
        top: 2.4vw;
        height: 2.55vw;
        font-size: 2.1vw;
    }

    /* Language Box */
    .languagebox {
        top: 0;
        position: relative;
        width: 100%;
        height: auto;
        overflow: auto;
        padding-bottom: 1vw;
    }

    .languages {
        margin-left: 3.6vw;
        width: 30vw;
        height: 6vw;
        line-height: 6vw;
        font-size: 2vw;
    }

    /* Features Section */
    .features {
        margin-top: 3vw;
        left: 0;
        margin-left: 4vw;
        margin-right: 4vw;
        width: calc(100% - 8vw);
        height: 100%;
    }

    .top-feature {
        border-radius: 4px;
        border: 1px solid #d4d4d4;
        margin: 0;
        font-size: 5vw;
    }

    .headline, .Zubehoer-headline {
        width: 100vw;
        height: 8vw;
        font-size: 4vw;
    }

    /* Financing Section */
    .fin-box {
        height: 60vw;
    }

    .fin-left, .fin-right {
        width: 70vw;
        margin-left: 2.5vw;
    }

    .fin-left-row {
        width: 70vw;
    }

    .fin-left-data, .fin-left-text, .fin-right-text, .fin-right-data {
        font-size: 2.9vw;
        line-height: 3vw;
        height: 4vw;
        width: 30vw;
    }

    .fin-right p {
        font-size: 1.8vw;
        line-height: 2vw;
        height: 15vw;
    }

    /* Zubehör Section */
    .Zubehoer {
        width: 100vw;
        height: 100%;
    }

    .utility {
        width: 75vw;
        height: 100%;
        padding-bottom: 2vw;
        margin-bottom: 2vw;
    }

    .normal-line, .bolded-line {
        width: 70vw;
        height: 4vw;
        line-height: 3.5vw;
        font-size: 3.5vw;
    }

    .bolded-line {
        height: 12vw;
    }

    /* Contact Section */
    .contact-box {
        width: 75vw;
    }

    .contact1 {
        height: 12vw;
        font-size: 3.5vw;
    }

    .contact2 {
        height: 16vw;
        font-size: 3.5vw;
    }

    .contact-font {
        font-size: 4vw;
    }

    .sizemeup {
        font-size: 3.5vw;
    }

    .contact-send {
        width: 39vw;
        height: 9vw;
        border-radius: 0.5vw;
        border-color: #FFF;
        background-color: #0052a0;
        color: #ffffff;
        font-size: 3.5vw;
        text-align: left;
        padding-left: 2vw;
    }

    .icon-arrow {
        height: 3.5vw;
        width: 3.5vw;
    }

    /* Umwelt Section */
    .umwelt-left, .umwelt-middle {
        width: 54vw;
        height: 100%;
    }

    .umwelt-middle {
        width: 20vw;
        height: 100%;
    }

    .umwelt-right {
        width: 100%;
        height: 100%;
    }

    .umwelt-right img {
        display: block;
        width: 75vw;
        margin-left: auto;
    }

    .umwelt-text, .umwelt-data {
        height: 5vw;
        font-size: 3vw;
    }

    /* Center all sections with equal margins */
    .finanzierung,
    .kontakt,
    .umwelt-cat {
        left: 0;
        margin-left: 4vw;
        margin-right: 4vw;
        width: calc(100% - 8vw);
    }

    /* Center recommendation carousel */
    .recommendation {
        margin: 5vw auto 0 auto;
        width: 92vw;
    }

    /* Center the car card within carousel */
    .recommendation .car-card {
        margin: 0 auto;
        float: none;
    }
        .headline, .Zubehoer-headline {
        width: 100vw;
        height: 8vw;
        font-size: 4vw;
    }
}