@import url("https://fonts.verwaltungsportal.de/css/?family=Exo+2:400,400i,700,700i");

html {
	max-width: 1930px;
	margin-left: auto;
	margin-right: auto;
	background: #f0f0f0;
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
	scrollbar-color: #666666 #ffffff;
	scrollbar-width: thin;
}

body {
	font-family: "Exo 2", sans-serif;
	font-weight: 400;
	color: #222222;
	background: #ffffff;
	font-size: clamp(1rem, 2vw, 1.125rem);
	/* 1rem = 16px */
	line-height: 1.5;
}

a {
	color: #666666;
}

a:is(:hover, :focus) {
	color: #666666;
	text-decoration: underline;
}

.linkItalic a {
	font-style: italic;
}

b,
strong {
	font-weight: 700;
}

#overflow {
	overflow: hidden;
}

/* ------------------------------------------- topbar2 ------------------------------------------ */

#topbar2 {
	padding-top: 22px;
	background: url(../img/bg-Headerbar.png);
	background-repeat: no-repeat;
	background-position: right 90px center;
}

@media (min-width: 992px) {
	#topbar2 {
		padding: 13px 0;
	}
}

/* LOGO MIT TEXT -------------------------------------------------------- */

.logo {
	display: flex;
	flex-wrap: wrap;
	gap: 15px 15px;
	text-decoration: none !important;
	max-width: 85vw;
}

.logo .template-page {
	width: auto;
}

.logo .cleaner {
	display: none;
}

.logoText {
	color: #222222;
	font-size: 1.75rem;
	align-content: center;
	line-height: 1.1;
}

.logoText :is(b, strong) {
	display: block;
	font-size: clamp(1.9rem, 2.5vw, 2.25rem);
}

.logoText br {
	display: none;
}

@media (max-width: 575px) {
	.logoText {
		hyphens: auto;
	}
}

.logo img {
	display: block;
	max-width: 50vw;
}
/* LOGO MIT TEXT -------------------------------------------------------- */

