nav {
margin: 0;
z-index: 1;
float: left;
width: 100%;

}

.vpg .mobilenav {display: block !important;}

nav ul
{
			float: left;
            margin: 0;
			padding: 0;
			list-style-type: none;
            display: flex; flex-wrap: wrap;
            width: 100%; justify-content: center;
}

nav ul li {
                         display: block;
                         float: left;
                         margin: 0; padding: 0;
                         position: relative;
                         z-index: 3; width: 100%;

}


nav ul li a {
float: left;
display: block;
padding: 40px 30px;
margin: 0; position: relative; z-index: 2;
font-size: 19px; font-weight:400;
text-align: center; color:#9ca0a3;
box-sizing: border-box;
width: 100%;
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
transition: all 0.5s; text-transform: uppercase;
letter-spacing: 1px;
border-bottom: 1px solid #50585d;
}
@media only screen and (max-height:1000px) {
nav ul li a {
padding: 20px 30px;
}
}

nav ul li a#link1::before {
    content:""; display: block; width: 100%; height: 50px; background: url('images/erfahrung.svg') no-repeat center center; margin:0 0 5px 0;
}
nav ul li a#link2::before {
    content:""; display: block; width: 100%; height: 50px; background: url('images/preise.svg') no-repeat center center; margin: 0 0 5px 0;
}
nav ul li a#link3::before {
    content:""; display: block; width: 100%; height: 50px; background: url('images/leistungen.svg') no-repeat center center; margin: 0 0 5px 0;
}
nav ul li a#link4::before {
    content:""; display: block; width: 100%; height: 50px; background: url('images/kontakt.svg') no-repeat center center; margin: 0 0 5px 0;
}
nav ul li a#link6::before {
    content:""; display: block; width: 100%; height: 50px; background: url('images/referenzen.svg') no-repeat center center; margin: 0 0 5px 0;
}
nav ul li a:link, nav ul li a:visited {
text-decoration: none;
}

nav ul li a.aktiv {
background:#8d3c27; color:#9ca0a3;  
}

nav ul li a:hover, nav ul li a:active {
background:#8d3c27; color:#9ca0a3;
}


nav ul.unternav {
position: absolute;
top: 60px; z-index: 5;
left: 0; padding:10px 0 0;
width: 100%;
min-width: 280px;
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
transition: all 0.5s;
opacity: 0;
display: block;
visibility: hidden;
}
.vpg nav ul.sichtbar { opacity: 1; top:49px; visibility: visible; }


nav ul.unternav li {width: 100%; margin: 0;}
nav ul.unternav li a {
padding: 10px 30px;
margin: 0;
font-size: 0.9em;
font-weight: 400;
border: none;
height: auto;
background:#000; background: rgba(0,0,0,0.8);
width: 100%;
text-transform: none;
text-align: left;
border-top: 1px solid #fff;
}

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: #8d3c27; color: #fff;
}

nav ul.unternav li a.aktiv2 {
color: #fff;
background:#8d3c27;
}

nav ul.unternav li:last-child a {
    border-bottom: 0;
}


footer ul
{
			display: inline-block;
            margin: 0;
			padding: 0;
			list-style-type: none; width: auto;
}

footer ul li {
                         display: inline-block;
                         margin: 0; padding: 0;

}

