
nav {
margin: 0;
z-index: 1;
float: left;
width: 100%;
}

.vpg nav.mobilenav {display: block !important;}

nav ul
{
			float: left;
            margin: 0;
			padding: 0;
			list-style-type: none;width: 100%;
}

nav ul li {
                         display: block;
                         float: left;
                         margin: 0; padding: 0;
                         position: relative;
                         z-index: 3; width: 20%;
}


nav ul li a {
float: left;
display: block;
padding: 20px 0;
margin: 0; position: relative; z-index: 2;
font-size: 18px; font-weight: 400;
text-align: center; text-transform: uppercase;
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
transition: all 0.5s;
letter-spacing: 1px;
height: 20px; width: 100%;
color: #fff;
}

nav ul li a#link1 span::before {
    content: "";
    display: block; float: left;
    width:25px;height: 25px; background: url('images/wohnen.png') no-repeat;
    background-size: 23px auto;margin: -2px 7px 0;

}
nav ul li a#link2 span::before {
    content: "";
    display: block; float: left;
    width:25px;height: 25px; background: url('images/ueber-uns.png') no-repeat;
    background-size: 23px auto;margin: -3px 7px 0;

}
nav ul li a#link3 span::before {
    content: "";
    display: block; float: left;
    width:25px;height: 25px; background: url('images/service.png') no-repeat;
    background-size: 23px auto;margin: -3px 7px 0;

}
nav ul li a#link4 span::before {
    content: "";
    display: block; float: left;
    width:25px;height: 25px; background: url('images/projekte.png') no-repeat;
    background-size: 23px auto;margin: -3px 7px 0;

}
nav ul li a#link5 span::before {
    content: "";
    display: block; float: left;
    width:20px;height: 25px; background: url('images/kontakt.png') no-repeat;
    background-size: auto 23px;margin: -3px 5px 0;

}

nav ul li a:link, nav ul li a:visited {
text-decoration: none;
}

nav ul li a:hover, nav ul li a:active {
color: #fff;
}

nav ul li a span {
display: inline-block;
}

nav ul li a:hover span {
    border-bottom: 2px solid #fff;
}

nav ul li a.aktiv {
font-weight: bold;
}

nav ul li a.aktiv span {
    border-bottom: 2px solid #fff;
}

nav ul.unternav {
display: none;
position: absolute;
top:55px; z-index: 5;
left: 0; padding:5px 0 0;
width: 100%;
-webkit-transition: top 0.5s;
-moz-transition: top 0.5s;
transition: top 0.5s;
}


.vpg nav ul.sichtbar { display: block;}

nav ul.unternav li {width: 100%; margin: 0;}
nav ul.unternav li a {
padding: 15px 5%;
margin: 0;
font-size: 1.1em;
border: none;
height: auto;
background: #26229d;
background: rgba(38,34,157,0.8);
width: 90%;
text-transform: none;
text-align: center;
border-top: 1px solid #fff;
letter-spacing: 0;
}
nav ul.unternav li:first-child a { border-top: 0; }

nav ul.unternav li a:link, nav ul.unternav li a:visited {
color: #fff;text-shadow: none;
}

nav ul.unternav li a:hover, nav ul.unternav li a:active {
background:#26229d; color: #fff;
}

nav ul.unternav li a.aktiv2 {
color: #fff;
background:#26229d;
}

nav ul.unternav li:last-child a {
    border-bottom: 0;
}


