/*
Theme Name: immosite
Author: Immotion
*/

/*html {
    scroll-behavior: smooth;
  }*/

/*recaptcha*/
.grecaptcha-badge { 
    visibility: hidden; 
}

/*entferne default link styling in webview auf mobile*/
* { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }

html, body, h1, h2, h3, h4, h5, h6, p, a {
    margin: 0;
    color: #000;
}

body {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 2.25rem;
    margin: 0;
    min-height: 100%;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-family: "RawsonAlt-Bold";
    font-size: min(max(4.5vw, 40px), 60px);
    line-height: min(max(4.5vw, 40px), 60px);
    font-weight: 600;
    padding: 0 0 4rem 0;
	color: #084474;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #d6a67a;
}

h4 {
    font-size: 1.6rem;
    font-weight: 600;
}

h5 {
    font-size: 1.5rem;
    font-weight: 400;
}

p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.375rem;
}

a {
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
}

header {
    height: 100%;
    width: 100%;
}

.active {
    text-decoration: underline;
}

footer {
    background: #ffffff;
    width: 100%;
    position: relative;
    height: 100px;
    padding: 1rem 0;
    line-height: 1.25rem;
    clear: both;
}

footer section > div {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-logo {
    width: 120px;
}

section {
    padding: 0 2vw;
}

.main-container, .full-container {
    overflow: hidden;
    display: block;
    position: relative;
    margin: 0 auto;
    overflow: visible;
}

.main-container {
    width: min(100%, 960px);
    padding: 10rem 0;
}

.full-container {
    width: 100%;
}

.iframe-con {
    margin:0;
}


/*grids*/

.row1 {
    display: grid;
    width: 100%;
    grid-template-columns: 3fr 2fr;
    grid-gap: 2rem;
    align-items: center;
}

.row1-2 {
    display: grid;
    width: 100%;
    grid-template-columns: 2fr 3fr;
    grid-gap: 2rem;
    align-items: center;
}

.row2 {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr; 
    align-items: center;
    justify-content: center;
    grid-gap: 3rem;
    max-width: 960px;
    margin: 0 auto;
}

.row2 img {
    display: block;
}


.row4 {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr minmax(500px, 3fr);
    grid-gap: 2rem;
    align-items: flex-start;
}

.row5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 4rem;
    margin: 0 auto;
}

.row6 {
    display: grid;
    max-width: 960px;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
    grid-gap: 9rem 4rem;
    margin: 0 auto;
}

.row6 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.row-k {
    display: grid;
    max-width: 500px;
    grid-template-columns: 1fr 1fr;
    grid-gap: 2rem;
    align-items: flex-end;
    line-height: 0;
}

.row-k img {
    padding: 20px 0;
}

.row7 {
    display: grid;
    max-width: 1200px;
    grid-template-columns: repeat(5, 1fr);
    margin: 0 auto;
}


/*Seitenverhältnisse Bilder, Boxen, etc*/

.ratio-16-to-9 {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    height: auto;
}


img {
    max-width: 100%;
    height: auto;
}

/*Header*/

.sticky-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 4rem);
    position: fixed;
    top: 0px;
    margin: 0;
    padding: 2rem 2rem;
    z-index: 999;
    transition: 
    top 0.4s ease-in-out, 
    opacity 0.4s ease-in-out, 
    background-color 0.4s ease-in-out;
    background-color: #fff;
}

.header-line {
    position: absolute;
    bottom: 32%;
    left: 0px;
	height: 2px;
	border: none;
	background: #d6a67a;
}

body.nonescroll {
    overflow: hidden;
}

.x-change .sticky-header {
    background-color: #fff;
}

.logo-main {
    width: 160px;
}

.logo-container {
    line-height: 0px;
    text-align: center;
    width: 10%;
}

.main-banner {
	padding: 0 !important;
}

/*Navigation*/
.navbar-topright {
    text-align: right;
    display: flex;
    justify-content: center;
    width: 100%;
}

.menu-main-menu-left-container {
    width: 45%;
}

.menu-main-menu-right-container {
    text-align: left;
    width: 45%;
}

header .navbar-mobile-topright {
    display: none;
}

.x-menu {
    display: none;
}

header .menu-topright li {
    display: inline-block;
    line-height: 1.5rem;
    padding-right: min(max(3vw, 15px), 40px);
	text-align: left;
}