/* #region ---------------------------------- navigation ---------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
	.dropdown-toggle-button-wrapper {
		top: 15px !important;
		right: 15px;
	}
	.dropdown-toggle-button-wrapper2 {
		top: 5px !important;
		right: 15px;
	}
	#burgerButton {
		font-size: 0;
		border: none !important;
		display: block;
		height: 40px;
		width: 46px;
		border-radius: 2px;
		padding: 3px;
		cursor: pointer;
		background-color: #222222;
		position: absolute;
		z-index: 1002;
		right: 12px;
		top: 50%;
		margin-top: -20px;
		outline: 2px solid #222222;
	}

	#burgerButton::before,
	#burgerButton::after,
	#burgerButtonInner {
		background-color: #fff;
		border-radius: 2px;
		position: absolute;
		width: 40px;
		height: 3px;
		left: 2px;
		transition: transform 200ms linear, opacity 200ms linear;
	}

	#burgerButton[aria-expanded="true"] #burgerButtonInner {
		transform: rotate(-45deg) translate(-6px, 6px);
	}

	#burgerButton[aria-expanded="true"]::before {
		opacity: 0;
	}

	#burgerButton[aria-expanded="true"]:after {
		transform: rotate(45deg) translate(-4px, -6px);
	}

	#burgerButtonInner {
		top: 11px;
	}

	#burgerButton::before {
		top: 19px;
		content: "";
	}

	#burgerButton::after {
		top: 27px;
		content: "";
		display: block;
	}

	.navbar-nav {
		margin: 20px 0;
	}

	.navbar-collapse {
		width: calc(100% - 90px);
		max-width: 300px;
		top: 0;
		background: #222222;
		position: fixed;
		left: -100%;
		bottom: 0;
		z-index: 100;
		height: auto !important;
		opacity: 0;
		pointer-events: none;
		visibility: hidden;
		overflow-y: auto;
		transition: left 300ms linear, opacity 300ms linear, box-shadow 600ms linear;
		box-shadow: 250px 0 50vw 50vw rgba(255, 255, 255, 0);
	}

	.navbar-collapse:is([aria-expanded="true"], .in) {
		left: 0;
		opacity: 1;
		pointer-events: auto;
		visibility: visible;
		box-shadow: 250px 0 50vw 50vw rgba(0, 0, 0, 0.6);
	}

	.navbar-header {
		line-height: 1;
		padding: 10px 15px;
		background-color: #ffffff;
		position: relative;
		top: 0;
		right: 0;
		left: 0;
		box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
	}

	.dropdown-toggle-button-wrapper {
		top: 7px;
	}

	.dropdown-toggle-button-wrapper2 {
		top: 2px;
	}
}

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally {
		position: relative;
	}

	.sticky-wrapper,
	#menu {
		position: relative;
		left: 0;
		right: 0;
		top: 100%;
	}

	#menu {
		background-color: #222222;
		border-bottom: 5px solid #fff;
	}

	#menu > .row > div {
		position: relative;
	}
	#menu > .row > div::after {
		content: "";
		position: absolute;
		transform: translateX(100%);
      inset: auto;
		right: -80px;
		bottom: -70px;
		background: url(../img/grafik-motorcross1.png);
		width: 13.1771vw;
		height: 12.1354vw;
		max-width: 253px;
		max-height: 233px;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      transition: 300ms;
      max-height: auto;
      transition-property: translate, inset, max-height;
	}

	.is-sticky #menu > .row > div::after {
      inset: 10px 20px 10px auto;
      max-height: 100%;
	}

	.sticky-wrapper #menu {
		top: 0;
	}

	.is-sticky #menu {
		left: unset !important;
		right: unset !important;
	}

	nav.horizontally .navbar-nav {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
	}

	nav.horizontally .navbar-nav ul {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 1000;
		display: block !important;
		pointer-events: none;
		opacity: 0;
		visibility: hidden;
		transition: opacity 300ms linear;
	}

	nav.horizontally .navbar-nav [class*="secondlevel"] > ul {
		left: 100%;
		top: 0;
	}

	nav.horizontally .navbar-nav li {
		position: relative;
		flex-grow: 1;
	}

	nav.horizontally .navbar-nav li:is(.open, :hover) > ul,
	nav.horizontally .navbar-nav li.open:focus-within > ul,
	nav.horizontally .navbar-nav li[class*="secondlevel"] > ul[style*="block"] {
		pointer-events: auto !important;
		opacity: 1 !important;
		visibility: visible;
	}

	nav.horizontally .navbar-nav li.open > ul {
		pointer-events: none !important;
		opacity: 0 !important;
		visibility: hidden;
	}

	nav.horizontally .navbar-nav li:is(:hover, :focus) > ul {
		z-index: 1003;
	}
}

/* toplevel */

nav.horizontally .navbar-nav a[class*="toplevel"] {
	color: #ffffff;
	font-weight: 700;
	padding: 10px 35px 15px 35px;
	position: relative;
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	line-height: 1.2;
	text-decoration: none;
	outline: 3px solid transparent;
	outline-offset: -1em;
	transition: outline-offset 200ms, outline-color 300ms;
	border-radius: 100px;
	margin: 7px 0;
}

nav.horizontally .navbar-nav li[class*="toplevel"] + li {
	border-top: 1px solid #ffffff;
}

@media (min-width: 992px) {
	nav.horizontally .navbar-nav li[class*="toplevel"] + li {
		border: none;
	}

	nav.horizontally .navbar-nav a[class*="toplevel"] {
		padding: 10px 20px;
		margin: 12px 0;
		text-align: center;
	}
}

/* toplevel-over */

