:root {
    /* Variables for Type */
    --fontSizeLargeDesktop: 2.5rem;
    --fontSizeRegularDesktop: 2rem;
    --fontSizeSmallDesktop: 1.5rem;
    --lineHeightDesktop: 2.5rem;
    --lineHeightSmallDesktop: 1.8rem;


    --fontSizeMobile: 1.8rem;
    --lineHeightMobile: 2.25rem;

    --smallCorner: 5px; 



    /* Variables for Color */
    --colorMain: oklch(86.687% 0.29129 142.889);
    --colorBG: oklch(from var(--colorMain) 100 0 h);
    --colorText: oklch(from var(--colorMain) 0 c h);


    @media (prefers-color-scheme: dark) {
        --colorMain: #00FF1A;
        --colorBG: oklch(from var(--colorMain) 0.2 0 h);
        --colorText: oklch(from var(--colorMain) 100 0 h);
    }
}

/* Import Fonts */

@font-face {
    font-family: 'SerifBabe';
    src: url('../assets/fonts/serifbabe_regular-webfont.woff2') format('woff2'),
        url('../assets/fonts/serifbabe_regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GangsterGroteskRegular';
    src: url('../assets/fonts/GangsterGrotesk-Regular.woff2') format('woff2'),
        url('../assets/fonts/GangsterGrotesk-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GangsterGroteskBold';
    src: url('../assets/fonts/GangsterGrotesk-Bold.woff2') format('woff2'),
        url('../assets/fonts/GangsterGrotesk-Bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GangsterGroteskLight';
    src: url('../assets/fonts/GangsterGrotesk-Light.woff2') format('woff2'),
        url('../assets/fonts/GangsterGrotesk-Light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


/* 

Fonts in Use

Serifbabe by Charlotte Rhode
https: //charlotterohde.de/typefaces/ 

GangsterGrotext by Adrien Midzic 
https: //typefaces.pizza/ 
in Collaboration with Fresh Fonts

*/


/* *{outline: 1px solid red;} */






/* Reset CSS */
html,
body {
    font-size: calc( 1px + 1dvh);
    padding: 0;
    margin: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: GangsterGroteskRegular;
}

a,
button,
input,
label {
    cursor: pointer;
}

*,
*:after,
*:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

ul,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}




















/* Main CSS Desktop */


body:has(#main-index){
        background-color: var(--colorMain);
}

body:not(:has(#main-index)){
        background-color: var(--colorBG);
}


/* General Typography */

h1 {
    color: var(--colorText);
    font-family: GangsterGroteskRegular;
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
    font-size: var(--fontSizeRegularDesktop);
    line-height: var(--lineHeightDesktop);
    padding-top: 2rem;
    padding-bottom: .5rem;
    margin-bottom: 0;

    @media (orientation: portrait){
        font-size: calc(var(--fontSizeMobile) * 1.2);
        line-height: var(--lineHeightMobile);
        padding-top: 0rem;
        padding-bottom: .5rem;
        margin-bottom: 0;
    }
}

h2 {
    color: var(--colorText);
    font-family: GangsterGroteskRegular;
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
    font-size: var(--fontSizeRegularDesktop);
    line-height: var(--lineHeightDesktop);
    padding-top: 2rem;
    padding-bottom: .5rem;
    margin-bottom: 0;

    @media (orientation: portrait){
        font-size: var(--fontSizeMobile);
        line-height: var(--lineHeightMobile);
        padding-top: 0rem;
        padding-bottom: .5rem;
        margin-bottom: 0;
    }

}

p,
a,
li {
    color: var(--colorText);
    font-family: GangsterGroteskRegular;
    font-style: normal;
    font-weight: normal;
    font-size: var(--fontSizeRegularDesktop);
    line-height: var(--lineHeightDesktop);
    text-decoration: none;
}

::selection {
    color: var(--colorText);
    background-color: var(--colorMain);
}



/* Header */
/* NAV */
#nav-wrapper-index {
    position: fixed;
    width: 100%;
    top: -4rem;
    left: 0;
    padding-left: 3rem;
    padding-right: 3rem;
    z-index: 3;
}

#nav-wrapper {
    position: fixed;
    width: 100%;
    top: 0.8rem;
    left: 0;
    padding-left: 3rem;
    padding-right: 3rem;
    z-index: 3;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: var(--fontSizeLargeDesktop);
    margin: 1rem 1rem 0 1rem;
    user-select: none;
    text-decoration: none;
    color: var(--colorMain);
    white-space: nowrap;

}

nav > a {
    font-style: normal;
    font-weight: normal;
    color: var(--colorMain);
    font-size: var(--fontSizeLargeDesktop);
}

.nav-spacer {
    width: 100%;
    margin: 0 0.3rem 0 0.3rem;
    border-bottom: 1px solid var(--colorMain);
}

.spacer-left {
    padding-right: 1.42rem;
    transform-origin: left;
}
.spacer-right{
    transform-origin: right;
} 

.logotype {
    position: relative;
    top: 4.1rem;
    height: 7rem;
    width: auto;
    flex-shrink: 0;

    #letter3, #letter4, #letter5{
        transform: translateX(5px);
    }
}

.logo-letter{
    fill: var(--colorMain);
    transition: transform 300ms ease;
}


.spread{
    #letter1, #letter2{
        transform: translateX(-45px);
    }
    #letter3, #letter4, #letter5{
        transform: translateX(35px);
    }

    #letter6, #letter7{
        transform: translateX(-10px);
    }
    #letter8, #letter9, #letter10{
        transform: translateX(68px);
    }
}


