*{
margin: 0;
padding: 0;
}
@font-face {
  font-family: 'Alegreya Sans';
  src: url('AlegreyaSans-Regular.ttf') format('truetype');
}
html{
font-size: 12px;
font-family: 'Alegreya Sans', sans-serif;
}

body{
background: -moz-linear-gradient(top, rgb(255,255,255) 0%, rgb(151,213,244) 40%, rgb(151,213,244) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(255,255,255)), color-stop(40%,rgb(151,213,244)), color-stop(100%,rgb(151,213,244))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgb(255,255,255) 0%,rgb(151,213,244) 40%,rgb(151,213,244) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgb(255,255,255) 0%,rgb(151,213,244) 40%,rgb(151,213,244) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgb(255,255,255) 0%,rgb(151,213,244) 40%,rgb(151,213,244) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgb(255,255,255) 0%,rgb(151,213,244) 40%,rgb(151,213,244) 100%); /* W3C */
}

.wrapper{
width: 75rem;
margin: 0 auto;
}

.clear{
clear: both;
}

.content{
height: 89vh;
position: relative;
}

.kontaktdaten{
height: 35rem;
position: relative;

}

.oneCol{
width: 100%;
float: left;
box-sizing: border-box;
padding-top: 3rem;
z-index: 200;
}

.twoCol{
width: 50%;
float: left;
box-sizing: border-box;
padding-right: 2rem;
z-index: 200;
}


.twoCol:last-child{
padding-right: 0;
}

h1, h2{
font-weight: 700;
font-size: 2rem;
line-height: 3rem;
}

h3, h4{
font-weight: 700;
font-size: 1.5rem;
line-height: 2.5rem;
margin-bottom: 0.8rem;
}

a, p, li{
font-weight: 400;
font-size: 1.3rem;
line-height: 2.5rem;
color: rgb(0,0,0);
}

a{
text-decoration: none;
}

p{
margin-bottom: 1rem;
}

article p{
text-align: justify;
}

ul, ol{
list-style: none;
}

.mail{
display: none;
}

/* ----- Header ----- */

header#header{
box-sizing: border-box;
height: 7rem;
padding-top: 2rem;
}

#logo{
width: 25rem;
}

#logo img{
float: left;
width: 4rem;
}

#logo h1{
color: rgb(0,141,54);
text-transform: uppercase;
font-size: 2.5rem;
line-height: 2.5rem;
padding: 2.4rem 0 0 1rem;
float: left;
}

/* ----- Navigation ----- */

#mainNav{
float: right;
margin: 2.5rem 0 0 0;
}

#energieLink, #immobilieLink, #kontaktLink{
background-repeat: no-repeat;
vertical-align: top;
float: left;
margin-left: 1rem;
padding-bottom: 0.5rem;
box-sizing: border-box;
border-bottom: solid 2px rgba(0,141,54,0);
}

#energieLink{
background-image: url("../img/energie.png");
background-size: 1.5rem;
background-position: 2px 0;
}

#energieLink:hover{
background-image: url("../img/energieHover.png");
border-bottom: solid 2px rgb(0,141,54);
}

#immobilieLink{
background-image: url("../img/immobilie.png");
background-size: 1.8rem;
background-position: 0 -4px;
}

#immobilieLink:hover{
background-image: url("../img/immobilieHover.png");
border-bottom: solid 2px rgb(0,141,54);
}

.aktiv{
border-bottom: solid 2px rgb(0,141,54);
}

#kontaktLink{
background-image: url("../img/kontakt.png");
background-size: 1.7rem;
background-position: 3px 1px;
}

#kontaktLink:hover{
border-bottom: solid 2px rgb(0,141,54);
}

#energieLink a, #immobilieLink a, #kontaktLink a{
padding-left: 2rem;
display: inline;
font-size: 2rem;
line-height: 2rem;
}

/* ----- Startseite ----- */
#intro{
padding-top: 10rem;
}

#titleImage img{
position: absolute;
left: 0;
width: 100%;
max-height: 55rem;
}

#contentImage img{
position: absolute;
left: 0;
width: 100%;
}

.foreground{
bottom: 0;
z-index: -10;
}

/* 
.background{
bottom: -2rem;
z-index: -10;
}
*/

.image{
position: absolute;
}

.clickable{
position:absolute;
width: 100%;
bottom: 7%;
}

#energieberatung{
background-image: url("../img/energieberatung.png");
bottom: 0;
height: 27rem;
right: 20rem;
width: 22rem;
z-index: 50;
display:none;
}

#immobilienbewertung{
background-image: url("../img/immobilienbewertung.png");
bottom: 7rem;
height: 20rem;
left: 5rem;
width: 30rem;
z-index: 50;
display: none;
}

.divImg{
background-position: right bottom;
background-repeat: no-repeat;
background-size: contain;
position: absolute;
}

.titleThema{
font-size: 2.5rem;
font-weight: 700;
position: absolute;
color: rgb(255,255,255);
background-color: rgb(0,141,54);
z-index: 100;
padding: 0.5rem;
}

.weiß{
right: 20%;
bottom: 12rem;
}

.grün{
left: 18%;
bottom: -3rem;
}

.content section{
padding-top: 4rem;
box-sizing: border-box;
}


/* ----- Kontakt ----- */

.anschrift p, .anschrift a{
font-size: 1.8rem;
line-height: 3rem;
}

.kontaktdaten{
background-color: rgb(43,156,49);
}

