/*
Theme Name: gpem
Description: Ein modernes Wordpress-Theme für Gian Paolo e Marco 
Author: Studio Tillack Knöll, Design Practice 
Author URI: https://www.studiotillackknoell.com 
Text Domain: gpem 
Version: 1.0
*/

::selection {
    background-color: white;
    color: black;
}

body {
    background: black;
    scroll-behavior: smooth;
}

img { 
    pointer-events: none;
}

header {
    z-index: 2;
    position: fixed;
    top: 20px;
    height: 480px;
    display: flex;
    flex-direction: row;
    width: 100%;
    color: var(--col-white);
    transition: .85s ease all;
}

.main--is-active header {
    height: 84px; /* gpem 45 */
}

header img {
    width: 120px;
}

header div {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    #header--logo {
        align-items: flex-start;
    }

.section__galerie.is-background,
.section__galerie.is-background .section__galerie--inner,
.section__galerie.is-background .section__galerie--inner picture,
.section__galerie.is-background .section__galerie--inner img{
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
}

.content .section__galerie {
    width: 66%;
    margin-left: 17%;
}

.section__galerie.is-big .section__galerie--inner {
    width: 70%;
    margin: 0 15%;
}

.is-big .section__galerie--inner img {
    object-fit: contain;
}

.is-full .section__galerie--inner img {
    /* object-fit: cover; */
    object-fit: contain;
}

.is-background .section__galerie--inner img {
    object-fit: cover;
    /* object-fit: contain; */
}

.section__galerie--inner picture {
    position: relative;
    /* background: white; */
}

.section__galerie.is-small .section__galerie--inner picture {
    padding: 20px 10vh;
}

    @media (max-width: 768px) {
        .section__galerie.is-small .section__galerie--inner picture {
            padding: 20vh 10vw;
        }        
    }

.section__galerie.is-small .section__galerie--inner img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.section__galerie:not(.is-small) .section__galerie--inner figcaption {
    position: absolute;
    top: var(--gutter);
    left: var(--gutter);
    mix-blend-mode: difference;
    color: white;
}

.swiper-button-prev,
.swiper-button-next {
    width: 32px !important;
    height: 32px !important;
    background: white;
    border-radius: 16px;
    mix-blend-mode: difference;
}

.swiper-button-prev:after, 
.swiper-button-next:after {
    font-size: 15px !important;
    color: black;
}

main {
    z-index: 10;
    position: fixed;
    width: calc( 100vw - 6 * var(--gutter));
    height: calc( 100vh - 120px );
    min-height: 670px;
    top: calc( 100vh - 120px);
    margin: 0 calc( 3 * var(--gutter) );
    padding: 20px;
    background: rgba(0, 0, 0, .95);
    color: var(--col-white);
    transition: .85s ease all;
    border-radius: 40px 40px 0px 0px;
    overflow-y: scroll;
    scroll-behavior: smooth;

}

body .content {
    opacity: 0;
    transition: .85s ease all;
}

body.main--is-active .content {
    opacity: 1;
}



main .content {
    height: calc( 100vh - 240px ) !important;
}

    @media (max-width: 1024px) {
        main .content {
            height: calc( 100vh - 300px ) !important;
        }

        main .content--inner {
            margin-bottom: 80px;
        }
    }

    .content--inner {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    main.is-active {
        top: 120px;
        bottom: 0;
    }

    body article.is-background {
        overflow: hidden;
    }

    body article.is-background img {
        filter: blur(0px);
        scale: 1.0;
        transition: .85s all ease;
    }

    body.main--is-active article.is-background img {
        filter: blur(7px);
        scale: 1.1;
    }

.accordion .accordion-header h1::after {
    content: '';
    margin-left: 0px;
    transition: .2s ease all;
}

.accordion .accordion-header:hover h1::after {
    content: '\2193';
    display: inline-block;
    margin-left: 20px;
}

.accordion.is-active .accordion-header h1::after {
    content: '\2191';
    display: inline-block;
    margin-left: 20px;
}

.accordion .accordion-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height .85s ease;
}

.is-trigger {
    position: relative;
    height: 80px;
}

.is-trigger a {
    color: var(--col-white);
}

.is-trigger span {
    position: absolute;
}

main .is-trigger .is-passive,
main.is-active .is-trigger .is-active {
    opacity: 0;
} 

main.is-active .is-trigger .is-passive,
main .is-trigger .is-active {
    opacity: 1;
}

