@font-face {
    font-family: 'eras';
    src: url('../assets/fonts/ITC Eras Std Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'eras';
    src: url('../assets/fonts/ITC Eras Std Ultra.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

html, button, input {
	font-family: eras, sans-serif;
}

html {
	font-size: 16px;
	height: 100%;
	overflow-x: hidden;
}

body {
	margin: 0;
	padding: 0;
	color: hsl(212deg, 83%, 12%);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 100%;
}

header #header-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('../assets/karton-header.png');
	background-repeat: no-repeat;
	background-size: 100% 100%;
	z-index: -1;
}

header {
	flex-shrink: 0;
	height: 18rem;
	position: relative;
	box-sizing: border-box;
	padding: 4rem 9vw 5rem 9vw;
	z-index: 10;
}

header #nav-button {
	display: none;
}

footer {
	flex-shrink: 0;
	height: 11rem;
	background-image: url('../assets/karton-footer.png');
	background-repeat: no-repeat;
	background-size: 100% 100%;
	box-sizing: border-box;
	padding: 0 9vw;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

#logo img {
	width: auto;
	height: 3.7rem;
}

a {
	text-decoration: none;
	color: inherit;
}

article p a {
	text-decoration: underline;
	word-break: break-all;
}

main {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-grow: 1;
	margin: -2.2rem 0 -2.7rem 0;
}

main.halle {
	background-image: url('../halle.jpg?size=1024x1024');
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}

article {
	margin: 0;
	padding: 0;
	flex-grow: 1;
}

article.centered {
	max-width: min(70%, 55em);
	text-align: center;
	margin: 3rem 0;
}

article.text,
article.fefco
{
	display: flex;
	padding: 4rem 9vw;
}

h1, h2, h3 {
	margin: 0;
	padding: 0;
	font-size: 1.1rem;
	font-weight: bold;
	font-style: normal;
}

h3 {
	font-size: 1rem;
}

article.text h1,
article.text h2,
article.text h3
{
	margin-bottom: 1em;
}

h2, h3 {
	margin-top: 1.5em;
}

p {
	font-size: 1.1rem;
	margin: 0.5em 0;
	line-height: 1.3;
	text-align: justify;
}
article.centered p {
	text-align: center;
}
article.legalese p {
	font-size: 0.9rem;
}

article aside {
	margin: 0 3rem 0 0;
	padding: 0;
	width: 50%;
	/*max-width: 50vh;*/
}

article section {
	margin: 0;
	padding: 0;
	width: 50%;
	flex-grow: 1;
}

figure {
	margin: 0;
	padding: 0;
	position: relative;
}

figure > * {
	position: absolute;
	
	/*
	top: 50%;
	transform: translateY(-50%);
	*/
	top: 0;
	
	left: 0;
	width: 100%;
	height: auto;
	display: block;
	opacity: 0;
	transition: opacity 0.7s;
	pointer-events: none;
}
figure > .active {
	opacity: 1;
	pointer-events: initial;
}
figure > video.active {
	cursor: zoom-in;
}

article section ul {
	margin: 0.7em 0;
	padding: 0;
	list-style: square;
	font-size: 1.1rem;
	line-height: 1.2;
}

article section ul li {
	margin: 0 0 0.3em 1em;
	padding: 0;
}

.smartphone-only {
	display: none;
}

article.fefco {
	flex-wrap: wrap;
}

article.fefco section {
	margin: 2rem 0;
}

article.fefco h1 {
	width: 100%;
}

article.fefco h2 {
	margin: 0.5rem 0 1rem 0;
}

article.fefco section.fefco-katalog ul {
	list-style: none;
	margin: 0 -1rem;
	display: flex;
	flex-wrap: wrap;
}

article.fefco section.fefco-katalog ul li {
	margin: 0;
	padding: 1rem;
	width: 50%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

article.fefco section.fefco-katalog ul li a {
	text-decoration: none;
	display: flex;
	flex-direction: column;
	background: #f8f8f8;
	padding: 1rem;
	flex-grow: 1;
}

article.fefco section.fefco-katalog ul li h3,
article.fefco section.fefco-katalog ul li h4
{
	margin: 0;
	font-size: 1rem;
	font-weight: normal;
}

article.fefco section.fefco-katalog ul li a > div:first-of-type {
	margin: -1rem -1rem 2rem -1rem;
	background-color: hsl(212deg, 83%, 12%);
	color: #fff;
	width: calc(100% + 2rem);
	display: flex;
	justify-content: space-between;
	box-sizing: border-box;
	padding: 0.8rem 1rem 0.5rem 1rem; /* dude these font metrics */
}

article.fefco section.fefco-katalog ul li h4 {
	text-align: right;
}

article.fefco section.fefco-katalog ul li a > div:last-of-type {
	display: flex;
	justify-content: space-between;
}

article.fefco section.fefco-katalog ul li img {
	display: block;
	width: 70px;
	margin-left: 3rem;
	height: auto;
	align-self: start;
	filter: saturate(0);
}

article.fefco section.fefco-katalog ul li p {
	margin: 0;
	font-size: 1rem;
	text-align: left;
}

img {
	border: none;
}

article.fefco form input::placeholder {
	color: transparent;
}

article.fefco img.fefco-preview {
	display: block;
	width: 70px;
	height: auto;
	margin: 1.5rem 0 0 auto;
	filter: saturate(0);
}
article.fefco img.fefco-preview.smartphone-only {
	display: none;
}

article.fefco section:first-of-type ul li.active a {
	font-weight: bold;
}

article.fefco section.fefco-katalog.detail ul li {
	width: 33.3%;
}

article.fefco section.fefco-katalog.detail ul li img {
	width: 100%;
	margin: 0;
	mix-blend-mode: darken;
}

