body {
    font-family: sans-serif;
    padding-left: 16px;
    padding-right: 16px;
    margin: 0;
    overflow-x: hidden;
}

h1 {
    margin-top: 80px;
    color: gray;
    font-size: 2.5rem;
}

.wave {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    height: 150px;
    width: 100%;
    object-fit: cover;
}

a {
    color: white;
    text-decoration: none;
    margin-right: 10px;
}

a:hover {
    text-decoration: underline;
}

.nav {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.main-img {
    width: 100%;
    border-radius: 40px;
    margin-top: 20px;
}

/* FIX: Punkt vor .logo ergänzt, damit es im Mobile-Layout greift */
.logo {
    position: absolute;
    right: 16px;
    width: 120px;
    top: 16px;
    z-index: 10;
}

.welle-unten {
    width: calc(100% + 32px);
    margin-left: -16px;
    display: block;
    margin-top: 40px;
}

/* NEU: Styling für die Inhalte des Impressums */
.impressum-content {
    margin-top: 40px;
    color: #333;
    line-height: 1.6; /* Macht den Rechtstext deutlich lesbarer */
}

.impressum-content h3 {
    color: gray;
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.impressum-content address {
    font-style: normal; /* Entfernt das standardmäßige HTML-Kursiv bei Adressen */
    margin-bottom: 20px;
}

.impressum-content a {
    color: #0066cc; /* Links im Text blau färben, da sie nicht in der Nav sind */
}

.impressum-content a:hover {
    text-decoration: underline;
}


/* Medium Screens (ab 850px) */
@media (min-width: 850px) {
    body {
        padding-left: 64px;
        padding-right: 64px;
    }

    .desktop-left-right {
        display: flex;
        align-items: center;
        gap: 40px;
    }

    .wave {
        height: 300px;
    }

    h1 {
        margin-top: 170px;
        font-size: 3rem;
    }

    .logo {
        width: 250px;
        top: 24px;
        right: 40px;
    }

    .main-img {
        width: 50%;
        margin-top: 180px;
        border-radius: 240px;
    }

    .contact-main-img {
        width: 35%;
        margin-top: 220px;
        border-radius: 240px;
    }

    .project-grid {
        grid-template-columns: 1fr 1fr;
    }

    .content-section {
        margin-top: 100px;
    }

    .footer {
        position: relative;
        margin-top: -5px;
        width: calc(100% + 128px);
        margin-left: -64px;
    }

    .welle-unten {
        position: relative;
        margin-top: 60px;
        bottom: auto;
        width: calc(100% + 128px);
        margin-left: -64px;
    }
}

/* Large Screens (ab 1200px) */
@media (min-width: 1200px) {
    body {
        padding-left: 128px;
        padding-right: 128px;
    }

    a {
        margin-right: 16px;
    }

    .welle-unten, .footer {
        width: calc(100% + 256px);
        margin-left: -128px;
    }

    .wave {
        height: 250px;
    }

    .main-img {
        width: 30%;
        margin-top: 170px;
    }

    h1 {
        margin-top: 200px;
    }

    .contact-main-img {
        width: 20%;
        margin-top: 50px;
    }

    .project-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .logo {
        top: 10px;
    }
}