a {
text-decoration: none;
}
#nav ul, #nav li {
list-style: none;
margin: 0;
padding: 0;
}
#nav {
font-family: 'Rockwell', serif;	font-weight: 300;
font-weight:normal;
position: absolute;
z-index:99;
width: 100%;
top:3%;
left:0;
padding:0 0 0 0;
background-image:url(../htgr_nav.png); 
background-repeat: repeat; 
-moz-box-shadow: 0px 3px 5px #000;
-webkit-box-shadow: 0px 3px 5px #000;
box-shadow: 0px 3px 5px #000;
}
#nav > a {
display: none;
}
#nav li {
position: relative;
}
#nav li a {
color: #ccc;
display: block;
text-decoration: none;
}
#nav li a:active {
background-image:url(../htgr_nav_highlight.png !important);
background-repeat:repeat;
}

.aktiv {
background-image:url(../gra_stern.png) !important;
background-repeat:no-repeat;
background-position:0px center;
color:#ccc !important;
}

.aktiv-2 {
background-image:url(../htgr_nav_highlight-2.png)!important;
background-repeat:no-repeat;
background-position:10px center;
color:#ccc !important;
}

#nav span:after {
width: 0;
height: 0;
border: 0.313em solid transparent; /* 5 */
border-bottom: none;
border-top-color: #ccc;
content: '';
vertical-align: middle;
display: inline-block;
position: relative;
right: -0.313em; /* 5 */
}

#nav li:hover span:after {
width: 0;
height: 0;
border: 0.313em solid transparent; /* 5 */
border-bottom: none;
border-top-color: #000;
content: '';
vertical-align: middle;
display: inline-block;
position: relative;
right: -0.313em; /* 5 */
}

/* first level */

#nav > ul {
margin: auto;
float:right;
position: absolute;
bottom:0;
right: 0;

}
#nav > ul > li {
height: 100%;
float: left;
}
#nav > ul > li > a {
height: 100%;
font-size: 1.3em; /* 24 */
line-height: 1.5em; /* 60 (24) */
text-align: center;
min-width: 130px;
padding: 3px 15px;
}
#nav > ul > li:not( :last-child ) > a {
border-right: 0px solid #ff290b;
}
#nav > ul > li:hover > a, #nav > ul:not( :hover ) > li.active > a {
background-image:url(../htgr_nav_highlight.png)!important;
background-repeat:repeat;
color:#000!important;
  -webkit-transition: all .3s ease;
  -moz-transition: all .3s ease;
  -ms-transition: all .3s ease;
  -o-transition: all .3s ease;
  transition: all .3s ease;
}
/* second level */

#nav li ul {
display: none;
position: absolute;
top: 100%;
z-index:99;
-moz-box-shadow: 0px 3px 5px #000;
-webkit-box-shadow: 0px 3px 5px #000;
box-shadow: 0px 3px 5px #000;
}

#nav li:hover ul {
display: block;
right: 0;
}
#nav li:not( :first-child ):hover ul {
left: 0px;
}
#nav li ul a {
background-image:url(../htgr_nav_highlight.png);
background-repeat:repeat;
font-size: 1.1em; /* 20 */
border-bottom: 1px solid #ccc;
padding: 10px 10px;
text-align: center;
min-width: 130px;
color:#333;
}
#nav li ul li a:hover, #nav li ul:not( :hover ) li.active a {
background-image:url(../htgr_nav_highlight-2.png);
background-repeat:repeat;
  -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:#000!important;

}
 @media only screen and ( max-width: 85em ) /* 1360 */ {
html {
font-size: 1em; /* 12 */
}
#nav {
position: relative;
top: 0;
right:0;
padding:0;
background-image:none; 
background-color: #111;
-moz-box-shadow: none;
-webkit-box-shadow:none;
box-shadow: none;
width: 100%;
float: right;
}
#nav > a {
width: 2.7em; /* 50 */
height: 2.7em; /* 50 */
text-align: left;
text-indent: -9999px;
background-color: #ff290b ;
position: relative;
float:right;
z-index: 99;
}

.aktiv {
background-image:url(../gra_stern.png) !important;
background-repeat:no-repeat;
background-position:2px center;
color:#ccc !important;
}

#nav > a:before, #nav > a:after {
position: absolute;
border: 2px solid #ccc;
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;
}
/* first level */

#nav > ul {
height: auto;
display: none;
position: absolute;
top:0;
left: 0;
right: 0;
bottom:auto;
background-color: #333 ;
-moz-box-shadow: 3px 3px 5px #000;
-webkit-box-shadow: 3px 3px 5px #000;
box-shadow: 3px 3px 5px #000;
}



#nav:target > ul {
display: block;
}
#nav > ul > li {
width: 100%;
float: none;
}
#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 #ff290b;
}
#nav > ul > li:hover > a, #nav > ul:not( :hover ) > li.active > a {
	background-image:none;
	background: #666;
color:#000!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: 1em; /* 20 */
border-bottom: 1px solid #ff290b;
padding: 10px 40px;
text-align: left;
background-color: #ccc;
}


}
