/* LEISTUNGEN */

/* Hintergrund für die Leistungen-Seite */
.leistungen-seite {
    background-image: url('images/leistungen.jpeg'); 
    background-size: cover;
    background-position: center;
    color: black;
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 50px 0;
}

.leistungen-seite::before {
    content: "";
    position: fixed; /* Damit das Element über die ganze Seite geht */
    top: 0;
    left: 0;
    width: 100vw; /* Volle Breite */
    height: 100vh; /* Volle Höhe des Viewports */
    background-color: rgba(255, 255, 255, 0.0); /* Transparenz anpassen */
    z-index: -1; /* Bleibt hinter dem Inhalt */
}

/* Weißer Hintergrund für die Textboxen */
.text {
    background: rgba(255, 255, 255, 0.5); /* Heller, halbtransparenter Hintergrund */
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Navigation oben – mittig ausgerichtet und passend zur Breite der Links */
nav {
    background: rgba(255, 255, 255, 0.4);
    padding: 10px 15px;  /* Innenabstand minimal gehalten */
    border-radius: 10px;
    display: flex; /* Flexbox für zentrierte Ausrichtung */
    justify-content: center; /* Zentriert die Links */
    gap: 10px; /* Abstand zwischen den Links */
    width: fit-content; /* Größe passt sich dem Inhalt an */
    margin: 20px auto; /* Zentriert die Navigation horizontal */
    flex-wrap: wrap; /* Links umbrechen falls nötig */
}

/* Styling für Navigationslinks */
nav a {
    text-decoration: none; /* Entfernt die Unterstreichung der Links */
    color: black; /* Setzt die Schriftfarbe auf Schwarz */
    padding: 10px 15px; /* Abstand um die Links herum */
    transition: background 0.3s; /* Sanfter Hover-Effekt */
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

nav a:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Hintergrundfarbe bei Hover ändern */
    border-radius: 5px;
}

/* Haupt-Container */
.container {
    width: 80%;
    margin: 25px auto 0; /* Abstand nach oben für mehr Platz */
    padding-top: 0px;
}

/* Abschnitte */
.abschnitt {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

/* Einheitliches Layout für Abschnitte */
.abschnitt.rechts, .abschnitt.links {
    flex-direction: column;
    text-align: center;
}

/* Überschriften */
h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center; /* Zentriert */
}

/* Fließtexte */
p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 15px;
}

/* Responsive Anpassungen für Mobilgeräte */
@media (max-width: 768px) {
    .text-container {
        width: 95%; /* Größere Breite für kleinere Bildschirme */
        padding: 20px; /* Reduziertes Padding für mobile Darstellung */
    }
    h2 {
        font-size: 24px; /* Kleinere Schriftgröße für mobile Geräte */
    }
    p {
        font-size: 16px; /* Kleinere Schrift für bessere Lesbarkeit auf Smartphones */
    }
    nav {
        background: rgba(255, 255, 255, 0.3); /* Halbtransparenter Hintergrund */
        padding: 10px 15px; /* Minimale Polsterung */
        display: flex;
        justify-content: center; /* Zentriert die Navigation */
        gap: 10px; /* Abstand zwischen Links */
        width: fit-content; /* Passt sich den Links an */
        max-width: 400px; /* Maximale Breite */
        margin: 20px auto; /* Zentrierte Navigation */
        flex-wrap: wrap; /* Links umbrechen falls nötig */
    }
    nav a {
        padding: 8px 10px; /* Kleinere Klickflächen für mobile Nutzer */
        font-size: 14px; /* Kleinere Schriftgröße */
    }
    .container {
        width: 90%; /* Einheitliche Breite für Mobilgeräte */
        margin-top: 0px; /* Reduzierter Abstand */
    }
}
