/* fonts */

@font-face {
	font-family: 'LatoLight';
	src: url('Lato-Light.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}




/* basics / resets */

html {
	position: relative;
	margin: 0;
	padding: 0;
	height: 100%;
	font-size: 15px;
}
@media (max-width: 511px) {
	html { font-size: 14px; }
}
@media (max-width: 359px) {
	html { font-size: 13px; }
}


body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	font-family: Arial, sans-serif;
	font-size: 1em;
	background-color: #f5f5f5;
	color: #222;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
}

::-moz-selection {
	background: #bb4444;
	color: #fff;
	text-shadow: none;
}
::selection {
	background: #bb4444;
	color: #fff;
	text-shadow: none;
}

table, td, input, textarea, select {
	font-family: inherit;
	font-size: 1em;
}

img, iframe {
	border: 0;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s ease;
}

em,
.active,
main a:not(.text-color),
a:hover {
	color: #bb4444;
}

em {
	font-style: normal;
}


/* page */

#page {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: stretch;
    align-items: stretch;
	
	min-height: 100vh;
}

main {
	-webkit-flex: 1 0 auto;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
	
	padding: 2em 0 3.5em 0;
	color: #5a5a5a;
}


/* header */

header {
	position: relative;
	padding: 1em;
	box-sizing: border-box;
	padding: 3.25em 0 3em 0;
}

#logo {
	display: block;
	width: 13.75em;
	height: auto;
}
#title {
	padding-top: 0.6em;
	font-size: 0.88em;
	line-height: 140%;
}

nav {
	background-color: white;
	border-top: 1px #bb4444 solid;
	border-bottom: 2px #f5f5f5 solid;
}

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

nav ul {
    display: -webkit-flex;
    -webkit-flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -webkit-justify-content: space-between;
    -webkit-align-content: flex-start;
    -webkit-align-items: center;
	
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-content: flex-start;
    align-items: center;
	
	height: 2.4em;
}


nav a {
	text-transform: uppercase;
	font-size: 0.8em;
	letter-spacing: 0.067em;
}


#slider {
	background-color: white;
	border-bottom: 0.475em #bb4444 solid;
	
}

#slider-container {
	position: relative;
}
#slider-container::before {
	content: "";
	display: block;
	padding-top: 39%;
}

.wrap {
	margin: 0 auto;
	max-width: 960px;
	box-sizing: border-box;
	padding: 0 2rem;
}


/* footer */

footer {
	position: relative;
	background-color: white;
	border-top: 1px #bb4444 solid;
	font-size: 0.73em;
	padding: 0.8em 0;
	letter-spacing: 0.067em;
}

footer a {
	padding: 0 0.5em;
}
footer span {
	padding-right: 0.5em;
}


/* text */

h1 {
	margin: 0;
	padding: 1em 0 2.25em 0;
	font-size: 1.26em;
	line-height: 130%;
	font-weight: normal;
}

h2, h3 {
	margin: 0;
	padding: 2em 0 0.5em 0;
	font-size: 1em;
	line-height: 130%;
}

h1 + h2,
h1 + h3 {
	padding-top: 0.5rem;
}

p {
	margin: 0;
	padding: 0.5em 0;
	line-height: 140%;
}

main ul {
	margin: 0;
	padding: 0.5em 0 0.5em 2em;
	line-height: 140%;
	list-style-type: none;
}

main li {
	position: relative;
	padding-left: 1.5em;
}
main li::before {
	content: "■";
	position: absolute;
	top: -0.1em;
	left: 0;
	color: #bb4444;
}

main .space {
	padding-top: 2em;
}


/* slider */

#slider-container .swiper-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

#slider-container .swiper-pagination-bullet {
	margin: 0 !important;
	position: relative;
	background: none;
	width: 20px;
	height: 20px;
	opacity: 1 !important;
}
#slider-container .swiper-pagination-bullet::before {
	content: "";
	position: absolute;
	left: 5px;
	top: 5px;
	width: 10px;
	height: 10px;
	background-color: #5a5a5a;
}
#slider-container .swiper-pagination-bullet-active::before {
	background-color: #bb4444;
}

#slider-container .swiper-pagination {
	text-align: left;
	left: -5px;
	width: auto;
}

.swiper-container[data-count="0"] ~ .swiper-pagination,
.swiper-container[data-count="1"] ~ .swiper-pagination,
.swiper-container[data-count="0"] .swiper-pagination,
.swiper-container[data-count="1"] .swiper-pagination {
	display: none !important;
}

.slide-title {
	position: absolute;
	left: 0;
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	font-family: 'LatoLight', sans-serif;
	font-weight: normal;
	font-size: 1.4em;
	text-transform: uppercase;
	line-height: 145%;
	pointer-events: none;
	user-select: none;
	max-width: 49%;
}

.swiper-slide {
	background-repeat: no-repeat;
	background-position: bottom right;
	background-size: contain;
}


/* breakpoints */

@media (max-height: 719px) {
	
	header {
		padding: 2.25em 0 2.1em 0;
	}
	
	main {
		padding: 1.5em 0 2.5em 0;
	}
	
	h1 {
		padding-bottom: 1.75em;
	}
	
	main .space,
	h2 {
		padding-top: 1.5em;
	}
	
}


@media (max-width: 799px) {
	.slide-title {
		font-size: 1.3em;
	}
}

@media (max-width: 511px) {
	header {
		padding: 1.75em 0 1.65em 0;
	}
	#logo,
	#title {
		font-size: 0.9em;
	}
	
	nav ul {
		-webkit-flex-wrap: wrap;
		flex-wrap: wrap;
		
		height: auto;
		padding: 0.5em 0;
	}
	nav a {
		display: inline-block;
		padding: 0.5em 0;
		font-size: 1em;
	}
	nav ul li {
		width: 33%;
	}
	nav ul li:nth-child(2),
	nav ul li:nth-child(5) {
		text-align: center;
	}
	nav ul li:nth-child(3),
	nav ul li:nth-child(6) {
		text-align: right;
	}
	
	#slider-container::before {
		padding-top: 135%;
	}
	
	.slide-title {
		-webkit-transform: none;
		transform: none;
		top: 8%;
		font-size: 1.35em;

		max-width: none;
	}
	main ul {
		padding-left: 1.25em;
	}
	
	.swiper-slide[style*="bf_bild_standard"] {
		background-position: 50% 75%;
	}
}


@media (min-width: 512px) and (max-width: 719px) {
	.slide-title {
		font-size: 1.2em;
		font-size: calc(2.5vw);
	}
	#slider-container::before {
		padding-top: 48%;
	}
}

@media (max-width: 359px) {
	footer {
		letter-spacing: 0.03em;
	}	
	.slide-title {
		font-size: 1.25em;
	}
}