.contact {
    order: 1;
}



#logo-clicker {
    display: none;
}













/* Footer */
footer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: var(--fontSizeRegularDesktop);
    user-select: none;
    text-decoration: none;
    color: var(--colorMain);
    background-color: var(--colorBG);
}

footer > a {
    color: var(--colorMain);
}











/* Styling for Index / landing-page */

#main-index {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--colorMain);

    a {
        display: block;
        text-decoration: none;
        width: 100%;
        height: 100dvh;
    }
}


/* Styling for Grid Elements */
.main-cover-wrapper {
    position: relative;
    background-color: var(--colorBG);
    height: 100%;
    border-radius: var(--smallCorner);
    transition: background-color ease 300ms;
}




/* Images */

/* Styling for Fullscreen Image */
.main-cover-wrapper:first-child {
    grid-column: span 2;
}

.main-cover-wrapper:first-child .main-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.main-img {
    position: relative;
    transition: transform 300ms;
    width: 100%;
    height: 100%;
    z-index: 2;
    object-fit: cover;
    border-radius: var(--smallCorner);
    user-select: none;
}

/* Hover Effects */

.main-cover-wrapper:first-child:hover .main-img {
    transform: scale(1) translateY(0) translateX(0)
}

.main-cover-wrapper:hover{

    .main-img{
        transform: scale(62.5%) translateY(-15%) translateX(20%);
    }
}



/* Text Elements */

.main-caption {
    width: 100%;
    height: 0%;
    margin-left: 4rem;
    z-index: 1;
    color: var(--colorMain);

    /* .main-cover-wrapper:first-of-type &{
        color: var(--colorMain);
    } */
}


.main-caption .werktitel,
.main-caption .date-work,
.main-caption .kurzbeschreibung {
    font-size: var(--fontSizeRegularDesktop);
    line-height: var(--lineHeightDesktop);
}

.main-cover-wrapper:first-child .main-caption {
    position: absolute;
    top: 93%;
    height: 0;
    z-index: 3 !important;
}

.main-cover-wrapper:first-child .kurzbeschreibung {
    display: none;
}


.main-caption .main-tile-date-wrapper {
    position: absolute;
    top: 80%;
    width: 23%;
}

.main-caption .kurzbeschreibung {
    position: absolute;
    left: 31.2%;
    top: 80%;
    width: 62.5%;
}




















/* Styling for Subpages */

/* About Contact Imprint*/

main{
    &#about, &#imprint{
        padding: 10rem 4rem;
        width: 50%;
        overflow-y: hidden;
    }

    &#contact{
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 10rem 0;
    }

    h1{padding-top: 4rem;}

    a{
        text-decoration: underline;
    }

    .mobile-headline{
        display: none;
    }

    @media screen and (orientation: portrait) {
        &#about, &#imprint,  &#contact{
            padding: 4rem 4rem !important;
            width: 100%;
        }

        .mobile-headline{
            display: block;
        }
    }
}




/* Work */

#arrow {
    display: none;

}

/* Left Column -> Text */
.work-texts {
    position: fixed;
    left: 0;
        width: clamp(calc(30ch * 2.5), 50vw, calc(60ch * 2.5));
    padding: 10rem 4rem;
    box-sizing: border-box;

}


.title-year {
    color: var(--colorText);
    font-family: GangsterGroteskRegular;
    font-style: normal;
    font-weight: normal;
    line-height: var(--lineHeightDesktop);
    text-decoration: none;
}

.werktitel {
    font-size: var(--fontSizeLargeDesktop);
    margin: 0;
    padding: 0;
    padding-bottom: .5rem;
}

.date-work {
    font-family: GangsterGroteskLight;
    font-size: var(--fontSizeRegularDesktop);
}



.work-caption {
    position: relative;
    /* top: -.3rem; */
    padding: 0;
    margin: 0;

    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: nowrap;

    font-family: GangsterGroteskRegular;
    font-size: var(--fontSizeSmallDesktop);

    color: var(--colorText);

    .work-caption-title {
        order: 1
    }

    a {
        font-size: var(--fontSizeSmallDesktop);
        transition: 300ms all;

        &:hover {
            color: var(--colorMain);
        }
    }
}



/* Right Column -> Images */

