.hero {
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-text {
    background: rgba(0,0,0,0.6);
    padding: 40px;
    border-radius: 10px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-image {
    width: 100vw;
    height: 50vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.leistungen {
    padding: 100px 0;
    background: #f8fafc;
}

.leistungen h1,
.leistungen h2 {
    text-align: center;
    font-size: 2.7rem;
    margin-bottom: 10px;
    color: #183880;
    font-weight: 800;
}

.leistungen > p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 24px;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

.leistungen-subtitle {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.cards-grid4 {
    display: grid;
    gap: 30px;
    width: 900px;
    max-width: 100%;
    margin: 20px auto 0;
}

.service-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    transition: transform 0.35s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.service-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.service-content {
    padding: 24px;
}

.service-content h3 {
    margin-bottom: 6px;
    color: #183880;
    font-size: 1.35rem;
}

@media (max-width: 1100px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}
