/* =========================================
   SERVICES PAGE STYLES
   ========================================= */

.services-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    background: var(--color-bg-dark);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
}

/* Layout Split & Bilder */
.layout-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.image-box {
    padding: 0;
    overflow: hidden;
    border: 2px solid var(--color-tech-blue);
    border-radius: var(--radius-lg);
    line-height: 0;
}

.image-box img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.image-box:hover img {
    transform: scale(1.05);
}

/* Checklisten (Hauptbereiche) */
.check-list {
    list-style: none;
    margin-top: 1.5rem;
}

.check-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    color: #cbd5e1;
    font-size: 1.05rem;
}

.check-list li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: var(--color-energy-orange);
}

/* Trennlinien */
.section-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border), transparent);
    margin: 5rem 0;
}

/* --- OPTIMIERTES DETAIL GRID (RUNDUM SERVICE) --- */

.services-detail-grid {
    display: grid;
    /* Erzwingt 2 Spalten auf Desktop für quadratischen Look */
    grid-template-columns: repeat(2, 1fr); 
    gap: 2.5rem;
}

.detail-item {
    text-align: left;
    padding: 3.5rem; /* Mehr Padding für Box-Gefühl */
    background: rgba(30, 41, 59, 0.4); /* Etwas helleres Glas für Kontrast */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-10px);
    border-color: var(--color-tech-blue);
    background: rgba(30, 41, 59, 0.6);
}

.detail-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.detail-item h3 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
    color: #fff;
    font-weight: 700;
}

.detail-item p {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Neue Bullets für die Karten */
.card-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto; /* Schiebt Liste nach unten */
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.card-bullets li {
    font-size: 0.9rem;
    color: var(--color-energy-orange);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.card-bullets li::before {
    content: "→";
    margin-right: 10px;
    font-weight: bold;
}

/* --- OPTIMIERTER CTA BEREICH --- */

.cta-section {
    padding: 80px 20px;
    background-color: var(--color-bg-dark); /* Falls Variable nicht da: #020617 */
}

.cta-card {
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--color-energy-orange) !important; /* Die orange Linie oben */
    background: rgba(30, 41, 59, 0.3); /* Glass-Look passend zu den Boxen */
    border-radius: var(--radius-lg); /* Falls Variable nicht da: 20px */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cta-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 15px 0;
    color: #fff;
}

.cta-card p {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Damit es am Handy nicht bricht */
}

/* Button-Styling falls noch nicht global definiert */
.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--color-energy-orange);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #e65100;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.btn-outline {
    border: 2px solid var(--glass-border);
    color: #fff;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    transform: translateY(-2px);
}
/* Sektion mit Hintergrundbild - Pfad korrigiert */
.group-bg-section {
    position: relative;
    /* WICHTIG: Prüfe, ob dein Bild wirklich 'background.jpg' heißt 
       und im Ordner 'assets/photos/' liegt! 
    */
    background-image: linear-gradient(rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0.9)), 
                      url('../assets/photos/service-pv.jpeg'); /* Beispiel-Pfad */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax-Effekt */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Der Rest bleibt gleich für die 5er-Reihe */
.container-wide {
    max-width: 1750px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.group-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 Unternehmen in einer Reihe */
    gap: 20px;
    perspective: 1500px;
}

/* Deine Glass-Cards */
.card-front.glass-card, 
.card-back.glass-card {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Handy-Anpassung */
@media (max-width: 768px) {
    .cta-card {
        padding: 40px 20px;
    }
    .cta-actions {
        flex-direction: column;
    }
}
/* Responsivität */
@media (max-width: 992px) {
    .layout-split {
        grid-template-columns: 1fr;
        gap: 3rem;
        direction: ltr !important;
    }
    .image-box img {
        height: 300px;
    }
    /* Am Handy untereinander */
    .services-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .detail-item {
        padding: 2rem;
    }
}