nav {
margin: 0;
z-index: 1;
text-align: center;
display: inline-block;
}

.vpg nav.mobilenav {display: inline-block !important;}

nav ul
{
            margin: 0;
			padding: 0;
			list-style-type: none;
            display: flex; flex-wrap: nowrap;
            width: auto;
}

nav ul li {
                         display: inline-block;
                         margin: 0; padding: 0;
                         position: relative;
                         z-index: 3; height:60px;
}


nav ul li a {
float: left;
display: block;
padding:20px 40px;
margin: 0; position: relative; z-index: 2;
font-size: 17px; font-weight: normal;
text-align: center; color:#fff;
box-sizing: border-box;
width: 100%;
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
transition: all 0.5s;
}

nav ul li a:link, nav ul li a:visited {
text-decoration: none;
}


nav ul li a:hover, nav ul li a:active {
color: #000000; background: #fff;
}

nav ul li a.aktiv {
color: #000000; background: #fff;
}


nav ul.unternav {
display: none;
position: absolute;
top: 105px; z-index: 5;
left: 0; padding:5px 0 0;
width: 100%;
min-width: 200px;
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
transition: all 0.5s;
}
.vpg nav ul.sichtbar { display: block;}

nav ul.unternav li {width: 100%; margin: 0;}
nav ul.unternav li a {
padding: 12px 5%;
margin: 0;
font-size: 1.0em;
border: none;
height: auto;
background:#fff;
width: 100%;
text-transform: none;
text-align: left;
}

nav ul.unternav li a:link, nav ul.unternav li a:visited {
color:  #000000;text-shadow: none;
}

nav ul.unternav li a:hover, nav ul.unternav li a:active {
background: #000000;color: #fff;
}

nav ul.unternav li a.aktiv2 {
color: #fff;
background: #000000;
}

nav ul.unternav li:last-child a {
    border-bottom: 0;
}
footer a {color: #eee;}
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: 27px; cursor: pointer; padding: 12px; color:#000000; background: rgba(255,255,255,0.6);}


#footnav {  }
#footnav a {display: block; float: left; width: 96%;  padding: 3px 2%; }
#footc 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: #f2f3f8; color: #000000 !important; text-decoration: none;}

#social  { position: fixed; right: 0; top: 100px; font-family: 'icons';font-size: 2.0em; width: 50px; text-align: center; z-index: 10; }
#social a {display: block; width: 100%; float: left; margin:2px 0; background:#fff; background: rgba(255,255,255,0.8); padding: 5px 0; color: #000000; line-height: 30px;}
#social a:hover {  background: #000000; color: #fff; text-decoration: none;}


 #menuelink {display: none; position: absolute; top: 50px; right: 5%; margin:5px; padding: 2px 5px;text-decoration: none; width: 30px; height: 30px;
 }
 #menuelink span { display: block; float: left; width: 30px; height: 3px; background: #000000; 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: 5px;}
#menuelink.open span#mlm { display: none; }
#menuelink.open span#mlu {-webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); transform: rotate(-45deg); top: 5px; }


a#nulink { font-family: icons; font-size: 3.0em; text-decoration: none; position: absolute;
padding:15px 0; bottom: 5%; left: 50%; margin: 0 0 0 -30px;
width: 60px;
font-weight: normal;
color: #fff;
z-index: 200; text-align: center;
opacity:0.6;-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
transition: all 0.3s;}
#bilder:hover a#nulink {
bottom:3%;
}
a#nulink:hover {opacity:0.9;}


.iglink {
    font-family: icons; font-size: 2.7em; margin: 10px 0; display: inline-block;
}

@media only screen and (max-width: 1160px) {
footer a.totop {bottom: 10px; right: 10px; }

span.qn {display: block;}

.mobilenav {display: none;}
nav {  width: 100%; margin: 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; height: auto;
}

nav ul li a {
width: 100%;
text-align: center;padding: 15px 0;
margin: 0;
border-right: none;border-bottom: 1px solid #fff;
border-left: none; font-size: 1.1em; height: auto;text-shadow: 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;
}

a.totop { right: 20px;}

#menuelink {display: block;}

#unternav {float: left; width: 100%;padding: 0 0 10px;}
}

@media only screen and (max-width: 680px)
{
#social  { top: 130px;  }
#unternav ul li a {font-size: 1.1em;}
a.totop {padding: 10px 15px;}


}

@media only screen and (max-width: 460px) {
a.totop {bottom:50px;  }
#facebook {font-size: 22px; top: 5px; right: 1%;}   
}
