@import url('https://fonts.googleapis.com/css2?family=Baskervville:ital@0;1&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

*,*::before,*::after {
    margin:0;
    padding: 0;
}

:root {
    font-size: 62.5%;
    --clr-main: white;
    --clr-secondary: red;
    --clr-checkbox-blue: rgb(0, 81, 255);
    --clr-footer: rgb(22, 22, 22);
    --margin: 0.4rem;
    --padding: 1rem;
    --borderRadius: 0.5rem;
    --footerHeight: 4vh;
    --footerMargin: 1rem;
    --logoHeight: 12rem;
    --font-size-1: 1rem;
    --font-size-2: 2rem;
    --font-size-3: 3rem;
    --font-size-4: 4rem;
    --font-size-5: 5rem;
    --gap: 1.2rem;
}

@media screen and (width < 700px) {
    :root {
        --footerMargin: 3rem;
    }
}

img,
picture {
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

h1 {
    font-weight: inherit;
    font-size: inherit;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

h2,h3 {
    font-weight: inherit;
    font-size: inherit;
    padding: var(--gap);
}

h3 {
    font-size: 1.2rem;
}

.highlighted {
    color: lightgray;
}

.event_header {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* HTML & Body */

html {
    overscroll-behavior: none;
}

body {
    font-family: "Libre Baskerville", serif;
    font-size: 1.6rem;
}

/* Header */

.header .logo {
    position: fixed;
    top: 0.7rem;
    left: var(--gap);
    z-index: 10;
}

.logo img {
    height: var(--logoHeight);
}

/* Main Container */

.transparent {
    opacity: 0.45;
    transition: 1s;
}

.main-frontpage {
    height: 100vh;
    overflow: scroll;
    scroll-snap-type: y mandatory;
    background-color: var(--clr-main);
    position: relative;
}

    @media screen and (width < 700px) {
        .header .logo {
            position: relative;
            width: max-content;
        }

        .main-frontpage {
            margin-top: 5rem;
            height: fit-content;
            scroll-snap-type: none;
        }
    }

.main-project,
.main-table,
.main-about,
.main-legal {
    min-height: calc(calc(100svh - var(--footerHeight)) - var(--footerMargin));
    overflow-x: hidden;
}

@media screen and (width < 700px) {
    .main-table {
        min-height: calc(100svh - var(--logoHeight));
    }
}

.main-about {
    display: grid;
    align-items: center;
}

.main-about > div {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    margin-inline: var(--gap);
}

.main-about > div > div:first-child {
    grid-column: 1 / span 6;
}

.main-about > div > div:last-child {
    grid-column: 9 / span 2;
    font-size: 1.6rem;
    align-self: start;
}

.main-about > div > div:last-child > figure img {
    margin-top: 1rem;
}

.about-adress {
    margin-block: 0 1.5rem;
}

@media screen and (width < 700px) {
    .about-adress {
        margin-block: 1.5rem 0.8rem;
    }
}

.about-adress img {
    width: 25rem;
}

.main-legal {
    margin: calc(var(--logoHeight) + 5rem) var(--gap) 3rem var(--gap);
}

.main-legal > div {
    width: 50%;
}

.main-legal p {
    margin-bottom: 1.5rem;
}

@media screen and (width < 700px) {
    .main-legal > div {
        width: 100%;
    }
}

    @media screen and (width < 700px) {
        .main-about {
            align-items: start;
        }
        .main-about > div {
            margin-top: 5rem;
            grid-template-columns: 1fr;
            row-gap: 2rem;
        }
        .main-about > div > div:first-child {
            grid-column: 1;
        }
        .main-about > div > div:last-child {
            grid-column: 1;
        }
    }

/* Projekt Sections */

.section {
    height: 100vh;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    position: relative;
    /* Grid */
    display: grid;
    grid-template-columns: 1.5fr 3fr 1.5fr;
    column-gap: var(--gap);
}

    @media screen and (width < 700px) {
        .section {
            grid-template-columns: 1fr;
            row-gap: 1rem;
            height: max-content;
        }
        .section:not(:last-of-type) {
            margin-bottom: 5rem;
        }
        /* .section:first-of-type {
            margin-top: 15rem;
        } */
    }

.image-wrapper {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper img {
    max-height: 100svh;
    width: 100%;
    object-fit: cover;
}

.project-info {
    grid-column: 1;
    align-self: center;
    justify-self: start;
    margin-left: var(--gap);
}

.project_location {
    grid-column: 3;
    align-self: center;
    justify-self: start;
}

.project_location img {
    width: 53%;
}


@media screen and (width < 700px) {
    .image-wrapper,
    .project-info,
    .project_location {
        grid-column: 1;
    }
    .image-wrapper img {
        width: 100vw;
    }
    .project_location {
        margin-left: var(--gap);
    }
    .project-info {
        padding-top: 1rem;
    }
}

/* Main Nav */

.main_nav {
    position: fixed;
    top: 0.7rem;
    right: var(--gap);
    z-index: 10;
}

@media screen and (width < 700px) {
    .main_nav {
        top: 1rem;
    }
}

.main_nav ul {
    list-style: none;
    display: flex;
    gap: var(--gap);
    font-size: 1.2rem;
}

/* Secondar Navigation */

.second-nav {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    min-width: 60px;; 
    max-width: 5vw;   
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
}

.second-nav.up {
    bottom: calc(var(--footerHeight) + var(--footerMargin));
    transition: 0.85s;
}

.second-nav img {
    width: 100%;
    opacity: 0.2;
    border-radius: 0.3rem;
}

.second-nav img.active {
    opacity: 1;
}

/* PROJEKT PAGE */

.main-project {
    margin-top: calc(var(--logoHeight) + 5rem);
}

.project-headline {
    position: relative;
    font-size: clamp(1.8rem, 0.9333rem + 0.8533vw, 3rem);
    padding: 1rem 0 2rem var(--gap);
    display: flex;
    justify-content: space-between;
}

.slideshow_arrows {
    display: flex;
    align-items: end;
    gap: 1.2rem;
    padding-right: var(--gap);
    font-size: 1.2rem;
}

.slideshow_arrows > div:hover {
    cursor: pointer;
}

@media screen and (width < 700px) {
    .main-project {
        margin-top: 5rem;
    }

    .slideshow_arrows {
        display: none;
    }
}

/* Project Slideshow */

.project-slideshow {
    overflow-x: hidden;
}

.project-slideshow {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
    -webkit-transition: opacity 1s ease;
    /* transition-delay: 0.2s; */
  }
  
.project-slideshow.slick-initialized {
    visibility: visible;
    opacity: 1;
}

.project-slideshow > div img {
    /* height: 100vh; */
    height: 60vh;
    object-fit: cover;
}

.project-slideshow figure {
    width: min-content;
}

.project-slideshow figcaption {
    pointer-events: all;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.slick-slider figcaption {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.slick-list.draggable {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.slick-slide {
    margin: 0 3px;
}

@media screen and (width < 700px) {
    .project-slideshow > div img {
        height: 30vh;
    }
}

/* Projekt Beschreibung */

.project-description {
    width: 50%;
    margin-block: 5rem;
    padding-inline: var(--gap);
}

@media screen and (width < 700px) {
    .project-description {
        width: auto;
        padding-inline: var(--gap);
    }
}

.project-description p:not(:last-of-type),
.main-about > div:first-child p:not(:last-of-type) {
    margin-bottom: 1.6rem;
}

.project-sticker {
    margin: 1.5rem var(--gap);
}

.project-sticker img {
    width: 30rem;
}

/* Project Overview Table */

.main-table {
    display: grid;
}

.project-list {
    padding-left: var(--gap);
    padding-top: calc(var(--logoHeight) + 3rem);
}

.project-list > div {
    margin-bottom: 3rem;
}

.project-list-item {
    margin-bottom: 4rem;
}

.project-list-item:hover {
    color: lightgrey;
}

.project-list-item:last-of-type {
    margin-bottom: 0;
}

.project-list:has(> :last-child:nth-child(2)) { 
    align-self: top;
    padding-top: calc(var(--logoHeight) + 5rem);
}

.project-list-item {
    font-size: 3rem;
}

    @media screen and (width < 700px) {
        .project-list-item {
            font-size: 2rem;
        }
    }

/* Footer */

.footer {
    height: var(--footerHeight);
    scroll-snap-align: start;
    font-size: 1rem;
    padding-inline: var(--gap);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--footerMargin);
}

@media screen and (width < 700px) {
    .footer {
        font-size: 0.7rem;
    }
}

.footer > div:last-child {
    display: flex;
    gap: 1rem;
}

.past_exhibition {
    display: flex;
    gap: 1rem;
    margin-left: var(--gap);
    overflow-x: scroll;
}

.past_exhibition img {
    /* width: 10vw;
    min-width: 100px; */
    height: 15rem;
}

/* Newsletter */

.newsletter {
    font-family: "Libre Baskerville", serif !important;
}

#mc_embed_signup {
    background:#fff;
    clear:left; 
}

#mc_embed_signup form {
    margin-inline: 0 !important;
}

#mc_embed_signup input:not(.button) {
    border: none !important;
    border-bottom: 1px solid black !important;
    border-radius: 0 !important;
}

#mc_embed_signup .mc-field-group {
    padding-bottom: none !important;
    clear: left;
    position: static !important;
    width: max-content !important;
    display: flex !important;
    min-height: 0 !important;
    flex-direction: column !important;
}

#mc_embed_signup .mc-field-group {
    padding-bottom: 0 !important
}

#mc_embed_signup .mc-field-group input {
    width: 15rem !important;
    padding: 0 !important;
}

#mc_embed_signup .button {
    background-color: white !important;
    color: black !important;
    text-align: end !important;
    font-family: inherit !important;
    height: inherit !important;
    line-height: inherit !important;
}

#mc_embed_signup .clear {
    display: flex !important;
    align-self: start !important;
}

.clear #mc-embedded-subscribe {
    display: flex !important;
    align-self: end !important;
}

#mc_embed_signup #mc-embedded-subscribe-form div.mce_inline_error {
    font-size: 0.7rem !important;
}

#mc-embedded-subscribe-form {
    margin-top: 30px !important;
}

#mc_embed_signup_scroll {
    display: flex !important;
    gap: 1rem !important;
}

#mc_embed_signup .button {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.2rem !important;
}

.signup-header {
    margin-bottom: 1rem;
    width: max-content !important;
}