nav.horizontally .navbar-nav li[class*="toplevel"]:is(:hover, :focus-within) > a,
nav.horizontally .navbar-nav li[class*="toplevel"] > a:is(:hover, :focus),
nav.horizontally .navbar-nav li[class*="toplevel"].open > a,
nav.horizontally .navbar-nav li[class*="toplevel"].open > a:is(:hover, :focus),
nav.horizontally .navbar-nav li[class*="toplevel"][class*="_over"] > a,
nav.horizontally .navbar-nav li[class*="toplevel"][class*="_over"] > a:is(:hover, :focus) {
	color: #ffffff;
	background-color: transparent;
	outline-offset: -3px;
	outline-color: #fff;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	background-color: #ffffff;
	box-shadow: 0px 0px 10px 0px rgba(1, 1, 1, 0.1);
	border-radius: 20px;
}

@media (max-width: 991px) {
	nav.horizontally [class*="toplevel"] ul,
	nav.horizontally [class*="secondlevel"] > ul {
		padding: 15px;
	}
	nav.horizontally [class*="toplevel"] ul {
		outline: 2px solid #222222;
		margin: 7px;
	}
}

@media (min-width: 992px) {
	nav.horizontally [class*="toplevel"] ul {
		padding-top: 30px;
		padding-bottom: 30px;
	}

	nav.horizontally [class*="toplevel"] > ul {
		margin-top: 15px;
		left: 50%;
		transform: translateX(-50%);
	}

	nav.horizontally [class*="secondlevel"] > ul {
		margin-left: 6px;
		margin-top: -30px;
	}

	nav.horizontally :is([class*="toplevel"], [class*="secondlevel"]) > ul::before {
		content: "";
		position: absolute;
		display: block;
	}

	nav.horizontally [class*="toplevel"] > ul::before {
		height: 15px;
		left: 0;
		right: 0;
		top: -15px;
	}

	nav.horizontally [class*="secondlevel"] > ul::before {
		width: 6px;
		top: 0;
		bottom: 0;
		left: -6px;
	}
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #222222;
	font-weight: 400;
	padding: 9px 35px;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
	hyphens: auto;
	border-radius: 100px;
}

@media (min-width: 992px) {
	nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
		padding-left: 25px;
		padding-right: 25px;
		padding-top: 12px;
		padding-bottom: 12px;
		text-align: center;
		border-radius: 0;
	}
}

/* secondlevel + thirdlevel over */

nav.horizontally li[class*="secondlevel"]:is(:hover, :focus-within) > a,
nav.horizontally li[class*="secondlevel"] > a:is(:hover, :focus),
nav.horizontally li[class*="secondlevel"].open > a,
nav.horizontally li[class*="secondlevel"].open > a:is(:hover, :focus),
nav.horizontally li[class*="secondlevel"][class*="_over"] > a,
nav.horizontally li[class*="secondlevel"][class*="_over"] > a:is(:hover, :focus),
nav.horizontally li[class*="thirdlevel"]:is(:hover, :focus-within) > a,
nav.horizontally li[class*="thirdlevel"] > a:is(:hover, :focus),
nav.horizontally li[class*="thirdlevel"].open > a,
nav.horizontally li[class*="thirdlevel"].open > a:is(:hover, :focus),
nav.horizontally li[class*="thirdlevel"][class*="_over"] > a,
nav.horizontally li[class*="thirdlevel"][class*="_over"] > a:is(:hover, :focus) {
	background: #222222;
	color: #fff;
}

/* #endregion ------------------------------- navigation ---------------------------------------- */

/* #region ------------------------------------ banner ------------------------------------------ */

#slider {
	max-height: clamp(300px, 46vw, 450px);
	position: relative;
}

@media (min-width: 992px) {
	body.index #slider {
		max-height: clamp(450px, 64vw, 700px);
	}

	#headerpic a.nivo-prevNav {
		left: 65px;
	}

	#headerpic a.nivo-nextNav {
		right: 65px;
	}

	#headerpic .nivo-controlNav {
		width: calc(100% - 200px);
		left: 100px;
	}
}

