/* =================================================
   Start  General & Layout
==================================================== */
:root {
    --main-color: #333;
    --secondary-color-light-blue: #0056b3;
    --main-bg-color: #0056b3; /* Beispielwert, sollte aus mobileColors.css kommen */
}

.vehicle-detail.container {
    max-width: 1200px;
    margin: 0 auto;
}

.kg-mobile-padding {
    padding-left: 15px;
    padding-right: 15px;
}

.kg-dotted {
    border: none;
    border-top: 1px dotted #ccc;
    margin: 15px 0;
}

.btn {
    border-radius: 12px;
}

.btn-primary {
    background: var(--secondary-color-light-blue);
    border: none;
}
/* =================================================
   End  General & Layout
==================================================== */

/* =================================================
   Start  Big Slider
==================================================== */
#detailViewMainSlider {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* Fix für Safari/Chrome Clipping bei Border-Radius */
}

#detailViewMainSlider img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px !important;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#detailViewThumbSlider .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
    transition: opacity 0.4s;
    cursor: pointer;
}

#detailViewThumbSlider .swiper-slide-thumb-active {
    opacity: 1;
}

#detailViewThumbSlider .swiper-slide-thumb-active img{
    border: 1px solid var(--main-color);
}

#detailViewThumbSlider .swiper-slide img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px !important;
    cursor: pointer;
    display: block; /* Verhindert kleine Abstände unter dem Bild */
}

.swiper-button-next, .swiper-button-prev {
    background-color: rgba(0, 0, 0, 0.4);
    background-image: none;
    width: 40px;
    height: 40px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--swiper-buttons-color, #ffffff);
    transition: all 0.3s ease;
    border-radius: 6px; /* Leicht abgerundet */
    z-index: 10;
}

.swiper-button-next:after, .swiper-button-prev:after {
    display: none;
}

.swiper-button-next i, .swiper-button-prev i {
    font-size: 24px;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: var(--main-color, rgba(0, 0, 0, 0.8));
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--main-color, rgba(0,0,0,0.4)) !important;
}
/* =================================================
   End  Big Slider
==================================================== */

/* =================================================
   Start  Header & Title
==================================================== */
.kg-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-top: 10px;
}

.detail-go-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.detail-go-back:hover {
    transform: translateX(-3px);
    background: #f8f9fa;
    color: var(--main-color);
    border-color: var(--main-color);
}

