html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    height: 80px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.2rem;
    transition: color 0.3s;
}

nav a:hover {
    color: #007bff;
}

/* Burger-Menu */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

.hero {
    background: linear-gradient(to bottom, #001f3f, #003366);
    color: #fff;
    text-align: center;
    padding: 1rem 1rem 4rem;
    position: relative;
}

.logo-animation {
    position: relative;
    width: 90vw;
    max-width: 450px;
    height: 50vh;
    max-height: 500px;
    margin: 0 auto 1rem;
}

.c-part, .z-part, .final-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 80%;
    opacity: 0;
}

.final-logo {
    opacity: 0 !important;
}

.c-part {
    transform: translate(-200%, -50%);
    animation: slideFadeInC 2.8s ease-out forwards;
}

.z-part {
    transform: translate(200%, -50%);
    animation: slideFadeInZ 2.8s ease-out forwards;
}

.final-logo {
    animation: fadeInFinal 1.8s forwards 3s;
}

@keyframes slideFadeInC {
    0% { transform: translate(-200%, -50%); opacity: 0; }
    100% { transform: translate(-50%, -50%); opacity: 1; }
}

@keyframes slideFadeInZ {
    0% { transform: translate(200%, -50%); opacity: 0; }
    100% { transform: translate(-50%, -50%); opacity: 1; }
}

@keyframes fadeInFinal {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.hero h1 {
    font-size: 3.2rem;
    margin: 0.5rem 0;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.6);
}

.hero p {
    font-size: 1.5rem;
    max-width: 900px;
    margin: 0 auto 1rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}

main {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
    flex: 1;
}

h2 {
    font-size: 2.6rem;
    color: #007bff;
    text-align: center;
    margin-bottom: 2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.gallery img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.5s ease;
}

.gallery img:hover {
    transform: scale(1.12);
}

footer {
    background: #111;
    color: #ccc;
    text-align: center;
    padding: 2.5rem;
    margin-top: auto;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .burger {
        display: block;
    }

    nav ul {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background-color: #fff;
        flex-direction: column;
        text-align: center;
        transition: right 0.4s ease-in-out;
        box-shadow: -4px 0 15px rgba(0,0,0,0.2);
        padding-top: 6rem;
        z-index: 999;
    }

    nav ul.show {
        right: 0;
    }

    nav a {
        padding: 1.5rem;
        font-size: 1.3rem;
        border-bottom: 1px solid #eee;
    }

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s, visibility 0.4s;
        z-index: 998;
    }

    body.menu-open::before {
        opacity: 1;
        visibility: visible;
    }

    .hero { padding: 1rem 1rem 3rem; }
    .logo-animation { max-width: 350px; height: 40vh; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.4rem; }
    .gallery {
        grid-template-columns: 1fr;
    }

    .hero,
    .logo-animation {
        touch-action: pan-y pinch-zoom;   /* Erlaubt nur vertikal scrollen + Zoomen */
        overscroll-behavior-x: none;      /* Kein horizontaler Bounce/Rubber-Band-Effekt */
    }

    /* Globaler Schutz gegen horizontales Overscroll auf Mobile */
    html, body {
        overscroll-behavior-x: none;
        overflow-x: hidden;               /* Extra-Sicherheit – verhindert horizontalen Überstand */
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}