header .menu-topright li a {
    font-family: 'Josefin Sans', sans-serif;
    text-decoration: none;
    font-size: min(max(1vw, 10px), 15px);
    color: #084474;
	padding: 15px 0;
}

.hidden {
    display: none;
}

ul li ul {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    transition: all 0.5s ease;
    padding: 5px 15px 3px 15px;
    display: none;
    background: white;
    border: solid 1px #084473;
    color: #084473;
}

ul li:hover > ul,
ul li ul:hover {
  visibility: visible;
  opacity: 1;
  display: block;
}

ul li ul li {
  clear: both;
  width: 100%;
}


/*Banner*/

.topbar {
    display: flex;
    justify-content: flex-end;
    padding: 20px 0;
}

.banner-baer {
    position: relative;
}

.banner-baer img {
	max-height: calc(100vh);
	width: 100%;
	object-fit: cover;
}


/*Lösungen*/

#loesungen .main-container {
    width: min(100%, 850px);
}


.row5 div:before{
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 1;
    border: solid 4px #D5A77B;
    border-radius: 50%;
}

.row5 > div {
    position: relative;
    display:inline-block;
    background: #fff;
    border-radius: 50%;
    height: 180px;
    width: 180px;
    padding: 30px;
    margin: 0 auto;
}

.row5 img {
    width: 40px;
    height: auto;
}

.row5 h4 {
    color: #084474;
}

.merk-ti {
    font-weight: 600;
}

.merk-ft {
    font-style: italic;
    font-weight: 300;
}


/*Projekte Section*/

#projekte {
    padding: 0;
}

#projekte .tb-l {
    padding: 2rem;
}

.download-textline {
    width: 60%;
    height: 70px;
    float: right;
    margin: -120px -20px 0 0;
    position: relative;
    background: #fff;
    padding: 20px 20px; 
    border: 2px solid #d6a67a;
    z-index: 9;
    -webkit-box-shadow: 0px 0px 0px 10px #ffffff; 
    box-shadow: 0px -5px 0px 10px #ffffff;
	word-break: break-word;
	hyphens: auto;
}

.download-textline::after {
    content: '';
    height: 100%;
    width: 100%;
    background: rgba(10, 68, 117, 0.1);
    bottom: 9px;
    left: 9px;
    position: absolute;
    transition: all 0.2s ease-in-out;
}


.download-card:after {
    content: 'zum Projekt';
    color: #0A4475;
    height: 100%;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    background-image: url('/wp-content/uploads/2021/05/download-arrow.png');
    background-repeat: no-repeat;
    opacity: 0.7;
    display: none;
    justify-content: center;
    align-items: center;
    margin: -355px 0 0 0;
    background-position: center 200px;
    background-size: 10px;
    font-size: 22px;
}

.download-card:hover:after {
    display: flex;
}

.download-card:hover > .download-textline::after  {
    bottom: 0px;
    left: 0px;
    background: rgba(10, 68, 117, 0.8);
}

.download-textline p {
    position: relative;
}

.download-card:hover > .download-textline p  {
    color: #ffffff !important;
    z-index: 999;
}

.download-textline svg {
    z-index: 2;
    position: relative;
}

.st11 {
    fill:none;
    stroke:#044870;
    stroke-width:2.5;
    stroke-miterlimit:10;
}

.download-card:hover .st11 {
    stroke:rgba(231, 231, 231, 1);
}

/*Kontakt Section*/

.kontakt-bg {
    line-height: 0;
}

.contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 0 15px 0 9px;
}

.contact > div:nth-child(odd) {
    grid-column: 1 / 2;
}

.contact > div:nth-child(even) {
    grid-column: 2 / 3;
}

.contact > div:last-child, .contact > div:nth-child(5){
    grid-column: 1 / 3;
}

.wpcf7-form-control-wrap {
    display: block;
    padding: 10px;
    background-color: #ffffff;
}

input[type='email'], input[type='search'], input[type='number'], input[type='url'], input[type='tel'], input[type='text'], textarea {
    font-size: 1rem;
    font-family: helvetica;
    border: none;
    background: #ffffff;
    width: calc(100% - 85px);
    z-index: 3;
    position: inherit;
    padding: 0 0 0 80px;
    border: 2px solid #d6a67a;
    border-radius: 0px !important;
    position: initial;
    height: 40px;
}

