html {
	height: 100%;
}

:root {
	--primary-color: #000;
	--secondary-color: #fff;
	--light-color: #a0a09f;
}

body {
	height: 100%;
	margin: 0;
	padding: 0;
	background: var(--secondary-color);
	overflow-x: hidden;
	overflow-y: scroll;
	font-family: 'dinRegular';
	font-size: 10px;
	letter-spacing: -1px;
	color: var(--primary-color);
}

* {
	box-sizing: border-box;
}

header, footer, article, section, nav, menu, a, figure, img, h1, h2, h3, h4, h5, h6, pre, blockquote, form, input, select, textarea, label, ul, ol, p {
	display: block;
	margin: 0;
	padding: 0;
}

a {
	text-decoration: none;
}

img {
	border: none;
}
img.fullWidth {
	width: 100%;
}
img.cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

h1, h2, h3, h4, h5, h6, strong {
	font-weight: normal;
	font-family: 'dinNeuzeit';
}

ul {
	list-style: none;
}

article {
	font-size: 1.8em;
	line-height: 1.4em;
}
article p:not(:first-child), article ul:not(:first-child), article ol:not(:first-child), article h1:not(:first-child), article h2:not(:first-child), article h3:not(:first-child), article h4:not(:first-child), article h5:not(:first-child), article h6:not(:first-child), article blockquote:not(:first-child) {
	margin-top: 1.5em;
}
article a {
	color: var(--primary-color);
	display: inline-block;
	text-decoration: underline;
}
article a:hover {
	text-decoration: none;
	color: var(--light-color);
}
article ul li, article ol li {
	margin-left: 2.5em;
}
article ul li {
	list-style: disc;
}
article img, article iframe {
	max-width: 100%;
}
article h1 {
	font-size: 1.8em;
}
article h2 {
	font-size: 1.6em;
}
article h3 {
	font-size: 1.4em;
}
article h4, article h5, article h6 {
	font-size: 1.2em;
}

input, select, textarea {
	width: 100%;
	border: 1px solid var(--primary-color);
	font: 1.6em 'dinRegular';
	color: var(--primary-color);
	padding: .5em 1em;
	outline: none;
	background: none;
	appearance: none;
}
input[type=submit] {
	width: auto;
	cursor: pointer;
	background: var(--primary-color);
	color: var(--secondary-color);
	min-width: 12em;
	float: right;
}
input[type=checkbox] {
	width: 25px;
	height: 25px;
	padding: 0;
}
input[type=checkbox]:checked {
	background: var(--light-color);
}
input[type=submit]:hover {
	background: var(--light-color);
}
textarea {
	resize: none;
	height: 8em;
}
.outputMsg {
	position: absolute;
	width: 100%;
	top: calc(100% + .5em);
	padding: .2em;
	visibility: hidden;
	font: 1.6em 'dinBold';
	color: var(--primary-color);
}
.outputMsg.err {
	background: red;
	color: white;
}
.inputContainer {
	margin-bottom: 1em;
}
label {
	font-size: 1.6em;
}
label.main {
	font-size: 1.8em;
	padding: .3em 0;
}
label.main.required:after {
	content: " *";
	color: red;
}

.smoothTransition {
	transition-property: all;
}
.smoothTransition.hover {
	transition-duration: .3s;
}
.smoothTransition.onLoad {
	transition-duration: .75s;
}

img.smoothTransition {
	backface-visibility: hidden;
}
a:hover img.smoothTransition.hover {
	opacity: .8;
}

.hidden {
	visibility: hidden;
	opacity: 0;
}

.translatedDown {
	transform: translate(0, 50px);
}

.translatedUp {
	transform: translate(0, -50px);
}

.translatedLeft {
	transform: translate(-20px, 0);
}

.translatedRight {
	transform: translate(20px, 0);
}

.scaledUp {
	transform: scale(1.1, 1.1);
}

.scaledDown {
	transform: scale(.9, .9);
}

.table, .tableCell {
	width: 100%;
	height: 100%;
}
.table {
	display: table;
}
.tableCell {
	display: table-cell;
	vertical-align: middle;
}

.container {
	position: relative;
	width: 95%;
	max-width: 1200px;
	margin: 0 auto;
}

#master {
	height: 100%;
	overflow: hidden;
	position: relative;
	visibility: hidden;
}
#master.loaded {
	height: auto;
	visibility: visible;
}

