/* 

Notizen

cursor: none 

*/

html {
    overflow-x: hidden;
    width: 100vw;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    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 */
    overflow-x: hidden;
}

.webgl {
    position: fixed; /* Bleibt hinter allen Elementen */
    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 {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin: 15vh clamp(5rem, 20vw, 25rem) 0rem clamp(5rem, 20vw, 25rem);
    padding: 0px;
    border-bottom: 1px solid black;
    a {                                 /* Die Links in der Navigation */
        text-decoration: none;
        color: inherit;
    }
    
}

.home {
    grid-column: 1;
    justify-self: start;
    padding-bottom: 0.4rem;
    img {
    width: 7rem;
    }

}

/* Container für die anderen Navigationslinks */
.nav-links {
    display: flex; /* Darstellungsart */
    justify-self: right; /* Inhalt rechts innerhalb der Spalte angeordnet */
    padding: 0px; /* Padding rechts (Abstand des Content zu Border) */
    align-items: center; /* Elemente vertikal zentriert anordnen */
    justify-content: space-between; /* Elemente der span-Gruppe gleichmäßig verteilen */
    gap: clamp(5px, 2vw, 30px);; /* Abstand zwischen den Elementen der span-Gruppe */
    grid-column: 3; /* Position des Elements im Grid des Eltern-Elements (header nav ul) */
}


/* 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: 0rem clamp(5rem, 20vw, 25rem);
    padding: 0rem;
    h1 {
        grid-column: 2;
        text-align: center;
        padding-top: 25vh;
        padding-bottom: 40vh;
        font-size: clamp(1rem, 4vw, 4rem);
        font-weight: normal;
    }
    h2 {
        text-align: left;
        font-size: 2em;
        font-weight: normal;
    }
    
    .image-container{
        position: relative;
        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            /* 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(1rem, 3vw, 2rem);
        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: 0 0 12rem 0;
        margin: 0px;

        display: grid;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto auto;
        gap: 1rem;
        list-style: none;
    }
    ul.project-views {
        display: flex;
        box-sizing: border-box;
        gap: 0.5rem;

        height: 60vh;          /* Galerie-Höhe */
        overflow-x: auto;
        overflow-y: hidden;

        width: 100vw;
        margin-left: calc(-1 * clamp(5rem, 20vw, 25rem));
        margin-right: calc(-1 * clamp(5rem, 20vw, 25rem));

        padding-left: clamp(5rem, 20vw, 25rem);
        padding-right: clamp(5rem, 20vw, 25rem);
        padding-bottom: 0;
        scrollbar-width: none;
    }
    ul.project-views li {
        flex: 0 0 auto;        /* NICHT schrumpfen */
        height: 100%;
        list-style: none;
        }
    p {
        font-size: clamp(1rem, 1vw, 1.5rem);
        text-align: justify;
        margin: 0px clamp(0rem, 10vw, 30rem) 0 0;
        border: 0px;
        padding: 1rem 0px 4rem 0px;
    }
    .bigtext {
        font-size: clamp(1rem, 3vw, 2rem);
    
        margin: 0px;
        border: 0px;
        padding: 0px 0px 2rem 0px;
    }
}

.about-image {
    padding-top: 3vh;
    display: block;          /* Damit margin wirkt */
    max-width: 250px;        /* Maximale Bildbreite */
    width: 100%;             /* Skaliert kleiner bei kleinen Screens */
    height: auto;
    object-fit: cover;
    margin-left: auto;       /* Schiebt das Bild nach rechts */
    margin-bottom: 2rem;     /* Abstand unter dem Bild */
}

.nav-links-bottom{
    display: flex;
        margin: 0px;
        padding: 0px;
        gap: 1rem;
    }

footer{
    margin: 0px clamp(5rem, 20vw, 25rem);
    padding-bottom: 2rem;
    nav ul {
        list-style: none;
        display: block;
        margin: 0px;
        padding: 0px 0px 16rem 0px;
            a {                                 /* Die Links in der Navigation */
                text-decoration: none;
                color: inherit;
            }
    }
    a {
    text-decoration: none;
    color: inherit;
    }
}
