/*
 Theme Name:     M. Faber
 Theme URI:      http://shop.ajado.net
 Description:    M. Faber Theme
 Author:         Ajado
 Author URI:     http://www.ajado.com
 Template:       Divi
 Version:        1.0.0
*/

body{
    color:#1e1d26;
}

body.no-scrolling {
	height: 100%;
	overflow: hidden;
}

.activehoveritem{
	text-decoration:underline;
}

.et_pb_row{
    padding:0 !important;
    position:relative;
    left:0px !important;
}


#main-footer{
    display:none;
}

/* Content Styles */

::selection{
    background:transparent !important;
}

::-moz-selection{
    background:transparent !important;
}

.et_pb_module a:link, .et_pb_module a:visited{
    text-decoration:none;
    color:#0131A1;
}

#custom-menu p, #custom-menu h1, .overlaylogo + h2 {
    font-family: 'Portrait Web';
    font-size:22px;
    line-height:26px;
    padding-bottom:0;
}

.scaled-text, .header {
    width: 53%;
}

.scaled-text p.bildunterschrift {
    font-family: 'Atlas Grotesk Web';
    font-size: 14px;
    line-height:24px;
}

.scaled-text p {
    padding-bottom: 0;
}

.scaled-text {
    margin-bottom: 10px;
    margin-top: 20px;
}

#custom-menu h3 {
    font-family: 'Atlas Grotesk Web';
    font-size: 11px;
    line-height:26px;
    text-transform: uppercase;
    padding-bottom:0;
    letter-spacing:2px;
}

.et_pb_module p:first-of-type, .et_pb_module h2 + p,  .et_pb_module h3 + p, #custom-menu h1, .overlaylogo + h2{
    text-indent: 0em !important;
}

.et_pb_module .header h2 {
    text-align:center !important;
}

.et_pb_module h2{
    font-family: 'Portrait Web';
    font-size: 26px;
    line-height: 30px;
    /*text-align:center !important;*/
    padding-bottom: 7px;
}

.et_pb_text h3, .et_pb_text h1 {
    font-family: 'Atlas Grotesk Web';
    font-size: 11px;
    line-height:26px;
    text-transform: uppercase;
    text-align: center !important;
    letter-spacing:2px;
    padding-bottom:30px !important;
}

.et_pb_text h3, .et_pb_text h1{
    padding-top:30px !important;
    padding-bottom:0px;
}

#main-content .entry-content .et_pb_module{
    margin-bottom:0px;
}

.et_pb_module.image-caption p{
    font-family: 'Atlas Grotesk Web';
    font-size:13.5px;
    line-height:24px;
    font-weight: 300;
    text-indent:0px;
    padding-top:30px;
}

.et_pb_module.image-caption h2{
    font-family: 'Portrait Web';
    font-size:22px;
    line-height:24px;
    text-align: left !important;
}

.et_pb_module.et_pb_text.image-caption {
    padding-bottom:30px;
}

.et_pb_module .accordion-header, .et_pb_module .accordion-text-header{
    cursor:pointer;
}

.et_pb_section.bauprojekt{
    padding-bottom:100px !important;
    width:100%;
    position:relative;
}


/*Disable Divi Menu */

header#main-header, header#main-header.et_fixed_header{
    display:none !important;
}
/* Styles for images with alternative version */

.clickWrapper{
    cursor:pointer;
    width:100%;
    height:100%;
    position:relative;
    margin-top: 30px;
}

.mfaber-image {
    margin-top: 30px;
}

.clickWrapper .open-image, .clickWrapper .close-image{
    content:"";
    width:100px;
    height:100px;
    position:absolute;
    z-index:1;
    transition: transform .6s, -moz-transform .6s;
    -webkit-transition: -webkit-transform .6s;
}

.clickWrapper .open-image{
    border-top:1px solid rgba(255,255,255,0.85);
    top:80px;
    left: 30px;
    width:100px;
    height:0px;
}

.clickWrapper .close-image{
    border-right:1px solid rgba(255,255,255,0.85);
    top:30px;
    left:80px;
    width:0px;
    height:100px;
}

.clickWrapper span.opened{
    -webkit-transform:rotate(45deg);
    -moz-transform:rotate(45deg);
    transform:rotate(45deg);
    transition: transform .4s, -moz-transform .4s;
    -webkit-transition: -webkit-transform .4s;
    border-color: rgba(255,255,255,0.85) !important;
    z-index:4;
}

.clickWrapper a {
    border-color: rgba(255,255,255,0.85) !important;
    color: rgba(255,255,255,0.85) !important;
}

/* Footer */

#footer-info{
    display:none;
}

.overlaylogo {
    left: 110px;
    top: 138px;
}

h2.overlayheader {
    left: 112px;
    top: 289px;
    padding: 0;
    margin: 0;
    color: white;
}

