/* Override für Services-Bereich - Optimierte Version */

/* Hauptbereich Services */
.services {
    position: relative;
    padding: 4.5rem 0;
    background: #ef9d2e !important; /* Fester Farbwert ohne Verlauf */
    transition: padding 0.3s ease-in-out;
    z-index: 1;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
    width: 100%;
    box-sizing: border-box;
}

/* Entfernung aller möglichen Pseudo-Elemente, die Verläufe erzeugen könnten */
.services::before,
.services::after {
    display: none !important;
}

/* Services Grid Layout Fix */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Service Card Container Fix */
.service-card {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Einheitliche Farbe für Icons */
.services .card-icon {
    background: #ef9d2e !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Entfernung aller Pseudo-Elemente bei Icons */
.services .card-icon::before,
.services .card-icon::after {
    display: none !important;
}

/* Buttons mit einheitlicher Farbe und Hover-Animation */
.services .btn-primary {
    background-color: #ef9d2e !important;
    border-color: #ef9d2e !important;
    transition: all 0.3s ease !important;
}

/* Hover-Effekt für Buttons wiederherstellen */
.services .btn-primary:hover {
    background-color: #2C5282 !important; /* Dunkelblau beim Hover */
    border-color: #2C5282 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Einheitliche Farbe für Titelunterstriche */
.services .card-title::after {
    background: #ef9d2e !important;
}

/* Card Styles Fix */
.services .card {
    height: 100%;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card Video/Image Background Fix */
/* Card der mittleren, quadratischen Services als Clip-Container */
.service-card-square .card {
    position: relative;
    overflow: hidden;
}

/* Video vollflächig und zentriert im Card-Bereich anzeigen */
.card-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Hintergrundbilder weiterhin flächenfüllend */
.card-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Anpassungen */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-card-full {
        grid-column: 1 / -1;
    }
    
    .service-card-square {
        aspect-ratio: auto;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 3rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .service-card-square {
        aspect-ratio: auto;
        min-height: 250px;
    }
    
    .services .card-body {
        padding: 1.5rem;
    }
    
    .services .card-title {
        font-size: 1.5rem;
        min-height: auto;
    }
}