footer ul li a {display: block; padding:0 10px; border-left:1px solid #9ca0a3;  }

footer ul li:first-child a {
    border-left: 0;
}

footer a {
    color: #9ca0a3;
}
footer a:hover {
    color: #fff;
}

span.qn {display: none; font-family: icons; font-size: 1.5em;
position: absolute; top: 0; right: 0; z-index: 4; width: 20px; height: 26px; cursor: pointer; padding: 10px; color:#fff; background: rgba(0,0,0,0.6);}

#copyright a {
    color: #fff;
}

a.totop {
    bottom: 0;
    position: fixed;
    right: 30px;z-index: 9; display: block;
    font-family: 'icons'; 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: #8d3c27; text-decoration: none;}

#wrap .social  { position: fixed; right:0; top: 120px;font-size: 1.2em; text-align: right; z-index: 90; margin: 0; padding: 0; }


.social a {display: block; margin:5px 0; padding: 10px;text-decoration: none; font-weight: 400; background: #fff; -webkit-border-top-left-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
-moz-border-radius-topleft: 5px;
-moz-border-radius-bottomleft: 5px;
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;}


#wrap .social a {
    color: #8d3c27;
}
.social a:hover {
    color: #fff !important; background: #8d3c27;
}

.social a.fblink { font-family: 'icons'; font-size: 1.1em;  margin:5px 0; line-height: 20px;}
.social a.instlink { font-family: 'icons'; font-size: 1.3em;margin:5px 0; position: relative; line-height: 20px;}
a.tellink {font-family:'icons'; font-size: 1.3em;margin:5px 0; position: relative; line-height: 20px;}
a.cryptmail {font-family:'icons'; font-size: 1.3em;margin:5px 0; position: relative; line-height: 20px;}

.social a.cryptmail2::before {
  display: inline-block; padding: 0 10px 0 0;
  font-family: 'icons';
  text-decoration: none;
  font-size: 1.1em;
  content: "\e803";
}


 #menuelink {display: none; position: absolute; top: 25px; right: 3%; margin:5px; padding: 2px 5px;text-decoration: none; width: 30px; height: 30px; z-index: 10;}
 #menuelink span { display: block; float: left; width: 30px; height: 3px; background:#fff; position: absolute; top: 7px; left: 0;
-webkit-transition: all 0.2s;
-moz-transition: all 0.2s;
transition: all 0.2s;
transform-origin: center;}
#menuelink span#mlm { top: 15px; }
#menuelink span#mlu { top: 23px; }
#menuelink.open span#mlo {-webkit-transform: rotate(45deg) translate(7px,8px); -moz-transform: rotate(45deg) translate(7px,8px); transform: rotate(45deg) translate(7px,8px); }
#menuelink.open span#mlm { display: none; }
#menuelink.open span#mlu {-webkit-transform: rotate(-45deg) translate(4px,-4px); -moz-transform: rotate(-45deg) translate(4px,-4px); transform: rotate(-45deg) translate(4px,-4px); }


a#nulink { font-family: icons; font-size: 2.0em; text-decoration: none; position: absolute;
padding:10px 0; bottom: 5%; left: 50%; margin: 0 0 0 -25px;
width: 50px; height: 50px; box-sizing: border-box;
font-weight: normal;
color: #fff;
z-index: 200; text-align: center;
opacity:0.7;-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
transition: all 0.3s;
line-height: 30px;
border-radius: 30px;
-moz-border-radius: 30px;
-webkit-border-radius: 30px;
background: rgba(0,0,0,0.3);
}
#bilder:hover a#nulink {
bottom:3%;
}
a#nulink:hover {opacity:0.9; color: #fff; background: #000;}

.iglink {
    font-family: icons; font-size: 2.7em; margin: 10px 0; display: inline-block;
}

.shareandprint {float: left; font-family: icons; margin: 10px 0; }
.shareandprint a {display: block; float: left; padding: 10px; margin: 0 5px; font-size: 1.4em; color: #fff !important; width:29px; height: 29px; line-height: 30px; text-align: center; border-radius: 40px; -moz-border-radius: 40px; -webkit-border-radius: 40px; background: #000; }
.shareandprint a:hover { background: #8d3c27;  }

@media only screen and (max-width: 1360px) {


}
@media only screen and (max-width: 1160px) {

span.qn {display: block;}

.mobilenav {display: none;}
nav {  width: 100%; margin: 0; padding:0; text-align: center; }
nav ul {width: 100%;flex-wrap:wrap;}
nav ul li {
                         display: block;
                         float: left;
                         z-index: 2;
                         width: 100%;
                         margin: 0;
}

nav ul li a {
width: 100%;
text-align: center;padding: 10px 0 8px;
margin: 0;
border-right: none;
border-left: none; font-size: 1.1em; height: auto;text-shadow: none;
}
nav ul li a span {padding: 0 !important; border: 0 !important;}

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;-webkit-transition:none;
-moz-transition:none;
transition:none;
opacity: 1 !important; top: 0; visibility: visible !important;}
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%; font-size: 1.0em; text-align: center; }

#menuelink {display: block;}

#unternav {float: left; width: 100%;padding: 0 0 10px;}

a#nulink { font-size: 2.0em;
padding:10px 0; bottom: 5%;margin: 0 0 0 -25px;
width: 50px; height: 50px; }


}
@media only screen and (max-width: 960px) {
aside#unternavigation {
    float: left; width: 92%; margin: 10px 4%;border-right:0; border-top: 1px solid #ccc;
}

}
@media only screen and (max-width: 680px) {
#unternav ul li a {font-size: 1.1em;}
a.totop {padding:8px 15px;}
.social a.cryptmail2 {
    display: none;
}
}

