:root 
{
	--theme: #d80000;
	--darktheme: #a50000;
	--dark: #15152d;
	--grey: #dfdfed;
}

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

body 
{
	font-size: 1.15em;
	color: var(--dark);
	font-family: 'Roboto';
	font-weight: 300;
	line-height: 1.7;
	overflow-x: hidden;
}

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

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

h1, h2, h3
{
	font-family: 'Speed Demon';
	line-height: 1.05;
	font-size: 3.5em;
	font-weight: 300;
}

h2
{
	font-size: 2.5em;
}

h3
{
	font-size: 1.85em;
}

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

h3 + p, h3 + ul
{
	margin-top: 0.5em;
}

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

.wrap.smallWrap
{
	max-width: 850px;
}

#header
{
	position: fixed;
	width: 100%;
	left: 0;
	top: 0;
	z-index: 1000;
	transition: all 0.2s;
}

#header.scrolled
{
	background-color: var(--dark);
}

#header .wrap
{
	max-width: 1350px;
}

#navigation ul
{
	text-align: right;
	font-family: 'Speed Demon';
}

#navigation ul li
{
	display: inline-block;
	padding: 35px 0px 33px;
	margin-left: -7px;
	position: relative;
}

#navigation ul li ul
{
	display: none;
	position: absolute;
	text-align: left;
	background-color: var(--theme);
	padding: 9px 15px 6px;
	left: 0px;
	min-width: 100%;
	top: 68px;
	font-size: 0.85em;
	z-index: 20;
}

#navigation ul li:hover ul
{
	display: block;
}

#navigation ul li ul li
{
	display: block;
	margin-left: 0;
	padding: 0;
	white-space: nowrap;
}

#navigation ul li ul li a
{
	padding: 0;
	background-color: transparent;
	opacity: 0.8;
}

#navigation ul li ul li a:hover
{
	opacity: 1;
}

#navigation ul li a
{
	color: #fff;
	text-decoration: none;
	transition: all 0.2s;
	padding: 13px 15px 9px;
	background-color: var(--dark);
}

#navigation ul li.active a, #navigation ul li:hover a
{
	background-color: var(--theme);
	color: #fff;
}

#logoLink
{
	position: absolute;
	height: 120%;
	left: 40px;
	width: 270px;
	background-color: #fff;
	filter: drop-shadow(0px 0px 20px rgba(0,0,0,0.1));
}

#logoLink:before
{
	content: "";
	position: absolute;
	width: 50vw;
	height: 100%;
	top: 0;
	right: 100%;
	background-color: #fff;
}

#logoLink:after
{
	content: "";
	position: absolute;
	height: 100%;
	width: 140px;
	left: 100%;
	top: 0;
	background-image: url(ecke.svg);
	background-size: contain;
	background-position: left center;
	background-repeat: no-repeat;
}

#logo
{
	position: absolute;
	height: 100%;
	padding: 30px 0px;
}

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

#opener:after
{
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	z-index: 1;
	background-color: var(--dark);
	opacity: 0.35;
}

#openerContent
{
	position: absolute;
	width: 100%;
	left: 0;
	bottom: 80px;
	color: #fff;
	z-index: 20;
	text-shadow: 0px 0px 40px rgba(0,0,0,0.95);
}

.text
{
	margin: 80px 0px;
}

.inline
{
	width: 100%;
	margin-bottom: -10px!important;
}

.imgFlex
{
	display: flex;
}

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

.imgFlex .imgFlexItem:nth-child(1)
{
	width: 40%;
}

.imgFlex .imgFlexItem:nth-child(2)
{
	width: 60%;
}

.textBox
{
	padding: 60px;
	position: relative;
	margin-top: 60px;
}

.textBox:before
{
	content: "";
	position: absolute;
	width: 120%;
	height: 100%;
	right: 0;
	top: 0;
	z-index: -1;
	background-color: var(--grey);
	opacity: 0.5;
}

.right .textBox:before
{
	left: 0;
	right: auto;
}

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

.text ul li:before
{
	content: "";
	position: absolute;
	width: 0.4em;
	height: 0.4em;
	left: 0;
	top: 0.66em;
	background-color: var(--theme);
}

.colored
{
	padding: 80px 0px;
	background-color: var(--dark);
	color: #fff;
	margin: 0;
}

