* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background-color: #000;
    color: #fff;
}

.glass {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .1)
}

.glass-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .1)
}

.card-hover {
    transition: transform .35s cubic-bezier(.25, .46, .45, .94), box-shadow .35s ease
}

.service-card {
    height: 100%;
    will-change: transform
}

.service-title {
    overflow-wrap: anywhere;
    hyphens: auto
}

@media (hover: hover) and (pointer: fine) {
    .card-hover:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
        border-color: rgba(16, 54, 127, .5)
    }
}

.btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #10367f);
    transition: all .3s ease
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(16, 54, 127, .4)
}

.btn-secondary {
    border: 2px solid #fff;
    transition: all .3s ease
}

.btn-secondary:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05)
}

.nav-link {
    position: relative
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1d4ed8;
    transition: width .3s ease
}

.nav-link:hover::after {
    width: 100%
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-bottom: 0;
    transition: max-height .4s ease, opacity .25s ease, padding-bottom .25s ease
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    opacity: 1;
    padding-bottom: 1.5rem
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg)
}

.accordion-icon {
    transition: transform .3s ease
}

.stat-number {
    background: linear-gradient(135deg, #1d4ed8, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

.float-anim {
    animation: float 3s ease-in-out infinite
}

.hamburger-line {
    transition: all .3s ease
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.25, .46, .45, .94)
}

.mobile-menu.open {
    transform: translateX(0)
}

/* Ensure specific elements have clean margin/padding */
section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    position: relative;
    z-index: 10;
}

@media (max-width: 767px) {
    #leistungen .services-grid {
        gap: 1rem;
    }

    #leistungen .service-card {
        padding: 1.5rem 1.25rem;
        border-radius: 1.5rem;
    }

    #leistungen .service-icon {
        width: 3.5rem;
        height: 3.5rem;
        margin-bottom: 1rem;
    }

    #leistungen .service-title {
        font-size: 1.35rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    #leistungen .service-copy {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* On mobile: no left-to-right dark panel – only a gentle bottom fade */
    .hero-overlay-left {
        background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.30) 50%, transparent 100%) !important;
    }

    .hero-overlay-top {
        background: linear-gradient(to bottom, rgba(0,0,0,0.50) 0%, transparent 30%) !important;
    }

    .hero-overlay-bottom {
        background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, transparent 40%) !important;
    }
}
