::-moz-selection {
	background: #7F665B; 
	color: ##FAEBD7;
}

::selection {
	background: #7F665B; 
	color: #FAEBD7;
}

html {
	overflow-x: hidden;
}

html.no-scroll {
	overflow: hidden;
}

body, html {
	font-family: 'Raleway', sans-serif;
	font-size: 105%;
	color: #7F665B;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	
	background: #FAEBD7;
	
	text-rendering: optimizeLegibility;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	-moz-font-smoothing: antialiased;
	-ms-font-smoothing: antialiased;
	-o-font-smoothing: antialiased;
	font-smoothing: antialiased;
}

html, body, header, nav, a, p, div, section, article, img, .col, form, input, textarea, ul,  ul li {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	-o-box-sizing: border-box;
	box-sizing: border-box;
}


h1, h2, h3, h4, h5, h6 {
	margin: 10px 0;
	font-family: 'Pattaya', serif;
	font-weight: lighter;
}

h1 {
	font-size: 1.5em;
}

ul, ul li {
	list-style-type: none;
	padding: 0;
	margin: 0;
	display: inline-block;
}

p {
	font-size: 1em;
	line-height: 150%;
}

a {
	color: #7F665B;
	font-weight: bold;
}

a, a:focus, a:hover {
	text-decoration: none;
	outline: none;
}

/*
section, header {
	border: 1px solid red;
}

div {
	border: 1px solid blue;
}

section {
	min-height: 350px;
}
*/

header {
	position: fixed;
	top: 0;
	z-index: 9998;
	height: 135px;
	width: 100%;
	background-color: #FAEBD7;
	
	-webkit-box-shadow: 0px 0px 15px 0px #c2aca4;
	-moz-box-shadow: 0px 0px 15px 0px #c2aca4;
	-ms-box-shadow: 0px 0px 15px 0px #c2aca4;
	-o-box-shadow: 0px 0px 15px 0px #c2aca4;
	box-shadow: 0px 0px 15px 0px #c2aca4;
	
	-ms-transition: all 0.1s ease-out;
	-moz-transition: all 0.1s ease-out;
	-webkit-transition: all 0.1s ease-out;
	-o-transition: all 0.1s ease-out;
	transition: all 0.1s ease-out;
}

header #logo {
	max-width: 250px;
	width: 100%;
	cursor: pointer;
	
	-ms-transition: all 0.1s ease-out;
	-moz-transition: all 0.1s ease-out;
	-webkit-transition: all 0.1s ease-out;
	-o-transition: all 0.1s ease-out;
	transition: all 0.1s ease-out;
}

header.scale {
	height: 80px;
	font-size: .85em;
}

header.scale #logo {
	max-width: 150px;
}

header.scale .content-wrapper {
	padding: 10px;
}

#teaser {
	margin-top: 135px;
	background-image: url('../img/teaser.jpg');
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	padding-bottom: 35%;
}

#about img {
	max-width: 400px;
	width: 100%;
}

#portfolio, #quote {
	background: #EDD0B9;
}

.content-wrapper {
	position: relative;
	max-width: 1280px;
	width: 100%;
	margin: 0px auto;
	padding: 25px;
	text-align: center;
	
	-ms-transition: all 0.1s ease-out;
	-moz-transition: all 0.1s ease-out;
	-webkit-transition: all 0.1s ease-out;
	-o-transition: all 0.1s ease-out;
	transition: all 0.1s ease-out;
}

.col {
	display: inline-block;
	vertical-align: middle;
	padding: 15px;
}

.col.half {
	width: 49%;
	text-align: left;
}

nav {
	text-align: right;
}

nav ul li {
	margin-left: 25px;
	cursor: pointer;
}

#nav-trigger {
	position: absolute;
	top: 50%;
	right: 20px;
	height: 30px;
	width: 30px;
	cursor: pointer;
	display: none;
			
	-webkit-transform: translateY(-50%); 
	-moz-transform: translateY(-50%); 
	-ms-transform: translateY(-50%); 
	-o-transform: translateY(-50%); 
	transform: translateY(-50%); 
}
		
#nav-trigger span {
	top: 23px;
}
		
#nav-trigger span, #nav-trigger span:before, #nav-trigger span:after {
	backface-visibility: hidden;
	background-color: #7F665B;
	content: '';
	display: block;
	height: 2px;
	margin-top: 10px;
	position: absolute;
	width: 30px;
		
	-webkit-transition: all 0.2s ease 0s;
	-moz-transition: all 0.2s ease 0s;
	-ms-transition: all 0.2s ease 0s;
	-o-transition: all 0.2s ease 0s;
	transition: all 0.2s ease 0s;
}
		
#nav-trigger span:after {
	margin-bottom: 2px;
}
		
#nav-trigger span, #nav-trigger span:before {
	margin-top: -10px;
}
		
