/* css/pages/services.css - Styles spezifisch für Service-Detailseiten */

.service-hero-section {
    background-color: var(--mid-bg-color);
    color: var(--primary-color);
    height: 450px; /* Etwas höher */
    border-radius: 16px; /* Grössere Abrundung */
    box-shadow: 0 15px 40px var(--shadow-medium); /* Stärkerer Schatten */
    
    margin: 10px auto 20px auto; /* Angepasste Ränder reduziert */
    max-width: 1200px; /* Breiterer Hero-Bereich */
    overflow: hidden;
    position: relative;
    z-index: 5;

    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax-Effekt beibehalten */
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--primary-color-rgb), 0.7); /* Primärfarbe mit Transparenz */
}

.service-hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 900px; /* Breiterer Textbereich */
}

.service-hero-content h1 {
    font-size: 4em; /* Grösser */
    margin-bottom: 20px; /* Mehr Abstand */
    line-height: 1.1;
    color: var(--text-color-light);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3); /* Leichter Textschatten */
}

.service-hero-content p {
    font-size: 1.5em; /* Grösser */
    margin-bottom: 40px; /* Mehr Abstand */
    color: rgba(255, 255, 255, 0.95); /* Heller */
}

/* Service Details Section - ABSTÄNDE ANGEPASST */
.service-details-section {
    padding: 80px 0; /* Padding erhöht */
    background-color: var(--light-bg-color);
    margin-top: 0; /* Überlappung entfernt */
    position: relative;
    z-index: 4;
    border-radius: 16px; /* Einheitlich abgerundet */
    box-shadow: 0 15px 40px var(--shadow-medium); /* Schatten */
    max-width: 1200px; /* Gleiche Breite wie Hero-Bereich */
    margin-left: auto;
    margin-right: auto;
}
.service-details-section .container {
    padding: 0 40px; /* Inneres Padding für den Container auf dieser Seite */
}


.service-details-section h2 {
    font-size: 2.8em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px; /* Mehr Abstand */
}

/* Grid für Inhalt und Vorteile */
.service-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px; /* Mehr Abstand */
    align-items: flex-start;
    margin-bottom: 80px; /* Mehr Abstand nach unten */
}
@media (min-width: 992px) {
    .service-details-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.service-details-content {
    /* Styles für den Haupttext */
}
.service-details-content h2 {
    text-align: left;
    font-size: 2.2em; /* Grösser */
    margin-bottom: 25px; /* Mehr Abstand */
    border-bottom: 2px solid var(--accent-color); /* Akzentfarbe für Unterstrich */
    padding-bottom: 15px; /* Mehr Padding */
    font-weight: 700;
}
.service-details-content p {
    line-height: 1.8;
    font-size: 1.05em;
    color: var(--text-color-dark);
    text-align: justify;
    margin-bottom: 1.5em; /* Mehr Abstand zwischen Absätzen */
}

.service-benefits {
    /* Stil für den Vorteile-Block */
    background-color: var(--mid-bg-color);
    padding: 40px; /* Mehr Padding */
    border-radius: 12px; /* Grössere Abrundung */
    box-shadow: 0 8px 20px var(--shadow-light); /* Neuer Schatten */
    border: 1px solid var(--border-color); /* Dezenter Rand */
}
.service-benefits h2 {
    text-align: center;
    font-size: 2em; /* Grösser */
    margin-bottom: 30px; /* Mehr Abstand */
    border-bottom: none;
    padding-bottom: 0;
    font-weight: 700;
}
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.benefits-list li {
    background-color: transparent;
    box-shadow: none;
    padding: 12px 0; /* Mehr Padding */
    border-bottom: 1px dashed rgba(var(--primary-color-rgb), 0.15); /* Deutlicher */
    font-size: 1.05em; /* Etwas grösser */
    color: var(--text-color-dark);
    display: flex; /* Für Icon und Text */
    align-items: flex-start;
    gap: 15px; /* Abstand zwischen Icon und Text erhöht */
}
.benefits-list li:last-child {
    border-bottom: none;
}
.service-check-icon {
    font-size: 1.3em; /* Grösser */
    margin-right: 0; /* Entfernt doppelten Margin, da 'gap' verwendet wird */
    color: var(--accent-color); /* Akzentfarbe */
    flex-shrink: 0; /* Verhindert Schrumpfen des Icons */
}

.service-process-section {
    margin-top: 80px; /* Abstand erhöht */
}
.service-process-section h2 {
    font-size: 2.2em; /* Grösser */
    color: var(--primary-color);
    margin-bottom: 40px; /* Mehr Abstand */
    text-align: center;
}
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Etwas breiter */
    gap: 30px; /* Mehr Abstand */
}
.process-step-item {
    background-color: var(--mid-bg-color);
    padding: 30px; /* Mehr Padding */
    border-radius: 12px; /* Abgerundeter */
    box-shadow: 0 5px 15px var(--shadow-light); /* Neuer Schatten */
    text-align: center;
    border-top: 4px solid var(--primary-color); /* Oberer Rand in Primary-Farbe */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.process-step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}
