.kg-detail-search {
    margin-top: 15px;
}

.noUi-connect {
    background: var(--main-bg-color);
}

.kg-detail-search h3 {
    font-weight: bold;
    color: var(--main-h3-color);
    background-color: transparent;
    padding: 15px;
    margin-bottom: 10px;
}

.kg-detail-search .form-check-label {
    padding-left: 30px;
}

.slide-container {
    width: 100%; /* Width of the outside container */
    float: left;
    padding: 15px;
}

.print-border {
    border-left:    3px solid var(--main-color);
    border-radius:  10px;
    padding-left:   10px;
}


.noUi-handle {
    background: #3D3F4A;
}


@media (max-width: 575px) {
    .kg-form-divider {
        margin-top: 1rem;
    }

    .print-border {
        margin-top: 10px;
    }
}


/**
   collapse styles
 */

.kg-detail-search-header {
    background-color: var(--main-bg-color);
    padding: 10px 15px;
}

.card-header.kg-detail-search-header a {
    color: var(--main-button-color);
    font-size: 22px;
    line-height: 24px;
    font-weight: 600;
    cursor: pointer;
    display: block;
}
.card-header.kg-detail-search-header a:hover {
    color: var(--main-button-color);
}

.kg-card-header .panel-title {

    color: var(--main-button-color) !important;
    display: block;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
}

.panel-title:after {
    font-family: FontAwesome;
    content: "\f107";
    float: right;
    color: var(--main-button-color);
}

.panel-title[aria-expanded="true"]:after {
    content: "\f106";
}


/* Neu */
/* --- SEARCH 2026 --- */

.kg-bento-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.kg-slider-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.kg-slider-card {
    background: #f9fafc;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #eee;
    transition: 0.3s;
}

.kg-slider-card:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.kg-slider-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.kg-feature-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kg-feature-pill-checkbox {
    background: #f4f6f8;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    transition: 0.3s;
}

.kg-feature-pill-checkbox input {
    display: none;
}

.kg-feature-pill-checkbox {
    background: #f4f6f8;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
}

.kg-feature-pill-checkbox input {
    display: none;
}

.kg-feature-pill-checkbox:hover {
    border-color: var(--main-bg-color);
    background: #fff;
}

.kg-feature-pill-checkbox input:checked + span {
    font-weight: 600;
    color: var(--main-bg-color);
}

.kg-feature-pill-checkbox input:checked ~ span,
.kg-feature-pill-checkbox input:checked {
}

.kg-feature-pill-checkbox:has(input:checked) {
    border-color: var(--main-bg-color);
    background: #fff;
}

.kg-search-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}

@media (max-width: 768px){
    .kg-bento-grid-2 {
        grid-template-columns: 1fr;
    }

    .kg-search-actions {
        flex-direction: column !important;
        gap: 12px;
    }

    .kg-slider-bento-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .kg-mobile-select-margin {
        margin-top: -24px;
    }
}

.kg-matrix-card {
    padding: 15px 15px;
}

.kg-matrix-card select {
    margin-bottom: 12px;
}

#result_count {
    color: #fff;
}

.kg-search-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}



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

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

#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-location-detail {
    margin-top: 5px;
}

.kg-matrix-card {
    padding: 0;
    margin-bottom: 12px;
}

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

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

.kg-campaign-label {
    width: fit-content;
    margin-bottom: 12px;
}

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

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

.kg-campaign-label {
    margin-top: 4px;
    padding: 2px 6px !important;
}

.kg-rate p {
    margin-bottom: 0;
}

@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;
    }
}

.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;
}

.swiper-slide {
    cursor: pointer;
}

.kg-rate a {
    font-weight: 400;
    font-size: 15px;
}

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

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

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


.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;
}

#goToFinancingAfterRender, #request, #pricealert_form btn-success {
    background: var(--main-gw-bg-color) !important;
}

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

h3 {
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem) !important;
}

