﻿
.filter-select-active {
    border: 2px solid var(--main-color);
}

.custom-main-color {
    color: var(--main-color);
}

.detail_h2 {
    color: #fff;
    text-transform: none;
}

@media only screen and (min-width : 320px) and (max-width : 600px) {
    body {
        -webkit-text-size-adjust: none !important;
    }
    h2 {
        font-size: 20px;
    }
}

.kg-card-header {
    background-color: var(--main-bg-color);
    padding: 0px 15px;
}


#result_count:hover {
    color: #fff;
    background-color: #333;
}


.kg-filter-h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--main-color);
}

.kg-qck-search-button-col {
    margin: 1px 0px;
}

.btn-slider-overlay {
    margin-top: 10px;
}

@media (max-width:1200px) {
    .kg-mb-sq-ch {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .kg-qck-search-ch-col {
        padding: 1px;
    }
}

.custom-col {
    width: 20%;
    -ms-flex: 0 0 20%;
    flex: 0 0 20%;
    max-width: 20%;
}

@media  (max-width: 991px){
    .custom-col {
        width: 50%;
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575px){
    .custom-col {
        width: 100%;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

#quickSearchForm a
#result_count,
#quickSearchForm a
{
    display: inline-block;
    font-size:16px;
    width: 100%;
    margin: 0px;
    margin-right: 1px;
}

#quickSearchForm #result_count {
    font-size: 14px;
    line-height: 36px;
    font-weight: bold;
    color: var(--result-count-color);
    background-color: #d72041;
    text-align:center;
}

#quickSearchForm #result_count:hover {
    background: var(--main-bg-color);
    color: var(--result-count-color);
    border: 1px solid var(--main-bg-color);
}

.kg-btn-q-search {
    font-size: 14px;
    font-weight: bolder;
    text-align: center;
    border-radius: 12px;
    line-height: 36px;
    padding: 0 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.kg-btn-q-search:hover {
    color: #fff;
    background-color: var(--secondary-color-light-blue);
}

#resultCounter{
    margin-top: 1rem;
}

#result_count {
    font-size: 16px;
    margin: 0px;
    color: var(--result-count-color);;
    background-color: var(--result-count-bg-color);
    text-align: center;
    height: auto;
    line-height: 41px;
    text-transform: none;
    font-weight: bolder;
}


/*------------------------
    Start GW-Tool Swiper
-------------------------*/

.kg-swiper-container {

    border: 1px solid var(--swiper-border);
    border-radius: .25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: var(--swiper-bg-color);
}

.kg-vc-description {
    min-height: 130px;
    position: relative;
}

.kg-vc-description >p {
    text-align: left;
    padding: 6px;
    font-size: 14px;
    margin: 0px;
}

.kg-swiper-make {
    border-top: solid 5px var(--main-color);
}

.kg-swiper-new_price {
    color: var(--swiper-new-price);
    position: absolute;
    bottom: 0;
}

.kg-swiper-new_price strong{
    text-decoration: line-through;
}
.kg-swiper-price-amount {
    border-top: 1px solid var(--swiper-price-amount-border-top);
}

.kg-swiper-price-amount {
    text-align: left;
    padding: 6px;
    width: 100%;
}

.kg-swiper-price-amount .customer-price {
    color: var(--main-color);
    font-weight: bold;
}

.kg-swiper-price-amount .vat-rate {
    font-size: 12px;
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: rgba(67, 69, 72, 0.8);
}

.kg-swiper-image-container {
    position: relative;
}
.kg-swiper-image-container img{
    margin: auto;
}

.kg-swiper-image-container:hover .overlay {
    opacity: 1;
}

.overlay-text {
    color: #FFFFFF;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 12px;
    width: 100%;
    z-index: 1000;
    line-height: 18px;
}

.overlay-text .overlay-heading {
    font-weight: bolder;
    padding: 0px;
    max-width:100%;
    font-size: 14px;

}

.overlay-text hr {
    margin-top: 3px;
    margin-bottom: 1px;
    border-top: 1px solid #fff;
}

.overlay-text span {
    margin-bottom: 1px;
    display: block;
    border-bottom: 1px solid #fff;
}

.swiper-wrapper {
    position: relative;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    border-radius: 28px;
    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    height: auto;
}

/*------------------------
--- End GW-Tool Swiper
--------------------------*/

/*--
Filter collapse
 */

.kg-result-counter {
    display: block;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: bolder;
    text-transform: uppercase;
}

@media only screen and (max-width: 1023px) {
    .kg-result-counter {
        margin-bottom: 20px;
    }
}


@media only screen
and (min-device-width : 320px)
and (max-device-width : 736px) {
    .kg-result-counter {
        font-size: 16px;
        padding-left: 5px;
        padding-right: 5px;
    }
}


.kg-filter-container {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 15px;
    padding-bottom: 15px;
}
/*-----------------------------
    Start Page card CSS
*/

.kg-card-start {
    border: none;
    border-radius: 0px;
}

.kg-card-header {
    border-bottom: none;
}

.kg-card-body {
    padding: 0px;
}

.kg-card-body p {
    margin-top: 10px;
    margin-bottom: 10px;
}


/*----------------
Start Page Css
*/
@media only screen
and (min-width : 768px)
and (max-width : 1024px)  {
    /* HIER KOMMEN I-PAD STYLES REIN */
}

@media (max-width:767px) {
}


@media only screen
and (min-device-width: 481px)
and (max-device-width: 1024px)
and (-webkit-min-device-pixel-ratio: 1) {
    .kg-vc-description {
        min-height: 130px;
    }
}

@media only screen and (max-width: 1023px) {
    .kg-filter-container {
        padding-left: 0px;
        padding-right: 0px;
        padding-top: 0px;
    }
}

/* =================================================
   Startseiten Slider Neu
==================================================== */

#kg-swiper-start-page .swiper-slide .kg-consumption {
    min-height: 66px !important;
}