span.qn {display: none; font-family: fontello; font-size: 1.5em;
position: absolute; top: 0; right: 0; z-index: 4; width: 20px; height: 23px; cursor: pointer; padding: 12px; color: #26229d; background: #fff; background: rgba(255,255,255,0.8); }

#unternav {float: right; width: 90%; margin: 0 0 10px; padding: 0 5% 10px;  }
#unternav h3 {float: left; width: 90%; margin: 10px 0; padding: 0 5%;  }
#unternav ul {float: left; width: 100%; margin: 0; padding: 0; list-style-type: none;}
#unternav ul li {float: left; width: 100%; margin: 0; padding: 0;}
#unternav ul li a {float: left; width: 90%; padding: 12px 5%;color: #333;text-shadow: none; font-size: 1.0em; border-top: 1px solid #f5f2f0;  }

#unternav ul li a.aktiv2 {background:#26229d; color: #fff;font-weight: bold; }
#unternav ul li a:hover {background:#26229d; color: #fff; text-decoration: none; }



#footnav {  }
#footnav a {display: block; float: left; width: 96%;  padding: 3px 2%; }
#footnav a:first-child { border-top: 0; }

footer a { color:#fff; text-shadow: none; }
footer a:hover { text-decoration: none;}
#footc a {  color: #fff; display: inline-block; }
#footc a:hover { color: #eee; text-decoration: underline; }

a.totop {
    bottom: 0;
    position: fixed;
    right: 20px;z-index: 9; display: block;
    font-family: 'fontello'; font-size: 1.5em; z-index: 30;
    background:#000; background: rgba(0,0,0,0.4); color: #fff !important; padding: 10px 20px;text-decoration: none;
}
a.totop:hover {  background: #fff; color: #26229d !important; text-decoration: none;}





 #menuelink {display: none; position: absolute; top: 35px; left: 20px; margin:5px; padding: 2px 5px;text-decoration: none; width: 30px; height: 30px;}
 #menuelink span { display: block; float: left; width: 30px; height: 2px; background:#26229d; position: absolute; top: 0; left: 0;
-webkit-transition: all 0.2s;
-moz-transition: all 0.2s;
transition: all 0.2s;}
#menuelink span#mlm { top: 8px; }
#menuelink span#mlu { top: 16px; }
#menuelink.open span#mlo { -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); transform: rotate(45deg); top: 8px;}
#menuelink.open span#mlm { display: none; }
#menuelink.open span#mlu {-webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); transform: rotate(-45deg); top: 8px; }


.shareandprint {
    font-family: fontello; float: left; padding: 10px 0;
}
.shareandprint a {
 display: inline-block; padding: 11px 0; box-sizing: border-box; width: 50px; height: 50px; font-size: 27px; margin: 3px; text-align: center;
 background: #26229d; color: #fff;border-radius: 30px; -moz-border-radius: 30px; -webkit-border-radius: 30px;
}
.shareandprint a:hover {
  background:#d5d2d0; color: #333;
}




@media only screen and (max-width: 1060px) {
#social a.cryptmail { display: none; }
}

@media only screen and (max-width: 960px)
{
footer a.totop {bottom: 10px; right: 10px; }
#social a.cryptmail { display: block; }
span.qn {display: block;}

.mobilenav {display: none;}
nav {  width: 100%; margin: 0; text-align: center;  }
nav ul {width: 100%;}
nav ul li {
                         display: block;
                         float: left;
                         z-index: 2;
                         width: 100%;
                         margin: 0;
}

nav ul li a {
width: 100%;
text-align: center;padding: 13px 0;
margin: 0;
border-right: none;border-top: 1px solid #d2d3d2;
border-left: none;
}

nav ul li a:hover, nav ul li a:active {
text-decoration: none;
border-left: none; 
border-right: none;margin: 0;
}

nav ul li a.aktiv {
border-left: none;
border-right: none; margin: 0;
}

nav ul.unternav {display: none; position: relative; top: 0; width: 100%;padding: 0;}
nav ul.umenaktiv { display: block; visibility: visible !important; position: relative; top: 0; width: 100%;}
nav ul.unternav li {width: 100%;}
nav ul.unternav li a {margin: 0;width: 100%; padding: 10px 0;}
a.totop { right: 20px;}

#menuelink {display: block;}
#social {top:30px; right: 90px;}

#unternav {float: left; width: 100%;padding: 0 0 10px;}
}

@media only screen and (max-width: 680px)
{

#unternav ul li a {font-size: 1.1em;}
a.totop {padding: 10px 15px;}
}

@media only screen and (max-width: 460px) {
a.totop {bottom:50px;  }
#social {right: 80px; font-size: 20px; }
}
