:root 
{
	--dunkelblau: #004b8f;
	--hellblau: #00aef4;
	--grau: #000;
}

* 
{
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

body 
{
	font-size: 1.2em;
	color: var(--grau);
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	line-height: 1.6;
	overflow-x: hidden;
}

::selection 
{
	background-color: var(--dunkelblau);
 	color: #fff;
}

::-moz-selection 
{
  	background-color: var(--dunkelblau);
 	color: #fff;
}

h1, h2, h3, .big, .small
{
	font-family: 'Roboto Slab', serif;
	font-weight: 400;
	line-height: 1.25;
	font-size: 2.5em;
	letter-spacing: 0.02em;
}

h1, h2, h3
{
	color: var(--dunkelblau);
}

h2, .small, .color
{
	font-size: 1.6em;
}

h2 + p, h3 + p
{
	margin-top: 1em;
}

/*.text.intro
{
	margin-bottom: -30px;
}*/

#header
{
	position: -webkit-sticky;
	position: sticky;
	width: 100%;
	left: 0;
	top: -188px;
	z-index: 1000;
	box-shadow: 0px 0px 12px rgba(0,0,0,0.2);
}

#opener .wrap
{
	max-width: 1050px;
}

.wrap
{
	max-width: 950px;
	display: block;
	margin: auto;
	padding: 0px 30px;
	position: relative;
}

#navigation
{
	background-color: var(--dunkelblau);
	font-family: 'Roboto Slab', serif;
	letter-spacing: 0.02em;
	position: relative;
	z-index: 10;
}

#navigation ul
{
	text-align: center;
}

#navigation ul li
{
	display: inline-block;
	padding: 15px 0px 17px;
	margin: 0px 15px;
}

#navigation ul li a
{
	color: #fff;
	text-decoration: none;
}

#navigation ul li.active a
{
	font-weight: 500;
}

#logoArea
{
	text-align: center;
}

#logo
{
	width: 100%;
	max-width: 280px;
	padding: 20px 0px 15px;
}

#opener
{
	width: 100%;
	height: 100vh;
	background-size: cover;
	background-position: top center;
	margin-top: -251px;
	position: relative;
}

#opener.subpage
{
	height: 251px;
}

#openerTitle
{
	position: absolute;
	width: 100%;
	left: 0;
	top: calc(50% + 200px / 2);
	transform: translateY(-50%);
	text-align: center;
	color: #fff;
}

#openerTitle .big, .small
{
	display: inline;
	padding: 0.2em 0.7em;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	-moz-box-decoration-break: clone;
	-webkit-user-select: none;
	background-color: var(--dunkelblau);
}

.small
{
	padding: 0.2em 0.9em 0.3em;
	background-color: #fff;
	color: var(--dunkelblau);
}

.space
{
	height: 1em;
}

#down
{
	position: absolute;
	width: 20px;
	height: 20px;
	border-left: 3px solid var(--dunkelblau);
	border-bottom: 3px solid var(--dunkelblau);
	left: 50%;
	transform: translateX(-50%) rotate(-45deg);
	bottom: 60px;
}

.text-center
{
	text-align: center;
}

.text
{
	margin: 60px 0px;
}

.withButton
{
	margin-top: -30px;
}

.text.withButton p a
{
	display: inline-block;
	color: #fff!important;
	border-bottom: 0!important;
	background-color: var(--dunkelblau);
	padding: 1em 1.7em;
	transition: all 0.2s;
	text-decoration: none;
	font-family: 'Roboto Slab', serif;
	letter-spacing: 0.02em;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	border-radius: 100px;
}

.text.withButton p a:hover
{
	background-color: var(--hellblau);
}

.color
{
	background-color: var(--dunkelblau);
	padding: 60px 0px;
	color: #fff;
	font-family: 'Roboto Slab', serif;
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 1.5;
}

.inline, .full
{
	max-width: 100%;
	margin-bottom: -6px!important;
}

.full
{
	width: 100%;
}

.textFlex
{
	display: flex;
	margin-left: -60px;
	align-items: center;
}

.textFlex.right
{
	flex-direction: row-reverse;
}

.textFlexItem
{
	width: 50%;
	margin-left: 60px;
}

.text ul li
{
	position: relative;
	list-style: none;
	padding-left: 1em;
}

.text ul li:before
{
	content: "";
	position: absolute;
	left: 0;
	top: 0.56em;
	width: 0.45em;
	height: 0.45em;
	border-radius: 1em;
	background-color: var(--dunkelblau);
}

.divider
{
	width: 100%;
	padding: 25px 0;
	height: 1px;
	position: relative;
}

.divider:before
{
	content: "";
	position: absolute;
	width: 100%;
	height: 1.5px;
	background-color: var(--hellblau);
	left: 0;
	top: 50%;
	transform: translateY(-50%);
}

.divider:after
{
	content: "";
	position: absolute;
	width: 50px;
	height: 50px;
	background-image: url(icon.png);
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background-size: 80%;
	background-position: center;
	background-color: #fff;
	border-radius: 100px;
	background-repeat: no-repeat;
}

.flexGallery
{
	display: flex;
	margin-left: -30px;
	justify-content: center;
}

.flexGallery .fancybox
{
	margin-left: 30px;
	width: 50%;
}

.flexGallery img
{
	width: 100%;
}

.withMedia + .withButton
{
	margin-top: 0px;
}

#footer
{
	background-color: var(--dunkelblau);
	color: #fff;
	padding: 30px 0px;
	font-family: 'Roboto Slab', serif;
	letter-spacing: 0.02em;
	font-size: 0.9rem;
}

#footerList
{
	text-align: right;
}

#footerList li
{
	display: inline-block;
	margin-left: 30px;
}

#footerList li a
{
	color: #fff;
	text-decoration: none;
}

#footerList li a:hover
{
	border-bottom: 1px solid #fff;
}

#copy
{
	position: absolute;
	font-weight: 500;
}

#cookieSpace
{
	height: 40px;
	position: absolute;
	z-index: -10;
}

#cookieNotice
{
	position: fixed;
	width: 100%;
	left: 0;
	bottom: 0;
	z-index: 10;
	background-color: #fff;
	font-size: 0.9rem;
	padding: 20px 0px;
}

#cookieNotice strong, #accepted
{
	font-family: 'Roboto Slab', serif;
	letter-spacing: 0.02em;
	font-weight: 500;
}

#cookieCheckboxes
{
	display: flex;
	flex-wrap: wrap;
	margin-top: 1em;
	margin-bottom: 1em;
}

#cookieCheckboxes label
{
	position: relative;
	margin-right: 1.5em;
	padding-left: 1.3em;
	cursor: pointer;
}

#cookieCheckboxes input
{
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
}

#accepted
{
	display: inline-block;
	color: var(--dunkelblau);
	float: right;
	transition: all 0.2s;
	cursor: pointer;
}

#accepted:hover
{
	color: var(--hellblau);
}

#cookieNotice a, .text p a, #form a
{
	color: var(--dunkelblau);
	border-bottom: 1px dashed var(--dunkelblau);
	transition: all 0.2s;
	text-decoration: none;
}

#cookieNotice a:hover, .text p a:hover, #form a:hover
{
	color: var(--hellblau);
	border-bottom: 1px dashed var(--hellblau);
}

#contact
{
	padding: 0px 0px 80px;
	background-size: cover;
	background-position: top center;
}

#formBox
{
	background-color: rgba(255, 255, 255, 0.85);
	padding: 0px 90px 60px;
	border-radius: 8px;
}

#formIntro
{
	margin-bottom: 30px;
}

#form
{
	padding-top: 220px;
	margin-top: -220px;
	width: 100%;
	position: relative;
}

form label
{
	color: var(--dunkelblau);
	font-family: 'Roboto Slab', serif;
	letter-spacing: 0.02em;
	font-weight: 500;
	display: block;
	margin-bottom: 0.3em;
}

input[type = "text"], input[type = "email"], textarea, button
{
	-webkit-appearance: none;
   	-moz-appearance: none;
   	appearance: none;
   	border-radius: 0px;
   	font-size: 1em;
   	width: 100%;
   	border: none;
   	font-family: 'Roboto', sans-serif;
   	line-height: 1.4;
   	color: var(--grau);
   	font-weight: 300;
   	background-color: transparent;
}

input, textarea
{
	color: var(--grau);
}

input[type = "text"], input[type = "email"], textarea
{
	border: 1px solid var(--dunkelblau);
	padding: 0.5em 0.7em;
	transition: all 0.2s;
}

input, textarea
{
	margin-bottom: 1.2em;
	transition: border-color 0.3s;
}

input:focus, textarea:focus
{
	border-color: var(--hellblau);
}

textarea
{
	height: 9em;
	resize: none;
}

.alert.alert-danger ul:before
{
	font-family: 'Roboto Slab', serif;
	letter-spacing: 0.02em;
	font-weight: 500;
	content: "Folgende Fehler sind aufgetreten. Bitte überprüfen Sie Ihre Eingabe.";
	color: red;
	display: block;
}

.alert.alert-danger ul
{
	margin: 0em 0em 2em;
	line-height: 1.6;
	color: red;
}

.alert.alert-danger ul li
{
	position: relative;
	list-style: none;
	padding-left: 1em;
}

.alert.alert-danger ul li:before
{
	content: "";
	position: absolute;
	left: 0;
	top: 0.52em;
	width: 0.45em;
	height: 0.45em;
	border-radius: 1em;
	background-color: red;
}

.checkbox
{
	position: relative;
	padding-left: 1.2em;
}

.checkbox label
{
	font-family: 'Roboto', sans-serif;
	color: var(--grau);
	line-height: 1.5;
	font-weight: 300;
	cursor: pointer;
	text-transform: none;
}

.checkbox input
{
	position: absolute;
	left: 0px;
	top: 0.75em;
	cursor: pointer;
}

button
{
	display: inline-block;
	color: #fff!important;
	border-bottom: 0!important;
	background-color: var(--dunkelblau);
	padding: 1em 1.7em;
	transition: all 0.2s;
	text-decoration: none;
	font-family: 'Roboto Slab', serif;
	letter-spacing: 0.02em;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	border-radius: 100px;
	cursor: pointer;
	width: auto;
	margin-top: 1.2em;
}

button:hover
{
	background-color: var(--hellblau);
}

#badge
{
	position: absolute;
	height: 100%;
	right: 30px;
	top: 0;
	padding: 20px 0px;
}

@media all and (max-width: 500px){
	.textFlex, .flexGallery
	{
		display: block;
		margin-left: 0!important;
	}

	.textFlexItem, .flexGallery .fancybox
	{
		width: 100%;
		display: block;
		margin-bottom: 16px!important;
		margin-left: 0!important;
	}
}

@media all and (max-width: 750px){
	#navigation
	{
		display: none;
		position: fixed;
		width: 100%;
		top: 100px;
		max-height: calc(100% - 100px);
		overflow-y: auto;
	}

	#navigation ul
	{
		padding-bottom: 15px;
		padding-top: 5px;
	}

	#navigation ul li
	{
		display: block;
		margin-top: 8px;
		padding: 0;
	}

	#navOpener
	{
		position: absolute;
		right: 30px;
		width: 26px;
		height: 20px;
		top: 50%;
		transform: translateY(-50%);
		cursor: pointer;
	}

	#badge
	{
		right: 70px;
	}

	.line
	{
		position: absolute;
		width: 100%;
		height: 3px;
		background-color: var(--hellblau);
		left: 50%;
		transform: translateX(-50%);
		transition: all 0.2s;
	}

	#navOpener .line:nth-child(1)
	{
		top: 0;
	}

	#navOpener .line:nth-child(2)
	{
		top: 50%;
		transform: translate(-50%, -50%);
	}

	#navOpener .line:nth-child(3)
	{
		bottom: 0;
	}

	#navOpener.active .line:nth-child(1)
	{
		top: 50%;
		transform: translate(-50%, -50%) rotate(45deg);
	}

	#navOpener.active .line:nth-child(2)
	{
		width: 0;
	}

	#navOpener.active .line:nth-child(3)
	{
		bottom: auto;
		top: 50%;
		transform: translate(-50%, -50%) rotate(-45deg);
	}

	#header
	{
		position: fixed;
		top: 0;
		left: 0;
		background-color: rgba(255, 255, 255, 0.95);
	}

	#logoArea .wrap, #opener.subpage
	{
		height: 100px;
	}

	#opener.subpage
	{
		min-height: auto;
	}

	#logo
	{
		max-width: auto;
		width: auto;
		height: 100%;
		position: absolute;
		left: 30px;
		padding: 12px 0px;
	}

	#opener
	{
		margin-top: 0;
		min-height: 460px;
	}

	#openerTitle
	{
		top: calc(50% + 25px);
		transform: translateY(-50%);
	}

	h1, .big
	{
		font-size: 1.5em;
	}

	h2, .small, .color
	{
		font-size: 1.1em;
	}

	body 
	{
		font-size: 1.1em;;
	}

	.space
	{
		height: 0.5em;
	}

	#contact
	{
		padding: 0;
	}

	#contact .wrap
	{
		padding: 0;
	}

	#formBox
	{
		padding: 30px;
		padding-bottom: 40px;
		padding-top: 0;
	}

	.text
	{
		margin: 40px 0px;
	}

	.withButton
	{
		margin-top: -20px;
	}

	/*.intro
	{
		margin-bottom: -20px;
	}*/

	.divider
	{
		padding: 23px 0;
	}

	.divider:after
	{
		width: 46px;
		height: 46px;
	}

	#down
	{
		width: 16px;
		height: 16px;
		border-left: 3px solid var(--dunkelblau);
		border-bottom: 3px solid var(--dunkelblau);
		bottom: 40px;
	}

	.color
	{
		padding: 40px 0px;
	}

	#form
	{
		margin-top: -130px;
		padding-top: 130px;
	}

	#copy
	{
		position: relative;
	}

	#footerList 
	{
		text-align: left;
		margin-top: 5px;
	}

	#footerList li
	{
		display: block;
		margin-left: 0;
		margin-top: 2px;
	}

	#footer
	{
		padding: 20px 0px;
	}
}

@media all and (min-width: 751px){
	#navigation
	{
		display: block!important;
	}
}

@media all and (min-width: 751px) and (max-width: 1000px){
	h1, .big
	{
		font-size: 1.8em;
	}

	h2, .small, .color
	{
		font-size: 1.3em;
	}

	.space
	{
		height: 0.7em;
	}
}

@media all and (max-width: 1000px){
	.textFlex
	{	
		margin-left: -30px;
	}

	.textFlexItem
	{
		margin-left: 30px;
	}
}