/*
Theme Name: zentralwerk
Theme URI: http://btsa.de/zentralwerk
Author: BTSA
Author URI: http://btsa.de
Description: Wordpress Theme for Zentralwerk Dresden
Version: 0.2.0
Requires at least: 6.8
Tested up to: 7.0.4
Requires PHP: 7.4
License: GNU General Public License v3 or Later
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: zentralwerk

zentralwerk is distributed under the terms of the GNU GPL
*/

/*
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}html{scroll-behavior:smooth}body{line-height:1}a{text-decoration-skip-ink:auto}a[href^="tel"]{color:inherit;text-decoration:none}button{outline:0}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}q{display:inline;font-style:italic}q:before{content:'"';font-style:normal}q:after{content:'"';font-style:normal}textarea,input[type="text"],input[type="button"],input[type="submit"],input[type="reset"],input[type="search"],input[type="password"]{appearance:none;border-radius:0}input[type="search"]{appearance:textfield}table{border-collapse:collapse;border-spacing:0}th,td{padding:2px}big{font-size:120%}small,sup,sub{font-size:80%}sup{vertical-align:super}sub{vertical-align:sub}dd{margin-left:20px}kbd,tt{font-family:courier;font-size:12px}ins{text-decoration:underline}del,strike,s{text-decoration:line-through}dt{font-weight:bold}address,cite,var{font-style:italic}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
.sticky{}.bypostauthor{}.wp-caption{}.wp-caption-text{}.gallery-caption{}.alignright{}.alignleft{}.aligncenter{}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important;word-break:normal}
.screen-reader-text:focus{background-color:#f7f7f7;border-radius:3px;box-shadow:0 0 2px 2px rgba(0,0,0,.6);clip:auto!important;clip-path:none;color:#007acc;display:block;font-size:14px;font-size:.875rem;font-weight:700;height:auto;right:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}
.skip-link{left:-9999rem;top:2.5rem;z-index:999999999;text-decoration:underline}
.skip-link:focus{display:block;left:6px;top:7px;font-size:14px;font-weight:600;text-decoration:none;line-height:normal;padding:15px 23px 14px;z-index:100000;right:auto}
.visually-hidden:not(:focus):not(:active), .form-allowed-tags:not(:focus):not(:active){position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);white-space:nowrap}
*/

@import "assets/fonts/font-awesome/css/font-awesome.min.css"; 

:root {
    --bs-font-headings: Montserrat, sans-serif;
    --bs-font-sans-serif: 'Work Sans', sans-serif;

    --zw-nav-width: calc(100vw - 60px);
    --zw-nav-offset: calc(60px - 100vw);

    --bs-link-color-rgb: inherit;
    --bs-link-hover-color-rgb: inherit;
    
    --bs-btn-font-family: Montserrat, sans-serif;
}

html {
    font-size: 16px;
}

a { 
    text-decoration: none; 
}
img {
    max-width: 100%;
    height: auto;
}


h1, h2, h3, h4, h5, h6
{
   font-family: var( --bs-font-headings);
}

.page-wrapper {
    display: flex;
    min-height: 100vh;
    flex-flow: row nowrap;
}
.oc-wrapper {
    width: 100vw;
    overflow-x: hidden;
}
.nav-header {
    order: 2;
    position: fixed;
    z-index: 1;
    top: 0;
    right: var( --zw-nav-offset);
    width: var( --zw-nav-width);
    transition: right 0.5s;
    height: 100vh;
    overflow-y: scroll;
}

.oc-wrapper .page-content {
    transition: opacity 0.5s;
}

.page-header .page-logo .logo-img {
    max-height: 6em;
    max-width: 100%;
}
.page-header .lang-toggler {
    padding: .15em .4em;
    border-width: 2px;
    border-radius: 0;
}

.main-nav a
{
    text-decoration: none;
    padding: .5em 1em;
    display: inline-block;
    color: inherit;
    font-weight: 600;
}
.main-nav > ul > li > a {
    text-transform: uppercase;
}
.main-nav .submenu {
    background-color: rgba(0,0,0,.1);
}


.page-main {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
    transition: left 0.5s;
    box-shadow: 0 0 10px rgba(0,0,0,.3);
}

.page-footer {
    background-color: var(--bs-dark);
    color: #fff;
}
.bg-contact .page-footer {
    background-color: var(--bs-primary);
    color: var(--bs-dark);
}