.wpcf7-not-valid-tip {
    padding: 10px 0 20px 0;
    line-height: 1.2rem;
}

.wpcf7 form .wpcf7-response-output {
    margin: 6em 0.5em 1em;
}

.wpcf7 form .wpcf7-response-output {
    margin: 6em 0.5em 1em;
}

textarea {
    height: auto !important;
    padding: 15px 0 15px 50px;
	width: calc(100% - 57px);
}

input:focus, textarea:focus {
    outline: 0;
    border: 2px solid #084474;
}

.mandatory {
    margin: 25px 10px;
}

.wpcf7-form-control-wrap:before {
    content: 'Nachname*';
    bottom: 0px;
    left: 0px;
    position: absolute;
    display: inline-block;
    background: white;
    padding: 0;
    margin: 0;
    line-height: 1rem;
    font-size: 13px;
    font-weight: 400;
    background: #fff;
    padding: 5px 5px 5px 10px;
    z-index: 1;
} 

.your-vorname:before {
    content: 'Vorname*';
}

.your-email:before {
    content: 'E-Mail*';
}

.your-betreff:before {
    content: 'Betreff';
}

.checkbox-520:before {
    content: '';
    z-index: 1;
    border: 2px solid #d6a67a;
    border-radius: 0px !important;
    position: absolute;
    left: 9px;
    top: 9px;
    height: calc(100% - 30px);
	width: calc(100% - 40px);
}

.checkbox-520 .wpcf7-form-control {
    z-index: 2;
    position: inherit;
}

.checkbox-520 {
    padding: 20px 10px 15px 10px;
}

.your-nachricht:before {
    content: 'Nachricht';
}

.ko-button {
    float: right;
    margin: 30px 0 0 0;
}

.ko-button input {
    border: solid 2px #0A4475;
    outline: 3px solid #e6ecf1;
    padding: 10px 15px;
    -webkit-appearance: none;
    border-radius: 0;
	cursor: pointer;
}


/*****Styling Klassen*******/
.w640 {
    max-width: 640px;
    margin: 0 auto;
}

/*
.border-top {
    border-top: 1px #000000 solid;
}
*/

.bg-grey {
    background-color: #f7f7f7;
}

.bg-gold {
    background-color: #D5A77B;
}

.bg-blue {
    background: rgba(10, 68, 117, 1);
}

.bg-white {
    background: #ffffff;
}

.bg-lblue {
    background: rgba(10, 68, 117, 0.1);
}

.bg-lblue2 {
    background-color: #c9d4de;
}

.img-border1 {
    padding: 10px;
    border: 2px solid #D5A77B;
	position: relative;
}

.img-border1:after{
	content: '';
	height: 40%;
	width: 60%;
	position: absolute;
	border: 2px solid #D5A77B;
	left: -15px;
	bottom: -15px;
}

.color-blue {
    color: #0A4475;
}

.color-white {
    color: #ffffff;
}

