/* Globale Einstellungen (Schriftart für die gesamte Seite) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Navigationsleiste (Taskleiste) --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background-color: white; 
    display: flex;
    justify-content: space-between; /* Logo links, Menü rechts */
    align-items: center;
    padding: 0 50px;
    z-index: 1000;
}

.logo {
    color: #000042;
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    list-style: none; /* Entfernt die HTML-Listenpunkte */
    display: flex;    /* Setzt die Menüpunkte nebeneinander! */
    gap: 30px;        /* Abstand zwischen den Wörtern */
    margin: 0;
}

.nav-links a {
    color: #000042;
    text-decoration: none; /* Entfernt den blauen Unterstrich */
    font-size: 16px;
    font-weight: 500;
}

.nav-links a:hover {
    color: #CC5500; /* Orange Farbe, wenn man mit der Maus drüberfährt */
}


/* --- Abgedunkeltes Foto (Hero Image) --- */
.hero-image {
    height: 45vh; /* Deutlich höher (vorher 40vh) */
    width: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    
    /* Der Trapez-Effekt: Schneidet das Bild unten rechts schräg ab */
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    
    /* Alternativen (einfach auskommentieren und testen): */
    /* Symmetrisches Trapez (unten schmaler): clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%); */
    /* Schräge in die andere Richtung: clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%); */
}

.hero-image h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    /* Den Text leicht nach oben schieben, damit er optisch mittig über der Schräge sitzt */
    transform: translateY(-15px); 
}

/* --- Sanftes Scrollen für die gesamte Seite aktivieren --- */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background-color: #f9f9f9;
}

/* Der Container braucht keine besonderen Scroll-Einschränkungen mehr */
.scroll-container {
    width: 100%;
}

/* --- Einzelne "Seiten" --- */
.page-section {
    /* WICHTIG: min-height statt height! 
       Die Sektion ist mindestens einen Bildschirm hoch, wächst aber bei langem Text automatisch mit. */
    min-height: 100vh; 
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 70px; /* Platz für die Navbar */
    background-color: #f9f9f9; 
}

/* --- Body der jeweiligen Seite --- */
.page-content {
    flex-grow: 1; 
    background-color: #f9f9f9;
    padding: 20px 10% 40px 10%; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.page-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    max-width: 800px;
    margin-bottom: 20px;
}

/* Style for the hamburger icon (hidden on desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 20px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #000042;
    margin: 3px 0;
    transition: 0.3s;
}

/* Mobile styles applied when screen is 768px or smaller */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 0;
        background-color: white;
        z-index: 1000;  
        gap: 0;
    }

    /* Class added by JavaScript to show the menu */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }
}