#custom-menu {
    position: absolute;
    top: 144px;
    left: 110px;
    top: 138px;
    padding: 0 !important;
    margin: 0;
    text-align: center;
}


#custom-menu .menuWrapper p, #custom-menu .menuWrapper h3 {
	color:#1e1d26;
}

.content-fadein-small {
    /*max-height: 2em;
    overflow: hidden;
    -webkit-transition: all 1s ease-in;
    -moz-transition: all 1s ease-in;
    -o-transition: all 1s ease-in;
    transition: all 1s ease-in;*/
    padding-bottom: 10px !important;
    font-family: 'Portrait Web';
    font-size: 22px;
    line-height: 26px;
    margin-left: 0;
    padding-bottom: 0;
}

.content-fadein-small a.readmore {
    padding-left: 1em;
}

.content-fadein-makelarge {
    /*max-height: 10000px;*/
}

.second-image {
    -webkit-box-shadow: 1px 3px 10px 0px rgba(0,0,0,0.2)
    -moz-box-shadow: 1px 3px 10px 0px rgba(0,0,0,0.2);
    box-shadow: 1px 3px 10px 0px rgba(0,0,0,0.2)
}

@media only screen and ( min-width: 981px ) {
    /* Style Custom Menu */
    
    #custom-menu {
        position:fixed;
    }

    #custom-menu .et_pb_text{
        height:100%;
        top:0;
        left:0;
        padding: 0 !important;
    }

    #custom-menu #mfaber-logo{
        display:block;
		margin-bottom: 23px;
    }
	
    #custom-menu .et_pb_text h3{
        text-align:center !important;
        padding-top:0px !important
    }

    #custom-menu a{
        text-decoration: none !important;
    }
    
    .et_pb_module.image-caption + .et_pb_image{
        padding-top:30px;
    }

    .et_pb_column_4_4 > .et_pb_image{
        padding-top:50px;
    }

    .et_pb_column_3_4 > .et_pb_text{
        padding-top:30px;
    }


    .et_module.et_pb_text{
        padding-bottom:30px;
    }

    .et_pb_column_3_4 > .et_pb_text h2{
        padding-top:30px;
        padding-bottom:30px;
    }

    .bauprojekt .et_pb_image{
        margin:-30px 0 20px 0px !important
    }
}


.et_pb_section{
    /*padding:20px 0 0 185px !important;*/
    padding:50px 0 0 185px !important;
}


#custom-menu .mobileToggle, .mobileClose {
    display: none;
}

/* Mobile */
@media only screen and ( max-width: 980px ) {
    
    #custom-menu .mobileToggle, .mobileClose {
        display: block;
    }
    #custom-menu .et_pb_text{
        margin:0 !important;
        padding:0!important;
    }
    
    body .entry-content #custom-menu{
        padding-top:0px !important;
        margin-bottom:-5px !important;
    }
    
    #wpadminbar{
        display:none;
    }
    
    html body.admin-bar{
        margin-top:-32px !important;
    }
    
    #custom-menu .mobileToggle, .mobileClose {
        position:fixed;
    }
    
    .et_pb_section{
        padding-left:0px !important;
    }
    
    #custom-menu {
    	top: 20px;
		left: 8%;
    }
    
    .et_pb_text:first-of-type {
        padding-top:0 !important;
        margin-top:0px;
    }
    
    .et_pb_text h1{
        width:100%;
        margin:80px auto 0px auto;
        padding:0 10px 30px 10px !important;
    }
    
    #custom-menu .mobileToggle, .mobileClose {
        position:fixed;
        top:60px;
        right:30px;
        background:transparent;
        width:50px;
        height:22px;
        z-index:101;
        cursor:pointer;
        border-bottom:1px solid #000;
        }
        
        .mobileClose {
        border-bottom:1px solid #fff;
        }
    
    #custom-menu .mobileToggle::before, .mobileClose:before {
        content:"";
        height:10px;
        width:50px;
        border-top:1px solid #000;
        border-bottom:1px solid #000;
        position:fixed;
        top:60px;
        right:30px;
        display:block;
        z-index:100;
    }
    .mobileClose:before {
        border-top:1px solid #fff;
        border-bottom:1px solid #fff;
    }
    
    .menuWrapper, .lowerMenuWrapper {
        display: none;
    }
    
    .withOverlay .mobileToggle, .withOverlay .mobileToggle::before, , .mobileClose:before {
        border-color:#FFF !important;
    }
    
    .et_pb_module.et_pb_text{
        padding-bottom:30px;
    }
    
    .et_pb_module.et_pb_image{
        padding-top:20px;
    }
    
    
    .et_pb_module.et_pb_text{
        padding-bottom:50px;
    }
    
    .et_pb_module.et_pb_text.image-caption h2{
        padding-top:0px;
    }
    
    .et_pb_column{
        margin-bottom:0px !important;
    }
    
    #main-content .entry-content .et_pb_module {
    	margin: 0 auto;
    	width: 90%;
    }
    
    .clickWrapper .open-image {
    	border-top: 1px solid rgba(255,255,255,0.85);
    	top: 55px;
    	left: 30px;
    	width: 50px;
    	height: 0px;
	}
	.clickWrapper .close-image {
	    border-right: 1px solid rgba(255,255,255,0.85);
	    top: 30px;
	    left: 55px;
	    width: 0px;
	    height: 50px;
	}
	/*.second-image {
    	position: static;
    }*/
    
    .additional-image {
	    width: 75%
    }
}

