/* =========================================================
   KB MEDIA – COMPONENTS
========================================================= */

/* =========================================================
   MASONRY GALLERY
========================================================= */
.kb-masonry-gallery{
    --kb-bg: rgba(25,24,33,0.6);
    --kb-border: rgba(255,255,255,0.08);
    --kb-border-hover: rgba(255,255,255,0.14);
    --kb-radius: 22px;
}

.kb-masonry-gallery .elementor-gallery__titles-container{
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.kb-masonry-gallery .elementor-gallery-title{
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(25,24,33,0.6);
    border: 1px solid var(--kb-border);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kb-masonry-gallery .elementor-gallery-title:hover{
    transform: translateY(-2px);
    border-color: var(--kb-border-hover);
}

.kb-masonry-gallery .elementor-gallery-title.elementor-item-active{
    background: rgba(var(--kb-accent-rgb),0.15);
    border-color: rgba(var(--kb-accent-rgb),0.35);
    box-shadow: 0 0 20px rgba(var(--kb-accent-rgb),0.15);
}

.kb-masonry-gallery .elementor-gallery__container{
    position: relative;
}

.kb-masonry-gallery .e-gallery-item{
    z-index: 1 !important;
    overflow: hidden;
    border-radius: var(--kb-radius);
    border: 1px solid var(--kb-border);
    background: var(--kb-bg);
    transition: all 0.4s ease;
    animation: kbFade 0.5s ease both;
}

.kb-masonry-gallery .e-gallery-image{
    transition: transform 0.6s ease, filter 0.4s ease;
}

.kb-masonry-gallery .elementor-gallery-item__overlay{
    background: rgba(0,0,0,0.08) !important;
    transition: background 0.3s ease;
}

.kb-masonry-gallery .e-gallery-item:hover{
    transform: translateY(-6px);
    border-color: var(--kb-border-hover);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.25),
        0 0 20px rgba(var(--kb-accent-rgb),0.08);
}

.kb-masonry-gallery .e-gallery-item:hover .e-gallery-image{
    transform: scale(1.04);
    filter: brightness(1.05);
}

.kb-masonry-gallery .e-gallery-item:hover .elementor-gallery-item__overlay{
    background: rgba(0,0,0,0.18) !important;
}

.kb-masonry-gallery .e-gallery-item.e-gallery-item--hidden{
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.kb-masonry-gallery .e-gallery-item.e-gallery-item--hidden .e-gallery-image,
.kb-masonry-gallery .e-gallery-item.e-gallery-item--hidden .elementor-gallery-item__overlay{
    opacity: 0 !important;
    visibility: hidden !important;
}

.kb-masonry-gallery .e-gallery-item:not(.e-gallery-item--hidden){
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 2 !important;
}

@keyframes kbFade{
    from{
        opacity: 0;
        transform: translateY(10px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   SERVICE ROWS
========================================================= */
.kb-service-row{
    margin-bottom: 100px !important;
    position: relative;
}

.kb-service-row > .e-con-inner{
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 60px !important;
}

.kb-service-row.kb-service-row-reverse > .e-con-inner{
    flex-direction: row-reverse !important;
}

.kb-service-row > .e-con-inner > .e-con{
    flex: 0 0 calc(50% - 30px) !important;
    width: calc(50% - 30px) !important;
    max-width: calc(50% - 30px) !important;
    min-width: 0 !important;
}

.kb-service-row::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: -50px;
    transform: translateX(-50%);
    width: min(220px, 32vw);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--kb-accent-rgb),0.18),
        transparent
    );
    pointer-events: none;
    opacity: 0.9;
}

.kb-service-row:last-child::after{
    display: none;
}

.kb-service-content,
.kb-service-text{
    position: relative;
    z-index: 2;
}

.kb-service-content h3,
.kb-service-text h3{
    color: #ffffff;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.08;
    margin-bottom: 14px;
}

.kb-service-content p,
.kb-service-text p{
    color: rgba(255,255,255,0.72);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 22px;
    max-width: 560px;
}

.kb-service-kicker,
.kb-service-kicker p{
    display: inline-block;
    margin: 0 0 14px 0 !important;
    color: var(--kb-accent) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.kb-service-image,
.kb-service-media{
    position: relative;
    z-index: 1;
    isolation: isolate;
    overflow: visible;
    border-radius: 24px;
    min-height: 520px;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    transform: translateZ(0);
    will-change: transform, filter;
    box-shadow:
        0 18px 60px rgba(0,0,0,0.28),
        0 0 0 1px rgba(255,255,255,0.02) inset,
        0 0 18px rgba(var(--kb-accent-rgb),0.04),
        0 0 40px rgba(var(--kb-accent-rgb),0.02);
    transition:
        transform 0.45s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        filter 0.35s ease;
}

.kb-service-image::before,
.kb-service-media::before{
    content: "";
    position: absolute;
    inset: -16px;
    z-index: -1;
    border-radius: 34px;
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(var(--kb-accent-rgb),0.10) 0%,
            rgba(var(--kb-accent-rgb),0.06) 30%,
            rgba(var(--kb-accent-rgb),0.02) 50%,
            transparent 74%
        );
    filter: blur(22px);
    opacity: 0.95;
    pointer-events: none;
}

.kb-service-image::after,
.kb-service-media::after{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.05) 0%,
            rgba(255,255,255,0.015) 18%,
            rgba(255,255,255,0.00) 45%,
            rgba(8,8,12,0.08) 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 0 0 1px rgba(255,255,255,0.03);
}

