/* Main Navigation
====================================*/

#navigation {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	flex-direction: column;
	position:fixed;
	left:0;
	top: 0;
	height: 100%;
	width: 100%;
	border-radius: 0;
	background: rgba(197,197,197, .75);
	background: linear-gradient(0deg, rgba(197,197,197,1) 0%, rgba(241,241,241,1) 100%);
	z-index: 999999;
	opacity: 0;
	pointer-events: none;
	transition: all .35s ease-in-out;
}
body.menu-toggle #navigation {
	opacity: 1;
	pointer-events: auto;
}
@media only screen and (min-width: 800px) {
	#navigation {
		align-items: flex-end;
		justify-content: space-between;
		position:absolute;
		left:0;
		top: 100%;
		margin-top: -49px;
		background: url("../images/nav_bg.png") no-repeat scroll 0 0 transparent;
		width:465px;
		height: 49px;
		flex-direction: row;
		padding: 0 20px;
		opacity: 1;
		pointer-events: auto;
	}
}

/* Ebene 1
====================================*/

#navigation ul {
	list-style:none;
	padding:0;
	margin:0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-direction: column;
	width: 100%;
}
.search-form {
	background:url(../images/suchbox.png) center 0 no-repeat;
	margin-bottom: 6px;
	width: 100%;
	display: flex;
	justify-content: center;
}
@media only screen and (min-width: 800px) {
	#navigation ul {
		flex-direction: row;
		width: auto;
	}
	.search-form {
		width: auto;
	}
}

#navigation li {
	list-style:none;
	padding:0;
	margin:0;
	display:flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}
@media only screen and (min-width: 800px) {
	#navigation li {
		width: auto;
	}
}

#navigation ul li {
	position:relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
}
@media only screen and (min-width: 800px) {
	#navigation ul li {
		background:url(../images/nav_li_bg.png) right 3px no-repeat;
	}
}

#navigation ul li a {
	color: #615F5F;
	display: inline-block;
	font-size: 14px;
	font-weight: 400;
	margin-right: 2px;
	padding: 10px 10px 9px;
	text-decoration: none;
	text-shadow:1px 1px 0 #FFFFFF;
}
#navigation ul li:hover > a { 
	margin: 3px 5px 0 3px;
    padding: 7px 7px 7px;
	-moz-box-shadow: inset 1px 1px 1px #868686;
	-webkit-box-shadow: inset 1px 1px 1px #868686;
	box-shadow: inset 1px 1px 1px #868686;
	color:#ffffff;
	background:#bababa;
	text-shadow:1px 1px 1px #626262;
}


#navigation ul li a:link, 
#navigation ul li a:visited {
	-webkit-border-radius: 5px 5px 5px 5px;
	-moz-border-radius: 5px 5px 5px 5px;
	border-radius: 5px 5px 5px 5px;
}

#navigation ul li a.selected, 
#navigation ul li.hassub a.selected, 
#navigation ul li a.active, 
#navigation ul li.hassub a.active {
	margin: 3px 5px 0 3px;
    padding: 7px 7px 7px;
	-moz-box-shadow: inset 1px 1px 1px #868686;
	-webkit-box-shadow: inset 1px 1px 1px #868686;
	box-shadow: inset 1px 1px 1px #868686;
	color:#ffffff;
	background:#bababa;
	text-shadow:1px 1px 1px #626262;
}

#navigation ul li.hover a.selected, 
#navigation ul li.hover a.active {
	/*box-shadow:none;
	background:#00334d;
	-webkit-border-radius: 15px 15px 0 0;
	-moz-border-radius: 15px 15px 0 0;
	border-radius: 15px 15px 0 0;*/
}

#navigation ul li.hassub:hover > a {
	color:#323232;
	-webkit-box-shadow: 0px 0px 1px #919191; 
	-moz-box-shadow: 0px 0px 1px #919191;
	box-shadow: 0px 0px 1px #919191;
	border-radius: 5px 5px 0 0;
	background:#fff;
	text-shadow:none;
}
/* Ebene 2
====================================*/
#navigation ul ul li {
	margin:0;
	padding:0;
}
#navigation ul ul {
	padding: 10px 0;
	display: flex;
	flex-direction: column;
}
#navigation ul ul li {
	background: none;
	margin-bottom:1px;
}

#navigation ul ul li a {
	color: #615f5f;
	display: block;
	font-family: 'Open Sans', Arial, sans-serif;
	font-weight: 600;
	font-size: 12px;
	line-height:12px;
	background: none;
}
#navigation ul ul li a:link, 
#navigation ul ul li a:visited {
	-webkit-border-radius: 2px 2px 2px 2px;
	-moz-border-radius: 2px 2px 2px 2px;
	border-radius: 2px 2px 2px 2px;
}
#navigation ul ul li:hover > a { 
	background: #bababa; 
	color:#fff;
	text-shadow: 1px 1px 1px #a7a7a7;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: 1px 1px 1px #a7a7a7 inset;
}

@media only screen and (min-width: 800px) {
	#navigation ul ul {
		position: absolute;
		opacity: 0;
		pointer-events: none;
		top: 20px;
		left: 0;
		background: #ffffff;
		z-index: 999;
		-webkit-border-radius:  0 5px 5px 5px;
		-moz-border-radius:  0 5px 5px 5px;
		border-radius:  0 5px 5px 5px;
		margin-left:3px;
		-webkit-box-shadow: 0px 1px 1px #919191;
		-moz-box-shadow: 0px 1px 1px #919191;
		box-shadow: 0px 1px 1px #919191;
		padding-top:5px;
		padding-bottom:10px;
	}
	#navigation ul li:hover > ul {
		opacity: 1;
		z-index: 999;
		pointer-events: auto;
		position:absolute;
		top:25px;
		left:0;
	}
	#navigation ul ul li a {
		width: 180px;
	}
	#navigation ul ul li a,
	#navigation ul ul li:hover > a {
		margin: 0 7px;
		padding:5px;
	}
}

#navigation ul li#menuitem-117 a{
	background-image: url("../images/home.png");
	background-repeat: no-repeat;
	background-position: center center;
	background-color: transparent;
	text-indent: -999px;
	width: 10px;
	-moz-box-shadow: none;
	-webkit-box-shadow: none;
	box-shadow: none;
}

@media only screen and (min-width: 800px) {
	#navigation ul li#menuitem-117 a{
		background-position: 2px 6px;
	}
}

body.menu-toggle #navigation ul li a {
	font-size: 16px;
}
body.menu-toggle #navigation ul ul li a {
	font-size: 14px;
}

img {
	max-width: 100%;
	height: auto;
}

