/** Formatierung für mobile Ansicht **/
/** Navigation wird als vertikale Liste über die komplette Breite dargestellt **/

nav a,
nav a:hover { text-decoration:none;}
#navigation.fold:hover,
#navigation {	
	position:fixed;
	top: 0px;
	left:0;
	background: #fff;
	border: 1px solid #000;
	border-width: 0 0px 1px 0;
	z-index: 100;
	width:100%;
	min-height:3rem;
	line-height:200%;
	box-sizing:border-box;
	margin-left:0px;
    color: #000;
	font-size: 200%;
}
#navigation {line-height: 125%; font-size:1.25rem; font-weight:bold;}
nav {
	display: none;
	background: #fff;
}

nav ul ul{
    font-size: 95%;
    background: #f3f3f3;
	display: none;
}
nav ul {
 	padding: 0px;
 	margin: 0px;
 	width: 100%;
}
 
nav ul li {
	list-style: none;
}
 
nav ul li a {
    display: inline-block;
    padding: 0 1rem;
    text-align: center;
	color: #000;
}

nav ul li.aktiv > a,
nav ul li a:hover {
	color: #dddddd;
} 

#unternavigation {
	margin: 2rem 0 4rem;
}
#unternavigation,
#unternavigation a {
	font-size: 2.5rem;
}
#unternavigation a {
    display: block;
    font-weight: lighter;
    color: #000;
    padding: 1rem 2rem;
    font-style: normal;
    text-decoration: none;
}
#unternavigation a.aktiv {
    font-weight: normal;
    text-decoration: underline;
}

#unternavigation .titel {
    background: #d9d9d9;
    padding: 1rem 2rem;
	font-weight:bold;
	position:relative;
}

#unternavigation .inner {
    background: #e5e5e5;
	overflow:hidden;
	overflow:auto;
    max-height: 0;
	height:auto;
    transition: max-height 0.15s ease-out;
}

#unternavigation .titel.clicked ~ .inner {
    max-height: 900px;
    transition: max-height 0.25s ease-in;
}
#unternavigation .titel:after {
    content: "V";
    position: absolute;
    right: 2rem;
    top: 1rem;
    font-weight: bold;
}
div#unternavigation {
    margin-right: 1em;
    margin-left: 1em;
    font-size: 3rem;
}
/** Anpassungen Checkbox+Label (Button) **/

input#open-menu {
	display: none;
}

input[type=checkbox]:checked ~ nav {
    display: block;
}
	
label.open-menu-label {
	padding: 5px 50px;
	display: block;    text-align: left;
}


nav li.hatU a:after {
	content: "V";
	position: absolute;
	right: 1em;
}

/** Formatierung für Tablet und Desktopansicht **/

/*@media only screen and (min-device-width : 1024px) {*/
@media only screen and (min-device-width: 768px) {

	nav li.hatU a:after,
	#unternavigation {display:none;}
	
	/** Navigation wird als einfarbiger, horizontaler Balken dargestellt **/
	#navigation.fold:hover,
	#navigation {
		width: 100%;
		border-width: 0;
		padding: 0;
		font-size: 1.25rem;
		position: relative;
		transition: top 1s ease-in-out;
		margin-top:-30px;
	}
	#navigation.sticky {
		position:fixed;
		top: 0px!important;
		bottom: auto;
		margin-top:0px;
	}
	#navigation.fold {
		width: 52px;
		padding: 0px 20px 0px 10px;
		cursor:pointer;
		min-height: 52px;
		margin-left:10px;
	}
	.fold:hover ul {
		display:block;
	}
	.fold ul {
		display: none;
	}
	nav {
		display: block;
		text-align: center;
		padding: 0px;
	}
	
	nav ul li {	
		display: inline-block;
		padding: 0px;
	}
	nav > ul > li:last-child {
		background: transparent;
	} 
	
	/** Label wird ausgeblendet **/
	label.open-menu-label {
		display: none;
	}
	
	
	nav ul li {
		position:relative;
	}
	nav > ul > li {
		padding-bottom:32px;
	}
	nav ul li:hover > ul {
		display: block;
		position: absolute;
		top: auto;
		width: auto;
		left: 0;
		right: 0;
	}
	nav ul li > ul li {
		display: block;
		width: 100%;
		margin: 0;
		line-height: 100%;
	}
	
	nav ul li a {
		text-align: left;
		padding: 0.75em 0.5em;
		display: block;
	}
}

/* Tablet */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
	#navigation {line-height: 450%; font-size:0.9rem; }
	#unternavigation {display:block;}
}