#headerpic {
	padding: 0;
	overflow: hidden;
	position: relative;
}

.slider-wrapper,
#slider {
	height: 100%;
}

.slider-mask {
	display: block;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
}

@media (min-width: 768px) {
	#headerpic {
		background: #666666;
	}
	.slick-dots li {
		color: #fff;
	}

	#headerpic .nivo-directionNav a {
		top: auto;
		bottom: 12px;
	}
}

@media (min-width: 1200px) {
	#headerpic .nivo-directionNav a {
		bottom: 20px;
	}

	#headerpic .nivo-controlNav {
		bottom: 10px;
	}
}

/* #endregion --------------------------------- banner ------------------------------------------ */

/* #region ------------------------------------ slogan ------------------------------------------ */

#slogan {
	font-weight: 700;
	pointer-events: auto;
	color: #222222;
	font-size: clamp(1rem, 2vw, 1.5625rem);
}

@media (max-width: 767px) {
	#slogan {
		border-bottom: 1px solid #222222;
		padding: 20px 15px;
	}
}

@media (min-width: 768px) {
	#slogan {
		color: #ffffff;
	}

	#bannerOverlay {
		position: absolute;
		right: 0;
		bottom: 50px;
		left: 0;
		z-index: 9;
		pointer-events: none;
	}
}

@media (min-width: 1200px) {
	#bannerOverlay {
		bottom: 90px;
	}
}

#slogan .headline {
	font-size: clamp(1.5rem, 6vw, 3.125rem);
	font-weight: 700;
}

@media (min-width: 768px) {
	#slogan .headline {
		color: #ffffff;
		margin-bottom: 0;
		text-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
	}
}

#slogan a {
	text-decoration: none;
	display: inline-block;
	font-size: 1.125rem;
	line-height: 1;
	border: 3px solid #ffffff;
	border-radius: 28px;
	color: #ffffff;
	padding: clamp(10px, 1.5vw, 17px) clamp(15px, 2vw, 22px);
	margin-top: 20px;
	background: #222222;
	backface-visibility: hidden;
	box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.15);
	transition: transform 150ms linear;
	font-weight: 700;
}

@media (min-width: 992px) {
	#slogan a {
		background: #222222;
	}
}

#slogan a:is(:hover, :focus) {
	transform: scale(1.1);
}

#slogan a + a {
	margin-left: clamp(15px, 2vw, 25px);
}

#slogan :is(b, strong) {
	font-weight: 700;
}

/* #endregion --------------------------------- slogan ------------------------------------------ */

/* ------------------------------------------- content ------------------------------------------ */

#content {
	text-align: left;
	padding-bottom: clamp(30px, 4vw, 60px);
	padding-top: clamp(30px, 4vw, 60px);
}

#content > .row {
	row-gap: 30px;
}

/* -------------------------------------- h1 - h6, newslink ------------------------------------- */

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
	color: #222222;
	font-weight: 700;
	line-height: 1.2;
	font-family: "Exo 2", sans-serif;
}

:is(h1, h2) :is(em, i) {
	font-style: normal;
	font-weight: 400;
	color: #222222;
	font-size: 70%;
}

h1,
.h1,
.legacy_h1 {
	font-size: clamp(1.75rem, 4vw, 2.625rem);
}

h2,
.h2,
.legacy_h2 {
	font-size: clamp(1.75rem, 3.5vw, 2.1875rem);
}

h3,
.h3,
.legacy_h3 {
	font-size: 1.75rem;
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
	font-size: 1.625rem;
}

h5,
.h5,
.legacy_h5 {
	font-size: 1.5rem;
}

h6,
.h6,
.legacy_h6 {
	font-size: 1.25rem;
}

/* #region ----------------------------------- teaser ------------------------------------------- */

