/*
    Theme Name: Baukombinat
    Description: Baukombinat Wordpress Theme
    Version: 0.1.1
*/

/*------------------------------------*\
    MAIN
\*------------------------------------*/

/* global box-sizing */
*,
*:after,
*:before {
    -moz-box-sizing:border-box;
    box-sizing:border-box;
    -webkit-font-smoothing:antialiased;
    font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}
/* html element 62.5% font-size for REM use */
html {
    min-height: 100vh;
    font-size:62.5%;
    background-color: #ffffff;
}
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: 100%;

    /** font settings */
    font-family: neuzeit-grotesk, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 400;
    font-size: 14.6666666666667px;
    line-height: 1.5;
    background-color: #000000;
    color: #ffffff;
}
/* clear */
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    *zoom:1;
}
img {
    max-width:100%;
    vertical-align:bottom;
}
a {
    color: #ffffff;
    text-decoration:none;
}
p {
    margin: .75em 0;
}
h1 a, h2 a {
    color: #ffffff;
}

h1, h2, h3 {
    line-height: 1.0;
}

h2 {
    margin-top: 2.25em;
    font-size: 28px;
}

h4 {
    font-size: 16px;
    padding-top: 0.75em;
    margin-top: 1.50em;
    margin-bottom: 0.75em;
}

a:hover {
    //color:#002fa7;
}
a:focus {
    outline:0;
}
a:hover,
a:active {
    outline:0;
}
input:focus {
    outline:0;
    border:1px solid #002fa7;
}

.single-post .wp-block-table {
  margin-left: -10px;
}

/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