.kb-service-media img,
.kb-service-media .elementor-widget-image,
.kb-service-image img,
.kb-service-image video{
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    transition:
        transform 1s cubic-bezier(.16,1,.3,1),
        filter 0.6s ease;
}

.kb-service-row:hover .kb-service-image,
.kb-service-row:hover .kb-service-media{
    transform: translateY(-4px) scale(1.005);
    border-color: rgba(255,255,255,0.14);
    box-shadow:
        0 26px 70px rgba(0,0,0,0.34),
        0 0 24px rgba(var(--kb-accent-rgb),0.06),
        0 0 60px rgba(var(--kb-accent-rgb),0.03),
        0 0 0 1px rgba(255,255,255,0.03) inset;
    filter: brightness(1.02);
}

.kb-service-row:hover .kb-service-media img,
.kb-service-row:hover .kb-service-media .elementor-widget-image,
.kb-service-row:hover .kb-service-image img{
    transform: scale(1.03);
}

/* =========================================================
   TESTIMONIALS
========================================================= */
.kb-testimonial{
    --kb-bg: rgba(25,24,33,0.72);
    --kb-border: rgba(255,255,255,0.08);
    --kb-border-hover: rgba(255,255,255,0.14);
    --kb-text: #ffffff;
    --kb-muted: rgba(255,255,255,0.72);
    --kb-radius: 24px;
}

.kb-testimonial .swiper-slide{
    height: auto;
    width: 100% !important;
    max-width: 100% !important;
}

