/* Vester Partners // FSE Theme Styles */


/* BASE */
html{ 
    font-size: 18px; /* This font-size effects ALL font-sizes relatively */
    font-size: clamp(14px, 4vw, 19px);
}

a{
    color: var(--wp--preset--color--contrast);
    text-decoration: none;
}
a:hover{}
a:active{}
a:visited{}


/* IMAGES */
.wp-block-image img[loading="lazy"]{
    height: unset;
}

/* TEXT */
.entry-content > p{
    width: var(--wp--style--global--content-size);
    max-width: 52rem;
}

.entry-content > ul{
    width: 80%;
    max-width: 45rem;
}

.entry-content > p:not(.has-text-align-center):not(.has-text-align-right),
.entry-content > ul:not(.has-text-align-center):not(.has-text-align-right){
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative;
    left: calc((100vw - var(--wp--style--global--content-size)) / 2);
}

.entry-content > p.has-text-align-center{
    max-width: var(--wp--style--global--content-size);
}

.wp-block-column:nth-child(2) p{
    /*hyphens: auto;*/
}

/* UEBERSCHRIFTEN */
h1{
    text-transform: uppercase;
    letter-spacing: 0.3em;
    text-align: center;
    margin-bottom: 2em;
    font-size: var(--wp--preset--font-size--xx-large);
}
h2 {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-family: Futura Heavy;
    font-size: var(--wp--preset--font-size--large);
}


/* SPALTEN */
:where(.wp-block-columns.is-layout-flex){
    gap: 2em;
}


/* DETAILS & LIST */
div > ol > li{
    margin-bottom: 1em;
}
.wp-block-details summary{
    background-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="utf-8"%3F><svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 80 80" style="enable-background:new 0 0 80 80;" xml:space="preserve"><style type="text/css">.st0{fill:%23A6CA56;stroke:%23A6CA56;stroke-miterlimit:10;}</style><rect x="35.5" y="3.5" class="st0" width="9" height="72"/><rect x="3.5" y="34.5" class="st0" width="72" height="9"/></svg>');
    background-repeat: no-repeat;
    background-size: 0.8em;
    background-position: left 0.3em;
    padding-left: 1.5em;
}
details[open] summary{
    background-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="utf-8"%3F><svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 80 80" style="enable-background:new 0 0 80 80;" xml:space="preserve"><style type="text/css">.st0{fill:%23A6CA56;stroke:%23A6CA56;stroke-miterlimit:10;}</style><rect x="3.9" y="35.4" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -16.5079 39.8536)" class="st0" width="72" height="9"/><rect x="35.4" y="3.1" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -16.0079 39.6464)" class="st0" width="9" height="72"/></svg>');
}
.wp-block-details summary::marker,
details[open] summary::marker,
.wp-block-details summary::-webkit-details-marker,
details[open] summary::-webkit-details-marker{
    content: '';
    display: none;
}
.wp-block-details > ul{
    margin-top: 0.3em;
    margin-bottom: 1em;
    list-style-image: none;
    list-style-type: none;
}
.wp-block-details li{
    background-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="utf-8"%3F><svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 80 80" style="enable-background:new 0 0 80 80;" xml:space="preserve"><style type="text/css">.st0{fill:%237495B3;stroke:%237495B3;stroke-miterlimit:10;}</style><rect x="35.5" y="3.5" class="st0" width="9" height="72"/><rect x="3.5" y="34.5" class="st0" width="72" height="9"/></svg>');
    background-color: ;
    background-repeat: no-repeat;
    background-size: 0.8em;
    background-position: left 0.2em;
    padding-left: 1.3em;
    padding-bottom: 0.5em;
    line-height: 1.3;
}
.page-id-15 details{
    margin-bottom: 0.3em;
}



/* HEADER */
header > .wp-block-group > .wp-block-group{
    align-items: flex-end;
}
header .custom-logo{
    width: auto;
    height: 1.5em;
    margin-right: 0.6em;
    margin-bottom: 0.15em;
}
header .wp-block-navigation-item{
    margin-left: 1em;
    text-transform: lowercase;
    line-height: 1;
}
header .current-menu-item > a > span {
    color: var(--wp--preset--color--yellow);
}
.vp-mailto{
    color: #A6CA56;
    margin-left: 1.5em;
}

@media screen and (max-width: 1024px){
    header > div > div > .wp-container-content-1{
        flex-basis: 100%;
        justify-content: center;
        margin-bottom: 0.5em;
        margin-top: 0.2em;
    }
    header .custom-logo{
        margin-right: 0;
    }
    header .wp-block-navigation-item {
        margin-left: 0.8em;
    }
    header .wp-block-navigation-item:first-of-type {
        margin-left: 0;
    }
    header nav.is-responsive{
        flex-basis: 100%;
    }
    header nav{
        width: 100%;
    }
    header .wp-block-navigation__container{
        justify-content: center;
    }
}

@media screen and (max-width: 599px){ /* Breakpoint MENU Toggle: < 600px */
    header > div > div > .wp-container-content-1{
        flex-basis: calc(100% - 3em);
        justify-content: flex-start;
    }
    header nav.is-responsive{
        flex-basis: auto;
    }
    header > div > div > .wp-container-content-1{
        margin-bottom: 0;
    }
}

