/*
Theme Name: 	Terbiner Weinkeller
Theme URI: 		http://mohnrot.ch
Version: 		0.1
Author: 		mohnrot
Author URI: 	http://mohnrot.ch
*/



/*** Sensible Defaults ***/

@import "css/reset.css";
@import "css/flickity.css";
@import "js/lightbox/css/lightbox.min.css";
@import "typo.css?v1";
@import "blocks.css";




div,
article,
section,
header,
footer,
nav,
li					{ position:relative; /* For absolutely positioning elements within containers (add more to the list if need be) */ }

::-moz-selection 	{ background:rgba(149, 125, 58, 0.6); color:#fff; }
::selection 		{ background:rgba(149, 125, 58, 0.6); color:#fff; }

* {
	box-sizing: border-box;
}

body {

}

/* Helper Classes */

.clear { clear: both; }
strong { font-weight: bold; }
em { font-style: italic; }
a, a:link, a:visited, a:hover, a:focus { color: inherit; }

.page-wrap {
	min-height: 100vh;
}

.wrap {
	width: 100%;
	max-width: 1060px;
	margin: 0 auto;
	padding: 0 1rem;
}

	@media (min-width: 450px) {
		.wrap {
			padding: 0 2rem;
		}
	}



header {
	height: 3rem;
	background: #fff;
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 9999;
}

	header .wrap {
		display: flex;
		flex-flow: row wrap;
		height: 100%;
		align-items: center;
	}

	header .nav-toggle {
		display: none;
	}

		header .nav-toggle {
			width: 1.5rem;
			height: 1.5rem;
			display: block;
			cursor: pointer;
		}

		header .nav-toggle span {
			display: block;
			background: #a97b26;
			width: 100%;
			height: 2px;
			margin: 3px auto;
		}

	header a.logo {
		margin-right: auto;
		display: block;
		height: 1.2rem;
		background: url(css/img/logo.svg) no-repeat center left;
		background-size: contain;
		overflow: hidden;
		width: 20rem;
		text-indent: -1000px;
		max-width: calc(100% - 3rem);
	}

	header nav {
		display: none;
	}

		.nav-open header nav {
			display: block;
		}

	@media (min-width: 900px) {
		header {
			position: relative;
		}

		header nav {
			display: block;
		}

		header .nav-toggle {
			display: none;
		}
	}

	header nav ul {
		display: flex;
		flex-flow: row wrap;
		text-transform: uppercase;
		font-size: 1rem;
		letter-spacing: 0.015em;
		line-height: 100%;
	}

		header nav ul li {
			margin-left: 1.5rem;
		}

		header nav ul li a {
			text-decoration: none;
		}

	@media (max-width: 899px) {
		header nav {
			background: rgba(149, 125, 58, 0.95);
			position: fixed;
			top: 3rem;
			left: 0;
			width: 100%;
			height: calc(100vh - 3rem);
			z-index: 9999;
			color: #fff;
			padding: 2rem 1rem;
		}

			header nav ul {
				color: #fff;
				font-size: 1.5rem;
				line-height: 120%;
				display: block;
			}

			header nav ul li {
				margin: 0;
			}

			header nav ul li a {
				display: block;
				padding: 0.5rem 0;
			}
	}

	@media (max-width: 899px) {
		header nav {
			padding: 2rem;
		}
	}


.hero {
	margin-top: 3rem;
	background: rgba(149, 125, 58, 0.25);
	height: 25vw;
	max-height: 350px;
	min-height: 200px;
	max-width: 1400px;
	margin: 0 auto;
	background-size: cover;
	background-position: top center;
	background-repeat: no-repeat;
}

	.hero.full-height {
		height: calc(66vw);
		max-height: 840px;
	}

	@media (min-width: 900px) {
		.hero {
			margin-top: 0
		}
	}

	.hero .wrap {
		height: 100%;
		display: flex;
		flex-flow: row wrap;
	}

	.hero .wines {

		flex-flow: row wrap;
		align-self: flex-end;
		margin-left: auto;
		transform: translateY(2.5rem);
		display: none;
	}

	@media (min-width: 750px) {
		.hero .wines {
			display: flex;
		}
	}

	.hero.full-height .wines {
		transform: translateY(-2rem);
		display: flex;
	}

		.hero .wines .wine {
			height: 20vw;
			min-height: 130px;
			max-height: 250px;
			margin: 0 0.45rem;
		}

			.hero .wines .wine img {
				width: auto;
				height: 100%;
			}

.hero .tagline {
	background-color: rgba(83, 73, 8, 0.5);
	background-image: url(css/img/schrift-folge.svg);
	background-position: center left 1rem;
	background-repeat: no-repeat;
	background-size: 90% auto;
	width: 100%;
	padding: 0.5rem;
	position: absolute;
	bottom: 0;
}

	.hero.full-height .tagline {
		background-image: url(css/img/schrift.svg);
		background-size: contain;
		background-position: center;
	}

	@media (min-width: 450px) {
		 .hero .tagline {
			 max-width: 400px;
			 background-position: center left 2rem;
			 background-size: 90% auto;
		 }

		.hero.full-height .tagline {
			position: absolute;
			bottom: auto;
			top: 50%;
			left: 50%;
			transform: translateX(-50%) translateY(-50%);
		}
	}

	@media (min-width: 600px) {
		 .hero .tagline {
			 max-width: 500px;
		 }
	 }

	 @media (min-width: 1060px) {
		 .hero .tagline {
			 left: 50%;
			 transform: translateX(-500px);
			 background-position: center left;
			 background-size: 95% auto;
		 }

		 .hero .tagline::after {
			 content: "";
			 display: block;
			 height: 100%;
			 width: calc(50vw - 500px);
			 background-color: rgba(83, 73, 8, 0.5);
			 position: absolute;
			 right: 100%;
			 top: 0;
			 max-width: 200px;
		 }

		 .hero.full-height .tagline::after {
			 display: none;
			 width: 0;
		 }
	 }

	.hero .tagline::before {
		content: "";
		display: block;
		padding-bottom: 14%;
	}

article.main {
	padding: 4rem 0;
}

body.home article.main {
	display: none;
}


form.wpcf7-form {
	display: flex;
	flex-flow: row wrap;
	margin-left: -0.25rem;
	width: calc(100% + 0.5rem);
}

form.wpcf7-form .full {
	width: 100%;
	width: calc(100% - 0.5rem);
	margin: 0.25rem;
}

form.wpcf7-form .full.checkbox-holder {
	padding: 1rem 0;
}

form.wpcf7-form .half {
	width: 100%;
	width: calc(100% - 0.5rem);
	margin: 0.25rem;
}


	@media (min-width: 600px) {
		form.wpcf7-form .half {
			width: 50%;
			width: calc(50% - 0.5rem);
		}
	}

form.wpcf7-form .order-item {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	margin-bottom: 0.5rem;
}

	.order-item .num {
		width: 5rem;
		margin-right: 0.5rem;
	}

	.order-item .label {
		flex: 1;
	}

	.order-item .name {
		font-weight: 700;
	    font-family: futura-pt-bold, sans-serif;
		margin-right: 1rem;
	}

	.order-item .price {
		display: block;
	}

		@media (min-width: 500px) {
			.order-item .price {
				display: inline-block;
			}
		}

form.wpcf7-form input[type='text'],
form.wpcf7-form input[type='tel'],
form.wpcf7-form input[type='email'],
form.wpcf7-form input[type='number'],
form.wpcf7-form input[type='submit'] {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	border-radius: 0;
	outline: none;
	background: #f0e8ce;
	border: 2px solid #f0e8ce;
	padding: 1rem;
	color: #605023;
	transition: all 0.2s ease-in-out;
}

form.wpcf7-form input[type='text']:focus,
form.wpcf7-form input[type='tel']:focus,
form.wpcf7-form input[type='email']:focus,
form.wpcf7-form input[type='number']:focus {
	border: 2px solid #a97b26;
}

form.wpcf7-form input[type='submit'] {
	border: 2px solid #a97b26;
	background: #a97b26;
	color: #fff;
	font-family: futura-pt-bold, sans-serif;
	margin-right: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	width: auto;
	float: right;
	margin: 0 0 0 0;
}

form.wpcf7-form input.wpcf7-not-valid {
	border-color: #c1333c
}

.wpcf7-not-valid-tip {
	display: none;
}


.footer-line {
	height: 2px;
	background-size: cover;
	background-position: bottom center;
	background-repeat: no-repeat;
}

footer {
	background: #fff;
	padding: 2rem 0;
	text-transform: uppercase;
	font-size: 0.875rem;
	line-height: 140%;
}

	.footer-areas {
		display: flex;
		flex-flow: row wrap;
	}

	.footer-area {
		padding-right: 1rem;
		width: 100%;
		padding-bottom: 1rem;
	}

		@media (min-width: 600px) {
			.footer-area {
				width: 33.33%;
			}
		}

		.footer-area:nth-child(2),
		.footer-area:nth-child(3) {
			opacity: 0.6;
		}

	footer a {
		text-decoration: none;
	}

.imprint {
	position: absolute;
	right: 0.5rem;
	bottom: 0.5rem;
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

	.imprint a { text-decoration: none; }