.page .section__headline,
.section__copy,
.section__aufzahlung,
.section__datei {
    padding: 0 25%;
}

    @media (max-width: 1024px) {
        .page .section__headline,
        .section__copy,
        .section__aufzahlung,
        .section__datei {
            padding: 0;
        }       
    }

.page article:last-of-type {
    padding-bottom: 40px;
}

main .content {
    display: flex;
    gap: 20px;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

section[data-title="bottom--nav"] {
    width: 100%;
}

section[data-title="bottom--nav"] nav ul {
    display: flex;
    flex-direction: row;
    font-family: sans-serif;
    gap: 20px;
    padding: 0px;
    justify-content: center;
}

section[data-title="bottom--nav"] nav ul li {
    list-style: none;
}

section[data-title="bottom--nav"] nav ul li a {
    color: var(--col-white);
    text-decoration: none
}

.speisekarte__kategorie h2 {
    text-transform: uppercase;
    text-align: center;
    margin: 40px 0 30px 0;
}

/* .speisekarte-produktklasse > h3::before {
    content: '\25CF';
    margin-right: 10px;
} */

.speisekarte__gericht {
    display: flex;
}

.speisekarte__gericht .gericht__details {
    flex: 3;
}
.speisekarte__gericht .gericht__preis {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    font-variant-numeric: tabular-nums;
}

.has-klassentitel .produktklasse-gerichte {
    /* border-left: 1px solid white;
    margin-left: 6px; */
    padding-left: 20px;
}

.speisekarte-produktklasse + .speisekarte-produktklasse {
    margin-top: 20px;
}

.speisekarte__menu {
    top: 0;
    position: -webkit-sticky;
    position: sticky;
    z-index: 1;
    list-style: none;
    padding-left: 0px;
    width: 100%;
    justify-content: space-around;
    text-transform: uppercase;
    padding: 60px 0;
}

.speisekarte__menu a {
    color: white;
    text-decoration: none;
}

.section__speisekarte {
    overscroll-behavior: contain;
    position: relative;
    width: 50%;
    /* min-width: 800px; */
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    margin-left: 25%;
}


@media (max-width: 1024px) {
    .section__speisekarte {
        overscroll-behavior: contain;
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        scroll-behavior: smooth;
        margin-left: 0%;
    }    
}

section[data-title="Speisekarte"] .accordion-body {
    display: flex;
    justify-content: center;
    scroll-behavior: smooth;

}

.accordion-body article + article {
    padding-top: 40px;
}

p.inhaltsstoffe {
    margin-left: 20px;
    text-transform: none;
}

.speisekarte,
.scroller {
    display: flex;
    gap: 20px;
    justify-content: center;
    scroll-behavior: smooth;
    flex-direction: column;

  }

.scroller {
    text-align: center;
}

.speisekarte {
    flex-direction: column;
    
}

@media (max-width: 768px) {
    main {
        width: calc( 100vw - 2 * var(--gutter));
        margin: 0 var(--gutter);
        top: calc( 100vh - 160px );
        height: calc( 100vh - 100px );
    }

    main.is-active {
        top: 100px;
    }

    .section__speisekarte {
        width: 100%;
        min-width: auto;
    }

    .scroller {
        flex-direction: column;
        gap: 5px;
    }

    .scroller li {
        text-align: center;
    }

    .speisekarte__menu {
        padding: 40px 0;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }

    header {
        flex-direction: column;
    }

    header #header--logo {
        order: 1;
    }

    header #oeffnungszeiten {
        order: 2;
        opacity: 1;
    }

    header #anschrift {
        order: 3;
        opacity: 1;
    }

    header #oeffnungszeiten,
    header #anschrift {
        transition: opacity .85s ease;
    }

    .main--is-active header #oeffnungszeiten,
    .main--is-active header #anschrift {
        opacity: 0;
    }

}


[class^="section__"] + [class^="section__"] {
    padding-top: var(--gutter);
}

.section__datei,
.section__button {
    text-align: center;
}

.is-button {
    border-radius: 20px;
    background-color: white;
    color: black;
    padding: 10px 20px;
    display: inline-block;
}

a.is-button {
    text-decoration: none;
}

.section__aufzahlung tr {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.section__aufzahlung tbody {
    display: flex;
    flex-direction: column;
    gap: 20px;  
}

@media (max-width: 1024px) {
    .content .section__galerie {
        width: 100%;
        margin-left: 0%;
    }

    .section__galerie.is-small .section__galerie--inner picture {
        padding: 0vw;
    }
}