/*
**********************************************
***      created by Boris Schmakowski      ***
***          www.schmakowski.de            ***
**********************************************
*/

nav {
	background-color: #ffffff;  
	width: 100%;
	position: static;
	padding: 1em 0 0.25em 0;
	top: -200px;
	z-index: 100;
	box-shadow: 0px 3px 5px 0px rgba(197, 186, 170, 0);
	-webkit-transition: top .25s ease, box-shadow .25s ease;
	   -moz-transition: top .25s ease, box-shadow .25s ease;
		-ms-transition: top .25s ease, box-shadow .25s ease;
		 -o-transition: top .25s ease, box-shadow .25s ease;
			transition: top .25s ease, box-shadow .25s ease;
			
}
nav.fixed {
	background-color: #ffffff; 
	width: 100%;
	position: fixed;
	padding: 1em 0 0.25em 0;
	top: 0px;
	z-index: 100;
	box-shadow: 0px 3px 5px 0px rgba(197, 186, 170, 0.4);
	-webkit-transition: top 2.25s ease, box-shadow 2.25s ease;
	   -moz-transition: top 2.25s ease, box-shadow 2.25s ease;
		-ms-transition: top 2.25s ease, box-shadow 2.25s ease;
		 -o-transition: top 2.25s ease, box-shadow 2.25s ease;
			transition: top 2.25s ease, box-shadow 2.25s ease;
}

body.navfixed header {
	margin-bottom: 77.8px;
}


nav ul.nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-flow: row wrap;
	justify-content: space-between;
	flex-direction: row;
}
@media all and (max-width: 800px) {
	nav ul.nav {
		/* When on medium sized screens, we center it by evenly distributing empty space around items */
		flex-direction: column;
	}
}

nav ul.nav li {
	padding: 0;
	margin:  0 0 0.5em 0;
	position: relative;
}

nav ul.nav li a,
nav ul.nav li span {
	z-index: 2;
	display: block;
	padding: 0 1px 5px 1px;
	color: #404141;
	font-size: 1.05em;
	line-height: 1em;
	font-weight: 400;
	letter-spacing: 0em;
	text-transform: uppercase;
	text-decoration: none;
	border: none;
	white-space: nowrap;
	position: relative;
	z-index: 101;
}


nav ul.nav li:first-child a,
nav ul.nav li:first-child span {
	padding-left: 0px;
}
nav ul.nav li:last-child a,
nav ul.nav li:last-child span {
	padding-right: 0px;
}
nav ul.nav li a:hover,
nav ul.nav li span:hover {
	text-decoration: none;
	border: none;
}

nav ul.nav li ul {
	position: absolute;
	margin: 5px 0 0 -20px;
	padding: 10px 15px 15px 20px;
	background-color: #00497b;
	text-align: left;
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	top: 0em;
	-webkit-transition: all .25s ease;
	   -moz-transition: all .25s ease;
		-ms-transition: all .25s ease;
		 -o-transition: all .25s ease;
			transition: all .25s ease;
}
nav ul.nav li:hover ul {
	opacity: 1;
	visibility: visible;
	top: 1.1em;
	-webkit-transition: all .25s ease;
	   -moz-transition: all .25s ease;
		-ms-transition: all .25s ease;
		 -o-transition: all .25s ease;
			transition: all .25s ease;
}
nav ul.nav li ul li {
	display: block;
	list-style: none;
	padding: 10px 15px 5px 0;
	margin: 0;
}
nav ul.nav li ul li a,
nav ul.nav li ul li span {
	display: inline-block;
	font-size: 1em;
	line-height: 1em;
	padding: 0 1px 0 1px;
	border-bottom: 1px solid rgba(0, 0, 0, 0);
}




nav ul.nav li a::after,
nav ul.nav li span::after {
	content: '';
	display: block;
	background: rgba(202, 212, 0, 1);
	position: absolute;
	height: 2px;
	bottom: -2px;
	border-radius: 200px;
	width: 0%;
	right: 0;
	-webkit-transition: width .25s  cubic-bezier(.65,.05,.36,1);
	   -moz-transition: width .25s  cubic-bezier(.65,.05,.36,1);
		-ms-transition: width .25s  cubic-bezier(.65,.05,.36,1);
		 -o-transition: width .25s  cubic-bezier(.65,.05,.36,1);
			transition: width .25s  cubic-bezier(.65,.05,.36,1);
}
nav ul.nav li a:hover::after,
nav ul.nav li span:hover::after {
	width: 100%;
	left: 0;
}
nav ul.nav li.active a::after,
nav ul.nav li.active span::after {
	width: 100%;
}