.kg-detail-title {
    font-size: 24px;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* =================================================
   End  Header & Title
==================================================== */

/* =================================================
   Start  Campaigns & Labels
==================================================== */
.kg-matrix-action {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kg-campaign-label {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kg-campaign-timer {
    background: var(--highlight-color, #e31e24);
    color: #fff;
    border: 1px solid var(--highlight-color, #e31e24);
}
/* =================================================
   End  Campaigns & Labels
==================================================== */

/* =================================================
   Start  Global Element Blocks / Cards
==================================================== */
.kg-matrix-card {
    background: #fff;
    border-radius: 28px;
    border: 1px solid #ddd;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: .3s ease;
    font-size: 16px;
    padding: 15px;
}

/* In Slidern brauchen wir kein Padding/Margin an der Karte selbst */
.swiper-slide .kg-matrix-card {
    padding: 0 !important;
    margin: 0 !important;
}
/* =================================================
   End  Global Element Blocks / Cards
==================================================== */

/* =================================================
   Start  Price Section
==================================================== */
.kg-price-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.kg-price-left, .kg-price-right {
    flex: 1;
}

.kg-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--main-color, #333);
    line-height: 1.2;
}

.kg-price-promo .kg-old-price {
    font-size: 16px;
    text-decoration: line-through;
    color: #999;
}

.kg-price-promo .kg-new-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--highlight-color, #e31e24);
    line-height: 1.2;
}

.kg-upe {
    margin-bottom: 15px;
}

.kg-price_new {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.kg-price_new .kg-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.kg-uvp-outer {
    position: relative;
    display: inline-block;
}

.kg-uvp-outer:before {
    content: "";
    position: absolute;
    left: 0;
    top: 45%;
    right: 0;
    border-top: 2px solid #c52514;
    transform: rotate(-9deg);
}

.kg-price-old {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #333 !important;
}

.kg-advantage {
    font-size: 16px;
    font-weight: 800;
}

.kg-vatable {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-weight: 500;
}

.kg-rate {
    text-align: right;
}

.kg-rate p {
    margin: 0;
    font-size: 12px;
    color: #666;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.kg-price-big {
    font-size: 24px;
    font-weight: 800;
    display: block;
    color: #333;
    line-height: 1.2;
}

.financing-offer-container {
    background-color: var(--main-bg-color);
    color: #fff;
    border: none;
}

.financing-offer-h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

.financing-offer-rate {
    font-size: 2rem;
    font-weight: 800;
}
/* =================================================
   End  Price Section
==================================================== */

/* =================================================
   Start  Specs Grid
==================================================== */
.kg-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    font-size: 16px;
    margin-bottom: 20px;
}

.kg-spec-grid > div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444;
    font-weight: 500;
}

.kg-spec-grid div {
    text-wrap: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.kg-spec-grid i {
    width: 20px;
    text-align: center;
    color: var(--main-color, #666);
    font-size: 16px;
}
/* =================================================
   End  Specs Grid
==================================================== */

/* =================================================
   Start  Features & Equipment
==================================================== */
.kg-features-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .kg-features-container {
        grid-template-columns: 1fr 1fr;
    }
}

.kg-features-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kg-features-container li {
    padding: 4px 0;
    font-size: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.kg-features-container li:before {
    content: "\f00c";
    font-family: FontAwesome;
    color: #2ecc71;
    font-size: 12px;
    margin-top: 2px;
}
/* =================================================
   End  Features & Equipment
==================================================== */

/* =================================================
   Start  Vehicle Description
==================================================== */
.kg-detail-vehicle-description {
    padding: 24px !important;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    line-height: 1.7;
    font-size: 16px;
    color: #444;
}

.kg-detail-vehicle-description h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kg-detail-vehicle-description h3 i {
    color: var(--main-color);
}

.kg-detail-vehicle-description > div {
    overflow-y: auto;
    padding-right: 10px;
}

#vehicleInquiry {
    border-top: 4px solid var(--main-color, #333);
}

#vehicleInquiry h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}
/* =================================================
   End  Vehicle Description
==================================================== */

/* =================================================
   Start  Location Detail
==================================================== */
.kg-location-detail {
    font-size: 14px;
    margin-top: 15px;
    line-height: 1.5;
    color: #555;
}

.kg-location-detail i {
    color: var(--main-color, #666);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}
/* =================================================
   End  Location Detail
==================================================== */

/* =================================================
   Start  Contact Persons
==================================================== */
.kg-ansprechpartner-img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.kg-ansprechpartner-position {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 11px;
    color: #999;
    margin-bottom: 2px;
}

.kg-ansprechpartner-name {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}
/* =================================================
   End  Contact Persons
==================================================== */

.kg-financial-rate {
    font-size: 20px;
    font-weight: 700;
}

.vw-calc-info-btn {
    color: #666;
    margin-left: 5px;
    font-size: 14px;
}

.vw-calc-info-btn:hover {
    color: var(--main-color);
}

#kg-detail-similar-swiper {
    padding: 20px 0;
}

#kg-detail-similar-swiper .swiper-slide {
    display: flex;
    justify-content: center;
}

#kg-detail-similar-swiper .kg-matrix-card {
    width: 100%;
}

.swiper-slide {
    background: transparent !important;
}

.kg-matrix-card div[style*="overflow-y: auto"]::-webkit-scrollbar {
    width: 6px;
}
.kg-matrix-card div[style*="overflow-y: auto"]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.kg-matrix-card div[style*="overflow-y: auto"]::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.kg-matrix-card div[style*="overflow-y: auto"]::-webkit-scrollbar-thumb:hover {
    background: var(--main-color, #888);
}

#data_protection, #privacy_policy {
    align-self: start;
}

.kd-conditions {
    font-size: 15px;
    line-height: 17px;
}

.kg-conditions-container {
    display: flex;
    gap: 12px;
    padding-left: 0;
}

.kg-desktop-left-padding {
    padding-right: 0;
    padding-left: 15px;
}
@media (max-width: 768px) {
    .kg-desktop-left-padding {
        padding-right: 0px;
        padding-left: 0px;
    }
}

#vehicleInquiry {
    padding: 24px !important; background: #fff; border-radius: 12px;
}

#vehicleInquiry h3 {
    font-size: 20px; font-weight: 700; margin-bottom: 0;
}

/* Detailseite */
div#vwCalculation, .vv-calculation-container label {
    font-size: 15px;
    line-height: 17px;
}


/* Ausstattung */
.kg-bento-features {
    display: block;
}

