/* CSS Reset (Crucial!) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #d9d9d9;
    font-family: Arial, sans-serif;
}

h1 {
    color: #333;
}

nav {
    background-color:rgba(37, 54, 71, 0.2);
    padding: 1rem;
    position: sticky; /* Menüleiste bleibt beim Scrollen sichtbar */
    top: 0; /* Menüleiste klebt am oberen Rand */
    z-index: 1000; /* Stellt sicher, dass die Menüleiste über anderen Elementen liegt */
    width: 100%; 
}

nav ul {
    list-style: none;
    display: flex; /* Desktop view: side-by-side */
    justify-content: space-around;
    flex-wrap: wrap; /* In case of many links */
    transition: transform 0.3s ease-in-out; /* For the animation */
}

nav li {
    margin: 0 0.5rem;
}

nav a {
    display: block; /* Important for full link width */
    color: white;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 0.3rem;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #555;
}

nav a.active {
    background-color: #2869af;
    color: white;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    vertical-align: middle;
    margin-right: 0.3rem;
}

nav ul li a.social {
    background-color: transparent;
    border: none;
    padding: 0.3rem;
}

nav ul li a.social:hover {
    background-color: rgba(0, 123, 255, 0.2);
}

.menu-toggle {
    display: none; /* Hidden by default */
    position: absolute; /* For button positioning */
    top: 0rem; /* Adjust as needed */
    left: 1rem; /* Adjust as needed */
    z-index: 1001; /* Above the ul */
}

.menu-button {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}
@media (min-width: 768px) {
    .hamburger-button {
        display: none; /* Auf größeren Bildschirmen ausblenden */
    }
}
/* Mobile View (Media Query) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show on mobile */
    }
    nav {
        background-color:rgba(37, 54, 71, 0.2);
        padding: 1rem;
        height: 2.5rem;
        position: relative; /* For positioning the button */
    }

    nav ul {
        display: none; /* Initially hidden on mobile */
        flex-direction: column; /* Links stacked */
        position: fixed; /* Menu "sticks" to screen */
        top: 2.5rem; /* Below the button */
        left: 0;
        width: 100%;
        background-color: #333;
        z-index: 1000; /* Above other elements */
    }

    nav ul.show { /* Class to show the menu */
        display: flex; /* Make sure menu is visible */
        transform: translateY(0); /* End position: visible */
    }

    nav li {
        width: 100%;
        text-align: center;
    }

    nav a {
        padding: 1rem;
        font-size: 1rem;
    }
}
.textbox {
    width: auto; /* Breite passt sich dem Inhalt an */
    height: auto; /* Höhe passt sich dem Inhalt an */
    border: 1px solid #ccc; /* Rahmen um die Textbox */
    padding: 2.5rem; /* Innenabstand des Textes */
    overflow: auto; /* Scrollbalken anzeigen, wenn der Text zu lang ist */
    box-sizing: border-box; /* Padding und Border werden zur Breite und Höhe hinzugefügt */
    white-space: pre-wrap; /* Zeilenumbrüche im Text werden berücksichtigt */
    }
    p {
        margin-left: 2rem; 
         }


         #bildHintergrund {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1; /* Hinter dem Inhalt anzeigen */
            background-size: cover;
            background-position: center;
            transition: opacity 1s ease-in-out; /* Sanfter Übergang */
            opacity: 0.3; /* Halbtransparent */
         }
        #inhalt {
            position: relative; /* Inhalt über dem Hintergrund platzieren */
            z-index: 1;
            /* Weitere Stile für deinen Inhalt */
            padding: 2.5rem;
            background-color:#d9d9d9; /* Halbtransparenter Hintergrund für den Inhalt */
        }

        @keyframes bildwechsel {
            0%, 25% {
                opacity: 1;
            }
            33%, 58% {
                opacity: 0;
            }
            66%, 91% {
                opacity: 1;
            }
            100% {
                opacity: 0;
            }
        }

        .hamburger-button {
            background: none;
            border: none;
            cursor: pointer;
            padding: 10px;
        }
        
        .hamburger-icon {
            display: block;
            background-color: #333;
            height: 3px;
            width: 25px;
            margin: 5px auto;
            transition: all 0.3s ease-in-out;
        }
        
        .hamburger-icon::before,
        .hamburger-icon::after {
            content: '';
            display: block;
            background-color: #333;
            height: 3px;
            width: 25px;
            margin-top: 5px; /* Nur margin-top hinzufügen */
            transition: all 0.3s ease-in-out;
        }