.work-images {
    position: relative;
    width: 50%;
    left: 50%;
    top: 10rem;
    padding:0 4rem 4rem 0;

    display: flex;
    flex-direction: column;
    gap: 50dvh;
}

figure {
    /* position: relative; */
    margin: 0;
    padding: 0;
    /* width: 100%; */
    /* max-height: 100dvh; */

    &:last-child{
        padding-bottom: calc(30dvh);
    }

    img {
        /* width: 100%; */
        max-height: 100dvh;
        object-fit: contain;
        object-position: right;
    }
}























/* CSS for Mobile Version */

@media (orientation: portrait) {


    /* Header / Nav */
    #nav-wrapper,
    .nav-spacer {
        display: none;
    }

    .logotype {
        height: 10rem;
        position: fixed;
        top: 2rem;
        left: 50%;
        transform: translateX(-50%);
    }

    #logo-clicker {
        display: block;
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 27rem;
        height: 12rem;
        z-index: 4;
        cursor: pointer;
    }

    /* Animated Menu */

    .about,
    .contact {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);

    }

    .about {
        top: 15%;
        animation-delay: 0ms;
    }

    .contact {
        top: 19%;
        animation-delay: 100ms;

    }

    .hidden {
        opacity: 0%;
        pointer-events: none;
    }

    .show {
        opacity: 0%;
        animation: menuAnimationShow 400ms ease-in-out 1 forwards;
        pointer-events: all;
    }

    .hide {
        opacity: 100%;
        animation: menuAnimationHide 400ms ease-in-out 1 forwards;
        pointer-events: none;
    }


    @keyframes menuAnimationShow {
        0% {
            opacity: 0%;
            transform: translateX(-50%) translateY(-100%);
        }

        100% {
            opacity: 100%;
            transform: translateX(-50%) translateY(0%);
        }

    }

    @keyframes menuAnimationHide {
        0% {
            opacity: 100%;
            transform: translateX(-50%) translateY(0%);
        }

        100% {
            opacity: 0%;
            transform: translateX(-50%) translateY(-100%);
        }

    }

    /* Styling for Index / Landing-Page */

    #main-index {
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
        gap: 1px;
        background-color: var(--colorMain);
        overflow-x: hidden;
    }

    #main-index a {
        text-decoration: none;
    }

    footer{
        padding-bottom: 4rem;
        background: linear-gradient(180deg, var(--colorBG) 70%, var(--colorMain) 100%);
    }


    /* Text Elements */

    .main-caption {
        width: 100%;
        height: 0%;
        margin-left: 4rem;
        color: var(--colorMain);
        z-index: 1;
    }

    .main-caption .werktitel,
    .main-caption .date-work,
    .main-caption .kurzbeschreibung {
        font-size: var(--fontSizeMobile);
        line-height: var(--lineHeightMobile);
    }

    .main-cover-wrapper .main-caption {
        position: absolute;
        top: 90%;
        height: 0;
        width: 80vw;
        z-index: 3 !important;
    }

    .main-caption .main-tile-date-wrapper {
        width: 80vw;
    }

    .main-caption .kurzbeschreibung {
        display: none;
    }



    /* Images */

    /* Styling for Fullscreen Image */

    .main-img {
        position: relative;
        object-fit: cover;
        width: 100%;
        height: 100vh;
        margin-bottom: -0.8rem;
    }

    .main-cover-wrapper:first-child {
        margin-bottom: 0rem;
        box-shadow: var(--colorMain) inset 0px 0px;
    }

    /* Disable Hover Effects */

    .main-cover-wrapper:hover .main-img {
        transform: scale(1) translateY(0) translateX(0);
    }





    /* Styling for Subpages */

    /* Work */

    main#work {
        padding: 4rem; 
        display: flex;
        flex-direction: column;
    }

    .work-texts {
        position: relative;
        left: 0;
        width: 100%;
        padding: 0;

        .title-year {
            line-height: var(--lineHeightMobile);
            
            .werktitel {
                font-size: var(--fontSizeLargeDesktop);
                padding: 0;
                padding-bottom: .5rem;
                margin: 0;
                color: var(--colorText);
            }
            
            .date-work{
                font-size: var(--fontSizeMobile);
            }

        }
    }




    .work-images {
        position: absolute;
        width: 100%;
        left: 0%;
        padding: 4rem;
        top: 100dvh;
        overflow-y: hidden;



        figure {
            position: relative;
            margin: 0;
            width: 100%;

            img {
                width: 100%;
                object-position: center; 
            }

            .work-caption,.work-caption > a {
                font-size: var(--fontSizeMobile);
            }

            .work-caption-title {
                line-height: var(--lineHeightMobile);
            }



        }
    }


    #arrow {
        display: block;
        position: absolute;
        width: 3rem;
        height: auto;
        left: 50%;
        top: 92.5%;
        opacity: 100%;
        transform: translateX(-50%);

        .path{
            stroke: var(--colorMain);
        }
    }


}