.kg-consumption td {
    font-size: 13px;
    line-height: 15px;
}

.kg-spec-grid {
    font-size: 16px;
}

.kg-consumption td {
    font-size: 14px;
    line-height: 16px;
}

.kg-hover-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
}

.kg-hover-specs {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    opacity: 0;
    transition: opacity .3s ease;
}

.kg-hover-left,
.kg-hover-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kg-hover-left div,
.kg-hover-right div {
    background: rgba(255,255,255,0.08);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    transform: translateX(0);
    transition: transform .4s ease, opacity .3s ease;
    margin-bottom: 10px;
}

/* Startposition */
.kg-hover-left div {
    transform: translateX(-40px);
    opacity: 0;
}

.kg-hover-right div {
    transform: translateX(40px);
    opacity: 0;
}

/* Hover Effekt */
.kg-hover-wrapper:hover .kg-hover-specs {
    opacity: 1;
}

.kg-hover-wrapper:hover .kg-hover-left div {
    transform: translateX(0);
    opacity: 1;
}

.kg-hover-wrapper:hover .kg-hover-right div {
    transform: translateX(0);
    opacity: 1;
}

/* Startseiten Slider */
.kg-spec-grid {
    font-size: 16px;
}

.kg-consumption td {
    font-size: 14px;
    line-height: 16px;
}

.kg-consumption {
    font-size: 10px;
    line-height: 12px;
    min-height: 66px !important;
}

.kg-price, .kg-rate {
    margin-top: 0;
    font-size: 20px;
    font-weight: bold;
}

/* =================================================
   End Startseiten Slider Neu
==================================================== */


/* =================================================
   CARD  Global
==================================================== */

/* CARD  Global */
.kg-matrix-card {
    background:#fff;
    border-radius:28px;
    border: 1px solid #ddd;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    transition:.3s ease;
    padding: 15px;
}

.kg-matrix-card:hover {
    transform:translateY(-6px);
    box-shadow:0 12px 25px rgba(0,0,0,0.15);
}

/* Deaktiviere Hover-Effekt für Spezial-Karten (z.B. Inzahlungnahme) */
.kg-matrix-card[style*="background-color: var(--main-bg-color)"]:hover {
    box-shadow: none !important;
}

/* Swiper Buttons Global */
.swiper-button-next,
.swiper-button-prev {
    background-color: rgba(0, 0, 0, 0.4);
    background-image: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 6px;
    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;
}

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

.kg-title {
    font-size: 16px;
    line-height: 25px;
    font-weight:700;
    margin:0 0 12px 0;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    display: block;
    overflow: hidden;
    margin-right: 15px;
}

.kg-dotted {
    border-top:1px dotted #bbbbbb99;
    margin: 12px 0 12px 0;
}

.kg-upe {
    margin-bottom: 4px;
}
.kg-swiper-start-page .kg-upe {
    font-size: 9px;
    margin-bottom: -2px;
}

.kg-vatable {
    margin-top: -8px;
    font-size: 10px;
    font-style: italic;
}

/* =================================================
   End CARD  Global
==================================================== */

.swiper-container .kg-card-image a.kg-hover-wrapper,
.kg-swiper-start-page .kg-card-image a.kg-hover-wrapper {
    object-fit: cover !important;
    height: 100% !important;
}
.swiper-container .kg-card-image img,
.kg-swiper-start-page .kg-card-image img {
    max-width: 100%;
    object-fit: cover !important;
    height: 100% !important;
}

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

.swiper-container .kg-card-body,
.kg-swiper-start-page .kg-card-body {
    padding: 15px !important;
    height: 100%;
    /* flex: 1; */
}

.swiper-container .kg-consumption,
.kg-swiper-start-page .kg-consumption,
.swiper-container .kg-location,
.kg-swiper-start-page .kg-location,
.swiper-container .kg-net,
.kg-swiper-start-page .kg-net {
    color: #5f6d78;
}

.swiper-container .kg-card-image,
.kg-swiper-start-page .kg-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
