/* Allgemeine Einstellungen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background: url('../images/background.jpg') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Optionales Overlay zur Verbesserung der Lesbarkeit */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6); /* Weißes Overlay mit leichter Transparenz */
    z-index: -1; /* Bild bleibt im Hintergrund */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333; /* Dunkelgrau für den Header */
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.9rem;
    display: flex;
    align-items: center; /* Stellt sicher, dass Text und Logo auf gleicher Linie sind */
    transition: color 0.3s, transform 0.3s;
}

.homelogo {
    max-width: 60px; /* Reduzierte maximale Breite */
    height: auto;     /* Beibehaltung des Seitenverhältnisses */
    margin-right: 10px; /* Etwas geringerer Abstand zum Text */
    vertical-align: middle; /* Vertikale Ausrichtung mit dem Text */
}

nav ul li a:hover {
    color: #f8f9fa; /* Helle Schriftfarbe beim Hover */
    transform: scale(1.1); /* Leichtes Vergrößern bei Hover */
}


h1 {
 text-align: center; /* Zentriert die Überschrift */
}

h2 {
 text-align: left; /* Überschrift linksbündig */
}


main {
    padding: 60px 20px;
    text-align: left;
    max-width: 1100px;
    margin: 0 auto;
}

main h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
}

main p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

footer {
    text-align: center;
    background-color: #333; /* Dunkelgrau für den Footer */
    padding: 20px;
    margin-top: 40px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Logo unterhalb der Kopfzeile */
.logo-container {
    text-align: center;
    margin-top: 30px;
}

.logo {
    max-width: 200px; /* Größere Standardbreite */
    min-width: 120px; /* Mindestbreite, damit es nicht zu klein wird */
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05); /* Logo wird beim Hover leicht vergrößert */
}

/* Abschnitte wie Leistungen oder Über uns */
section {
    margin: 40px 0;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.9); /* Leicht transparenter Hintergrund */
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

section p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

/* Liste der Leistungen */
ul {
    list-style-type: none;
    padding-left: 0;
    text-align: left;
}

ul li {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

ul li:before {
    content: '?'; /* Checkmark Icon */
    position: absolute;
    left: 0;
    color: #333; /* Dunkelgrau für die Checkbox */
}

/* Container für das Bild */
.image-container {
    text-align: center; /* Zentriert das Bild horizontal */
    margin-top: 20px;   /* Abstand nach oben */
}

/* Background Section */
.background-section {
    /* Hintergrundbild */
    background-image: url('../images/image3.jpg');
    background-size: cover; /* Füllt den gesamten Bereich */
    background-position: center center; /* Zentriert das Bild */
    background-attachment: scroll; /* Bild bewegt sich mit dem Inhalt */
    
    /* Box-Styling */
    color: black; /* Textfarbe auf schwarz ändern für besseren Kontrast */
    text-shadow: none; /* Textschatten entfernen */
    padding: 40px; /* Mehr Innenabstand für Balance */
    line-height: 1.8; /* Angenehmer Zeilenabstand */
    border-radius: 15px; /* Ecken abrunden */
    overflow: hidden; /* Für ein sauberes Aussehen */
    position: relative; /* Wichtig für ::before */
    margin: 20px auto; /* Zentriert die Sektion */
    max-width: 800px; /* Begrenzung der Breite */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Weicher Schatten um die Box */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Sanfte Animation */
}

/* Helle Hintergrundüberlagerung für bessere Lesbarkeit */
.background-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98); /* Sehr helles, fast weißes Overlay */
    z-index: 0;
    filter: brightness(80%); /* Noch etwas heller machen */
    transition: background-color 0.3s ease; /* Animation beim Hover */
}

/* Text bleibt über der Überlagerung */
.background-section h2,
.background-section p {
    position: relative;
    z-index: 1;
}

/* Hover-Effekt für die Sektion */
.clickable-section:hover .background-section {
    transform: translateY(-5px); /* Leichtes Anheben */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); /* Stärkere Schatten beim Hover */
}

.clickable-section:hover .background-section::before {
    background-color: rgba(255, 255, 255, 0.95); /* Wenig stärkere Überlagerung beim Hover */
}

/* Entfernt die Unterstreichung und gibt klickbare Sektion */
.clickable-section {
    text-decoration: none; /* Unterstreichung entfernen */
    color: inherit; /* Textfarbe beibehalten */
    display: block; /* Macht die gesamte `<a>` klickbar */
}

/* Responsive Design für mobile Geräte */
@media (max-width: 768px) {
    header {
        padding: 20px; /* Erhöht den Abstand */
    }

    nav ul {
        flex-direction: column; /* Navigation vertikal ausrichten */
        gap: 15px; /* Abstand zwischen Links */
    }

    nav ul li a {
        font-size: 1.2rem; /* Größere Schrift für mobile Ansicht */
    }

    .logo {
        max-width: 170px; /* Größeres Logo auf mobilen Geräten */
        min-width: 150px; /* Mindestgröße erhöhen */
    }

    main {
        padding: 40px 10px;
    }

    main h1 {
        font-size: 2.8rem; /* Etwas größere Überschrift */
    }

    section {
        padding: 30px 15px;
    }
}
