a {
text-decoration: none;
}
#nav ul, #nav li {
list-style: none;
margin: 0;
padding: 0;
}
#nav {
font-family: 'Open Sans Condensed', sans-serif;
font-weight:700;
position: relative;
z-index:99;
width: 100%;
top:0;
left:0;
padding:0 0 0 0;
text-transform:uppercase;
}
#nav > a {
display: none;
}
#nav li {
position: relative;
}
#nav li a {
color: #888;
display: block;
text-decoration: none;
}
#nav li a:active {
color:#000 !important;
}

.aktiv {
color:#000 !important;
}


#nav span:after {
width: 0;
height: 0;
border: 0.313em solid transparent; /* 5 */
border-bottom: none;
border-top-color: #888;
content: '';
vertical-align: middle;
display: inline-block;
position: relative;
right: -0.313em; /* 5 */
}

/* first level */

#nav > ul {
margin: 10px 2% 0 0;
float:right;
}
#nav > ul > li {
height: 100%;
float: left;
margin: 0 20px;
}

#nav > ul > li > a {
height: 100%;
font-size: 1.3em; /* 24 */
line-height: 1.9em; /* 60 (24) */
text-align: center;
padding: 0 0 20px 0;
}
#nav > ul > li:not( :last-child ) > a {
border-right: 0px solid #666;
}
#nav > ul > li:hover > a, #nav > ul:not( :hover ) > li.active > a {
color:#000 !important;
}
/* second level */

#nav li ul {
display: none;
position: absolute;
top: 100%;
z-index:99;
text-transform:none;
background-image:url(../htgr_nav.png); 
background-repeat: repeat; 
margin: 0 0 0 -10px;
border-left:1px solid #666;
}
#nav li:hover ul {
display: block;
left: 0;
}
#nav li:not( :first-child ):hover ul {
left: -1px;
}

#nav li ul a {
font-size: 1.1em; /* 20 */
border-bottom: 1px solid #666;
color:#888;
padding: 10px 10px;
margin: 0 0 0 0;
text-align: left;
}

#nav li ul li a:hover, #nav li ul:not( :hover ) li.active a {
  -webkit-transition: all .2s ease;
  -moz-transition: all .2s ease;
  -ms-transition: all .2s ease;
  -o-transition: all .2s ease;
  transition: all .2s ease;
  border-bottom: 3px solid #666;
  font-weight:700;
  color:#000;
}


 @media only screen and ( max-width: 800px )  {
#nav {
position: relative;
top: 0;
right:0;
padding:0;
background-color: #fff;
-moz-box-shadow: none;
-webkit-box-shadow:none;
box-shadow: none;
width: 100%;
float: right;
}

#nav > ul {
margin: 0 0 0 0;
float:right;
}

#nav > a {
width: 3.2em; /* 50 */
height: 3.2em; /* 50 */
text-align: left;
text-indent: -9999px;
background-color: #666 ;
position: relative;
float:right;
z-index: 99;

}
#nav > a:before, #nav > a:after {
position: absolute;
border: 2px solid #fff;
top: 35%;
left: 25%;
right: 25%;
content: '';
}
#nav > a:after {
top: 60%;
}
#nav:not( :target ) > a:first-of-type, #nav:target > a:last-of-type {
display: block;
}

#nav li a:active {
color:#000 !important;
background-image:none;
}

.aktiv {
color:#000 !important;
background-image:none;
}

/* first level */


#nav > ul {
height: auto;
display: none;
position: absolute;
left: 0;
right: 0;
background-color: #fff ;
}
#nav:target > ul {
display: block;
}
#nav > ul > li {
width: 100%;
float: none;
margin: 0 0px;

}



#nav > ul > li > a {
height: auto;
text-align: left;
padding: 0.28em 0.833em; /* 20 (24) */
}
#nav > ul > li:not( :last-child ) > a {
border-right: none;
border-bottom: 1px solid #666;
}
#nav > ul > li:hover > a, #nav > ul:not( :hover ) > li.active > a {
	background-image:none;
	background: #666;
color:#fff !important;
  -webkit-transition:none;
  -moz-transition: none;
  -ms-transition:none;
  -o-transition:none;
  transition: none;

}

/* second level */

#nav li ul {
position: static;
padding: 0; /* 20 */
padding-top: 0;
}

#nav li ul a {
font-size: 1.1em; /* 20 */
border-bottom: 1px solid #666;
padding: 10px 40px;
text-align: left;
background-color: #f0f0f0;
}

#nav li ul li a:hover, #nav li ul:not( :hover ) li.active a {
	background-image:none;
	background: #666;
  -webkit-transition: all .2s ease;
  -moz-transition: all .2s ease;
  -ms-transition: all .2s ease;
  -o-transition: all .2s ease;
  transition: all .2s ease;
color:#fff !important;


}