nav ul.nav > li.active > a,
nav ul.nav > li.active > span {
/* 	color: #000000; */
}
nav ul li ul.nav-child li.active a,
nav ul li ul.nav-child li.active span {
/* 	color: #000000; */
}



/*--- Footer offenes Menu ----*/


footer  ul.nav {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-content: space-between;
}
footer  ul.nav > li {
	order: 1;
	flex-grow: 0;
	flex-basis: auto;
	align-self: stretch;
	font-size: 20px;
	line-height: 1.4em;
	text-transform: uppercase;
}

footer ul.nav li ul  {
	list-style: none;
	padding: 0;
	margin: 5px 0 20px 0;
}
footer ul.nav li ul > li {
	list-style: none;
	padding: 0.3em 0 0 0;
	margin: 0;
	font-size: 18px;
	line-height: 1.4em;
	text-transform: none;
/* 	text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3); */
}

footer ul.nav li a 			{ color: #ffffff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.0); display: block;}
footer ul.nav li a:visited 	{ color: #ffffff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.0);}
footer ul.nav li a:hover 	{ color: #ffffff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.9);}
footer ul.nav li a:active 	{ color: #ffffff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.9);}

footer ul.nav li.current.active > a	{ color: #ffffff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.9);}

footer ul.nav li.current.active > a.mi-alias	{ color: #ffffff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0);}
footer ul.nav li.current.active > a.mi-alias:hover	{ color: #ffffff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.9);}


/*---- Menu Toggle ----*/

div#menu-toggle {
	display: none;
	cursor: pointer;
	color: #111111;
	text-transform: uppercase;
	font-size: 26px;
	line-height: 26px;
	text-align: right;
	padding: 0 0 0.25em 0;
}

/*
div#menu-toggle span {
	font-size: 0.9em;
}
*/
.MenuHamburger {
	margin-left: 0.25em;
	display: inline-block;
	vertical-align: bottom;
}
.MenuHamburger .bar1, .MenuHamburger .bar2, .MenuHamburger .bar3 {
	width: 22px;
	height: 2px;
	background-color: #111111;
	margin: 1px 0 5px 0;
	transition: 0.4s;
}
body.menu-open .bar1 {
	-webkit-transform: rotate(-45deg) translate(-6px, 5px);
	transform: rotate(-45deg) translate(-6px, 5px);
}
body.menu-open .bar2 {opacity: 0;}

body.menu-open .bar3 {
	-webkit-transform: rotate(45deg) translate(-5px, -4px);
	transform: rotate(45deg) translate(-5px, -4px);
}


@media all and (max-width: 800px)
{
	nav ul.nav {
		flex-direction: column;
	}
	
	div#menu-toggle {
		display: block;
	}
	body div.menu-collapse {
		max-height: 0;
		overflow: hidden;
	}
	div.menu-collapse {
	}
	body.menu-open div.menu-collapse {
		-webkit-transition: max-height .3s ease-in-out;
		   -moz-transition: max-height .3s ease-in-out;
			-ms-transition: max-height .3s ease-in-out;
			 -o-transition: max-height .3s ease-in-out;
				transition: max-height .3s ease-in-out;

		max-height: 500px;
	}
	
	body.menu-open div.menu-collapse ul.nav li:hover ul {		/* kein Hover Submenu bei menu-collapse */
		opacity: 0;
		visibility: hidden;
	}
	body.menu-open div.menu-collapse ul.nav li.active ul {		/* zeige Submenü wenn Hauptmenüpunkt aktiv */
		opacity: 1;
		visibility: visible;
		position: static;
		margin: 0;
		padding: 0.5em 0 0.5em 0;
	}
	body.menu-open div.menu-collapse ul.nav li.active ul li {
		padding: 0px 0px 0.25em 1em;
	}
	
}