.strong {
    font-weight: 600;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.relative {
    position: relative;
}

/*Button*/

.button-wrapper {
    display: flex;
    justify-content: center;
}

.bo-button {
    width: 8rem;
    height: 3rem;
    position: relative;
}

.bo-button:hover .fancy-b::after {
    width: calc(100% - 0px);
    height: calc(100% - 0px);
    bottom: 38px;
    left: 7px;
}

.fancy-b {
   width: inherit;
   height: inherit;
   white-space: nowrap;
   -webkit-box-shadow: inset 0px 0px 0px 50px rgb(230, 236, 241);
    box-shadow: inset 0px 0px 0px 50px rgb(230, 236, 241);
}

.fancy-b::after {
    content: '';
    width: calc(100% - 7px);
    height: calc(100% - 7px);
    background-color: rgba(10, 68, 117, 0.1);
    z-index: -1;
    position: relative;
    bottom: 30px;
    left: 15px;
    display: block;
    transition: all 0.2s ease-in-out;
}

.fancy-b h3 {
    font-size: 1rem;
    line-height: 1.7rem;
    padding: 13px 0 0 0;
    color: #0A4475;
    z-index: -1;
    position: relative;
}

.fancy-b h3:before {
    content: '';
    background-color: #ffffff;
    width: 9rem;
    height: 1.5rem;
    display: inherit;
    position: absolute;
    z-index: -1;
    padding: 0px 3px;
    left: -4px;
}

.fancy-b:before {
    content: "";
    position: absolute;
    left: 5px;
    border: solid 2px #0A4475;
    width: inherit;
    height: inherit;
    z-index: -1;
}

/*Titel lineheight*/
.title-lh {
    line-height: 4rem;;
}

/*Top und Bottom Abstand (small, medium, large, xl)*/
.tb-s {
    padding: 0.5rem 0;
}

.tb-sm {
    padding: 0.7rem 0;
}

.tb-m {
    padding: 1rem 0;
}

.tb-l {
    padding: 2rem 0;
}

.tb-xl {
    padding: 1rem 0 4rem 0;
}

.tb-xxl {
    padding: 5rem 0;
}


.last-section {
    padding-bottom: 7rem;
}


/* Tablet; Auf screens, die 1024px oder weniger breit sind */
@media screen and (max-width: 1024px) { 
    
    .header-line {
        display: none;
    }
    
    .row5 {
        grid-template-columns: repeat(2, 1fr);
    }
	
	/*Navigation*/
	ul li ul {
		position: relative;
		border: none;
	}
	
	ul li ul a {
		font-size: 1.2em!important;
	}
	
	/*Button*/
	.button-wrapper {
    	padding: 0 0 2rem 0;
	}
}


/* Tablet; Auf screens, die 768px oder weniger breit sind */
@media screen and (max-width: 768px) { 
    h2 {
        padding: 0 0 2rem 0;
    }

    /*Nav Mobile*/
    .navbar-topright {
        display: none;
    }

    .sticky-header {
        background: #ffffff;
        max-height: 100%;
        align-items: flex-start;
        transition: all 0.2s ease-in-out;
        -webkit-box-shadow: 5px 5px 20px 2px rgba(0,0,0,0.2);
        box-shadow: 5px 5px 20px 2px rgba(0,0,0,0.2);
        top: 0px !important;
        height: 120px;
		padding: 0;
		width: 100%;
    }

    .logo-main {
        width: 130px; 
		padding: 0 0 0 1rem;
    }

    .x-change .sticky-header {
        height: 100vh;
    }

    header .navbar-mobile-topright {
        display: block;
        margin: 0 1rem 0 0;
        flex-grow: 1;
        height: 0px;
        padding: 1.2rem 0 0 0;
    }

    .menu-mobile-topright {
        list-style-type: none;
        padding: 0;
        text-align: right;
        opacity: 0;
        visibility: hidden;
        width: 0px;
        transition: opacity 0.4s ease-in-out;
        height: 0px;
    }

    .x-change .menu-mobile-topright {
        opacity: 1;
        visibility: visible;
        width: 100%;
    }

    .x-menu {
        width: 50px;
        height: 45px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        cursor: pointer;
        justify-content: space-between;
        padding: 1.8rem 1rem 0 0;
    }

    .bar1, .bar2, .bar3 {
        width: 50px;
        height: 3px;
        background-color: #333;
        margin: 0;
        transition: all 0.4s ease;
        position: relative;
    }

    .bar1 {
        transform: rotate(0deg);
        top: 0px;
    }

    .bar2 {
        transform: rotate(0deg);
        opacity: 1;
    }

    .bar3 {
        transform: rotate(0deg);
        bottom: 0px;
    }

    .x-change .bar1 {
        transform: rotate(45deg);
        top: 23px;
        transition: all 0.4s ease-in-out;
    }

    .x-change .bar2 {
        opacity: 0;
        transition: all 0.4s ease-in-out;
    }

    .x-change .bar3 {
        transform: rotate(-45deg);
        bottom: 18px;
        transition: all 0.4s ease-in-out;
    }
    
    .x-change .menu-mobile-topright {
        width: 100%;
    }
    
    header .menu-mobile-topright li {
        display: block;
    }
    
    header .menu-mobile-topright li a{
        font-size: 1.625rem;
    }

    .overlay {
        position: fixed;
        height: 0vh;
        width: 0vw;
        top: 0px;
        right: 0px;
        left: 0px;
        bottom: 0px;
        z-index: 222;
        background-color: none;
        transition: background-color 0.3s ease-in-out;
    }

    .x-change .overlay {
        background-color: #fff;
        height: 100vh;
        width: 100vw;
    }

    .main-container {
        padding: 7rem 0;
    }

    .row-banner {
        grid-template-columns: 1fr;
    }

    .row1, .row1-2 {
        grid-template-columns: 1fr;
    }

    .row2 {
        grid-template-columns: 1fr; 
    }

    .row4 {
        grid-template-columns: 1fr;
    }

    .row5 {
        grid-gap: 1rem;
    }

    .row5 img {
        width: 6vw;
        height: auto;
    }

    .row6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .smallright {
        grid-column: 2/3;
    }

    .bigleft, .bigright, .full-column {
        grid-column: 1/3;
    }

    /*Besonderheiten*/

    .row7 {
        grid-template-columns: 1fr 1fr;
    }

    .row7 img {
        margin: 20px 0 !important;
    }
	
	/*Kontaktformular*/
	span.wpcf7-list-item {
    	width: 100% !important;
	}

}

/* Smartphone; Auf screens, die 450px oder weniger breit sind */
@media screen and (max-width: 450px) {

    body {
        margin: 100px 0 0 0;
    }

    .banner h2 {
        font-size: 50px;
        line-height: 50px;
    }
	
	.topbar {
    	padding: 0;
	}

    section {
        padding: 0 1rem;
    }

    .sticky-header {
        padding: 0rem;
		height: 100px;
    }

    .x-change .logo-main {
        width: 0px;   
    }

    .smallcenter, .smallright, .bigleft, .bigright, .full-column {
        grid-column: 1/2;
    }

    .x-menu {
        padding: 2rem 1rem 0 0;
        width: 46px;
        height: 30px;
    }

    header .menu-mobile-topright {
        margin: 0 1rem 0 0;
    }

    .bar1, .bar2, .bar3 {
        width: 36px;
        height: 2px;
    }

    .x-change .bar1 {
        top: 15px;
    }

    .x-change .bar3 {
        bottom: 12px;
    }

    .logo-main {
        width: 90px;   
    }

    .main-container {
        padding: 4rem 0;
    }

    .row1, .row1-2 {
        padding: 2rem 0;
    }

    .row5 {
        grid-template-columns: 1fr;
        grid-gap: 1rem;
    }

    .row6 {
        grid-auto-rows: 280px;
        grid-gap: 1rem;
    }
	
	.row-k {
		grid-template-columns: 1fr
	}
	
	.row-k-k {
		display: grid;
		align-items: center;
		grid-template-columns: 1fr 1fr;
		grid-gap: 2rem;
	}
    

    /*Besonderheiten Section*/
    .row5 img {
        width: 25px;
        height: auto;
    }

    /*Kontakt Section*/

    .contact {
        grid-template-columns: 1fr;
		margin: 0;
    }

    .contact > div:nth-child(odd) {
        grid-column: 1 / 1;
    }
    
    .contact > div:nth-child(even) {
        grid-column: 1 / 1;
    }
    
    .contact > div:last-child {
        grid-column: 1 / 1;
    }

    .wpcf7-form-control-wrap {
        display: block;
        padding: 5px 9px 5px 5px;
    }

    .wpcf7-form-control-wrap::before {
        padding: 5px;
    }

    input[type="email"], input[type="search"], input[type="number"], input[type="url"], input[type="tel"], input[type="text"], textarea {
        appearance: none;
        -moz-appearance: none;
        -webkit-appearance: none;
		width: calc(100% - 100px);
        padding: 0 0 0 100px;
    }

    .checkbox-520 {
        padding: 20px 15px;
    }
	
	.checkbox-520:before {
		height: calc(100% - 30px);
		width: calc(100% - 32px);
	}

    textarea {
        padding: 15px 20px 15px 20px !important;
        width: calc(100% - 45px);
        line-height: 1.5rem;
    }

    .ko-button {
        float: inherit;
        margin: 30px 0 0 20px;
    }

    .wpcf7 form .wpcf7-response-output {
        margin: 0em 0.5em 1em;
    }

    /*Download Section*/

    .download-textline {
        width: 50%;
        height: 100px;
        margin: -120px 0px 0 0;
    }
    
    #projekte .tb-l {
        padding: 2rem 1rem;
    }

    .download-card:hover:after {
        display: none;
	}

    .row6 a {
        margin: 0 0 60px 0;
    }


    footer {
        height: auto;
        text-align: center;
    }

    .footer-logo {
        padding: 0.5rem;
    }

    footer section > div {
        justify-content: center;
        flex-wrap: wrap;
        align-items: center;
        flex-direction: column;
    }
}
