/* pagination */

.kg-pagination-container {
    padding-top: 15px;
    padding-bottom: 30px;
}

/* pagination
    Grid Css
 */

.page-link {
    cursor: pointer;
}


.kg-generated-link {
    color: #ddd;
    font-size: 10px;
}


.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: var(--main-bg-color);;
    padding: 15px;
    margin-top: 10px;
    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: #54575b;
}


@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);
    display: block;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
}

.panel-title:after {
    font-family: FontAwesome, sans-serif;
    content: "\f107";
    float: right;
    color: var(--main-button-color);
}

.panel-title[aria-expanded="true"]:after {
    content: "\f106";
}


/* =================================================
    NEUES CSS FÜR NEUEN FAHRZEUGBESTAND!!!!
==================================================== */
.kg-matrix-action {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.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-campaign-label,
.kg-matrix-action .kg-timer-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s;
}

/* Mobile: untereinander
@media (max-width: 640px) {
    .kg-matrix-action {
        grid-template-columns: 1fr;
    }
}
*/


.kg-size-text {
    justify-content: center;
}

.kg-matrix-action .kg-size-small .kg-single span {
    font-size: 12px;
}

.kg-campaign-label:hover {
    transform: translateY(-2px);
}

.kg-space-compensator {
    margin-top: auto;
}

.kg-card-body .kg-matrix-card-space-compensator {
    position: relative;
    width: 100%;
}

.kg-card-image, .kg-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.kg-card-image img, .kg-image-container img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

.swiper-container .kg-card-image img {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    height: auto;
    border-radius: 0;
}

.swiper-container .kg-card-image a.kg-hover-wrapper {
    object-fit: contain;
    height: auto;
}

#search_results .kg-card-image a {
    width: 100%;
    display: block;
}

#search_results .kg-card-image img {
    object-fit: contain;
    width: 100%;
    height: auto;
}

.kg-card-body {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.kg-price_new {
    font-size: 10px;
    text-wrap: nowrap;
    color: var(--main-color);
    padding: 2px 0px;
    border-radius: 4px;
    display: inline-block;
    font-weight: bold;
    margin-bottom: 5px;
}

.kg-new-price {
    font-size: 10px;
    text-wrap: nowrap;
    color: var(--main-color);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    font-weight: bold;
    margin-bottom: 5px;
}


.kg-price-old {
    color: var(--main-color);
    font-size: 16px;
    font-weight: 600;
}

.kg-uvp-outer {
    position: relative;
    color: var(--uvp-cross-line);
}

.kg-uvp-outer:before {
    position: absolute;
    content: "";
    left: 0;
    top: 50%;
    right: 0;
    border-top: 2px solid;
    border-color: inherit;
    -webkit-transform: rotate(-9deg);
    -moz-transform: rotate(-9deg);
    -ms-transform: rotate(-9deg);
    -o-transform: rotate(-9deg);
    transform: rotate(-9deg);
}


/* iPad / iPad Pro: etwas kleinere Schrift für die Labels und alten Preis */
@media (min-width: 768px) and (max-width: 1366px) {
    .kg-price_new, .kg-new-price {
        font-size: 9px;
    }
    .kg-price-old {
        color: var(--main-color);
        font-size: 16px;
        font-weight: 600;
    }
}

.kg-rate p {
    font-weight: 400;
    font-size: 10px;
    text-wrap: nowrap;
    padding: 0;
    margin-top: 0;
}

.kg-price_new .kg-price {
    margin-top: 0px;
}

.kg-price, .kg-rate {
    margin-top: 0;
    font-size: 20px;
    font-weight: bold;
    position: relative;
}

.kg-price > .float-right {
    font-size: 16px;
    margin-left: 10px;
}

.kg-consumption {
    font-size: 10px;
    line-height: 12px;
}

.kg-consumption table tr .text-left {
    width: 100%;
}

/* GRID */
.kg-matrix-grid {
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:30px;
}

@media (max-width: 991px) {
    .kg-matrix-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .kg-menu-pad {
        padding-right: 0;
        padding-left: 0;
    }
}

@media (max-width: 640px) {
    .kg-matrix-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}


/* SPEC GRID */
.kg-spec-grid {
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:12px 20px;
}

.kg-spec-grid div {
    text-wrap: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.kg-spec-grid i {
    width: 16px;
}

.kg-consumption, .kg-net {
    color:#5f6d78;
}

.kg-location {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* PREISE */
.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 {
    border-right:1px dotted #bbbbbb99;
}

.kg-leasing small {
    font-weight:400;
}


.kg-card-body {
    padding: 8px 12px !important;
    height: 100%;
}

/* Preisbewertung */
.kg-card-body .kg-matrix-card-space-compensator {
    min-height: 40px;
}

.kg-mobile-rating {
    position: absolute;
    right: 0;
    bottom: 17px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.kg-rating-text {
    font-size: 10px;
    font-weight: bold;
    color: #28a745;
    text-transform: uppercase;
    line-height: 1;
}

.kg-rating-bars {
    display: flex;
    gap: 3px;
}

.kg-rating-bar {
    width: 14px;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
}

.kg-rating-bar.active {
    background-color: #28a745;
}

#resultButton:hover {
    background-color: var(--secondary-color-light-blue) !important;
    border-color: var(--secondary-color-light-blue) !important;
    color: #fff !important;
}

