/*************************************************
* Nav Bar
*************************************************/

#nav {
	position: fixed;
	top: 0;
	z-index: 11198;
	left: -110%;
	height: 100%;
	background: #fff;
	color: #404042;	
	
	-webkit-box-shadow: 0 0 6px 0 rgba(0,0,0,0.8);
	box-shadow: 		0 0 6px 0 rgba(0,0,0,0.8);
	
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	
	-webkit-transition: left 800ms ease, border 500ms ease;
	-moz-transition: 	left 800ms ease, border 500ms ease;
	-ms-transition: 	left 800ms ease, border 500ms ease;
	-o-transition: 		left 800ms ease, border 500ms ease;
	transition: 		left 800ms ease, border 500ms ease;
	
	width: 615px;
	padding-top: 80px;
}

#nav.active {
	left: 0;
}

/*************************************************
* Overlay
*************************************************/

#overlay {
	width: 100%;
	height: 100%;
	position: fixed;
	left: 0;
	top: 0;
	background: rgba(240,240,240,0.9);
	z-index: -999;	
	opacity: 0;
	
	-webkit-transition: opacity 800ms ease;
	-moz-transition: 	opacity 800ms ease;
	-ms-transition: 	opacity 800ms ease;
	-o-transition: 		opacity 800ms ease;
	transition: 		opacity 800ms ease;

}

#overlay.oactive {
	opacity: 1;
	z-index: 99;
}

/*************************************************
* Nav Icon
*************************************************/

#navicon span,
#navicon span:before,
#navicon span:after {
	position: absolute;
	display: inline-block;
	background-color: #930132;
	
	height: 3px;
	width: 26px;

	-webkit-transition: all 500ms ease;
	-moz-transition: 	all 500ms ease;
	-ms-transition: 	all 500ms ease;
	-o-transition: 		all 500ms ease;
	transition: 		all 500ms ease;
}

#navicon span {
    left:   25px;
    top:   38px;
}

#navicon span:before {
    content: "";
    left: 0;
}

#navicon span:after {
    content: "";
    left: 0;
    top: -8px;
}

#navicon span:before {
    top: 8px;
}

/* Active */

#navicon.active span {
	background: rgba(0,0,0,0);
}

#navicon.active span:before,
#navicon.active span:after {
	position: absolute;
    left: 0;
    top: 0;
    width: 25px;
}

#navicon.active span:before {
	-webkit-transform: 	rotate(-45deg);
    -moz-transform: 	rotate(-45deg);
    -o-transform: 		rotate(-45deg);
    -ms-transform: 		rotate(-45deg);
    transform: 			rotate(-45deg);
}

#navicon.active span:after {
     -webkit-transform: rotate(45deg);
     -moz-transform: 	rotate(45deg);
     -o-transform: 		rotate(45deg);
     -ms-transform: 	rotate(45deg);
     transform: 		rotate(45deg);
}

/*************************************************
* Nav Menu Items
*************************************************/

#nav a {
	font-family: 'ForoSans-Light', arial, sans-serif;
	font-size: 17px;
	color: #404042;
	padding: 0 25px 0 25px;
	display: block;
}

#nav a:hover {
	color: #930132;
}

#nav ul li {
	position: relative;
	line-height: 74px;
	border-bottom: 1px solid #ccd2d7;
}

#nav ul li.current-menu-item > a,
#nav ul li.current-menu-ancestor > a,
#nav ul li.current-post-ancestor > a,
#nav ul li ul li.current-menu-item > a,
#nav ul li ul li ul li.current-menu-item > a {
	color: #930132;
}

#nav ul li ul {
	border-top: 1px solid #ccd2d7;
	/*display: none;*/
	background: #f0f0f0;
	padding-top: 	6px;
	padding-bottom: 6px;
}

#nav ul li ul.sub-menu li:last-child {
	border-bottom: 0;
} 

#nav ul li.current-menu-item .sub-menu-active {
	/*display: block;*/
}

#nav ul li.current-menu-parent ul,
#nav ul li.current-menu-ancestor ul.sub-menu-active {
	/*display: block;*/
}

#nav ul li.current-menu-ancestor ul li ul {
	/*display: none;*/
}

