/* Leistungen Bereich Styling */
.services-home-section {
    font-family: 'Open Sans', sans-serif;
}

.services-introduction {
    max-width: 1200px;
    margin: 0 auto 40px;
    text-align: center;
}

.services-introduction p {
    font-size: 18px !important;
    line-height: 1.8 !important;
    text-align: justify;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Anpassungen fÃ¼r die Theme-KompatibilitÃ¤t */
.service-item {
    background: transparent !important;
    padding: 0 !important;
    position: static !important;
    box-shadow: none !important;
    transition: none !important;
}

.service-content {
    padding: 0 !important;
    text-align: left !important;
}

.service-title {
    display: none !important;
}

.service-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 280px;
    position: relative;
    float: none !important;
    margin-left: -1%;
    margin-top: -1%;
    width: 102%;
}

.service-image img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: none !important;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 70%);
    padding: 30px;
    display: flex;
    align-items: flex-end;
    height: 100%;
}

.service-image img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: none !important;
    filter: brightness(1.15);
}

/* Erweiterte Lösungen für das Innenausbau-Bild (5. Karte) */
.service-card:nth-child(5) .service-image {
    background-color: #f8f8f8; /* Neutralere Hintergrundfarbe statt grau */
    overflow: hidden;
}

.service-card:nth-child(5) .service-image img {
    object-position: center center;
    object-fit: cover;
    min-height: 100%;
    min-width: 100%;
}

.service-overlay h3  {
    color: white !important;
}

.service-card-title {
    color: #fff;
    font-size: 24px;
    margin: 0;
    font-weight: 600;
    letter-spacing: 2px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-title {
    transform: translateY(-5px);
}

/* Animation fÃ¼r Service-Cards */
.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 720px) {
    .section-services .service-item .service-image {
        float: none;
        margin-bottom: 0px !important;
        margin-top: 0px !important;
        margin-right: 0px !important;
        text-align: center;
    }

    .section-services .service-item .service-image {
        float: none !important;
        margin-right: 0px !important;
    }

    .section-services .service-item .service-content {
        overflow: hidden !important;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
    }
    
    .service-image {
        height: 240px;
    }
}

@media screen and (max-width: 480px) {
    .service-image {
        height: 200px;
    }
    
    .service-card-title {
        font-size: 20px;
    }
}