/* Base Styles - These apply to all devices */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}
.logo {
    font-size: 20px;
    font-weight: bold;
}
.logo span {
    font-weight: normal;
}
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
nav ul li {
    margin-left: 20px;
}
nav ul li a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
}
.content, .container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto; /* Centers content */
    padding: 0 15px;
}
.section {
    border-image: 8px;
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    flex-direction: row; /* Default to side-by-side layout on wide screens */
    justify-content: space-between; /* Distribute space between text and images */
}
.section:nth-child(even) {
    background-color: #f4f4f4;
}
.section img {
    width: auto; /* Auto width to maintain image proportions */
    max-width: 50%; /* Use up to 50% of the section width */
    height: auto;
    margin: 10px; /* Maintain spacing around the image */
}
.text {
    max-width: 45%; /* Text can use up to 45% of the section width */
}

/* Media Queries for Mobile Devices (max-width: 600px) */
@media (max-width: 600px) {
    header, nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin: 10px 0; /* Increases spacing */
    }
    .logo, nav ul li a {
        font-size: 14px; /* Smaller text for mobile devices */
    }
    .section {
        flex-direction: column; /* Stack sections vertically on small screens */
    }
    .section img, .text {
        max-width: 100%; /* Allow both image and text to fill the section */
    }
}


/* --- Desktop (Standard) --- */
.menu-toggle {
    display: none;
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

/* --- Mobilgeräte: Hamburger-Menü --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 28px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1000;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 15px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .main-nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    header {
        flex-wrap: wrap;
        position: relative;
    }

    footer {
        background: #333;
        color: #fff;
        text-align: center;
        padding: 10px 0;
        margin-top: 20px;
    }
    
}

