/**
    CSS File fuer neues Design vom Fahrzeugbestand 2026
 */

.swiper-button-next, .swiper-button-prev, .btn {
    border-radius: 12px;
}

.btn.btn-primary.kg-detail-request-vc {
    background: var( --secondary-color-light-blue);
}

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

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

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

#detailViewThumbSlider .swiper-slide img, #detailViewMainSlider .swiper-slide img {
    border-radius: 12px !important;
}

#detailViewMainSlider {
    margin-bottom: 12px;
}

#detailViewMainSlider img {
    width: 100%;
}

.detail-go-back {
    width: 40px;
    align-content: center;
    display: inline-block;
    transition: 0.4s;
}

.detail-go-back:hover {
    transform: scale(1.1);
}

.detail-go-back:active {
    transform: scale(0.9);
}

.kg-spec-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

.kg-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
    font-size: 14px;
    line-height: 16px;
}

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

.kg-location-detail {
    margin-top: 5px;
}

.kg-matrix-card {
    padding: 0;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.kg-card-link-wrapper {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.kg-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.kg-matrix-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px #0000000A !important;
}

/* Like-it / Notice Button */
.btn-notice {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    z-index: 10;
}

.btn-notice:hover {
    background: #fff;
    transform: scale(1.1);
}

.btn-notice i {
    font-size: 18px;
    color: #e74c3c;
}

.kg-spec-grid i {
    width: 16px;
    margin-right: 5px;
}

.kg-card-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.kg-card-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

.kg-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.2;
    color: var(--main-color);
}

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

.kg-matrix-card-space-compensator {
    position: relative;
    width: 100%;
    min-height: 40px;
}

.kg-campaign-label {
    width: fit-content;
    margin-bottom: 12px;
    margin-top: 4px;
    padding: 2px 6px !important;
}

.kg-campaign-label:nth-child(1) {
    margin-left: 40px;
}

.kg-matrix-action {
    display: flex;
    margin-left: -15px;
}

.kg-price_new {
    color: var(--main-color);
    display: block;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 5px;
}

.kg-price_new .kg-price {
    font-size: 14px;
    font-weight: bold;
    color: #888;
    display: block;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .kg-matrix-card {
        margin-top: 12px !important;
    }

    .kg-mobile-padding {
        padding: 0 !important;
    }

    .swiper-button-next, .swiper-button-prev {
        transform: scale(0.8);
    }

    .detail-go-back {
        display: none;
    }

    .kg-campaign-label:nth-child(1) {
        margin-left: 0;
    }

    #btn-show-pricealert {
        margin-bottom: 0px !important;
    }
}

.kg-detail-header {
    display: flex;
    align-items: flex-start;
}

.kg-detail-title {
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: clamp(20px, 5vw, 27px);
}

.swiper-slide {
    cursor: pointer;
}

.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:after {
    content: '';
    width: 40px;
    height: 100%;
    position: absolute;
    z-index: 1;
    right: 0;
    top: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

#kg-detail-similar-swiper:before {
    content: '';
    width: 40px;
    height: 100%;
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

.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-detail-vehicle-description {
    padding: 24px !important; background: #fff; border-radius: 12px; box-shadow: 0 2px 15px rgba(0,0,0,0.05); max-height: 1164px;
}

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

.kg-detail-vehicle-description > div {
    line-height: 1.7; color: #444; overflow-y: auto;
}

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

#vehicleInquiry {
    padding: 24px !important; background: #fff; border-radius: 12px; border-top: 4px solid var(--main-bg-color);
}

#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);
}

@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-detail-card-ausstattung {
    min-height: 1164px;
}

.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-consumption {
    font-size: 17px !important;
    line-height: 19px !important;
}

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

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

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

/* 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: normal;
    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;
}



