:root{
    --background-color: #E5E0CE;
    --text-color: #D38D51;
    --chapter-color: #ded2ba;
    --menu-entry-color: #dcb78f;
    --heading-font: 'Playfair Display', serif;
}

html {
    font-family: 'Figtree', sans-serif;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 0;
    margin: 0;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 2rem 5rem 0 2rem;
    background-color: var(--background-color);
    .data-group {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
        list-style-type: none;
        font-weight: 600;
        color: var(--text-color);
        letter-spacing: 0.125rem;
        font-size: 1.5rem;
    }
}

h3 {
    font-family: var(--heading-font);
    color: var(--text-color);
    margin: 0;
}

.menu {
    position: fixed;
    bottom: 10vh;
    right: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem;
    color: var(--menu-entry-color);
    font-size: 2rem;
    font-weight: 600;
    list-style-type: none;
    counter-reset: menu-counter 0;
    transform: translateX(calc(100% - 4.5rem)); /* Verschieben nach rechts, nur 3rem sichtbar lassen */
    transition: transform 0.6s ease; /* Für Animation beim Hover */
    
    .menu-entry {
        width: 100%;
        position: relative;
        a {
            color: var(--menu-entry-color);
            text-decoration: none;
            list-style-type: none;
            transition: 0.2s all;
            padding-left: 3rem; /* Raum für die Ziffern schaffen */
            display: block;
            margin-left: 2rem;
            white-space: nowrap; /* Verhindert Zeilenumbruch */
        }
        
        a::before {
            counter-increment: menu-counter;
            content: "0" counter(menu-counter) " ";
            position: absolute; /* Absolute Positionierung */
            left: 0; /* Links ausrichten */
            width: 3rem; /* Feste Breite für die Ziffern */
            text-align: center; /* Zentrieren der Ziffern */
        }
    }
    
    &:hover {
        transform: translateX(0); /* Beim Hover komplett einblenden */
    }
}

/* Der hover-Effekt für die Menüpunkte */
.menu-entry:hover a {
    color: var(--text-color);
    cursor: pointer;
}

.chapter {
    z-index: -100;
    color: var(--chapter-color);
    font-weight: bold;
    font-size: 30rem;
    margin: 0;
    padding: 0;
    line-height: 0.8;
}

.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 7rem 0 7rem 20rem;
    width: 70vw;
    max-width: 100rem;
    animation-timeline: view(30%);

    .intro-heading{
        font-family: var(--heading-font);
        font-size: 7rem;
        font-weight: 600;
        color: var(--text-color);
        padding-bottom: 2rem;       
    }

    .intro-text {
        font-size: 1.5rem;
        font-weight: 300;
        color: var(--text-color);
        margin-top: 0.5rem;
        line-height: 1.3;
        text-align: left;

        .highlight-word, a {
            text-decoration: none;
            color: var(--text-color);
            font-weight: 600;
            font-size: 2rem
        }
    }
}






.about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 15rem;
    width: 70vw;
    max-width: 100rem;

    .about-heading {
        font-family: var(--heading-font);
        font-size: 7rem;
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 1rem;
    }

    .about-text {
        font-size: 1.5rem;
        font-weight: 300;
        color: var(--text-color);
        line-height: 1.5;
        text-align: center;

        a {
            color: white;
            text-decoration: none;
            font-weight: 600;
        }
    }
}

.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(37vh, 1fr)); /* Drei gleich große Spalten */
    gap: 2rem; /* Abstand zwischen den Projekten */
    width: 50vw;
    padding-bottom: 2rem;
}

.single-project{
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
    background-color: var(--chapter-color);
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;

    .project-title {
        width: 80%;
        text-align: center;
        color: white;
        font-size: 2.5rem;
    }

    .project-year {
        font-size: 1.5rem;
        font-weight: 600;
        color: white;
        margin-top: 0.5rem;
    }

    
    .in-dev {
        padding: 0.5rem 2rem 0.5rem 2rem;
        background-color: rgba(193, 43, 43, 0.5);
        transform: rotate(3deg);
    }


    .project-information {
        position: absolute;
        height: 100%;
        width: 100%;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: var(--chapter-color);
        box-sizing: border-box;
        transform: translateX(-98%);
        transition: transform 0.5s ease-in-out;
        border-right: 20px solid var(--text-color);
        padding: 1rem;
        
        .project-description {
            width: 100%;
            padding: 0.5rem 0;
            font-size: 1.25rem;
            font-weight: 300;
            color: white;
            margin-bottom: 1rem;
        }
        .tech-stack {
            display: flex;
            flex-wrap: wrap;
            justify-content: left;
            align-items: center;
            gap: 0.5rem;
            list-style-type: none;
            width: 100%;
            padding: 0;
            margin-top: 0;
            .tech {
                background-color: var(--background-color);
                color: var(--text-color);
                padding: 0.5rem 1rem;
                font-size: 1rem;
                font-weight: 600;
            }
        }
    }
}

.single-project:hover {
    .project-information {
        transform: translateX(0); 
    }
    .project-title, .project-year {
        opacity: 0.5;
        transition: all 0.5s ease-in-out;
    }
}





.connect {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);

    .highlight-word {
        color: white;
        font-size: 2.5rem;
        font-family: var(--heading-font);
        margin-right: 0.5rem;   
    }

    .connect-slogan {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

.contact-form {
    display: grid;
    width: 60vw;
    max-width: 100rem;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    grid-template-areas: 
        "name message message"
        "email message message"
        "company submit submit"
    ;
    
    /* Grundlegende Stilregeln für alle Formularelemente */
    [class*="form-"] {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-color);
        padding: 1rem;
        background-color: transparent;
        border: none;
        border-left: 0.25rem solid var(--text-color);
        border-bottom: 0.25rem solid var(--background-color);
        width: 100%;
        box-sizing: border-box;
        transition: 0.2s all;

        &:focus {
            outline: none;
            border-left: 0.25rem solid var(--background-color);
            border-bottom: 0.25rem solid var(--text-color);
            border-left: none;
        }
    }
    
    /* Grid-Bereich Zuweisungen */
    .form-name {
        grid-area: name;
        &::placeholder {
            color: white;
            opacity: 0.6;
        }
    }
    
    .form-email {
        grid-area: email;
        &::placeholder {
            color: white;
            opacity: 0.6;
        }
    }
    
    .form-company {
        grid-area: company;
        &::placeholder {
            color: white;
            opacity: 0.6;
        }
    }
    
    .form-message {
        grid-area: message;
        resize: vertical;
        min-height: 150px;
        &::placeholder {
            color: white;
            opacity: 0.6;
        }
    }
    
    .form-submit {
        grid-area: submit;
        background-color: var(--chapter-color);
        color: var(--background-color);
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        
        &:hover {
            color: white;
            background-color: var(--text-color);
        }
    }
}


.advisor-banner{
    position: sticky;
    bottom: 0;
    z-index: 100;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--chapter-color);
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;

    .advisor-heading {
        font-family: var(--heading-font);
        font-size: 4rem;
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 1rem;
        padding-top: 4rem;
    }

    .advisor-text{
        font-size: 1.5rem;
        font-weight: 600;
        line-height: 1;
        text-align: center;
    }

    .advisor-button {
        color: var(--text-color);
        background-color: transparent;
        border: 2px solid var(--text-color);
        padding: 1rem 2rem;
        margin-bottom: 2rem;
        font-size: 2rem;
        font-weight: 600;
        cursor: pointer;
        transition: 0.2s all;
        border: none;

        &:hover {
            background-color: var(--text-color);
            color: white;
            transition: 0.2s all;
        }
    }
}