.kg-feature-cat-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #999;
    font-weight: 700;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.kg-feature-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kg-feature-pill {
    background: #f4f6f8;
    color: #333;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.kg-feature-pill i {
    color: var(--main-bg-color);
    margin-right: 8px;
    font-size: 0.8rem;
}

.kg-feature-pill:hover {
    background: #fff;
    border-color: var(--main-bg-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

.kg-detail-card-ausstattung {
    max-height: 1260px;
}

@media (max-width: 768px) {
    .kg-feature-pill {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .kg-detail-vehicle-description {
        max-height: 700px;
        overflow-x: hidden;
    }

    #kg-detail-similar-swiper:after,
    #kg-detail-similar-swiper:before {
        content: none;
    }

    .kg-ansprechpartner-img {
        width: 40px !important; height: 40px !important;
    }

    .kg-ansprechpartner-position {
        font-size: 7px;
    }

    #mobileSitenav {
        display: none !important;
    }

    .kg-seal img {
        max-width: 100px !important;
    }

    .kg-detail-card-ausstattung {
        min-height: 0;
    }
}

@media (max-width: 1200px) and (min-width: 768px) {
    .kg-detail-vehicle-description {
        max-height: 1235px;
    }

    #financingExample {
        padding-left: 0 !important;
    }
}

.kg-detail-card-new {
    padding: 24px !important; background: #fff; border-radius: 12px; box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.kg-detail-card-new h3 {
    font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--main-bg-color);
}

.financing-offer-container {
    padding: 24px !important; background: var(--main-bg-color); border-radius: 12px; color: #fff;
}

.financing-offer-h3 {
    font-size: 1.1rem; font-weight: 600; margin-bottom: 1.5rem; color: #fff;
}

.financing-offer-rate {
    font-size: 2rem; font-weight: 800; line-height: 1;
}

.kg-ansprechpartner-img {
    width: 80px; height: 80px; object-fit: cover;
}

.kg-seal img {
    max-width: 100%;
    margin-left: 0;
}

.kg-price-right .kg-rate a span{
    margin-top: 0;
    font-size: 20px !important;
    font-weight: bold !important;
    position: relative;
}

.kg-rate {
    font-size: 16px;
    font-weight: bold;
}

.kg-rate p {
    font-size: 12px;
    margin-bottom: 0;
    font-weight: normal;
    color: #666;
}

#goToFinancingAfterRender, #request, #pricealert_form btn-success {
    background: var(--secondary-color-light-blue);
}

.kg-price-area, .kg-price-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: auto;
}

.kg-price-area:has(.kg-price-right:empty), 
.kg-price-section:has(.kg-price-right:empty) {
    grid-template-columns: 1fr;
}

.kg-price-left, .kg-price-right {
    padding: 0 4px 4px 0;
}

.kg-price-left {
    border-right: 1px dotted #bbbbbb99;
}

.kg-price-area:has(.kg-price-right:empty) .kg-price-left,
.kg-price-section:has(.kg-price-right:empty) .kg-price-left {
    border-right: none;
}

/* Rate/Financing Button Styling */
/* .kg-matrix-card .btn-ads,
.kg-btn-rate {
    border: 1px solid #002864;
    background: transparent;
    color: #333;
    border-radius: 4px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    font-size: 13px;
    padding: 4px 10px;
    transition: all 0.2s;
    display: inline-block;
}

.kg-matrix-card .btn-ads:hover,
.kg-btn-rate:hover {
    background-color: #002864;
    border-color: #002864;
    color: #fff;
    text-decoration: none;
} */

/* Prices in List View */
.kg-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--main-color);
}

.kg-upe {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
    background: transparent !important;
    padding: 0;
    display: block;
    width: 100%;
}


.kg-price-old {
    font-size: 14px;
    font-weight: bold;
    color: #888;
}

.kg-price .float-right {
    margin-left: 10px;
}

.kg-price-promo .kg-old-price {
    font-size: 12px;
    color: #888;
    text-decoration: line-through;
}

.kg-price-promo .kg-new-price {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
}

.kg-vatable {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.kg-price-alert-header {
    margin-bottom: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
}

.kg-price-alert-header h3{
    display: inline-block;
    width: 90%;
}

.kg-price-alert-header i {
    margin-left: 10px;
    font-size: 20px;
    color: var(--main-color);
}

.table_wltp {
    width: 100% !important;
}

/* Detailansicht nachjustierung Swiper */
#detailViewThumbSlider .swiper-slide {
    max-height: 140px;
}