section.fullHeight {
	height: calc(100vh);
	min-height: 350px;
}

section.parallax {
	background-position: 50% 0;
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

#home {
	background: url(../images/designs-unlimited.jpg) center no-repeat;
	background-size: cover;
	background-attachment: fixed;
	clip-path: inset(50% 0);
	position: relative;
}
#home.active {
	clip-path: inset(0 0);
}
#home header {
	padding: 1em 0;
	position: relative;
}
#home header a.logo {
	width: 14%;
	min-width: 100px;
}
#home header nav, #home header a.mobileNav {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
}
#home header nav ul, #home header nav ul li {
	height: 100%;
}
#home header nav ul li {
	float: left;
}
#home header nav ul li a {
	color: var(--primary-color);
	text-shadow: 0 0 .5em rgba(255, 255, 255, .4);
	padding-top: .1em;
	padding-bottom: .1em;
}
#home header nav ul li a:hover {
	background: var(--primary-color);
	color: var(--secondary-color);
}
#home header nav ul li a.main {
	font: 3.2em 'dinNeuzeit';
	padding-left: 1.6em;
	padding-right: 1.6em;
}
#home header nav ul li a.lang {
	font-size: 2em;
	text-transform: uppercase;
	padding-left: .6em;
	padding-right: .6em;
}
#home header nav ul li a.withBorder {
	border-right: 1px solid var(--primary-color);
}
#home header nav ul li a.lang.active {
	font-weight: bold;
}
#home header a.mobileNav {
	display: none;
	width: 25px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100% auto;
}
#home header a.mobileNav.open {
	background-image: url(../images/mobile_nav_open.png);
}
#home header a.mobileNav.close {
	background-image: url(../images/mobile_nav_close.png);
}

#about, #projects, #contact {
	padding: 5em 0;
	text-align: center;
	background: var(--secondary-color);
}
#about .container, #projects .container.first, #contact .container {
	max-width: 700px;
}
#whiteOverlay .container {
	max-width: 900px;
}

#projects ul {
	margin-top: 5em;
}
#projects ul li {
	float: left;
	width: 32%;
	margin-right: 2%;
	margin-bottom: 2em;
	height: calc(20vw);
	max-height: 380px;
	min-height: 150px;
	background: var(--light-color);
	overflow: hidden;
}
#projects ul li:nth-child(3n) {
	margin-right: 0;
}
#projects ul li a {
	height: 100%;
	position: relative;
}
#projects ul li a .table {
	position: absolute;
	left: 0;
	top: 0;
	background: rgba(0, 0, 0, .4);
	opacity: 0;
}
#projects ul li a h2 {
	color: var(--secondary-color);
	font: 2.4em 'futuraLtW01Book';
}
#projects ul li a:hover img {
	transform: scale(1.1, 1.1);
}
#projects ul li a:hover .table {
	opacity: 1;
}

#contact form {
	margin-top: 2em;
	text-align: left;
}
#contact form .socialMediaIconsContainer {
	float: left;
}
#contact form .socialMediaIconsContainer a {
	display: inline-block;
	width: 3.5em;
}
#contact form .socialMediaIconsContainer p {
	font-size: 1.6em;
}

footer {
	background: var(--primary-color);
	color: var(--secondary-color);
	font-size: 1.8em;
	padding: .4em 0;
	text-align: center;
	margin-top: 1em;
}

#whiteOverlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow-y: auto;
	background: var(--secondary-color);
	padding: 3em 0;
	z-index: 10000;
	display: none;
}
#whiteOverlay a.close {
	position: fixed;
	width: 3em;
	top: 2em;
	right: 2em;
	z-index: 100;
}
#whiteOverlay a.close:hover {
	transform: rotate(180deg);
}
#whiteOverlay ul {
	position: relative;
	margin-top: 3em;
	overflow: hidden;
}
#whiteOverlay ul.largeGallery {
	height: calc(40vw);
	min-height: 300px;
	max-height: 650px;
}
#whiteOverlay ul.largeGallery li article, #whiteOverlay .fullScreenProject figure article {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: .5em;
	color: #fff;
	background: rgba(0, 0, 0, .6);
	text-align: center;
}
#whiteOverlay ul.largeGallery li img {
	cursor: pointer;
}
#whiteOverlay .anim {
	position: absolute;
	top: 0;
	left: 0;
	width: 100000px;
	height: 100%;
}
#whiteOverlay ul li {
	float: left;
	height: 100%;
	position: relative;
}
#whiteOverlay ul li a {
	height: 100%;
	position: relative;
}
#whiteOverlay a.navNext, #whiteOverlay a.navPrev {
	position: absolute;
	top: 0;
	height: 100%;
}
#whiteOverlay a.navNext {
	right: 0;
}
#whiteOverlay a.navPrev {
	left: 0;
}
#whiteOverlay a.navNext img, #whiteOverlay a.navPrev img {
	width: 60%;
	margin: 0 auto;
}
#whiteOverlay a.navNext .table, #whiteOverlay a.navPrev .table {
	position: relative;
}
#whiteOverlay a.navNext:before, #whiteOverlay a.navPrev:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .4);
	opacity: 0;
	transition: opacity .3s;
}
#whiteOverlay a.navNext:hover:before, #whiteOverlay a.navPrev:hover:before {
	opacity: 1;
}
#whiteOverlay ul.largeGallery a.navNext, #whiteOverlay ul.largeGallery a.navPrev {
	width: 5em;
}
#whiteOverlay ul.thumbnails {
	height: 120px;
	margin-left: auto;
	margin-right: auto;
}
#whiteOverlay ul.thumbnails li {
	width: 130px;
	padding: 0 5px;
}
#whiteOverlay ul.thumbnails li a::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: calc(100% - 4em);
	height: calc(100% - 4em);
	border: 2em solid rgba(160, 160, 160, .9);
	opacity: 0;
	transition: opacity .3s;
}
#whiteOverlay ul.thumbnails li a.active::after {
	opacity: 1;
}
#whiteOverlay ul.thumbnails a.navNext, #whiteOverlay ul.thumbnails a.navPrev {
	width: 3em;
}
#whiteOverlay article h1 {
	font-family: 'futuraLtW01Book';
}
#whiteOverlay .fullScreenProject, #whiteOverlay .fullScreenProject figure {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
#whiteOverlay .fullScreenProject {
	position: fixed;
	background: var(--secondary-color);
	visibility: hidden;
	opacity: 0;
}
#whiteOverlay .fullScreenProject a.navNext::before, #whiteOverlay .fullScreenProject a.navPrev::before {
	display: none;
} 
#whiteOverlay .fullScreenProject.active {
	visibility: visible;
	opacity: 1;
}
#whiteOverlay .fullScreenProject figure {
	position: absolute;
	display: none;
}
#whiteOverlay .fullScreenProject figure img {
	object-fit: contain;
}


@media screen and (max-width:768px) {
	body {
		font-size: 9px;
	}
	#home header a.mobileNav {
		display: block;
	}
	#home header nav {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		background: #fff;
		visibility: hidden;
		transform: scale(0, 0);
		transition: transform .5s;
	}
	#home header nav.active {
		transform: scale(1, 1);
	}
	#home header nav ul, #home header nav ul li {
		height: auto;
	}
	#home header nav ul li {
		float: none;
	}
	#home header nav ul li a {
		text-align: center;
	}
	#home header nav ul li a.main, #home header nav ul li a.lang {
		padding-left: 0;
		padding-right: 0;
	}
	#home header nav ul li a.withBorder {
		border-right: none;
		border-bottom: 1px solid var(--primary-color);
	}
	#home header nav ul li a.lang.withBorder {
		margin-top: 3em;
	}
}

@media screen and (max-width:640px) {
	section.fullHeight.parallax {
		height: 30em;
		min-height: 0;
		background-attachment: initial;
	}
	#home {
		background-size: 950px auto;
		background-position: top center;
	}
	#projects ul li {
		width: 49%;
	}
	#projects ul li:nth-child(3n) {
		margin-right: 2%;
	}
	#projects ul li:nth-child(2n) {
		margin-right: 0;
	}
	#contact form input[type=submit], #contact form .socialMediaIconsContainer {
		float: none;
	}
	#contact form input[type=submit] {
		width: 100%;
	}
	#contact form .socialMediaIconsContainer {
		text-align: center;
		margin-top: 1.5em;
	}
	#contact form .outputMsg {
		text-align: center;
	}
}

@media screen and (max-width:425px) {
	#whiteOverlay ul.thumbnails {
		display: none;
	}
}