: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: #00FF1A;
    --colorText: #000;
}

/* 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

*/


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


/* 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 */

/* General Typography */

h1 {
    color: var(--colorMain);
    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;
}

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;
}

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;
}



/* 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);
}

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









/* Styling for Index / Landingpage */

#main-index {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 100dvh);
    grid-gap: 1px;
    margin: 0;
    padding: 0;
    background-color: var(--colorMain);
    overflow-x: hidden;
    border-bottom: 1px solid var(--colorMain);
}

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


/* 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(--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%;
}




/* Images */

.main-cover-wrapper {
    position: relative;
    background-color: white;
    height: 100%;
    border-radius: var(--smallCorner);
}

/* 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: 100vh;
}

/* Styling for Grid Elements */


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

/* 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%);

}






/* Styling for Subpages */

/* About Contact Imprint*/

main {
    margin: 10rem 4rem 0 4rem;
    overflow-y: hidden;
}

main a {
    text-decoration: underline;
}

/* Contact */
main.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 80rem;

}



/* Work */

#arrow {
    display: none;

}

/* Left Column -> Text */

#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);
}

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

#work-texts {
    position: fixed;
    left: 0;
    width: 45%;
    padding-left: 4rem;
    padding-right: 1.5rem;
}

.work-caption {
    position: relative;
    top: -.3rem;
    padding: 0;
    margin: 0;
    display: flex;
    align-content: flex-start;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    flex-direction: row;
    font-family: GangsterGroteskRegular;
    font-size: var(--fontSizeSmallDesktop);

}

.work-caption>a {
    font-size: var(--fontSizeSmallDesktop);
    transition: 300ms all;
}

.work-caption>a:hover {
    color: var(--colorMain);
}

/* Right Column -> Images */


#work-images {
    position: relative;
    width: 52%;
    left: 48%;
    top: 7rem;
    overflow-y: hidden;
}

figure {
    position: relative;
    margin: 0;
    padding: 0 0 50vh 0;
    width: 100%;
}

.serie>img {
    width: 100%;
}




/* CSS for Mobile Version */

@media (orientation: portrait) {

    /* General Typography */

    h1,
    h2 {

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

    p,
    a,
    li {
        font-size: var(--fontSizeMobile);
        line-height: var(--lineHeightMobile);
    }


    /* 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;
        background-color: var(--colorMain);
        overflow-x: hidden;
    }

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


    /* 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 */

    /* About Contact Imprint*/


    main {
        margin: 4rem 4rem 0 4rem;
        overflow-y: hidden;
    }



    /* Work */

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

    #work-texts {
        position: relative;
        left: 0;
        width: 100%;
        padding-left: 0rem;
        padding-right: 0rem;
    }

    #title-year {
        line-height: var(--lineHeightMobile);
    }

    #werktitel {
        font-size: var(--fontSizeLargeDesktop);
    }


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

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

    #work-images {
        position: absolute;
        width: 100%;
        left: 0%;
        top: 120vh;
        overflow-y: hidden;
    }

    figure {
        position: relative;
        margin: 0;
        padding: 0 4rem 45rem 4rem;
        width: 100%;
    }

    .serie>img {
        width: 100%;
    }


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



}