/* topbar */
.logged-in .topbar {top:32px;}
.topbar {position:sticky;z-index:999999;top:0;background:var(--altbg);padding:8px 0;}
.topbar .balk {display:flex;justify-content:space-between;}
.topbar .balk .bit {display:flex;align-items:center;}
.topbar .balk .bit * {color:white;}
.topbar .balk .bit > * {margin-right:1rem;}
.topbar .balk .bit .btn {margin:0 1rem 0 0;background:var(--sub) !important;}
.topbar .balk .bit .btn:before {background:var(--subdk);}
.topbar .balk .bit i.fa-brands {font-size:1.5rem;margin-right:0.5rem;}
.topbar .balk .bit a.mail {display:none;}
@media (min-width:992px) {
.topbar .balk .bit a.mail {display:block;}
}

/* navigation */
nav {position:sticky;top:41px;background:var(--background);z-index:999999;}
nav #nav {display:flex;flex-direction:row;justify-content:space-between;}
nav #nav .site-logo {max-height:92px;margin-top:12px;margin-bottom:12px;}
nav #nav .site-logo img {height:auto;width:auto;}
nav #nav .navigation {display:flex;align-items:center;}
nav #nav .navigation .menu ul {display:flex;flex-direction:row;}
nav #nav .navigation .menu ul li {list-style:none !important;padding:6px 12px;}
@media (max-width:992px) {
nav #nav {flex-direction:row;}
nav #nav .mega-menu-wrap * {background:none;}
}

/* plugin support *//* max mega menu */
nav #nav .mega-menu-wrap {background:none;}
nav #nav .mega-menu-wrap * {font-size:var(--regular) !important;font-family:var(--family) !important;}
nav #nav .mega-menu-wrap ul#mega-menu-hoofdmenu li.mega-menu-item.mega-current-menu-item > a.mega-menu-link, 
nav #nav .mega-menu-wrap ul#mega-menu-hoofdmenu li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link, 
nav #nav .mega-menu-wrap ul#mega-menu-hoofdmenu li.mega-menu-item.mega-current-page-ancestor > a.mega-menu-link,
nav #nav .mega-menu-wrap ul#mega-menu-hoofdmenu li.mega-menu-item > a.mega-menu-link:hover, 
nav #nav .mega-menu-wrap ul#mega-menu-hoofdmenu li.mega-menu-item > a.mega-menu-link:focus {background:none;color:var(--main);}
nav #nav .mega-menu-wrap ul#mega-menu-hoofdmenu li.mega-menu-item .mega-sub-menu {background:var(--background);}
nav #nav .mega-menu-wrap ul#mega-menu-hoofdmenu li.mega-menu-item .mega-sub-menu li.mega-menu-item a.mega-menu-link {background:var(--background);color:white;}
nav #nav .mega-menu-wrap ul#mega-menu-hoofdmenu li.mega-menu-item .mega-sub-menu li.mega-menu-item a.mega-menu-link:hover,
nav #nav .mega-menu-wrap ul#mega-menu-hoofdmenu li.mega-menu-item .mega-sub-menu li.mega-menu-item.mega-current-menu-item a.mega-menu-link {background:var(--main);}

/* homepage header */
.home-header {display:flex;flex-direction:column;}
.home-header .part {width:calc(100% / 1);}
.home-header .part.text {display:flex;align-items:center;justify-content:flex-end;}
.home-header .part.text .tekstvak {padding:2rem 0rem 4rem;}
.home-header .part.text .tekstvak .buttons {display:flex;flex-direction:row;flex-wrap:wrap;}
.home-header .part.text .tekstvak .buttons .btn {margin-right:1rem;}
.home-header .part.img picture, .home-header .part.img img {width:100%;height:100%;object-fit:cover;}
@media (min-width:992px) {
.home-header {flex-direction:row;height:32rem;}
.home-header .part {width:calc(100% / 2);}
.home-header .part.text .tekstvak {padding:2rem 3.5rem 2rem 0rem;}
}
@media (max-width:992px) {
.home-header .part.img {max-height:20rem;display:flex;justify-content:center;align-items:center;overflow:hidden;}
.home-header .part .halfcontainer {max-width:unset;padding:0 20px;}
}

/* page header */
.page-header {background:var(--altbg);display:flex;flex-wrap:nowrap;flex-direction:column-reverse;}
.page-header .intro {width:calc(100% - 40px);display:flex;flex-direction:column;justify-content:center;padding:20px;padding-bottom:2rem;}
.page-header .intro .subtitle {color:var(--main);font-weight:bold;}
.page-header .intro h1 {margin-top:0;font-size:1.8em;}
.page-header .intro p {margin-top:0;}
.page-header .image {width:100%;}
.page-header .image picture, .page-header .image img {object-fit:cover;object-position:center;width:100%;height:100%;}
@media (min-width:992px) {
.page-header {flex-direction:row;justify-content:flex-end;height:32rem;margin-bottom:3.5rem;}
.page-header .intro {width:50%;padding-left:var(--container);margin-left:-7px;}
.page-header .image {min-width:50%;width:50%;}
}
@media (max-width:992px) {
.page-header .image {max-height:352px;overflow:hidden;}
}

/* page */
.stock-template {display:flex;flex-direction:row;flex-wrap:wrap;}
@media (min-width:992px) {
.stock-template article {width:70%;}
}

/* sidebar */
aside {margin-top:2rem;}
aside .contact {display:flex;flex-direction:column;}
@media (min-width:992px) {
aside {width:25%;margin-left:5%;}
}

/* fullwidth */
.fullwidth-template p {max-width:824px;}

/* contact */
.contact-template {max-width:624px;margin:0 auto;}

/* footer */
footer {margin-top:5rem;}
footer .bottombar {padding:8px 0;}
footer .bottombar .bars {display:flex;flex-direction:column;justify-content:flex-start;}
footer .bottombar .bars .part i {margin:0 5px;}
@media (min-width:992px) {
footer .bottombar .bars {flex-direction:row;justify-content:space-between;}
footer .bottombar .bars .part {width:calc(100% / 3);width:100%;text-align:center;}
footer .bottombar .bars .part:first-child {text-align:left;}
footer .bottombar .bars .part:last-child {text-align:right;}
}