@media only screen and ( max-width: 782px ) {
    .et_pb_text:first-of-type {
        margin-top:0px;
    }
    
    .et_pb_text:first-of-type h3:first-child::before{
        top:-10px;
    }
}

#overlayIframe {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: rgba(13,21,42,0.93) !important;
    z-index: 9999;
}

#post-1283 .et_pb_section_0.et_pb_section, #post-1283 .entry-content, #post-1283, body.page-id-1283 {
	background: none transparent !important;
}

#main-content {
	background: none transparent;
}

img.second-image, img.second-mobile {
    position:absolute;
    top:0px;
    left:0px;
    z-index:2;
    display:none;
}

.mfaber-image-mobile {
	display:none;
}

.mfaber-image-desktop {
	display:block;
}

.mfaber-image-small {
    max-width: 53%;
    margin-left: 0;
}

.header p, .scaled-text h2 {
    font-family: 'Portrait Web';
    font-size: 22px;
    line-height: 26px;
    text-indent: 1em !important;
    margin-left: 0;
    padding-bottom: 0;
}

.scaled-text h2 {
	text-indent: 0 !important;
}

.header p:first-child {
    text-indent: 0 !important;
}

.header {
    margin-bottom: 30px;
}

a.open:link {
    font-family: "Atlas Grotesk Web";
    font-size: 14px;
    font-weight: 300;
    line-height:24px;
    color:#AAAAAA;
}

.accordion {
    font-family: "Atlas Grotesk Web";
    font-size: 22px;
    line-height: 24px;
}

.accordion p {
    font-family: "Atlas Grotesk Web";
    font-size: 14px;
    line-height: 24px;
    padding-bottom: 0;
}

.loadmore {
    text-align: center;
}

@media all and (min-width: 768px) and (max-width: 980px) {
    .overlaylogo {
        display: none;
    }
    
	.mfaber-image-small {
	    max-width: 73%;
	    margin-left: 0;
	}
	.mfaber-image-small {
	    max-width: 73%;
	    margin-left: 0;
	}
	.scaled-text, .header {
	    width: 75%;
	    margin-left: 0;
	}
    .accordion, .scaled-text h2 {
        font-family: 'Portrait Web';
        font-size: 20px;
        line-height: 24px;
    }
}

@media only screen and (max-width: 767px) {
    .overlaylogo {
        display: none;
    }
    
	.mfaber-image-mobile {
		display:block;
	}
	
    .accordion, .scaled-text h2 {
        font-family: 'Portrait Web';
        font-size: 20px;
        line-height: 24px;
    }
	
	.mfaber-image-desktop {
		display:none;
	}
	
	.mfaber-image-smallh {
	    max-width: 90%;
	    margin-left: 0;
	}
	.header p {
        font-family: 'Portrait Web';
        font-size: 20px;
        line-height: 26px;
    }
	.mfaber-image-small {
	    max-width: 90%;
	    margin-left: 0;
	}
	.scaled-text-quer {
	    width: 90%;
	    margin-left: 0;
	}
    .scaled-text, .header {
        width: 90%;
    }
}

.et_pb_column_20 .et_pb_image_20 {
	margin-bottom: 58px !important;
}

.mobileClose:before {
    border-top: 1px solid #fff;
    border-bottom: none;
    transform: rotate(90deg);
    top: 17px;
    right: 5px;
}

.mobileClose {
    border-bottom: 1px solid #fff;
    transform: rotate(45deg);
}

#loading-overlay {
    background: rgba(13,21,42,0.5);
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#loading-overlay img {
    margin-left: 110px;
    margin-top: 138px;
}

#loading-overlay h1 {
    margin-left: 110px;
}


#loading-overlay h1 {
    position: relative;
    color:  rgba(13,21,42,0.2);
    font-size: 22px;
    height: 30px;
}

#loading-overlay h1:before {
    content: attr(data-text);
    position: absolute;
    overflow: hidden;
    max-width: 7em;
    white-space: nowrap;
    color: #fff;
    -webkit-animation: loading 8s linear;
            animation: loading 8s linear;
    height: 30px;
}
@-webkit-keyframes loading {
    0% {
        max-width: 0;
    }
}
@keyframes loading {
    0% {
        max-width: 0;
    }
}