/* CSS Document */
/* Main Nav */
nav {
	position: fixed;
	float: left;
	padding: 2vw;
	font-size: .8em;
	font-weight: 400;
	white-space: nowrap;
	color: #fff;
	background-color: #171819;
	width: 2.5vw;
	height: 100vh;	
	z-index: 10;
	-webkit-transition: width .7s cubic-bezier(0.7, 0, 0.3, 1);
	-moz-transition: width .7s cubic-bezier(0.7, 0, 0.3, 1);
	transition: width .7s cubic-bezier(0.7, 0, 0.3, 1);
}

/* Increasing its width to show content */
nav:hover {
	width: 15vw;
}

/* Nav title level 0 */
nav span {
	position: absolute;
	top: 3.5em;
	opacity: 1;
	-webkit-transition: all .4s cubic-bezier(0.7, 0, 0.3, 1);
	-moz-transition: all .4s cubic-bezier(0.7, 0, 0.3, 1);
	transition: all .4s cubic-bezier(0.7, 0, 0.3, 1);
}

/* Hiding title level 0 */
nav:hover span {
	opacity: 0;
	-webkit-transition: all .4s cubic-bezier(0.7, 0, 0.3, 1);
	-moz-transition: all .4s cubic-bezier(0.7, 0, 0.3, 1);
	transition: all .4s cubic-bezier(0.7, 0, 0.3, 1);
}

/*Nav title level 1*/
nav h1 {
	font-size: 1.6em;
	overflow: hidden;
	color: #fcba1b;
	opacity: 0;
	-webkit-transition: all .7s cubic-bezier(0.7, 0, 0.3, 1);
	-moz-transition: all .7s cubic-bezier(0.7, 0, 0.3, 1);
	transition: all .7s cubic-bezier(0.7, 0, 0.3, 1);
}

/* Nav - Level 0*/
nav ul {
	list-style-type: none;
	overflow: hidden;
}

nav ul li {
	border-bottom: 1px solid #343434;
	line-height: 5em;
	padding-left: 2em;
	font-weight: 700;
}

/* Nav - Level 1 */
nav ul ul {
	display: none;
	background-color: #171819;
	border: 1px solid #343434;
	z-index: 90;
	-webkit-transition: box-shadow .3s ease-in;
	-moz-transition: box-shadow .3s ease-in;
	transition: box-shadow .3s ease-in;
}

nav li li {
	border: none;
	border-top: 1px solid #343434;
	padding-left: 1em;
	font-weight: 400;
}

nav li li:first-child {
	border-top: none;
}

nav li li:last-child {
	border-bottom: none;
}

nav ul ul:hover {
	box-shadow: 2px 2px 20px rgba(0, 0, 0, .5);
}

/* Nav links */
nav ul li a {
	display: block;
	opacity: 0;
	color: #fff;
	z-index: -100;
	text-decoration: none;
	-webkit-transition: all .7s cubic-bezier(0.7, 0, 0.3, 1);
	-moz-transition: all .7s cubic-bezier(0.7, 0, 0.3, 1);
	transition: all .7s cubic-bezier(0.7, 0, 0.3, 1);
}

nav ul li a:hover{
	outline: none;
	color: #fed164;
}

 nav ul li a:focus, nav ul li a:active {
 	color: #fcba1b;
 	outline: none;
 }

/* Indicate an active page */
 #p-index .menu-0 a, 
 #p-vorwort .menu-1 a, 
 #p-portrait .menu-2 > a,
 #p-berichte .menu-3 > a,
 #p-projekt .menu-4 > a,
 #p-fazit .menu-5 a,
 #p-downloads .menu-6 a,
 #p-impressum .menu-7 a  { 
 	color: #fcba1b;
 }

/* Showing the inside content of the nav by hovering on the nav*/
nav:hover li a , nav:hover h1, nav:hover label {
	opacity: 1;
}

/* Indicating a second nav level*/
nav label {
	position: absolute;
	display: inline-block;
	right: 3vw;
	opacity: 0;
	font-size: .75em;
	cursor: pointer;
	-webkit-transition: opacity .7s cubic-bezier(0.7, 0, 0.3, 1);
	-moz-transition: opacity .7s cubic-bezier(0.7, 0, 0.3, 1);
	transition: opacity .7s cubic-bezier(0.7, 0, 0.3, 1);
}

/* Reavealing the secondary level of the nav by hovering on a link */
.menu-1:hover .menu-1-drop,
.menu-2:hover .menu-2-drop,
.menu-3:hover .menu-3-drop,
.menu-4:hover .menu-4-drop {
	position: absolute;
	background: #1C1E1F;
	display: block;
	left: 14vw;
	margin-top: -64px;
	padding: 0 2em;
	-webkit-animation: fadeIn .3s cubic-bezier(0.7, 0, 0.3, 1);
	-moz-animation: fadeIn .3s cubic-bezier(0.7, 0, 0.3, 1);
	animation: fadeIn .3s cubic-bezier(0.7, 0, 0.3, 1);
}

/* Dynamic content positioning */
nav:hover ~ section {
	padding-left: 24vw;
}