#nav ul li ul li {
	line-height: 40px;
	border: 0;
}

#nav ul li ul li a {
	padding-left: 85px;
}

#nav ul li ul li ul {
	border: 0;
	padding: 0;
}

#nav ul li ul li ul li {
	border: 0;
}

#nav ul li ul li ul li a {
	padding-left: 105px;
}

ul#menu-main li ul li.current-menu-item {
	
}



#nav ul.navasmall {
	
}

#nav ul.navasmall li {
	
}

#nav ul.navasmall li a {
	display: inline-block;
	width: auto;
}

/*************************************************
* Subnav Icon
*************************************************/

.subnavicon {
	position: absolute;
	right: 0;
	top: 0;
	width:  80px;
	height: 80px;
	cursor: pointer;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}

#nav li ul .subnavicon {
	height: 40px;
	line-height: 40px;
}

.subnavicon span {
	
}

.subnavicon span:before,
.subnavicon span:after {
	background: #404042;
	content: '';
	display: block;
	width:  16px;
	height: 2px;
	position: absolute;
	left: 40px;
	
	-webkit-transition: 0.5s ease;
	transition: 		0.5s ease;

	-webkit-transition-property: opacity;
	transition-property: 		 opacity;
}

.subnavicon span:before {
	top: 40px;
}

.subnavicon span:after {
	top: 40px;
	transform: rotate( -90deg );
}

.subnavicon.sub-menu-active span:after {
	opacity: 0;
}

.subnavicon:hover span:before,
.subnavicon:hover span:after {
	background: #930132;
}

#nav li ul .subnavicon span:before,
#nav li ul .subnavicon span:after {
	top: 19px;
}


/*************************************************
* Nav Icons
*************************************************/

#nav ul#menu-main > li > a:before,
#nav ul#menu-main_en > li > a:before {
	font-family: Flaticon;
	content: "\00a0";
	font-style: normal;
	font-size: 30px;
	line-height: 74px;
	width: 50px;
	height: 74px;
	display: inline-block;
	color: #404042;	
}

/*
#nav li#menu-item-38 > a:before {
	content: "\f11a";
}

#nav li#menu-item-57 > a:before {
	content: "\f10d";
}

#nav li#menu-item-61 > a:before {
	content: "\f107";
}

#nav li#menu-item-76 > a:before {
	content: "\f10f";
}

#nav li#menu-item-68 > a:before {
	content: "\f125";
}
*/

#nav ul#menu-main > li:nth-child(1) > a:before,
#nav ul#menu-main_en > li:nth-child(1) > a:before {
	background: url(../images/icons/icon-ogh.png) left center no-repeat;
	background-size: 32px 32px;
}

#nav ul#menu-main > li:nth-child(3) > a:before {
	background: url(../images/icons/icon-entscheidungen.png) left center no-repeat;
	background-size: 32px 32px;
}

#nav ul#menu-main > li:nth-child(2) > a:before,
#nav ul#menu-main_en > li:nth-child(2) > a:before {
	background: url(../images/icons/icon-justizpalast.png) left center no-repeat;
	background-size: 32px 32px;
}

#nav ul#menu-main > li:nth-child(4) > a:before {
	background: url(../images/icons/icon-medien.png) left center no-repeat;
	background-size: 32px 32px;
}

#nav ul#menu-main > li:nth-child(5) > a:before,
#nav ul#menu-main_en > li:nth-child(3) > a:before {
	background: url(../images/icons/icon-kontakt.png) left center no-repeat;
	background-size: 32px 32px;
}

@media (max-width: 1179px) {
	
	#nav a {
		padding: 0 20px;
	}
	
	#nav ul > li {
		line-height: 50px;
	}
	
	#nav ul > li a {
	}
	
	#nav ul#menu-main > li > a:before {
		height: 70px;
		line-height: 60px;
	}
	
	#nav ul li ul li a {
		padding-left: 25px;
	}
	
	#nav ul li ul li ul li a {
		padding-left: 40px;
	}
	
	.subnavicon {
		width:  80px;
		height: 64px;
	}
	
	.subnavicon span:before,
	.subnavicon span:after {
		top: 35px;
	}
	
}






























