/* ==================================================
   H2 TITLES
================================================== */

h2 {
    color: #1d1d1f !important;

    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
}

/* ==================================================
   KPI-BEREICH UNTER DEM HERO
   NUR DESKTOP
================================================== */

@media (min-width: 1200px) {

    .we-kpi-section {
        position: relative !important;

        width: 100% !important;

        margin: 0 !important;

        padding:
            42px
            0
            100px
            0 !important;

        box-sizing: border-box !important;

        background: #ffffff !important;
    }


    /* ==================================================
       KPI-GRID
    ================================================== */

    .we-kpi-grid {
        display: grid !important;

        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;

        gap: 20px !important;

        /*
         * Deutlich breiter:
         * ungefähr 82 % der Gesamtbreite
         */
        width: 82vw !important;

        max-width: 1650px !important;

        margin: 0 auto !important;
        padding: 0 !important;

        box-sizing: border-box !important;
    }


    /* ==================================================
       KPI-KARTE
    ================================================== */

    .we-kpi-card {
        display: flex !important;

        flex-direction: column !important;

        /*
         * Inhalt innerhalb der Karte zentrieren
         */
        align-items: center !important;
        justify-content: center !important;

        min-width: 0 !important;

        /*
         * Deutlich höher
         */
        min-height: 180px !important;

        padding:
            30px
            28px !important;

        box-sizing: border-box !important;

        background: #f3f3f3 !important;

        border-radius: 18px !important;

        text-align: center !important;
    }


    /* ==================================================
       GROSSE KENNZAHL / KERNAUSSAGE
    ================================================== */

    .we-kpi-value {
        display: block !important;

        width: 100% !important;

        margin: 0 0 14px 0 !important;

        font-family: 'Inter', sans-serif !important;

        font-size: 24px !important;
        font-weight: 700 !important;

        line-height: 1.2 !important;

        letter-spacing: -0.02em !important;

        color: #111827 !important;

        text-align: center !important;
    }


    /* ==================================================
       ERKLÄRTEXT
    ================================================== */

    .we-kpi-text {
        display: block !important;

        width: 100% !important;

        max-width: 260px !important;

        margin: 0 auto !important;

        font-family: 'Inter', sans-serif !important;

        font-size: 15px !important;
        font-weight: 400 !important;

        line-height: 1.5 !important;

        color: #5f6368 !important;

        text-align: center !important;
    }
}

/* ==================================================
   SERVICE SLIDER CONTROLS
================================================== */

.we-services-controls {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 14px !important;

    width: 100% !important;
    margin: 50px auto 0 !important;
    padding: 0 !important;

    position: relative !important;
}

/* Beide Buttons */
.we-services-controls button {
    position: relative !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    width: 48px !important;
    height: 48px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: none !important;
    border-radius: 50% !important;

    background: #e5e5ea !important;
    color: #000 !important;

    font-size: 0 !important;
    line-height: 0 !important;

    cursor: pointer !important;

    transition:
        background 0.2s ease,
        transform 0.2s ease !important;
}

/* Pfeilfläche */
.we-services-controls button::before {
    content: "" !important;

    display: block !important;

    width: 20px !important;
    height: 20px !important;

    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 20px 20px !important;

    pointer-events: none !important;
}

/* Linker Pfeil */
.we-services-controls button:first-child::before {
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M15%2018L9%2012L15%206%27%20stroke%3D%27%23000000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E") !important;
}

/* Rechter Pfeil */
.we-services-controls button:last-child::before {
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M9%2018L15%2012L9%206%27%20stroke%3D%27%23000000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E") !important;
}

/* Hover */
.we-services-controls button:hover:not(:disabled) {
    background: #d2d2d7 !important;
    transform: scale(1.04) !important;
}

/* Klick */
.we-services-controls button:active:not(:disabled) {
    transform: scale(0.95) !important;
}

/* Deaktivierter Button */
.we-services-controls button:disabled {
    opacity: 0.35 !important;
    cursor: default !important;
    pointer-events: none !important;
}

/* Mobile */
@media (max-width: 767px) {
    .we-services-controls {
        margin-top: 16px !important;
    }

    .we-services-controls button {
        width: 44px !important;
        height: 44px !important;
    }

    .we-services-controls button::before {
        width: 18px !important;
        height: 18px !important;
        background-size: 18px 18px !important;
    }
}

/* Buttons */
.we-services-controls button {
    position: relative;

    width: 48px;
    height: 48px;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: #e5e5ea;
    color: #1d1d1f;

    cursor: pointer;

    font-size: 0;
    line-height: 0;

    transition:
        background .25s ease,
        color .25s ease,
        transform .2s ease;
}

/* SVG exakt zentrieren */
.we-services-controls button svg {
    width: 18px;
    height: 18px;

    display: block;
    flex: 0 0 18px;

    color: inherit;
    pointer-events: none;
}

.we-services-controls button:hover:not(:disabled) {
    background: #d2d2d7;
    color: #1d1d1f;
}

.we-services-controls button:active:not(:disabled) {
    transform: scale(.94);
}

.we-services-controls button:disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

/* Mobile */
@media (max-width:767px){

    .we-services-controls{
        margin-top:16px;
    }

    .we-services-controls button{
        width:44px;
        height:44px;
    }

    .we-services-controls button svg{
        width:16px;
        height:16px;
        flex-basis:16px;
    }

}

/* Hintergrundlogo bei Leistungen vollständig entfernen */

#leistungen,
#leistungen.section--bg-logo,
#leistungen .we-services-slider {
    background: #fff !important;
    background-image: none !important;
}

#leistungen::before,
#leistungen::after,
#leistungen.section--bg-logo::before,
#leistungen.section--bg-logo::after,
#leistungen .we-services-slider::before,
#leistungen .we-services-slider::after {
    content: none !important;
    display: none !important;
}

/* ==================================================
   MOBILE LEISTUNGS-SLIDER
   Nächste Karte vollständig ausserhalb des Viewports
================================================== */

@media (max-width: 767px) {

    .we-services-slider {
        --we-services-side: 6vw;
        --we-services-gap: 12vw;
        --we-services-card-width: 88vw;
        --we-services-image-height: 280px;
        --we-services-radius: 18px;

        padding: 80px 0 100px !important;
    }

    .we-services-track {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;

        gap: var(--we-services-gap) !important;

        width: 100% !important;

        margin: 0 !important;
        padding:
            0
            var(--we-services-side)
            24px
            var(--we-services-side) !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        scroll-snap-type: x mandatory !important;
        scroll-padding-left: var(--we-services-side) !important;
        scroll-padding-right: var(--we-services-side) !important;

        box-sizing: border-box !important;
    }

    .we-services-track > .we-service-card {
        flex: 0 0 var(--we-services-card-width) !important;

        width: var(--we-services-card-width) !important;
        min-width: var(--we-services-card-width) !important;
        max-width: var(--we-services-card-width) !important;

        margin: 0 !important;
        padding: 0 !important;

        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
    }

    .we-service-card img {
        width: 100% !important;
        height: var(--we-services-image-height) !important;

        object-fit: cover !important;

        border-radius: var(--we-services-radius) !important;
    }

    .we-service-card h3 {
        margin-top: 18px !important;
        font-size: 20px !important;
    }

    .we-service-card p {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    .we-services-controls {
        margin-top: 16px !important;
    }
}

/* ==================================================
   H2-TITEL FINAL SCHWARZ
================================================== */

h2,
#leistungen .we-services-slider h2,
#referenzen h2,
#neu > .ce_headline,
#neu h2 {
    color: #1d1d1f !important;
}