#nav-trigger.active span, #nav-trigger.active span::before, #nav-trigger.active span::after {
	height: 3px;
}
		
#nav-trigger.active span {
	background-color: transparent;
}
		
#nav-trigger.active span:before {
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
	margin-top: 0;
}
		
#nav-trigger.active span:after {
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg);
	top: -10px;
}

#sm-icons span {
	display: inline-block;
	vertical-align: middle;
	margin-right: 10px;
}

#sm-icons img {
	max-height: 30px;
	display: block;
}


#quote {
	padding: 150px;
	min-height: auto;
}
.quotemark{
	font-size: 2em;
	font-style: italic;
}

#quote center {
	max-width: 650px;
	width: 100%;
	margin: 0 auto;
}

footer {
	padding: 25px;
}

input[type=text], input[type=email], input[type=date], input[type=submit], textarea { 
	font-family: 'Raleway', sans-serif;
	font-size: 0.75em;
	background-color: #ffffff;
	padding: 20px;
	width: 100%;
	display: block;
	margin: 10px 0;
	
	border-image: none;
	border-radius: 0;
	border: 3px dotted #7F665B;
	
	-webkit-appearance: none !important; 
	-moz-appearance: none !important;
	-ms-appearance: none !important;
	-o-appearance: none !important;
	appearance: none !important;
}

textarea {
	min-width: 100%;
	max-width: 500px;
	min-height: 250px;
}

input[type=submit] {
	background-color: #EDD0B9;
	cursor: pointer;
}

input.error, textarea.error {
	border: 3px dotted #d95255;
}

#mail-fail, #mail-success {
	text-align: center;
	display: none;
}

#mail-fail.error {
	display: block;
}

#imprint-trigger {
	cursor: pointer;
}

#imprint { 
	background-color: #FAEBD7;
	position: fixed;
	z-index: 10005;
	top: 150%;
	left: 0;
	right: 0;
	bottom: 0;
	overflow-y: scroll;
	
	-webkit-transition: all 0.5s ease 0s;
	-moz-transition: all 0.5s ease 0s;
	-ms-transition: all 0.5s ease 0s;
	-o-transition: all 0.5s ease 0s;
	transition: all 0.5s ease 0s;
}

#imprint .col {
	vertical-align: top;
}

#imprint ul li {
	display: block;
}

#imprint ul li:before {
	content: '\2022';
	padding-right: 15px;
}

#imprint.active {
	top: 0;
	
	-webkit-transition: all 0.3s ease 0s;
	-moz-transition: all 0.3s ease 0s;
	-ms-transition: all 0.3s ease 0s;
	-o-transition: all 0.3s ease 0s;
	transition: all 0.3s ease 0s;
}

.close, #glisse-close {
	position: absolute;
	z-index: 10005;
	top: 20px;
	right: 20px;
	height: 30px;
	width: 30px;
	cursor: pointer;
	display: block;
}

.close span, .close span::before, .close span::after, #glisse-close span, #glisse-close span::before, #glisse-close span::after {
	backface-visibility: hidden;
	background-color: #7F665B;
	content: '';
	display: block;
	height: 3px;
	margin-top: 10px;
	position: absolute;
	width: 30px;
}

.close span, #glisse-close span {
	background-color: transparent;
}

.close span:before, #glisse-close span:before {
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	transform: rotate(45deg);
	margin-top: 0;
}
		
.close span:after, #glisse-close span:after {
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg);
	top: -10px;
}


@media (min-width:769px) and (max-width:1170px) { 

}

@media (min-width:0px) and (max-width:960px) {
	section .col.half {
		width: 100%;
		display: block;
	}
	#about .col.half:first-of-type {
		text-align: center;
	}
}

nav.mobile {
	position: fixed;
	left: -100%;
}

@media (min-width:0px) and (max-width:768px) {
	
	header {
		height: 80px;
	}
	header #logo {
		max-width: 150px;
	}
	.content-wrapper {
		padding: 10px;
	}
	#teaser {
		margin-top: 80px;
	}
	nav.desktop {
		display: none;
	}
	nav.mobile {
		width: 100%;
		height: 100%;
		background-color: #FAEBD7;
		text-align: center;
		top: 0;
		z-index: -1;
		
		-webkit-transition: all 0.2s ease 0s;
		-moz-transition: all 0.2s ease 0s;
		-ms-transition: all 0.2s ease 0s;
		-o-transition: all 0.2s ease 0s;
		transition: all 0.2s ease 0s;
	}
	
	nav.mobile.active {
		left: 0;
	}
	
	nav.mobile ul {
		position: absolute;
		top: 50%;
		left: 0;
		right: 0;
		transform: translateY(-50%);
	}
	
	nav.mobile ul li {
		display: block;
		margin: 15px;
		cursor: pointer;
	}
	
	#nav-trigger {
		display: block;
	}
	#about img {
		max-width: 250px;
	}
	#quote {
		padding: 25px;
	}
}
