/* Grundlegende Stile */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: silver; /* TEXTFARBE auf SILVER geändert */
    background-color: #82839F; /* HINTERGRUNDFARBE auf #82839F geändert */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    color: #fff; /* TITEL auf WEISS geändert, um sie gut abzuheben */
}

a {
    color: #4CAF50; /* LINKS auf helleres GRÜN/BLAUgrün geändert, um sie auf dem Hintergrund sichtbar zu machen */
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.9); /* Header weiß/hell gelassen für Kontrast zur Seite */
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

/* Logo Bereich */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .logo-area .logo {
        height: 50px;
        width: auto;
    }
    /* H1 im Header (BARI-DIENSTLEISTUNGEN) muss dunkler sein */
    .logo-area h1 {
        color: #222;
    }

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

header nav a {
    color: #333; /* Navigations-Links dunkel gelassen */
    font-weight: 700;
    text-transform: uppercase;
}

    header nav a:hover {
        color: #007BFF;
    }

/* =======================================
   Hero Image Sektion (Bild anstelle Video)
   ======================================= */
/* ACHTUNG: Der u.a. Code ist für das Bild, ABER Ihre index5.html verwendet ein VIDEO!
   Ich verwende hier Ihre vorherige Bild-Lösung, falls Sie diese verwenden wollen. */
.hero-image-section, .hero-video {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #777894;
}
/* Wenn Sie das BILD verwenden (wie in der letzten Antwort): */
.hero-image {
    max-width: 400px; /* Hier die gewünschte Bildgröße */
    width: 90%;
    height: auto;
    display: block;
    margin: 0 auto; /* Zentriert das Bild */
}
/* Wenn Sie das VIDEO verwenden (wie in Ihrer index5.html): */
.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 99%;
    min-width: initial;
    min-height: initial;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: contain;
}


/* =======================================
   Allgemeine Sektionen
   ======================================= */
section {
    padding: 40px 0;
    text-align: center; /* BEIBEHALTEN für P-Tags und Karten-Row */
}

    section h2 {
        font-size: 2em;
        color: #7DB9FF; /* SEKTIONSTITEL auf helles BLAU geändert */
        border-bottom: 2px solid #5A5B79; /* Trennlinie angepasst */
        padding-bottom: 10px;
        /* ZENTRIERUNG KORREKTUR FÜR H2 */
        display: block; /* Muss Block-Element sein, um margin: auto zu respektieren */
        width: fit-content; /* Setzt die Breite genau auf den Text (wichtig für die Unterstreichung) */
        margin: 0 auto 30px auto; /* Zentriert H2 horizontal und gibt 30px Abstand nach unten */
    }


/* =======================================
   Dienstleistungen (Überarbeitete Karten)
   ======================================= */

.services-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.service-card {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    border: 1px solid #5A5B79;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-align: center;
    background-color: #5A5B79;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    }

.service-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #82839F;
}

    .service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.service-card h3 {
    margin: 15px 0 10px;
    padding: 0 15px;
    color: #fff;
    font-size: 1.25em;
}

.service-card p {
    padding: 0 15px 15px;
    margin: 0;
    flex-grow: 1;
}

/* Button-Stil für "Mehr erfahren" */
.service-card .button {
    display: block;
    background-color: #7DB9FF;
    color: #222;
    padding: 10px 15px;
    margin: 0 15px 15px 15px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 700;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

    .service-card .button:hover {
        background-color: #5A99FF;
        color: #fff;
        text-decoration: none;
    }

/* =======================================
   Neue Sektion "Mehr Services"
   ======================================= */
#mehr-services {
    padding: 60px 0;
}

.flexible-service-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    border: 2px solid #7DB9FF;
    border-radius: 10px;
    background-color: #6C6D8A;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

    .flexible-service-box p {
        font-size: 1.1em;
        margin-bottom: 15px;
        text-align: center;
        color: silver;
    }

    .flexible-service-box .highlight-text {
        font-weight: 700;
        color: #7DB9FF;
        font-size: 1.2em;
        margin-top: 20px;
        margin-bottom: 25px;
    }

    .flexible-service-box .contact-button {
        display: inline-block;
        padding: 12px 25px;
        background-color: #4CAF50;
        color: white;
        border-radius: 5px;
        text-transform: uppercase;
        font-weight: 700;
        transition: background-color 0.3s ease;
    }

        .flexible-service-box .contact-button:hover {
            background-color: #388E3C;
        }

/* =======================================
   Über mich Sektion
   ======================================= */
#ueber-mich {
    background-color: #777894;
}

    #ueber-mich .about-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

.about-image img {
    max-width: 250px;
    height: auto;
    border-radius: 50%;
    border: 5px solid #82839F;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.about-text {
    max-width: 800px;
}

/* =======================================
   Kontakt Sektion
   ======================================= */
#kontakt {
    background-color: #82839F;
}

.contact-info {
    font-size: 1.1em;
    max-width: 500px;
    margin: 0 auto;
    line-height: 2.0;
}

    .contact-info a {
        font-weight: 700;
        color: #7DB9FF;
    }

/* =======================================
   Footer
   ======================================= */
footer {
    background: #444561;
    color: silver;
    padding: 1rem 0;
    font-size: 0.9em;
}

    footer .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    footer nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 15px;
    }

    footer nav a {
        color: silver;
    }

        footer nav a:hover {
            color: #7DB9FF;
        }


/* =======================================
   RESPONSIVE DESIGN: Desktop-Optimierung (ab 769px)
   ======================================= */
@media (min-width: 769px) {

    /* Dienstleistungen in 4 Spalten */
    .service-card {
        flex: 0 0 calc(25% - 15px);
        max-width: calc(25% - 15px);
    }

    /* Über mich in 2 Spalten */
    #ueber-mich .about-content {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .about-image {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .about-text {
        flex: 0 0 60%;
        padding-left: 30px;
    }

        .about-text p {
            text-align: left;
        }

    /* Footer-Korrektur */
    footer .container {
        flex-direction: row;
    }
}

/* =======================================
   RESPONSIVE DESIGN: Mobile-Optimierung (bis 768px)
   ======================================= */
@media (max-width: 768px) {

    /* Video-Höhe auf Mobilgeräten reduzieren */
    .hero-video {
        height: 250px;
    }

    /* Header-Struktur für Mobile */
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav {
        margin-top: 15px;
    }

        header nav ul {
            justify-content: center;
        }

    /* Dienstleistungen in 1 Spalte auf sehr kleinen Geräten */
    .service-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Footer-Struktur für Mobile */
    footer .container {
        flex-direction: column;
        text-align: center;
    }

    footer nav {
        margin-top: 10px;
    }
}
