/****** header.main ******/
header.main {
	background-color: #fff;
	background-color: rgba(255,255,255,0.95);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	height: 130px;
}

header.main .wrapper {
	padding-top: 12px;
	padding-bottom: 5px;
	border-bottom: 3px solid #000;
}

body.home header.main .wrapper {
	border-bottom: 3px solid transparent;
}

@media only screen and (max-width: 900px) { /* statt 768 */
	header.main {
		position: absolute;
		-webkit-transition: height 0.3s ease-in-out;
		transition: height 0.3s ease-in-out;
		height: 66px;
	}
	
	header.main .wrapper {
		padding: 10px 20px;
	}
}


/*** logo ***/
header.main .logo {
	float: left;
}

header.main .logo img {
	width: 120px;
	height: 57px;
	display: block;
}

@media only screen and (max-width: 900px) { /* statt 768 */
	header.main .logo img {
		margin-top: 0;
		width: 95px;
		height: 46px;
	}
}


/*** search ***/
header.main .search {
	position: relative;
	float: right;
	margin: 21px 0 0 0;
}

header.main .search.mobile-only {
	display: none;
}

header.main .search input {
	width: 100%;
	border: 1px solid transparent;
	background-color: transparent;
	padding:5px 30px 5px 10px;
	box-sizing: border-box;
	width: 110px;
	-webkit-transition: width 0.3s ease 0.1s, border-color 0.3s ease 0.1s;
	transition: width 0.3s ease 0.1s, border-color 0.3s ease 0.1s;
}

header.main .search:hover input,
header.main .search input:focus {
	width: 300px;
	border:1px solid #9f9f9f; 
	outline: 0;
}

::-webkit-input-placeholder { font-weight: bold; text-transform: uppercase; }
:-moz-placeholder { font-weight: bold; text-transform: uppercase; }
::-moz-placeholder { font-weight: bold; text-transform: uppercase; }
:-ms-input-placeholder { font-weight: bold; text-transform: uppercase; }

header.main .search .btn-search {
	background-color: transparent;
	position: absolute;
	top: 7px;
	right: 5px;
	padding: 0;
	min-width: 0;
	border: 0 none;
	margin: 0;
}

header.main .search .btn-search img {
	vertical-align: text-top;
}

@media only screen and (max-width: 900px) { /* statt 768 */
	header.main .search {
		display: none;
	}
	
	header.main .search.mobile-only {
		float: none;
		display: inline-block;
		
		background-color: #fff
	}

}


/*** navigation ***/
header.main nav.main {
	clear: both;
	padding-top: 13px;
}

header.main nav.main ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

header.main nav.main > ul > li {
	float: left;
	position: relative;
	text-align: center;
	/* width: 11.1%; */
}

header.main nav.main > ul > li > a {
	font-weight: bold;
	text-transform: uppercase;
	display: block;
	line-height:40px;
	padding-left: 13px;
	padding-right: 13px;
	padding-top: 0;
	padding-bottom: 0;
	/*padding: 0 5px;*/
	text-align:center;
	-webkit-transition: color 0.3s ease, background-color 0.3s ease;
	transition: color 0.3s ease, background-color 0.3s ease;
}

header.main nav.main > ul > li.current > a {
	color: #f2cc1d;
}

header.main nav.main > ul > li:hover a {
	color: #000;
	background-color: #fcd600;
}

@media only screen and (max-width: 1100px) {
	header.main nav.main > ul > li {
		margin-left:0px;
	}

	header.main nav.main > ul > li > a {
		font-size: 16px;
		padding-left: 12px;
		padding-right: 12px;
		padding-top: 0;
		padding-bottom: 0;
	}
}

@media only screen and (max-width: 1020px) {
	header.main nav.main > ul > li {
		margin-left:0px;
	}

	header.main nav.main > ul > li > a {
		font-size: 15px;
		padding-left: 9px;
		padding-right: 9px;
		padding-top: 0;
		padding-bottom: 0;
	}
}

@media only screen and (max-width: 925px) {
	header.main nav.main > ul > li > a {
		font-size: 14px;
	}
}


