@font-face {
	font-family: 'maitree';
	src: url('maitree.woff2') format('woff2'),	url('maitree.woff') format('woff');
	font-weight: normal;
	font-style: normal;
	font-display: fallback;
}

body {
	background-color: #ffffd5;
	color: #914f1d;
	font-family: maitree, serif;
	margin: 0;
}

header {
	height: 75vw;
	background-size: 100%;
	background-position: center top;
	background-attachment: fixed;
	background-repeat: no-repeat;
}

#hero1 { background-image: url('hero/rollladenschrank-1.jpg'); }
#hero2 { background-image: url('hero/rollladenschrank-2.jpg'); }
#hero3 { background-image: url('hero/rollladenschrank-3.jpg'); }
#hero4 { background-image: url('hero/rollladenschrank-4.jpg'); }
#hero5 { background-image: url('hero/rollladenschrank-5.jpg'); }
#hero6 { background-image: url('hero/rollladenschrank-6.jpg'); }
#hero7 { background-image: url('hero/rollladenschrank-7.jpg'); }
#hero8 { background-image: url('hero/rollladenschrank-8.jpg'); }
#hero9 { background-image: url('hero/rollladenschrank-9.jpg'); }
#hero10 { background-image: url('hero/rollladenschrank-10.jpg'); }

#logo {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	margin: auto;
	width: 66%;
	z-index: 3;
}

#navicon-checkbox {
	display: none;
}

#navicon {
	position: fixed;
	right: 2%;
	top: 0;
	font-size: 26vw;
	font-weight: bold;
	padding: -10px;
	line-height: 50%;
	cursor: pointer;
	z-index: 4;
	margin-top: 3%;
}

nav {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	padding-top: 18%;
	background-color: rgba(255,255,213,.89);
	text-align: center;
	font-size: 20pt; /* Fallback */
	font-size: 8vw;
	z-index: 2;
	height: 0;
	overflow: hidden;
	-webkit-box-shadow: 0 -5px 20px 0 #914f1d;
	box-shadow: 0 -5px 20px 0 #914f1d;
}

nav ul {
	display: block;
	list-style: none;
	margin: 17% 0 0;
	padding: 0;
}

nav a {
	text-decoration: none;
	color: #914f1d;
	display: block;
	padding: .1em 0;
}

nav a:hover, #current {
	background-color: #914f1d;
	color: #ffffd5;
}

input[type=checkbox]:checked ~ nav {
	height: 90%;
}

main {
	display: block;
	padding: 1em;
	line-height: 120%;
}

a {
	color: #33f;
}

h1 {
	font-weight: normal;
	font-size: 1.8em;
	text-align: center;
	margin: .6em 0 1em;
	line-height: 1em;
}

h2 {
	margin-top: 1.5em;
	border-bottom: 1px dashed;
	padding-bottom: .2em;
	clear: both;
	line-height: 1em;
}

figure {
	text-align: center;
	margin-bottom: 1.5em;
}

figcaption a {
	font-size: .8em;
}

main img {
	max-width: 100%;
	box-sizing: border-box;
}

footer {
	text-align: right;
	background-image: url('tischler-werkzeuge.jpg');
	background-size: cover;
	background-position: center bottom;
	padding: 42% 1em .2em;
}

nav, nav a, #logo {
	-webkit-transition: all 350ms ease-in;
	transition: all 350ms ease-in;
}

.big {
	font-size: 1.3em;
	clear: both;
	line-height: 1.3em;
}

.preis {
	text-align: center;
	color: #ffffd5;
	background-color: #914f1d;
	font-size: .8em;
	padding: .8em;
	float: right;
}

.preis::first-line {
	font-size: 1.5em;
}

main img, .preis {
	-webkit-border-radius: 12px;
	border-radius: 12px;
	-webkit-box-shadow: 0 0 12px 0 #914f1d;
	box-shadow: 0 0 12px 0 #914f1d;
	border: 2px #ffffd5 solid;
}

form {
	margin: auto;
	max-width: 460px;
}

label {
	display: block;
}

input, select, textarea {
	margin-bottom: 1em;
	width: 100%;
	background-color: #ffffea;
	color: #914f1d;
	font-family: inherit;
	font-size: inherit;
	padding: .5em;
	box-sizing: border-box;
	border: 0px;
	-webkit-box-shadow: 0 0 10px 0 #ad7b4b;
	box-shadow: 2px 1px 10px 0 #ad7b4b;
}

input:focus, select:focus, textarea:focus {
	background-color: #fff;
}

.required {
	color: #f00;
}

@media (orientation: landscape) AND (min-width: 416px) {

	header {
		height: 47.6vw;
	}

	#hero1 { background-image: url('hero/rollladenschrank-1@x2.jpg'); }
	#hero2 { background-image: url('hero/rollladenschrank-2@x2.jpg'); }
	#hero3 { background-image: url('hero/rollladenschrank-3@x2.jpg'); }
	#hero4 { background-image: url('hero/rollladenschrank-4@x2.jpg'); }
	#hero5 { background-image: url('hero/rollladenschrank-5@x2.jpg'); }
	#hero6 { background-image: url('hero/rollladenschrank-6@x2.jpg'); }
	#hero7 { background-image: url('hero/rollladenschrank-7@x2.jpg'); }
	#hero8 { background-image: url('hero/rollladenschrank-8@x2.jpg'); }
	#hero9 { background-image: url('hero/rollladenschrank-9@x2.jpg'); }
	#hero10 { background-image: url('hero/rollladenschrank-10@x2.jpg'); }

	#logo {
		width: 66%;
		max-width: 423px;
		top: 30px; /* Fallback */
		top: 3vw;
	}

	.hidelogo {
		top: -250px !important; /* Fallback */
		top: -34vw !important;
	}

	#navicon {
		display: none;
	}

	nav, input[type=checkbox]:checked ~ nav {
		padding-top: 0;
		font-size: 16pt; /* Fallback */
		font-size: 2.2vw;
		height: auto;
	}

	nav ul {
		margin: 0;
	}

	nav ul li {
		display: inline;
	}

	nav a {
		display: inline-block;
		padding: .3em .8em 2.2em;
	}

	.stickyheader a  {
		padding-bottom: .3em;
	}

	main {
		max-width: 1200px; 
		margin: auto;
		font-size: 1.1em;
	}

	main img {
		display: inline-block;
	}

	figure {
		display: inline-block;
		margin: 0 .5em 1.5em;
	}
	
	#tischler {
		width: 100%;
	}

	.rechts {
		float: right;
	}

	h1 {
		font-size: 3em;
	}

	footer {
		background-image: url('tischler-werkzeuge@2x.jpg');
		padding-top: 20.7%;
	}
}