@media screen and (min-width: 600px){
    #modal-2-content .vp-legal{
        display: none;
    }
}


header{
    position: sticky;
    top: 0;
    z-index: 10000;
    padding: 0 0 0.5em;
    margin-top: 20px !important; /* margin-block-start 0 via WP Core */
    background-color: var(--wp--preset--color--base);
    transition: all 0.3s;
}

header nav .wp-block-navigation-item{
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}
header nav .wp-block-navigation-item:first-child{
    margin-left: 0;
}

header nav .wp-block-navigation-item:hover,
header nav .wp-block-navigation-item:active{
    /*border-bottom: 1px solid var(--wp--preset--color--contrast);*/
    color: var(--wp--preset--color--secondary);
}

@media screen and (max-width: 599px){

    header{
        margin-top: 0 !important;
    }
    header > div > div:nth-child(2){
        margin: 0 !important;
        width: 100%;
        max-width: 100% !important;
    }
    header > div > div:nth-child(2) > div {
        display: none;
    }
    
    header nav .wp-block-navigation-item,
    header nav .wp-block-navigation-item:first-child {
        /*margin-left: 0.5em;*/
        margin-left: 0;
    }
    header .wp-block-navigation__responsive-container-close{
        top: 1em;
    }
    header .wp-block-navigation__responsive-container.is-menu-open{
        animation: overlay-menu__fade-in-animation .5s ease-out;
    }

    #modal-2{
        /*filter: invert();*/
        background-color: var(--wp--preset--color--base) !important;
        color: var(--wp--preset--color--contrast) !important;
    }
    #modal-2-content .vp-mailto{
        margin-top: 1.2em;
        margin-bottom: 1.2em;
        color: var(--wp--preset--color--yellow) !important;
    }
    #modal-2-content .vp-legal{
        font-size: 0.7em;
    }
    header .wp-block-navigation__responsive-dialog{
        height: 100%;
    }
    #modal-3-content{
        height: 100%;
        padding-bottom: calc(2rem + 24px);
    }
    
    header .wp-block-navigation__container{
        justify-content: space-around;
        /*font-size: var(--wp--preset--font-size--x-large); // Modal Menu */
        flex-grow: 0.2;
    }
}



/* FOOTER */
footer{
    width: var(--wp--style--global--content-size);
    margin: auto;
}
footer > .wp-block-columns{
    margin-bottom: 0;
}
.vp-mailto-footer{
    display: none;
}
.vp-mailto-footer a{
    color: #A6CA56;
}

@media screen and (min-width: 600px){
    footer > .wp-block-columns{
        flex-wrap: nowrap !important;
    }
}
@media screen and (max-width: 599px){
    footer p{
        text-align: center !important;
        margin: 0;
    }
    footer > .wp-block-columns{
        gap: 0.5em;
        margin: 3em auto 1em auto;
    }
    footer > .wp-block-columns > div:first-child{
        order: 3;
    }
    .vp-mailto-footer{
        display: inline-block;
    }
}



/* Homepage LOGO */
.vp-content-logo-desktop{
    height: calc(100vh - 10rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (orientation: portrait){
    .vp-content-logo-desktop{
        min-height: 90vw;
    }
    .vp-content-logo-desktop .vp-logo-landscape{
        display: none;
    }
}
@media (orientation: landscape){
    .vp-content-logo-desktop .vp-logo-portrait{
        display: none;
    }
}
@media screen and (max-width: 1024px){
    .vp-content-logo-desktop{
        height: calc(100vh - 12.7rem);
    }
}
@media screen and (max-width: 599px){
    .vp-content-logo-desktop{
        height: calc(100vh - 16rem);
    }
}



/* REFERENCES */
.vep-reference:hover{
    
}
.vep-reference > div > p{
    max-width: 36em;
}
.vep-reference > div > p > a{
    text-decoration: underline;
}
.vep-reference > div:nth-child(1) > figure,
.vep-reference > div:nth-child(1) > .wp-block-group > figure{
    width: 100%;
    max-width: 280px;
}
@media screen and (max-width: 380px){
    .vep-reference > div:nth-child(1) > figure,
    .vep-reference > div:nth-child(1) > .wp-block-group > figure{
        max-width: 80%;
        margin-bottom: 0;
    }
}
@media screen and (max-width: 781px){
    .vep-reference > div:nth-child(2) .wp-block-spacer{
        max-height: 0em;
    }
    .vep-reference > div:nth-child(2) .wp-block-spacer + p{
        margin-top: 0em !important;
    }
}

.vep-reference img{
    width: 100%;
    outline: 1px solid transparent;
    outline-offset: 0.5em;
    border-radius: 5px;
    transition: all 0.3s;
}
.vep-reference img:hover{
    /*outline: 1px solid white;*/
    outline-offset: 1em;
}



/* PRIVACY POLICY */
.page-id-3 h1{
    text-align: left;
}
.page-id-3 h2{
    margin-top: 5em;
}
.page-id-3 h3{
    font-family: "Futura Heavy";
}