/** sub **/
header.main nav.main ul.sub {
	opacity: 0;
	visibility: hidden;
	position: absolute;
	top: 60px;
	left: 0;
	box-shadow: 8px 8px 0 rgba(0,0,0,0.4);
	min-width: 200px;

	-webkit-transition: opacity 0.5s ease, top 0.5s ease;
	transition: opacity 0.5s ease, top 0.5s ease;
}

header.main nav.main ul.sub > li {
	text-align: left;
}

header.main nav.main > ul > li:hover ul.sub {
	opacity: 1;
	top: 40px;
	visibility: visible;
}

header.main nav.main ul.sub > li a {
	background-color: #f2f2f2;
	display: block;
	border-top: 1px solid #dbdbdb;
	padding: 15px 20px;
}
header.main nav.main ul.sub > li:first-child a {
	border-top: 0 none;
}

header.main nav.main ul.sub > li a:hover, 
header.main nav.main ul.sub > li.current a {
	background-color: #fcd600;
	color: #000;
}

header.main nav.main ul > li:last-child ul.sub {
	left: auto;
	right: 0;
}

/*** mobile navi ***/
header.main nav.mobile-navi {
	display: none;
}

@media only screen and (max-width: 900px) { /* statt 768 */
	header.main nav.main {
		margin-top: 0;
		padding-top: 0;
	}
}

@media only screen and (min-width: 1px) and (max-width: 900px) { /* statt 768 */
	header.main nav.mobile-navi {
	    cursor: pointer;
	    display: block;
		position: absolute;
		right: 20px;
	    top: 35px;
	    min-width: 73px;
	    text-align: right;
	}

	header.main nav.mobile-navi .menu-title {
		text-transform: uppercase;
		font-weight: bold;
		float: left;
	}

	header.main nav.mobile-navi .lines {
		float: right;
		margin: 3px 0 0 10px;
		position: relative;
		width: 20px;
	}

	header.main nav.mobile-navi .lines > span {
	    background: none repeat scroll 0 0 #000;
	    display: block;
	    height: 2px;
		margin: 3px 0 0 0;
	    width: 20px;
	    z-index: 1;
	}


	header.main nav.main {
		height: 0;
		position: absolute;
		top: 66px;
		left: 0;
		right: 0;
		-webkit-transition: height 0.3s ease-in-out;
		transition: height 0.3s ease-in-out;
		background-color: #2c2d33;
		color: #fff;
		overflow: hidden;
		text-align: center;
	}
	
	header.main.expanded nav.main {
		height: 520px;
	}
		
	header.main nav.main > ul {
		padding:0 0 20px 0;
	}
	
	header.main nav.main ul li > a {
		color: #fff;
	}
	
	header.main nav.main ul li:hover > a {
		background-color: transparent;
		color: #fff;
	}
	
	header.main nav.main > ul > li:hover a {
		color: #fff;
	}
	
	header.main nav.main ul li > a:hover,
	header.main nav.main ul.sub > li a:hover,
	header.main nav.main ul.sub > li.current a {
		color: #f2cc1d;
		background-color: transparent;
	}
		
	header.main nav.main > ul > li {
		float: none;
		margin-left: 0;
		position: static;
		overflow: hidden;
		margin-top: 15px;
		width: auto;
		text-align: center;
	}
		
	header.main nav.main > ul > li > a {
		line-height:normal;
		padding: 0 20px 0 0;
		text-align: center;
		font-size: 18px;
	}
		
	
	header.main nav.main ul.sub {
		opacity: 1;
		visibility: visible;
		position: relative;
		height: 0;
		top: auto;
		left: auto;
		box-shadow: 0 0 0 rgba(0,0,0,0.0);
	}
		
	header.main nav.main > ul > li.current ul.sub {
		top: auto;
		height: auto;
	}
	
	header.main nav.main ul.sub > li {
		text-align: center;
	}
		
	header.main nav.main ul.sub > li a {
		background-color: transparent;
		display: block;
		border-top: 0 none;
		padding: 0 20px 0 0;
		font-size: 14px;
		line-height: 21px;
	}	

}