#teaser {
	background-size: cover;
	margin-top: clamp(30px, 4vw, 60px);
}

@media (min-width: 992px) {
	#teaser > .row::after {
		content: "";
		position: absolute;
		transform: translateX(-100%);
		left: -40px;
		bottom: 0;
		background: url(../img/grafik-quad.png);
		width: 293px;
		height: 263px;
	}
}

#breaker {
	height: 300px;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	margin-top: -100px;
}

#teaser > .row {
	row-gap: 30px;
}

:is(.teaserBigHeadline, .teaserContent) a,
#news .tab_link_mehr a {
	font-weight: 400;
	font-size: 1rem;
	color: #666666;
	font-style: italic;
}

:is(.teaserBigHeadline, .teaserContent) a:after,
#news .tab_link_mehr a::after {
	content: "\0203A";
	margin-left: 4px;
	display: inline-block;
}

.teaserContent a:is(:hover, :focus),
#news .tab_link_mehr a:is(:hover, :focus) {
	color: #222222;
}

#news .tab_link_mehr {
	font-size: 0;
	text-align: left !important;
	margin-top: 20px;
}

.teaser,
#news .tab_link_entry {
	background-color: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	padding: clamp(20px, 2vw, 30px) clamp(20px, 1.5vw, 25px);
	font-weight: 400;
	font-size: clamp(1rem, 2vw, 1.25rem);
	box-shadow: 0px -2px 10px 0px rgba(45, 45, 45, 0.15);
}

#news .tab_link_entry {
	position: relative;
}

#news .tab_link_entry .tab_preview_picture {
	display: none;
}

#news .tab_link_title a {
	font-size: 1.5625rem;
	line-height: 1.2;
	margin-bottom: 4px;
	font-weight: 700;
	color: #222222;
}

#news .tab_preview_picture img {
	margin: 0 !important;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.teaser :is(h1, h2, h3, h4, h5, h6),
.teaserHeadline {
	text-transform: uppercase;
	color: #666666;
	font-weight: 700;
	margin: 0;
	font-size: clamp(1.25rem, 3vw, 1.5625rem);
}

/* ---------------------------------------------- news ------------------------------------------- */

#news .tab_link_entries {
	display: grid;
	gap: 30px;
}

@media (min-width: 576px) {
	#news .tab_link_entries {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 768px) {
	#news .tab_link_entries {
		grid-template-columns: repeat(3, 1fr);
	}
}

#news .tab_date {
	font-size: 1rem;
	font-weight: 400;
	display: block;
	margin-bottom: 8px;
	font-style: italic;
}

#news .tab_link_entries .tab_spacer {
	display: none;
}

/* #region ----------------------------------- contactRow --------------------------------------- */

#contactRow {
	padding: clamp(30px, 5vw, 45px) 0 clamp(30px, 5vw, 40px) 0;
	background: #222222 url(../img/bg-Footer.png);
	background-repeat: no-repeat;
	background-position: right bottom;
	color: #fff;
	border-top: 5px solid #fff;
}

@media (max-width: 991px) {
	#contactRow {
		padding-top: 30px;
	}
}

#contactRow > .row {
	row-gap: 30px;
}

@media (min-width: 992px) {
	#contactRow > .row::after {
		content: "";
		position: absolute;
		transform: translateX(100%);
		right: -30px;
		bottom: -85px;
		background: url(../img/grafik-motorcross2.png);
		width: 329px;
		height: 355px;
	}
}

#contactRow .tabHeadline {
	margin: 0;
	color: #fff;
}

.contactElement {
	padding-left: 35px;
	font-size: 1rem;
	min-height: 30px;
}

.contactElement + .contactElement {
	margin-top: 25px;
}

#contactRow a {
	text-decoration: underline;
	color: #fff;
	font-style: italic;
}