.page-footer .logo-col > :not(.logolink) {
    margin-left: 23%;
}

ul.widgets,
footer ul.menu
{
    list-style: none;
    padding: 0;
    margin: .5em 0;
}

/* POST NAVIGATION */

.post-navigation,
.posts-navigation 
{
    & .nav-links {
        display: flex;
    }
    & .nav-links a {
        display: inline-block;
        width: 90%;
    }
    & .nav-previous,
    & .nav-next
    {
        flex-basis: 50%;
        flex-grow: 2;
    }
    & .nav-next
    {
        text-align: right;
    }
}



/* summary */

.entry-summary .featured-image 
{
    aspect-ratio: 4/3;
}
.entry-summary .featured-image img 
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* contents */

.entry-content {
    hyphens: auto;
}

.entry-content h1:last-child,
.entry-content h2:last-child, 
.entry-content h3:last-child 
{
    margin-bottom: 0;
}


h1.entry-title {
    font-weight: bold;
    margin-bottom: 1em;
}

.entry-content iframe {
    max-width: 100%;
}

.wp-block-columns.is-layout-flex {
    gap: calc(var(--bs-gutter-x)*.5);
}
.entry-content >:last-child:not(.zw-block-section):not(.zw-block-hero) {
    margin-bottom: 1rem;
}

/* events */

.btsa-cp-event  .post-thumbnail-placeholder
{
    aspect-ratio: 1.565;
    background-color: var(--zw-bg-light-blue);
}

.single-btsa_cp_event .entry-title
{
    margin-bottom: .5em;
}
.single-btsa_cp_event .event-date,
.single-btsa_cp_event .subtitle
{
    font-size: 1.3em;
    margin-bottom: 2em;
}

/* maps */
.wpgmza_map {
    height: auto !important;
    aspect-ratio: 1;
}

@media (max-width: 991.9999px) {         /* < LG */
    .oc-wrapper.active .page-main {
        left: var( --zw-nav-offset);
    }
    .oc-wrapper.active .nav-header {
        right: 0px;
    }
    .oc-wrapper.active .page-main {
        height: 100vh;
        overflow: hidden;
    }
    .oc-wrapper.active .page-content {
        opacity: 0;
    }    
}

@media (min-width: 992px) {         /* LG */
    html {
        font-size: 18px;
    }
    
    .oc-wrapper {
        overflow-x: unset;
    }

    .page-wrapper {
        display: grid;
        grid-template-areas: "main sidebar";
        grid-template-columns: auto min-content;
    }
    .nav-header {
        grid-area: sidebar;
        position: sticky;
        top: 0;
        width: auto !important;
        height: 100vh;
        overflow-y: auto;
        overflow-x: clip;
        z-index: 2;
        box-shadow: 0 0 10px rgba(0,0,0,.3);
    }
    .page-main {
        grid-area: main;
        width: auto;
        flex-grow: 1;
        box-shadow: none;
        left: 0 !important;
        overflow-y: auto;
    }
    .oc-wrapper.menu-expanded .page-main {

    }


    .nav-header .navbar-collapse {
        display: block;
    }
    
    .main-nav {
        font-size: 16px;
    }
    .main-nav .submenu > ul {
        padding: 3em 2em;
    }
    
    
    .main-nav ul.menu-root {
        display: flex;
        align-items: stretch;
        min-height: 100vh;
    }
    .main-nav ul.menu-root > li > a {
        writing-mode: vertical-rl;
        padding: 1em .3em;
        display: block;
    } 
    
    
    .main-nav .submenu.show,
    .main-nav .submenu .menu-item
    {
        width: 20em;
    }
    .main-nav .submenu .menu-link {
        hyphens: auto;
    }
    
    .main-nav .menu-item {
        display: flex;
        flex-flow: row nowrap;
    }
    .main-nav .submenu {
        transition: width .35s ease
    }
    .main-nav .submenu.collapsing {
        width:0;
        height: auto !important;
        transition: width .35s ease
    }
    .main-nav .submenu > ul {
        min-height: 100vh;
    }
    
    
}

@media (min-width: 1200px) {         /* XL */
    html {
        font-size: 20px;
    }
}

@media (min-width: 1500px) {         
    html {
        font-size: 22px;
    }
}