.text.withButton p a, .text .buttonArea p a, .buttonArea p a, #accepted
{
	display: inline-block;
	font-family: 'Speed Demon';
	text-align: center;
	line-height: 1.05;
	text-decoration: none;
	color: #fff!important;
	border-bottom: none!important;
	padding: 0.8em 1.2em 0.6em 1.2em;
	background-color: var(--theme);
	transition: all 0.2s;
}

.text.withButton p a:hover, .text .buttonArea p a:hover, .buttonArea p a:hover, #accepted:hover
{
	background-color: var(--darktheme);
}

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

.buttonArea
{
	margin-top: 30px;
}

#footer
{
	padding: 26px 0px 25px 0px;
	background-color: var(--dark);
	border-top: 1px solid #fff;
	font-size: 0.85em;
	color: #fff;
	font-family: 'Speed Demon';
}

#socialMedia
{
	position: fixed;
	right: 0;
	top: 55%;
	transform: translateY(-50%);
	z-index: 500;
	border-top: 1px solid #fff;
	font-size: 0.85em;
	font-weight: 300;
}

.social
{
	display: block;
	width: 45px;
	height: 45px;
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid #fff;
	position: relative;
	transition: all 0.2s;
}

.socialContent
{
	position: absolute;
	height: calc(100% + 2px);
	top: -1px;
	white-space: nowrap;
	background-color: var(--theme);
	display: flex;
	align-items: center;
	padding-top: 0px;
	padding-left: 15px;
	padding-right: 15px;
	right: -50vw;
	transition: all 0.2s;
	border-left: 1px solid #fff;
	border-top: 1px solid #fff;
	border-bottom: 1px solid #fff;
}

.socialImg
{
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	z-index: 20;
	background-color: var(--theme);
	transition: all 0.2s;
	background-size: 40%;
	background-position: center;
	background-repeat: no-repeat;
	border-left: 1px solid #fff;
}

#phone
{
	background-image: url(phone.svg);
}

#mail
{
	background-image: url(mail.svg);
}

#instagram
{
	background-image: url(instagram.svg);
}

#tiktok
{
	background-image: url(tiktok.svg);
}

.social:hover .socialImg
{
	background-color: var(--darktheme);
	background-size: 45%;
}

.social:hover .socialContent
{
	background-color: var(--darktheme);
	right: 100%;
}

.sponsors
{
	display: flex;
	flex-wrap: wrap;
	width: calc(100% + 20px);
	margin-left: -20px;
	margin-bottom: -20px;
	margin-top: -40px;
}

.sponsor
{
	width: calc(25% - 20px);
	margin-left: 20px;
	margin-bottom: 20px;
	transition: all 0.2s;
}

.sponsor:hover
{
	transform: scale(1.05);
}

.sponsorLogo
{
	padding-bottom: 100%;
	position: relative;
	background-size: 85%;
	background-repeat: no-repeat;
	background-position: center;
	box-shadow: 0px 0px 20px rgba(0,0,0,0.08);
}

