/*
Theme Name: Käser AG
Author: Bitfrucht AG
Author URI: http://www.bitfrucht.com
Description: A brand new theme from the bitfrucht developers.
Version: 1.0
*/

* {
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
			box-sizing: border-box;
	font-family: 'Open Sans', sans-serif;
}

body {
	font-size: 14px;
	background: #3e5ebe url('img/body-repeat.png') top center repeat-y;
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	color: #444;
}

.page-wrap {
	background: #fff;
	box-shadow: 0 0 6px 0 rgba(0,0,0,0.4);
}



/* ----- Basics ----- */

a {
	text-decoration: none;
	color: #3e5ebe;
}

a:hover {
	text-decoration: underline;
}

p {
	margin: 0 0 1.2em;
}

p:last-child {
	margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: #3e5ebe;
  font-weight: 300;
}

h1 { font-size: 1.9em; margin-bottom: 1.0em; }
h2 { font-size: 1.5em; margin-bottom: 0.5em; }
h3 { font-size: 1.4em; margin-bottom: 0.4em; }
h4 { font-size: 1.3em; margin-bottom: 0.3em; font-weight: 400; }
h5 { font-size: 1.2em; margin-bottom: 0.2em; font-weight: 400; }
h6 { font-size: 1.1em; margin-bottom: 0.1em; font-weight: 400; }



/* ----- Header ----- */

#main-header {
	font-size: 16px;
}

.top-header {
	position: relative;
	height: 170px;
	/*background: url('img/kaeser_logo_detail.jpg') center left / 60% no-repeat;*/
	background-image: url('img/kaeser-ag-logo.png');
	background-position: center left;
	background-size: 60% auto;
	background-repeat: no-repeat;
	-webkit-transition: background-image 300ms ease, background-size 300ms ease;
			transition: background-image 300ms ease, background-size 300ms ease;
}

.top-header .info {
	position: absolute;
	top: 50%; right: 4%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	font-size: 0.9em;
}

.top-header .info div {
	display: block;
	float: left;
	margin-right: 20px;
}

.top-header .info div:last-child {
	margin-right: 0;
}

.bottom-header {
	position: relative;
	height: 290px;
	background: url('img/keyimage.jpg') center / cover no-repeat;
}

.bottom-header h2 {
	position: absolute;
	top: 80px; left: 4%;
	color: #59627c;
	opacity: 1;
	-webkit-transition: 300ms;
			transition: 300ms;
}



/* ----- Main Navigation ----- */

#main-nav {
	position: absolute;
	bottom: 0;
	width: 100%;
	background: rgba(62, 94, 190, 0.75);
	font-size: 16px;
}

#main-nav ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

#main-nav li {
	display: inline-block;
}

#main-nav a {
	display: block;
	width: 100%;
	padding: 15px 20px;
	text-decoration: none;
	text-align: center;
	color: #fff;
	-webkit-transition: padding 300ms;
			transition: padding 300ms;
}

#main-nav li.current-menu-item a {
	background: rgba(62, 94, 190, 1);
}



/* ----- Main Content ----- */

#content-wrapper {
	display: block; /* IE */
	padding: 40px 60px;
}

h1.entry-title {
	position: relative;
}

h1.entry-title::before {
	content: '';
	position: absolute;
	top: 50%; left: -30px;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	width: 10px; height: 10px;
	background: currentColor;
}

.column ul {
	margin-top: 0;
	padding-left: 20px;
}

.column h2 {
	margin-bottom: 0.25em;
}

iframe {
	width: 100% !important;
	height: 400px !important;
	border: none !important;
	-webkit-transition: 300ms;
			transition: 300ms;
}



/* ----- Footer ----- */

#main-footer {
	font-size: 12px;
	padding: 20px 60px;
	color: #fff;
}

#main-footer a {
	text-decoration: none;
	color: #fff;
}

#main-footer a:hover {
	text-decoration: underline;
}



@media screen and (max-width: 780px) {
	.top-header {
		/*background: url('img/kaeser_logo.jpg') center left no-repeat;*/
		background-image: url('img/kaeser-logo-mobile.png');
		background-position: center left;
		background-size: 240px;
		background-repeat: no-repeat;
	}

	.bottom-header h2 {
		opacity: 0;
	}

	iframe {
		height: 300px !important;
	}
}



@media screen and (max-width: 650px) {
	#main-nav a {
		padding: 10px 20px;
	}
}



@media screen and (max-width: 524px) {
	.top-header {
		background-size: 160px;
	}

	.top-header .info div {
		float: none;
		margin-right: 0;
	}

	#main-nav a {
		padding: 5px 10px;
	}

	#content-wrapper {
		padding: 20px;
	}

	h1.entry-title::before {
		display: none;
	}

	iframe {
		width: calc(100% + 40px) !important;
		height: 200px !important;
		margin: 5px -20px -20px;
	}

	#main-footer {
		padding: 20px;
	}
}