html {
    overflow-x: hidden;
    width: 100vw;
}

body {
    width: 100vw;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    color: #111;
    margin: 0px;
    padding: 0px;

    background: #fff; /* weiß - für Transparenz: ccc */
    height: 100%;
    position: relative; /* Positioniert den Body, damit z-index wirkt */
    z-index: 0; /* Standard-Z-Index */
}

.webgl {
    position: fixed; /* Bleibt hinter allen Elementen */
    margin: 0px;
    padding: 0px;
    top: 0;
    left: 0;
    width: 100%; /* Deckt die gesamte Breite ab */
    height: 100%; /* Deckt die gesamte Höhe ab */
    z-index: -1; /* Liegt hinter allen anderen Elementen */
}

/* Grundlayout für die Navigation */
header nav ul {
    position: fixed;
    top: 0;
    z-index: 1;
    width: 100vw;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0px;
    margin: 0px;
    padding: 1rem 0px 0px 0px;
    background-color: white;
    .home {
        grid-column: 1;
        justify-self: start;
        padding: 0px 5px 0.4rem 1rem;
        img{
            width: clamp(5rem, 25vw, 6rem);
        }
    }
    a {                                 /* Die Links in der Navigation */
        text-decoration: none;
        color: inherit;
    }
}





/* Container für die anderen Navigationslinks */
.nav-links {
    display: flex;
    grid-column: 2;
    padding: 0.3rem 1rem 0px 0px;
    margin: 0px;
    gap: 1rem;
    justify-self: right;
    justify-content: space-between;
}

.nav-links-bottom{
    display: flex;
    padding: 0px;
    margin: 0px;
    gap: 1rem;
    justify-self: left;
    justify-content: left;
}

    

/* Stil für das Hero-Element */
.hero {
    color: #FF8400;
    font-weight: normal;
}

.active {
    color: #FF8400;
}

    /* Hover-Effekte für Links */
a:hover {
    color: #bbb;
}
    

main {
    margin: 0px;
    padding: 0px;
    h1 {
        text-align: center;
        padding-top: 40vh;
        padding-bottom: 50vh;
        font-size: 2em;
        font-weight: normal;
    }

    h2 {
        padding: 4rem 0px 0px 1rem;
        font-size: 1em;
        font-weight: normal;
    }

    h2.top{
        padding-top: 10vh;
     }
    
    .image-container{
        position: relative;
        height: 30vw;
        img {
            margin: 0px;
            padding: 0px;
            width: 100%;
            height: 100%;
            object-fit: cover;
            overflow: hidden;
        }
    }
    .image-title {
        margin: 0px;
        position: absolute;
        top: 0;
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 0px;
        font-size: clamp(2rem, 3vw, 4rem);
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        width: 100%;  /* Titel-Box ist genauso breit wie das Bild */
        height: 100%; /* Titel-Box ist genauso hoch wie das Bild */
        display: flex;
        align-items: center; /* Vertikale Zentrierung des Textes */
        justify-content: center; /* Horizontale Zentrierung des Textes */
        text-align: center; /* Falls der Text umgebrochen werden muss */
    }
    .image-container:hover .image-title {
        visibility: visible;
        opacity: 1; /* Titel wird sichtbar, wenn der Container gehovered wird */
    }
    ul {
        padding: 0px;
        margin: 0px;

        display: flex;
        flex-direction: column;
        gap: 1vw;
        list-style: none;
        }

    .high-gall{
        padding-bottom: 6rem;
        }

    .bottom {
        padding-bottom: 6rem;
    }

    }
    p {
        font-size: 0.8rem;
    
        margin: 0px 1rem;
        border: 0px;
        padding: 0px 0px 2rem 0px;
    }
    .bigtext {
        font-size: clamp(1rem, 3vw, 2rem);
    
        margin: 0px 2vw;
        border: 0px;
        padding: 0px 0px 2rem 0px;
    }
    .about-image {
        padding-top: 10vh;
        display: block;          /* Damit margin wirkt */
        max-width: 45vw;        /* Maximale Bildbreite */
        width: 100%;             /* Skaliert kleiner bei kleinen Screens */
        height: auto;
        object-fit: cover;
        margin-left: auto;       /* Schiebt das Bild nach rechts */
        margin-right: 1rem;
        margin-bottom: 2rem;     /* Abstand unter dem Bild */    
    }

footer{
    margin: 0px 2vw;
    padding-bottom: 2vw;
    font-size: 1rem;
    nav ul {
        visibility: hidden;
        list-style: none;
        display: flex;
        justify-content: left;
        gap: 5px;
        margin: 0px;
        padding: 0px 0px 0rem 0px;
            a {                                 /* Die Links in der Navigation */
                text-decoration: none;
                color: inherit;
            }
    }
    a {
    text-decoration: none;
    color: inherit;
    }
}
