@font-face {
	font-family: 'chap';
	src: url('chap_medium.woff') format('woff');
}

body {
	font-family: 'chap';
	margin: 0;
}

p {
	font-family: 'chap';
	font-size: 18px;
}

h2 {
	margin-bottom: 0px;
	font-weight: normal;
	font-size: 1.3em;
}

main {
	position: relative;
	z-index: 0;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-pack: space-evenly;
	-ms-flex-pack: space-evenly;
	justify-content: space-evenly;
	-webkit-box-align: start;
	-ms-flex-align: start;
	align-items: flex-start;
	margin-top: 50px;
	margin-bottom: 50px;
}

main a {
	color: #0441f1;
	text-decoration: none;
}

main.karten {
	margin-left: 17%;
	margin-right: 5%;
	margin-top: 150px;
}

.tuch, .karte {
	cursor: pointer;
}

.tuch {
	width: 100%;
	margin: 4% 0 0 0;
	margin-top: 50px;
}

#karten_1 .karte {
	width: 20%;
	min-width: 160px;
	max-width: 240px;
	margin-right: 10%;
	margin-top: 40px;
}

#karten_2 .karte, #karten_3 .karte, #karten_4 .karte {
	width: 15%;
	min-width: 120px;
	max-width: 180px;
	margin-right: 10%;
	margin-top: 40px;
}

header {
	position: fixed;
	top: 40px;
	margin-left: 5%;
	margin-right: 5%;
	z-index: 100;
	display: flex;
	justify-content: space-between;
	width: 90%;
}

header>section {
	display: flex;
	align-items: flex-start;
}

nav {
	letter-spacing: 0.02em;
	margin-top: -4px;
	margin-right: 60px;
	color: #1a171b;
}

nav .sub {
	display: none;
}

nav h2 {
	margin: 0;
	margin-right: 60px;
	font-size: 18px;
	font-weight: normal;
	cursor: pointer;
}

nav p {
	margin-top: 5px;
	margin-bottom: 0;
}

nav a {
	text-decoration: none;
	color: #1a171b;
}

nav #mail img {
	width: 23px;
}

nav a.active {
	color: #630095;
}

#logo {
	width: 115px;
	margin-right: 100px;
}

#box img {
	width: 35px;
	margin-top: -5px;
}

.karte.detail {
	width: auto;
}

.tuch-container {
	width: 25%;
	margin: 4%;
}

.tuch-container.detail {
	width: 100%;
	text-align: center;
}

.detail .tuch {
	height: 80vh;
	width: auto;
}


#karten_1 .karte.detail, #karten_2 .karte.detail, #karten_3 .karte.detail, #karten_4 .karte.detail {
	width: auto;
	height: 50vh;
	max-width: none;
	margin-right: 30px;
}

#karten_2 .karte.detail, #karten_3 .karte.detail, #karten_4 .karte.detail {
	height: 30vh;
}

#details {
	position: relative;
	width: 100%;
	font-size: 14px;
	margin-top: -3%;
}

#details p {
	margin-bottom: 5px;
	margin-top: 5px;
	margin-left: 2px;
}

#details>div {
	width: 330px;
	margin: 0 auto;
}

.cardcontainer #details>div {
	margin-top: 25px;
	margin-left: 0;
}

.buy {
	cursor: pointer;
}

.buy img {
	width: 35px;
	vertical-align: -3px;
	margin-left: 10px;
}

#details textarea {
	width: 100%;
}

.close {
	position: absolute;
	top: 5px;
	right: 4.5%;
	cursor: pointer;
}

.close img {
	width: 18px;
}

.turn {
	position: absolute;
	top: 3px;
	right: 25%;
	cursor: pointer;
}

.turn img {
	width: 30px;
}

#nav_icon {
	display: none;
}

#top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
}

#top article {
	flex-grow: 1;
	margin-top: 20px;
}

.topimg {
	width: 40%;
	margin-right: 40px;
}

@media (max-width:1000px) {
	.tuch-container {
		width: 40%;
	}
}

@media (min-width:751px) {
	nav {
		display: flex !important;
	}
}

@media (max-width:750px) {
	#top {
		flex-direction: column;
		align-items: flex-start;
	}

	.topimg {
		width: 80%;
	}

	#nav_icon {
		display: inherit;
	}

	#nav_icon {
		margin-bottom: 20px;
	}

	#nav_icon {
		width: 20px;
		cursor: pointer;
	}

	.tuch-container {
		width: 70%;
	}

	.detail .tuch {
		width: 100%;
		height: auto;
	}

	header>section {
		flex-direction: column;
	}

	header>section>* {
		margin-bottom: 20px;
	}

	nav {
		display: none;
		flex-direction: column;
	}

	nav h2 {
		margin-top: 15px;
	}

	#details input, #details textarea {
		font-size: 16px;
	}

	.sub p {
		margin-top: 8px;
		margin-bottom: 8px;
	}
}

/******************* MODAL WINDOW *********************/

.modal main {
	/*
	height: 0;
	overflow: hidden;
	*/
}

.modal #modal {
	display: block;
}

.modal_bg {
	display: none;
	position: absolute;
	z-index: 100;
	top: 0;
	left: 0;
	right: 0;
	min-height: 100vh;
	padding-top: 30vh;
	pointer-events: none;
}

.modal_window {
	margin: 0 auto;
	position: relative;
	width: 450px;
	max-width: 100%;
	background: #fff;
	padding-top: 20px;
	padding-bottom: 10px;
	pointer-events: all;
	border: solid 2px #bdbdbd;
	transform: rotate(351deg) scale(0.75);
}

.modal_window .content {
	margin: 30px;
}

.modal_window .content p {
	font-size: 1.6em;
	line-height: 1.3em;
	text-align: center;
	color: #0441f1;
}

.modal_window .close {
	position: absolute;
	top: 10px;
	right: 20px;
	font-size: 40px;
	margin: 0;
	cursor: pointer;
}