.kontaktdaten h2, .kontaktdaten p, .kontaktdaten a{
color: rgb(255,255,255);
}

.kontaktdaten h2{
line-height: 3.5rem;
margin-bottom: 2rem;
}

.kontaktdaten p, .kontaktdaten a{
font-size: 1.8rem;
line-height: 2rem;
}

.kontaktdaten span{
font-style: italic;
}

.kontaktdaten span a:hover{
text-decoration: underline;
}

#kontakt section{
padding: 2rem 0;
}

.phone{
}

.phone img{
height: 3rem;
float: left;
padding-right: 1rem;
}

.phone h3{
font-size: 3.5rem;
line-height: 3rem;
margin-bottom: 1rem;
}

.phoneLink{
display: none;
}

#pfeil{
width: 2rem;
position: absolute;
bottom:2rem;
right:8rem;

}

#pfeil svg{
height: 2rem;
}

/* ----- Footer ----- */

footer#footer{
width: 100%;
position: fixed;
bottom: 0;
background-color: rgb(143,198,98);
z-index: 5000000;
}

#metaNav ul{
margin: 0 auto;
width: 21rem;
}

#metaNav ul li{
float: left;
margin-right: 2rem;
}

#metaNav ul li:last-child{
margin-right: 0;
}

#metaNav ul li a{
color: rgb(0,0,0);
text-decoration: underline;
font-size: 1.2rem;
line-height: 2rem;
}

/* ----- Media-Query ----- */

@media screen and (max-device-width: 960px){
.wrapper{
width: 100%;
padding: 0 2rem;
z-index: 100000;
}

#kontakt section{
padding: 0 2rem;
box-sizing: border-box;
}

}

@media screen and (max-device-width: 820px){

#logo img{
width: 3rem
}

#logo h1{
font-size: 2rem;
padding-top: 1.4rem;
}

#mainNav{
margin: 1.5rem 1rem 0 0;
}

#energieLink a, #immobilieLink a, #kontaktLink a{
font-size: 1.5rem;
}

.phoneLink h1, #energieberatung h1, #immobilienbewertung h1{
font-size: 1.4rem;
}

.titleThema{
font-size: 1.5rem;
}


}

@media screen and (max-device-width: 675px){

#titleImage img{
position: fixed;
}

#top{
margin: 0 auto;
width: 100%;
}

#logo{
margin: 0 auto;
width: 22rem;
margin-bottom: 2rem;
}

#mainNav{
float: left;
}


.twoCol{
width: 100%;
position: relative;
}

.kontaktdaten{
height: 80vh;
}

.content{
height: 100vh;
}
.titleThema, .divImg{
display: none;
}

article p{
text-align: left;
}

}

@media screen and (max-device-width: 490px){


#top{
width: 100%;
}

#logo{
margin: 0;
width: auto;
}

#mainNav{
width: 100%;
}

#energieLink, #immobilieLink, #kontaktLink{
margin-left: 0;
width: 100%;
margin-bottom: 1rem;
}

#energieLink a, #immobilieLink a, #kontaktLink a{
font-size: 2rem;
font-weight: 700;
}

.kontaktdaten{
height: 100vh;
}



}

/*
@media screen and (min-width: 768px) and (min-height: 1024px){
#energieberatung{bottom: 0; right: 12rem; height:18rem;}
#immobilienbewertung{bottom: 3rem; height:15rem; width: 20rem;}
.weiß{bottom: 36%;}
.grün{bottom: 38%;}
.content{height: 60vh;}
}*/
@media screen and (min-width: 960px) and (min-height: 1280px){
#immobilienbewertung{bottom: 41%;}
.grün{bottom:40%;}
}
@media screen and (min-width: 960px) and (max-height: 500px){
.content{height:110vh;}
}
@media screen and (min-width: 850px) and (max-height: 500px){
.content{height:110vh;}
}
@media screen and (max-width: 670px) and (max-height: 630px){
.content{height:110vh;}
}
@media screen and (max-width: 960px){
#energieberatung{height: 20rem; right: 10rem;}
#immobilienbewertung{height: 16rem; width: 24rem; bottom: 0;}
.grün{bottom: 0;}
.clickable{bottom: 11%;}
}

@media screen and (min-width: 1024px) and (min-height: 768px){
#energieberatung{bottom: 44%; right: 10rem;}
#immobilienbewertung{bottom: 48%;}
.grün{bottom: 0;}
}
@media screen and (min-width: 1024px) and (max-height: 650px){
.content{height:110vh;}
}

/*@media screen and (min-width: 1280px) and (min-height: 600px){
#energieberatung{bottom: 11%; right: 20rem;}
#immobilienbewertung{bottom: 16%;}
.weiß{bottom: 10%;}
.grün{bottom: 16%; left:17%;}
}

@media screen and (min-width: 1500px){
.clickable{bottom: 10%;}
#immobilienbewertung{bottom: 9rem;}
}*/

@media screen and (min-width: 1600px) and (min-height: 750px){
#energieberatung{right:30rem; height: 32rem; width: 29rem;}
#immobilienbewertung{left: 12rem;bottom: 4rem; height: 25rem; width: 37rem;}
.weiß{bottom: 4rem; right: 8rem;}
.grün{left: 7rem; bottom: -3rem;}
.clickable{bottom: 15%;}
}

@media screen and (max-device-width: 450px){
.content{
height: 120vh;
}

@media screen and (max-device-width: 420px){
.content{
height: 140vh;
}
}

@media screen and (max-device-width: 350px){
.content{
height: 160vh;
}
}