.divider
{
	width: 100%;
	height: 40px;
	background-image: url(icon.svg);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

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

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

#cookieNotice
{
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	font-size: 0.85em;
	background-color: rgba(0,0,0,0.7);
	z-index: 500000;
	display: flex;
	align-items: center;
	justify-content: center;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

#cookieBox
{
	padding: 30px 40px 40px 40px;
	max-height: calc(100vh - 80px);
	background-color: #fff;
	max-width: 400px;
	overflow: auto;
	display: block;
	margin: auto;
}

#acceptWrap
{
	text-align: center;
}

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

#cookieCheckboxes label
{
	position: relative;
	margin-right: 1.6em;
	padding-left: 1.5em;
	cursor: pointer;
	display: block;
	margin-top: 0.2em;
}

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

#accepted
{
	margin-top: 0.6em;
	cursor: pointer;
}

.galleryFlex
{
	display: flex;
	margin-left: -20px;
	margin-bottom: -20px;
	align-items: center;
	justify-content: center;
	position: relative;
}

.galleryFlex:before
{
	content: "";
	position: absolute;
	width: 100vw;
	height: 60%;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: -1;
	background-color: var(--grey);
	opacity: 0.5;
}

.galleryFlex a + a
{
	margin-top: 20px;
	display: block;
}

.galleryItem
{
	margin-left: 20px;
	margin-bottom: 20px;
}

.galleryFlex .galleryItem:nth-child(1)
{
	width: 40%;
}

.galleryFlex .galleryItem:nth-child(2)
{
	width: 60%;
}

#copy
{
	position: absolute;
}

#footerList
{
	text-align: right;
}

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

#footerList li a
{
	color: #fff;
	text-decoration: none;
	transition: all 0.2s;
}

#footerList li a:hover
{
	opacity: 0.8;
}

.text.colored p a
{
	color: #fff!important;
	border-color: #fff!important;
}

#form
{
	padding-top: 160px;
	margin-top: -200px;
}

form
{
	display: flex;
	flex-wrap: wrap;
	margin-left: -40px;
}

form div
{
	width: 50%;
	padding-left: 40px;
}

form label
{
	font-family: 'Speed Demon';
	color: var(--dark);
	font-weight: 300;
	display: block;
	margin-bottom: 0em;
}

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.6;
   	color: var(--dark);
   	font-weight: 300;
   	background-color: transparent;
}

input, textarea
{
	color: var(--dark);
	margin-bottom: 1.2em;
	transition: border-color 0.2s;
}

input[type = "text"], input[type = "email"], textarea
{
	border: 1px solid var(--grey);
	padding: 0.5em 1.2em;
	background-color: #fff;
}

input:focus, textarea:focus
{
	border-color: var(--dark);
	outline: 1px solid var(--dark);
}

textarea
{
	height: 12em;
	resize: none;
	margin-bottom: 0.9em;
}

.alert.alert-danger ul:before
{
	content: "Folgende Fehler sind aufgetreten. Bitte überprüfen Sie Ihre Eingaben.";
	font-weight: 300;
	font-family: 'Speed Demon';
	color: var(--theme);
	display: block;
}

.alert.alert-danger
{
	margin-bottom: 1.5em;
}

.alert.alert-danger ul li
{
	color: var(--theme);
}

.alert.alert-danger ul li:before
{
	background-color: var(--theme);
}

.checkbox
{
	position: relative;
	padding-left: 1.4em;
	margin-left: 40px;
}

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

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

#yform-formular-nachricht, #yform-formular-accept, .alert
{
	width: 100%;
}

button
{
	display: inline-block;
	font-family: 'Speed Demon';
	text-align: center;
	line-height: 1.05;
	text-decoration: none;
	color: #fff!important;
	border-bottom: none!important;
	padding: 0.8em 1.2em 0.6em 1.2em;
	background-color: var(--theme);
	transition: all 0.2s;
	cursor: pointer;
	margin-left: 40px;
	margin-top: 1.1em;
	width: auto;
}

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

.textFlex
{
	display: flex;
	flex-wrap: wrap;
	width: calc(100% + 40px);
	margin-left: -40px;
	margin-bottom: -40px;
}

.textFlexItem
{
	width: calc(50% - 40px);
	margin-left: 40px;
	margin-bottom: 40px;
}

.raceItem + .raceItem
{
	margin-top: 80px;
}

.raceItem
{
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	flex-direction: row-reverse;
	width: 100%;
}

.raceItem:before
{
	content: "";
	position: absolute;
	width: 30px;
	height: 30px;
	border-radius: 100px;
	background-color: var(--grey);
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: -10;
	border: 4px solid #fff;
}

.raceFlex
{
	width: 50%;
}

.raceImg
{
	display: inline-block;
	width: 250px;
	height: 250px;
	background-size: cover;
	background-position: center;
	cursor: zoom-in;
}

.raceItem .raceFlex:nth-child(2)
{
	text-align: right;
}

.races
{
	position: relative;
	padding: 80px 0px;
}

.races:before
{
	content: "";
	position: absolute;
	width: 2px;
	height: 100%;
	left: 50%;
	transform: translateX(-50%);
	top: 0;
	background-color: var(--grey);
	z-index: -30;
}

.raceItem .raceFlex:nth-child(1)
{
	padding-left: 40px;
}

.raceItem .raceFlex:nth-child(2)
{
	padding-right: 40px;
}

.flexArea
{
	display: flex;
	width: calc(100% + 20px);
	margin-left: -20px;
	margin-bottom: -20px;
	flex-wrap: wrap;
}

.flexItem
{
	width: calc(33.3% - 20px);
	margin-left: 20px;
	margin-bottom: 20px;
	transition: all 0.2s;
	background-color: var(--dark);
	color: #fff;
	text-decoration: none;
	text-align: center;
	font-family: 'Speed Demon';
	position: relative;
}

.flexItem:hover
{
	background-color: var(--theme);
}

.flexTitle
{
	padding-bottom: 100%;
}

.flexTitle span
{
	position: absolute;
	width: 100%;
	left: 0;
	top: 51%;
	transform: translateY(-50%);
	line-height: 1;
}

.gallery
{
	display: flex;
	flex-wrap: wrap;
	width: calc(100% + 20px);
	margin-left: -20px;
	margin-bottom: -20px;
}

.galleryItem
{
	width: calc(25% - 20px);
	margin-left: 20px;
	margin-bottom: 20px;
	cursor: zoom-in;
}

.galleryImg
{
	padding-bottom: 100%;
	background-size: cover;
	background-position: center;
}

@media all and (max-width: 450px){
	#cookieBox
	{
		padding: 18px 25px 25px 25px;
	}
}

@media all and (max-width: 700px){
	.imgFlex
	{
		display: block;
	}

	.imgFlexItem
	{
		width: 100%!important;
	}

	.textBox
	{
		margin-top: 0!important;
	}

	.textBox:before
	{
		width: 100%;
	}

	.divider
	{
		height: 25px!important;
	}

	h1
	{
		font-size: 2em!important;
	}

	h2
	{
		font-size: 1.65em!important;
	}

	h3
	{
		font-size: 1.45em!important;
	}

	#copy
	{
		position: relative;
		display: block;
	}

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

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

	.sponsor
	{
		width: calc(50% - 20px);
	}

	form div
	{
		width: 100%;
	}

	textarea
	{
		height: 10em;
	}

	.textFlex
	{
		display: block;
		margin-left: 0;
		width: 100%;
	}

	.textFlexItem
	{
		width: 100%;
		margin-left: 0;
	}

	.races:before
	{
		left: 0;
		transform: translateX(0);
	}

	.raceItem
	{
		display: block;
	}

	.raceFlex
	{
		width: 100%;
		text-align: left!important;
		padding: 0px 0px 0px 30px!important;
	}

	.raceImg
	{
		width: 180px!important;
		height: 180px!important;
		margin-top: 20px;
	}

	.raceItem:before
	{
		left: -15px;
		top: -5px;
		transform: translateY(0);
	}

	.flexItem
	{
		width: calc(50% - 20px);
	}

	.galleryItem
	{
		width: calc(50% - 20px);
	}
}

@media all and (max-width: 800px){
	#navigation ul
	{
		padding: 100px 40px 16px!important;
	}

	#navigation ul li ul
	{
		padding: 0!important;
	}
}

@media all and (max-width: 1200px){
	#navigation
	{
		display: none;
		position: fixed;
		width: 100%;
		left: 0;
		top: 0;
		z-index: 1000;
		background-color: var(--dark);
		max-height: 100vh;
		overflow: auto;
	}

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

	#navigation ul
	{
		padding: 50px 40px 16px;
		text-align: center;
	}

	#navigation ul li ul
	{
		display: block;
		left: 0;
		text-align: center;
		background-color: transparent;
		min-width: auto;
		position: relative;
		top: 0;
		margin-top: 3px;
	}

	#navigation ul li ul li
	{
		margin-top: 0px;
	}

	#navigation ul li ul li a
	{
		background-color: transparent!important;
	}

	#navOpener, #logoLink
	{
		z-index: 2000;
	}

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

	.line
	{
		position: absolute;
		width: 100%;
		height: 2px;
		background-color: #fff;
		right: 0;
	}

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

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

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

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

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

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

	#header .wrap
	{
		height: 50px;
	}

	#logoLink
	{
		height: 150%;
		width: 210px;
	}

	#logoLink:after
	{
		width: 80px;
	}

	#logo
	{
		padding: 15px 0px;
	}

	#opener
	{
		min-height: 300px;
	}

	#openerContent
	{
		bottom: 40px;
	}

	.text
	{
		margin: 40px 0px;
	}

	.colored
	{
		padding: 40px 0px;
		margin: 0;
	}

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

	.buttonArea
	{
		margin-top: 20px;
	}

	.textBox
	{
		padding: 40px;
		margin-top: 40px;
	}

	h1
	{
		font-size: 3em;
	}

	h2
	{
		font-size: 2em;
	}

	h3
	{
		font-size: 1.6em;
	}

	.social
	{
		width: 40px;
		height: 40px;
	}

	#footer
	{
		padding: 20px 0px;
	}

	.divider
	{
		height: 35px;
	}

	#socialMedia
	{
		top: 50%;
	}

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

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

	.races
	{
		padding: 40px 0px;
	}

	.raceItem + .raceItem
	{
		margin-top: 40px;
	}

	.raceImg
	{
		width: 200px;
		height: 200px;
	}

	.raceItem:before
	{
		width: 25px;
		height: 25px;
	}
}

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