/* wrapper */
.wrapper {
    max-width:1075px;
    width:95%;
    padding: 0 24px;
    margin: 0 auto;
    position:relative;
}
/* header */
.header {
    height: 110px;
    padding-top: 20px;
    margin-bottom: 60px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media only screen and (max-width: 767px) {
    .header {
        height: 145px;
    }
}

/* logo */
.logo {
    display: block;
    float: left;
    background-image: url(img/logo-white.svg);
    background-image: url(img/logo-white.svg),
        linear-gradient(transparent, transparent);
    background-size: 90 90;
    margin-left: -5px;
    background-repeat: no-repeat;
    width: 90px;
    min-height: 90px;
    height: 90px;
}

@media only screen and (max-width: 767px) {
    .logo {
        margin-left: -10px !important;
        width: 135px;
        min-height: 135px;
        height: 135px;
    }
}

.logo span {
    display:none;
}

/* nav */
.header .nav {
    margin-top: 12px;
    display: block;
    float: right;
}

.nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav ul li {
    display: inline-block;
    margin-right: 40px;
}

.nav ul li:last-child {
    margin-right: 0;
}

.header .nav ul li a {
    display: inline-block;
    text-transform: uppercase;
}

.header .nav ul li a:hover, .nav ul li.current_page_item a,
.header .nav ul li a:hover, .nav ul li.current_page_parent a {
    color: #ffffff;
}

.header .nav ul li a {
}

/* sidebar */
.sidebar {

}
/* footer */
.footer {
    color: #ffffff;
    font-size: 13.3333333333333px;
    margin-top: 60px;
    padding-bottom: 1em;
}

.footer .nav .copyright {
    display: inline-block;
    margin-right: 50px;
}


.footer .nav ul {
    display: inline-block;
    margin: 0;
    padding-left: 0;
}

.footer .nav li a {
    display: inline-block;
    text-transform: none;
}


/*------------------------------------*\
    POSTS
\*------------------------------------*/

article.post {
    //margin-top: 80px;
}
.post .wp-block-columns h1 {
    font-size: 32px !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    font-weight: 400 !important;
}
/*------------------------------------*\
    PAGES
\*------------------------------------*/

/** page headings **/
.projects > h1,
h1.main-title {
    font-size: 44px;
    background-size: 211 44;
    margin-top: 63px;
    margin-bottom: 8px;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;

}

section h1:first-child + h2 {
    font-size: 15.45px;
    margin-top: -71px;
    margin-bottom:  56px;
    font-weight: 400;
}

/** projects page **/
section.projects {
    
}

section.projects h2 {
    margin-top: 19px;
    margin-bottom: 34px;
    font-size: 26.6666666666667px;

    a,
    span {
        font-weight: 400;
    }
}

section.projects article  {
    float: left;
    width: calc(50% - 7.5px);
}

section.projects article:nth-child(2n) {
    margin-right: 15px;
}

section.projects h2 span.location {
    margin-top: 5px;
    display: block;
    font-size: 15px;
}


section.projects article a.tumbnail,
.blocks-gallery-item {
    display: block;
    position: relative;
}

section.projects article a.tumbnail img {
    max-width: 506px;
    width: 100%;
}

section.projects article a.tumbnail:after,
.wp-block-gallery .blocks-gallery-item figure:after {
    content: " ";
    display: block;
    z-index: 10;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:100%;
    background: transparent;
}

section.projects article a.tumbnail:hover:after,
.wp-block-gallery .blocks-gallery-item figure:hover:after,
.wp-block-gallery .blocks-gallery-item figure.selected:after {
    //background: rgba(0, 47, 167, 0.8);
}

/* start page */
body.home {
    //background-color: #002fa7;
    background-image: url(img/startpage-background.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* make links as well white to be visible */
body.home, body.home a, body.home .footer {
    color: #000000;
}

/* and have a nice text-shadow in the navigation on hover
 * instead of changing into the blue of the background */
body.home .header .nav ul li a:hover {
    color: #000000;
    //text-shadow: 0px 0px 5px #000000;
}

body.home .logo {
    background-image: url(img/logo-black.svg), linear-gradient(transparent, transparent);
}

body.home .footer {
    display: none;
}

body.home main section h1,
body.home main section h2 {
    display: none;
}

body.home .wp-block-image figure img {
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: 1027px;
    max-height: 80%;
    transform: translate(-50%, -50%);
}

body.home .footer {
    position: fixed;
    bottom: 0%;
    padding-top: 2%;
}

/* about page */
body.uber-uns table.wp-block-table tr td:first-child {
    width: 110px;
}

/* single project page */

/** page headings **/
body.single section h1:first-child {
    font-size: 65px;
    margin-top: 58px;
    margin-bottom: 77px;
}

/* blue abstract heading text */
body.single section article h3 {
    margin-left: 0;
    display: block;
    text-align: left;
    height: 100%;
    float: left;
    color: #ffffff;
    margin-right: 15px;
    font-size: 32px;
    font-weight: 400;
}

/* image gallery */
body.single ul.wp-block-gallery,
body.single figure.wp-block-gallery
{
    padding-left: 0;
    margin-top: 26px;
    margin-bottom: 10px;
    display: block;
    clear: both;
}

body.single ul.blocks-gallery-grid {
    display: block;
    padding: 0;
}

body.single ul.wp-block-gallery.columns-1 li.blocks-gallery-item,
body.single ul.wp-block-gallery.columns-2 li.blocks-gallery-item,
body.single ul.wp-block-gallery.columns-3 li.blocks-gallery-item,
body.single ul.wp-block-gallery.columns-4 li.blocks-gallery-item,
body.single ul.wp-block-gallery.columns-5 li.blocks-gallery-item,
body.single figure.wp-block-gallery.columns-1 li.blocks-gallery-item,
body.single figure.wp-block-gallery.columns-2 li.blocks-gallery-item,
body.single figure.wp-block-gallery.columns-3 li.blocks-gallery-item,
body.single figure.wp-block-gallery.columns-4 li.blocks-gallery-item,
body.single figure.wp-block-gallery.columns-5 li.blocks-gallery-item
{
    display: inline-block;
    width: 160px;

    margin-right: 13.33333px;
    cursor: pointer;
}

body.single ul.wp-block-gallery.columns-1 li.blocks-gallery-item:last-child,
body.single ul.wp-block-gallery.columns-2 li.blocks-gallery-item:last-child,
body.single ul.wp-block-gallery.columns-3 li.blocks-gallery-item:last-child,
body.single ul.wp-block-gallery.columns-4 li.blocks-gallery-item:last-child,
body.single ul.wp-block-gallery.columns-5 li.blocks-gallery-item:last-child,
body.single figure.wp-block-gallery.columns-1 li.blocks-gallery-item:last-child,
body.single figure.wp-block-gallery.columns-2 li.blocks-gallery-item:last-child,
body.single figure.wp-block-gallery.columns-3 li.blocks-gallery-item:last-child,
body.single figure.wp-block-gallery.columns-4 li.blocks-gallery-item:last-child,
body.single figure.wp-block-gallery.columns-5 li.blocks-gallery-item:last-child
{
    margin-right: 0;
}

body.single ul.wp-block-gallery li figure,
body.single figure.wp-block-gallery li figure {
    display: inline-block;
    width: 160px;
    height: 99px;
}

body.single ul.wp-block-gallery li img,
body.single figure.wp-block-gallery li img {
    display: inline-block;
}

/* remove image captions on the thumbnail */
body.single .wp-block-gallery .blocks-gallery-item figure figcaption {
    display: none;
}

body.single ol, body.single ul {
    padding-left: 1em;
}

/*------------------------------------*\
    IMAGES
\*------------------------------------*/



/*------------------------------------*\
    TYPOGRAPHY
\*------------------------------------*/

/* 
 * The at font face definition is already done by the typekit import via <link /> in header.php
 *
@font-face {
    font-family:'Font-Name';
    src:url('fonts/font-name.eot');
    src:url('fonts/font-name.eot?#iefix') format('embedded-opentype'),
        url('fonts/font-name.woff') format('woff'),
        url('fonts/font-name.ttf') format('truetype'),
        url('fonts/font-name.svg#font-name') format('svg');
    font-weight:normal;
    font-style:normal;
} */

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

@media only screen and (min-width:320px) {
}

@media only screen and (max-width:767px) {
    a.logo {
        display: block;
        float: none;
        margin-left: 0;
    }

    .header .nav {
        float: none;
    }

    .header .nav ul { 
        display: flex;
        gap: 8px;
        flex-direction: column;
        flex-wrap: wrap;
        flex-grow: 1;
    }

    .header .nav ul li {
        margin-right: 0;
        text-align: right;
    }


    /* projects overview page wrapping */
    section.projects article {
        width: 100%;
    }

    section.projects article a.tumbnail img {
        max-width: 100%;
    }

    section.projects article {
        margin-left: 0;
    }

    body.home .wp-block-image figure img {
        max-height: calc(80% - 130px - 50px);
        max-width: 100%;
    }

    body.single section h1:first-child {
        font-size: 40px;
    }
}
@media only screen and (min-width:1024px) {

}
@media only screen and (min-width:1140px) {

}
@media only screen and (min-width:1280px) {

}
@media only screen and (-webkit-min-device-pixel-ratio:1.5),
       only screen and (min-resolution:144dpi) {

}

/*------------------------------------*\
    MISC
\*------------------------------------*/

::selection {
    background:#04A4CC;
    color:#FFF;
    text-shadow:none;
}
::-webkit-selection {
    background:#04A4CC;
    color:#FFF;
    text-shadow:none;
}
::-moz-selection {
    background:#04A4CC;
    color:#FFF;
    text-shadow:none;
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.alignnone {
    margin:5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
    display:block;
    margin:5px auto 5px auto;
}
.alignright {
    float:right;
    margin:5px 0 20px 20px;
}
.alignleft {
    float:left;
    margin:5px 20px 20px 0;
}
a img.alignright {
    float:right;
    margin:5px 0 20px 20px;
}
a img.alignnone {
    margin:5px 20px 20px 0;
}
a img.alignleft {
    float:left;
    margin:5px 20px 20px 0;
}
a img.aligncenter {
    display:block;
    margin-left:auto;
    margin-right:auto;
}
.wp-caption {
    background:#FFF;
    border:1px solid #F0F0F0;
    max-width:96%;
    padding:5px 3px 10px;
    text-align:center;
}
.wp-caption.alignnone {
    margin:5px 20px 20px 0;
}
.wp-caption.alignleft {
    margin:5px 20px 20px 0;
}
.wp-caption.alignright {
    margin:5px 0 20px 20px;
}
.wp-caption img {
    border:0 none;
    height:auto;
    margin:0;
    max-width:98.5%;
    padding:0;
    width:auto;
}
.wp-caption .wp-caption-text,
.gallery-caption {
    display: none;
    font-size:11px;
    line-height:17px;
    margin:0;
    padding:0 4px 5px;
}
.sticky {

}
.bypostauthor {

}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
    * {
        background:transparent !important;
        color:#000 !important;
        box-shadow:none !important;
        text-shadow:none !important;
    }
    a,
    a:visited {
        text-decoration:underline;
    }
    a[href]:after {
        content:" (" attr(href) ")";
    }
    abbr[title]:after {
        content:" (" attr(title) ")";
    }
    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content:"";
    }
    pre,blockquote {
        border:1px solid #999;
        page-break-inside:avoid;
    }
    thead {
        display:table-header-group;
    }
    tr,img {
        page-break-inside:avoid;
    }
    img {
        max-width:100% !important;
    }
    @page {
        margin:0.5cm;
    }
    p,
    h2,
    h3 {
        orphans:3;
        widows:3;
    }
    h2,
    h3 {
        page-break-after:avoid;
    }
}