.kb-testimonial .elementor-testimonial{
    position: relative;
    padding: 34px 30px 28px;
    border-radius: var(--kb-radius);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
        var(--kb-bg);
    border: 1px solid var(--kb-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 18px 60px rgba(0,0,0,0.24),
        inset 0 1px 0 rgba(255,255,255,0.03);
    overflow: hidden;
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.kb-testimonial .elementor-testimonial::before{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.08),
        rgba(var(--kb-accent-rgb),0.14),
        rgba(255,255,255,0.03),
        rgba(var(--kb-accent-rgb),0.08)
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.kb-testimonial .elementor-testimonial:hover{
    transform: translateY(-5px);
    border-color: var(--kb-border-hover);
    box-shadow:
        0 24px 70px rgba(0,0,0,0.32),
        0 0 22px rgba(var(--kb-accent-rgb),0.08);
}

.kb-testimonial .elementor-testimonial__footer,
.kb-testimonial .elementor-testimonial-meta{
    display: flex;
    align-items: center;
    gap: 16px;
}

.kb-testimonial .elementor-testimonial__content,
.kb-testimonial .elementor-testimonial-details{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kb-testimonial .elementor-testimonial__text::before,
.kb-testimonial .elementor-testimonial-content::before{
    content: "“";
    display: block;
    color: rgba(var(--kb-accent-rgb),0.18);
    font-size: 68px;
    line-height: 0.8;
    font-weight: 700;
    margin-bottom: 8px;
}

.kb-testimonial .elementor-testimonial__name,
.kb-testimonial .elementor-testimonial-name{
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.kb-testimonial .elementor-testimonial__title,
.kb-testimonial .elementor-testimonial-job{
    color: var(--kb-muted) !important;
    font-size: 14px;
    line-height: 1.35;
    margin-top: 4px;
}

.kb-testimonial .elementor-star-rating i,
.kb-testimonial .elementor-star-rating svg{
    color: var(--kb-accent) !important;
    fill: currentColor !important;
}

.kb-testimonial .elementor-swiper-button{
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(25,24,33,0.82);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff !important;
    box-shadow:
        0 12px 26px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.03);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.kb-testimonial .elementor-swiper-button:hover{
    transform: translateY(-2px);
    border-color: rgba(var(--kb-accent-rgb),0.20);
    box-shadow:
        0 16px 32px rgba(0,0,0,0.22),
        0 0 18px rgba(var(--kb-accent-rgb),0.08);
}

.kb-testimonial .swiper-pagination-bullet{
    background: rgba(255,255,255,0.26);
    opacity: 1;
}

.kb-testimonial .swiper-pagination-bullet-active{
    background: var(--kb-accent);
    box-shadow: 0 0 14px rgba(var(--kb-accent-rgb),0.25);
}

/* =========================================================
   ABOUT / IMAGE GLOW
========================================================= */
.kb-about-text{
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    position: relative;
    z-index: 1;
}

.kb-about-text::before{
    content: "";
    position: absolute;
    inset: -10%;
    z-index: -1;
    background: radial-gradient(
        circle at left,
        rgba(var(--kb-accent-rgb),0.08),
        transparent 60%
    );
    filter: blur(60px);
    opacity: 0.6;
}

.kb-about-highlight{
    color: var(--kb-accent);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-top: 20px;
}

.kb-about-wrap{
    position: relative;
    overflow: visible !important;
}

.kb-about-wrap::before{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(
        circle,
        rgba(var(--kb-accent-rgb),0.25) 0%,
        rgba(var(--kb-accent-rgb),0.15) 30%,
        rgba(var(--kb-accent-rgb),0.05) 55%,
        transparent 75%
    );
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.kb-about-wrap img{
    position: relative;
    z-index: 1;
}

.kb-about-image{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    position: relative;
}

.kb-about-image .elementor-widget-container{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.kb-about-image img{
    display: block;
    width: 100%;
    height: auto;
    background: transparent !important;
    filter:
        drop-shadow(0 0 22px rgba(var(--kb-accent-rgb),0.20))
        drop-shadow(0 0 55px rgba(var(--kb-accent-rgb),0.14))
        drop-shadow(0 18px 36px rgba(0,0,0,0.28));
    transition: filter 0.45s ease, transform 0.45s ease;
}

.kb-about-image:hover img{
    transform: translateY(-2px);
    filter:
        drop-shadow(0 0 28px rgba(var(--kb-accent-rgb),0.26))
        drop-shadow(0 0 70px rgba(var(--kb-accent-rgb),0.18))
        drop-shadow(0 22px 42px rgba(0,0,0,0.34));
}

.kb-portrait-glow{
    position: relative;
    z-index: 1;
}

.kb-portrait-glow::before{
    content: "";
    position: absolute;
    inset: -10%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(var(--kb-accent-rgb),0.28) 0%,
        rgba(var(--kb-accent-rgb),0.18) 25%,
        rgba(var(--kb-accent-rgb),0.08) 45%,
        transparent 70%
    );
    filter: blur(60px);
    opacity: 0.9;
    animation: kbGlowMove 6s ease-in-out infinite alternate;
}

.kb-portrait-glow::after{
    content: "";
    position: absolute;
    inset: -20%;
    z-index: -2;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(var(--kb-accent-rgb),0.18) 0%,
        transparent 70%
    );
    filter: blur(120px);
    opacity: 0.5;
}

.kb-portrait-glow:hover::before{
    opacity: 1;
    filter: blur(70px);
}

@keyframes kbGlowMove{
    from{ transform: scale(1); }
    to{ transform: scale(1.05); }
}

/* =========================================================
   MARQUEE
========================================================= */
.kb-marquee{
    position: relative;
    overflow: hidden;
    width: 100%;
}

.kb-marquee-inner{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 64px;
    width: max-content;
    animation: kb-marquee-loop 45s linear infinite;
    will-change: transform;
}

.kb-marquee-inner > *{
    flex: 0 0 auto;
}

.kb-marquee-inner img{
    display: block;
    height: 150px;
    width: auto;
}

@keyframes kb-marquee-loop{
    from{ transform: translate3d(0, 0, 0); }
    to{ transform: translate3d(calc(-1 * var(--kb-marquee-set-width)), 0, 0); }
}

.kb-marquee::before,
.kb-marquee::after{
    content: "";
    position: absolute;
    top: 0;
    width: 140px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.kb-marquee::before{
    left: 0;
    background: linear-gradient(to right, #191821 0%, transparent 100%);
}

.kb-marquee::after{
    right: 0;
    background: linear-gradient(to left, #191821 0%, transparent 100%);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px){
    .kb-service-row{
        margin-bottom: 80px !important;
    }

    .kb-service-row > .e-con-inner,
    .kb-service-row.kb-service-row-reverse > .e-con-inner{
        gap: 30px !important;
    }

    .kb-service-image,
    .kb-service-media{
        min-height: 420px;
    }

    .kb-service-image::before,
    .kb-service-media::before{
        inset: -12px;
        filter: blur(18px);
    }
}

@media (max-width: 767px){
    .kb-masonry-gallery .elementor-gallery__titles-container{
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 20px;
    }

    .kb-masonry-gallery .elementor-gallery-title{
        font-size: 13px;
        padding: 9px 14px;
    }

    .kb-masonry-gallery .e-gallery-item{
        border-radius: 18px;
    }

    .kb-service-row{
        margin-bottom: 58px !important;
    }

    .kb-service-row > .e-con-inner,
    .kb-service-row.kb-service-row-reverse > .e-con-inner{
        flex-direction: column !important;
        gap: 22px !important;
    }

    .kb-service-row > .e-con-inner > .e-con{
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .kb-service-row::after{
        bottom: -28px;
        width: 120px;
    }

    .kb-service-image,
    .kb-service-media{
        min-height: 320px;
        border-radius: 20px;
    }

    .kb-service-image::before,
    .kb-service-media::before{
        inset: -10px;
        border-radius: 28px;
        filter: blur(16px);
        opacity: 0.85;
    }

    .kb-service-image::after,
    .kb-service-media::after,
    .kb-service-media img,
    .kb-service-image img,
    .kb-service-image video{
        border-radius: 20px;
    }

    .kb-service-content p,
    .kb-service-text p{
        font-size: 15px;
        line-height: 1.7;
    }

    .kb-testimonial .elementor-testimonial{
        padding: 24px 20px 22px;
        border-radius: 20px;
    }

    .kb-testimonial .elementor-testimonial__image img,
    .kb-testimonial .elementor-testimonial-image img{
        width: 54px;
        height: 54px;
    }

    .kb-testimonial .elementor-testimonial__text,
    .kb-testimonial .elementor-testimonial-content{
        font-size: 16px;
        line-height: 1.7;
    }

    .kb-testimonial .elementor-swiper-button{
        width: 40px;
        height: 40px;
    }
}
/* =========================================================
   KB MEDIA – BUTTONS (GLOBAL ACCENT)
========================================================= */

/* Standard Button */
.elementor-button{
    background: rgba(var(--kb-accent-rgb), 0.12) !important;
    border: 1px solid rgba(var(--kb-accent-rgb), 0.35) !important;
    color: var(--kb-accent) !important;

    box-shadow:
        0 0 18px rgba(var(--kb-accent-rgb), 0.12),
        inset 0 1px 0 rgba(255,255,255,0.05) !important;

    transition: all 0.3s ease;
}

/* Hover */
.elementor-button:hover{
    background: rgba(var(--kb-accent-rgb), 0.22) !important;
    border-color: rgba(var(--kb-accent-rgb), 0.55) !important;
    color: #fff !important;

    box-shadow:
        0 0 28px rgba(var(--kb-accent-rgb), 0.25),
        0 0 60px rgba(var(--kb-accent-rgb), 0.15) !important;

    transform: translateY(-2px);
}

/* Outline Button (dein rechter Button z.B.) */
.elementor-button.elementor-button-outline{
    background: transparent !important;
    border: 1px solid rgba(var(--kb-accent-rgb), 0.35) !important;
    color: var(--kb-accent) !important;
}

/* Outline Hover */
.elementor-button.elementor-button-outline:hover{
    background: rgba(var(--kb-accent-rgb), 0.12) !important;
    border-color: rgba(var(--kb-accent-rgb), 0.55) !important;
    color: #fff !important;
}
/* =========================================================
   KB MEDIA – STATS / ZAHLEN & FAKTEN SECTION
========================================================= */

.kb-stats-section{
    position: relative;
    overflow: hidden;
    padding: 120px 20px;
}

.kb-stats-section::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(255,255,255,0.035), transparent);
    pointer-events: none;
    opacity: 0.6;
}

.kb-stats-section::after{
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: min(1100px, 86%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--kb-accent-rgb), 0.25),
        rgba(var(--kb-accent-rgb), 0.75),
        rgba(var(--kb-accent-rgb), 0.25),
        transparent
    );
}

.kb-stats-inner{
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
}

.kb-stats-inner h2{
    text-align: center;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    margin: 0 0 18px;
}

.kb-stats-inner > .elementor-widget-text-editor,
.kb-stats-inner .kb-stats-subtext{
    text-align: center;
    max-width: 680px;
    margin: 0 auto 58px;
    color: rgba(255,255,255,0.68);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.7;
}

.kb-stats-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.kb-stat-card{
    position: relative;
    min-height: 250px;
    padding: 34px 28px;
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.105), rgba(255,255,255,0.035));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow:
        0 24px 80px rgba(0,0,0,0.34),
        0 0 0 1px rgba(255,255,255,0.03) inset;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.kb-stat-card::before{
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background:
        radial-gradient(circle at 50% 0%, rgba(var(--kb-accent-rgb), 0.26), transparent 46%),
        linear-gradient(135deg, rgba(var(--kb-accent-rgb), 0.22), transparent 35%, rgba(255,255,255,0.05));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.kb-stat-card::after{
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(var(--kb-accent-rgb), 0.75),
        rgba(var(--kb-accent-rgb), 0.18),
        transparent
    );
    opacity: 0.75;
}

.kb-stat-card:hover{
    transform: translateY(-8px);
    border-color: rgba(var(--kb-accent-rgb), 0.34);
    box-shadow:
        0 28px 90px rgba(0,0,0,0.42),
        0 0 42px rgba(var(--kb-accent-rgb), 0.14),
        0 0 0 1px rgba(var(--kb-accent-rgb), 0.10) inset;
}

.kb-stat-card:hover::before{
    opacity: 1;
}

.kb-stat-number{
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
    color: #ffffff;
    font-size: clamp(46px, 5.2vw, 82px);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.07em;
    text-shadow:
        0 0 24px rgba(var(--kb-accent-rgb), 0.30),
        0 0 60px rgba(var(--kb-accent-rgb), 0.12);
}

.kb-stat-number span{
    display: inline-block;
}

.kb-stat-card p{
    position: relative;
    z-index: 2;
    margin: 0;
    max-width: 230px;
    color: rgba(255,255,255,0.76);
    font-size: 17px;
    line-height: 1.55;
    font-weight: 400;
}

/* dezente kleine Glow-Kugel */
.kb-stat-card .kb-stat-number::after{
    content: "";
    position: absolute;
    width: 46px;
    height: 46px;
    right: 4px;
    top: -8px;
    border-radius: 999px;
    background: rgba(var(--kb-accent-rgb), 0.18);
    filter: blur(18px);
    opacity: 0.9;
    pointer-events: none;
}

/* Animation beim Sichtbarwerden */
.kb-stat-card{
    opacity: 0;
    transform: translateY(22px);
}

.kb-stat-card.kb-stat-visible{
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.kb-stat-card:nth-child(2).kb-stat-visible{
    transition-delay: 0.08s;
}

.kb-stat-card:nth-child(3).kb-stat-visible{
    transition-delay: 0.16s;
}

.kb-stat-card:nth-child(4).kb-stat-visible{
    transition-delay: 0.24s;
}

/* Tablet */
@media (max-width: 1024px){
    .kb-stats-section{
        padding: 95px 20px;
    }

    .kb-stats-grid{
        grid-template-columns: repeat(2, 1fr);
    }

    .kb-stat-card{
        min-height: 230px;
    }
}

/* Mobile */
@media (max-width: 767px){
    .kb-stats-section{
        padding: 78px 16px;
    }

    .kb-stats-grid{
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .kb-stat-card{
        min-height: auto;
        padding: 28px 24px 34px;
        border-radius: 24px;
    }

    .kb-stat-number{
        font-size: clamp(48px, 17vw, 72px);
        margin-bottom: 16px;
    }

    .kb-stat-card p{
        max-width: 100%;
        font-size: 16px;
    }

    .kb-stat-card::after{
        left: 24px;
        right: 24px;
        bottom: 24px;
    }
}

/* Performance / Accessibility */
@media (prefers-reduced-motion: reduce){
    .kb-stat-card,
    .kb-stat-card.kb-stat-visible,
    .kb-stat-card:hover{
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}