.process-step-item .step-number {
    font-size: 2.8em; /* Grösser */
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
    background-color: transparent;
    border-radius: 0;
    width: auto;
    height: auto;
}
.process-step-item p {
    font-size: 1em;
    color: var(--text-color-dark);
    line-height: 1.6;
}


.service-gallery-section {
    margin-top: 80px; /* Abstand erhöht */
}
.service-gallery-section h2 {
    font-size: 2.2em; /* Grösser */
    color: var(--primary-color);
    margin-bottom: 40px; /* Mehr Abstand */
    text-align: center;
}
.project-gallery-grid { /* Wiederverwendung des Namens, aber spezifisch für Services */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Etwas breiter */
    gap: 20px;
}
.project-gallery-grid .gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 10px; /* Etwas runder */
    box-shadow: 0 4px 15px var(--shadow-light); /* Neuer Schatten */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}
.project-gallery-grid .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}
.project-gallery-grid .gallery-item img {
    width: 100%;
    height: 150px; /* Etwas höher */
    object-fit: cover;
    display: block;
}


.related-services-section {
    padding: 50px 0; /* Padding reduziert */
    background-color: var(--mid-bg-color);
    margin-top: 80px; /* Abstand erhöht */
    box-shadow: inset 0 8px 20px var(--shadow-light); /* Innerer Schatten oben */
}
.related-services-section h2 {
    font-size: 2.2em; /* Grösser */
    color: var(--primary-color);
    margin-bottom: 40px; /* Mehr Abstand */
    text-align: center;
}
.flex-center-gap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Mehr Abstand zwischen den Buttons */
}
.flex-center-gap .btn-secondary {
    /* Bestehende Styles in components.css */
}


/* Responsive Anpassungen für Services Detailseite */
@media (min-width: 992px) {
    .service-details-grid {
        grid-template-columns: 2fr 1fr;
    }
}
@media (max-width: 768px) {
    .service-hero-section {
        height: 350px;
        margin: 10px auto 20px auto; /* Responsive Margin reduziert */
        max-width: calc(100% - 30px);
        border-radius: 12px;
    }
    .service-hero-content h1 {
        font-size: 3em;
        margin-bottom: 15px;
    }
    .service-hero-content p {
        font-size: 1.2em;
        margin-bottom: 25px;
    }
    .service-details-section {
        margin-top: 0; /* Responsive Überlappung entfernt */
        padding: 60px 20px; /* Responsive Padding erhöht */
        max-width: calc(100% - 30px); /* Seitenränder */
    }
    .service-details-section .container {
        padding: 0; /* Container Padding hier zurücksetzen, da es auf der Section ist */
    }
    .service-details-content h2, .service-benefits h2, .service-process-section h2, .service-gallery-section h2, .related-services-section h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .project-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
    }
    .project-gallery-grid .gallery-item img {
        height: 120px;
    }
    .service-process-section {
        margin-top: 60px; /* Responsive Abstand erhöht */
    }
    .service-process-section h2 {
        margin-bottom: 30px;
    }
    .process-steps-grid {
        grid-template-columns: 1fr; /* Stapel auf Mobile */
    }
    .process-step-item {
        padding: 25px;
    }
    .process-step-item .step-number {
        font-size: 2.5em;
    }
    .related-services-section {
        padding: 40px 0; /* Responsive Padding reduziert */
        margin-top: 60px; /* Responsive Abstand erhöht */
    }
}
@media (max-width: 480px) {
    .service-hero-section {
        height: 250px;
        margin: 10px auto 15px auto; /* Responsive Margin weiter reduziert */
    }
    .service-hero-content h1 {
        font-size: 2.2em;
        margin-bottom: 10px;
    }
    .service-hero-content p {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .service-details-section {
        margin-top: 0; /* Responsive Überlappung entfernt */
        padding: 40px 15px; /* Responsive Padding weiter erhöht */
    }
    .service-details-content h2, .service-benefits h2, .service-process-section h2, .service-gallery-section h2, .related-services-section h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .project-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    .project-gallery-grid .gallery-item img {
        height: 80px;
    }
    .flex-center-gap {
        gap: 10px;
    }
    .btn.btn-primary, .btn.btn-secondary {
        padding: 10px 18px;
        font-size: 0.9em;
    }
    .service-process-section {
        margin-top: 40px; /* Responsive Abstand weiter erhöht */
    }
    .service-gallery-section {
        margin-top: 40px; /* Responsive Abstand weiter erhöht */
    }
    .related-services-section {
        margin-top: 40px; /* Responsive Abstand weiter erhöht */
    }
}