.location {
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ffffff" height="48" viewBox="0 -960 960 960" width="48"><path d="M480.089-490Q509-490 529.5-510.589q20.5-20.588 20.5-49.5Q550-589 529.411-609.5q-20.588-20.5-49.5-20.5Q451-630 430.5-609.411q-20.5 20.588-20.5 49.5Q410-531 430.589-510.5q20.588 20.5 49.5 20.5ZM480-159q133-121 196.5-219.5T740-552q0-117.79-75.292-192.895Q589.417-820 480-820t-184.708 75.105Q220-669.79 220-552q0 75 65 173.5T480-159Zm0 79Q319-217 239.5-334.5T160-552q0-150 96.5-239T480-880q127 0 223.5 89T800-552q0 100-79.5 217.5T480-80Zm0-480Z"/></svg>') no-repeat left -6px center / 35px auto;
}

.phone {
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"  fill="%23ffffff" height="48" viewBox="0 -960 960 960" width="48"><path d="M795-120q-116 0-236.5-56T335-335Q232-438 176-558.5T120-795q0-19.286 12.857-32.143T165-840h140q14 0 24 10t14 25l26.929 125.641Q372-665 369.5-653.5q-2.5 11.5-10.729 19.726L259-533q26 44 55 82t64 72q37 38 78 69.5t86 55.5l95-98q10-11 23.151-15T686-369l119 26q15 4 25 16.044T840-300v135q0 19.286-12.857 32.143T795-120ZM229-588l81-82-23-110H180q2 42 13.5 88.5T229-588Zm369 363q41 19 89 31t93 14v-107l-103-21-79 83ZM229-588Zm369 363Z"/></svg>') no-repeat left -4px center / 32px auto;
}

.mail {
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"  fill="%23ffffff" height="48" viewBox="0 -960 960 960" width="48"><path d="M120-160v-640l760 320-760 320Zm60-93 544-227-544-230v168l242 62-242 60v167Zm0 0v-457 457Z"/></svg>') no-repeat left -4px center / 32px auto;
}

.iframeTab {
	min-height: 230px;
}

.iframeTab .template-page :is(.row, .row > *) {
	position: static !important;
}

.iframeTab :is(.iframe-wrapper-manual-enabling, iframe) {
	width: 100% !important;
	min-width: 100% !important;
}

@media (min-width: 768px) {
	.iframeTab :is(.iframe-wrapper-manual-enabling, iframe) {
		position: absolute;
		top: 0;
		right: 15px;
		bottom: 0;
		left: 15px;
		height: 100% !important;
		width: calc(100% - 30px) !important;
		min-width: calc(100% - 30px) !important;
	}
}

/* #endregion -------------------------------- contactRow --------------------------------------- */

/* #region ----------------------------------- footer ------------------------------------------- */

#footerNav {
	background: var(--darker-font);
	padding: 20px 0;
}

@media (max-width: 767px) {
	#footerNav > .row > * + * {
		margin-top: 20px;
		padding-top: 20px;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}
}

#innerfooter ul {
	padding: 0;
	font-size: 1rem;
}

#innerfooter li {
	display: inline-block;
}

@media (min-width: 576px) {
	#innerfooter li + li {
		margin-left: 20px;
	}
}

#innerfooter a {
	color: #222222;
	text-decoration: none;
	display: inline-block;
	font-weight: 400;
}

#innerfooter a:is(:hover, :focus) {
	text-decoration: underline;
	color: #666666;
}

@media (max-width: 575px) {
	#innerfooter li {
		display: block;
		line-height: 2;
	}
}

/* #endregion -------------------------------- footer ------------------------------------------- */

/* ------------------------------------------ vernetzt ------------------------------------------ */

#vernetzt {
	gap: 18px;
	text-align: right;
	font-size: 0.875rem;
	color: #222222;
	line-height: 1.3;
	font-weight: 400;
	text-decoration: none;
}

#vernetzt i {
	color: #666666;
}

#vernetzt span span {
	display: block;
}
