@import url("https://fonts.verwaltungsportal.de/css/?family=Inter:400,500,600,700,400i,500i,600i,700i");

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

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

a {
	color: #c00000;
}

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

#content a,
b,
strong {
	font-weight: 600;
}

#overflow {
	overflow: hidden;
}

/* ------------------------------------------- logo --------------------------------------------- */

.logo {
	display: inline-block;
	position: relative;
	z-index: 51;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 13px;
	text-decoration: none !important;
	justify-content: start;
	align-content: center;
}

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

.logo .cleaner {
	display: none;
}

.logoText {
	color: #000000;
	font-size: 0.9375rem;
	align-content: center;
	line-height: 1.3;
	text-align: left;
	font-weight: 600;
}

.logoText :is(b, strong) {
	display: block;
	font-size: 1.625rem;
}

.logoText br {
	display: none;
}

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

.logo img {
	transition: max-height 300ms linear;
	max-height: 150px;
}

@media (max-width: 991px) {
	.logo {
		margin-bottom: 0px;
		background: #fff;
		padding: 22px 30px;
	}

	.logo img {
		max-width: clamp(60px, 2vw, 130px);
	}
}

@media (min-width: 992px) {
	.logo {
		position: absolute;
		top: 0;
		left: 15px;
		right: 15px;
		background: #fff;
		border-radius: 0 0 30px 30px;
		padding: 0px 5px 13px 0;
		gap: 5px;
		box-shadow: 0px 0px 13px 0px rgba(0, 0, 0, 0.48);
		transition: all 300ms ease;
	}

	.is-sticky .logo {
		padding: 0px 5px 5px 0;
		transition: all 300ms ease;
	}

	.logo img {
		max-height: 250px;
	}
}

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

nav.horizontally {
	background: linear-gradient(270deg, rgba(183, 3, 3, 1) 0%, rgba(103, 4, 8, 1) 100%);
}

nav.horizontally::after {
	border-bottom: solid 8px rgba(255, 255, 255, 0.5);
	content: "";
	position: absolute;
	top: 0;
	bottom: -8px;
	left: 0;
	right: 0;
	z-index: -1;
	pointer-events: none;
	display: block;
}

/* burgermenu for tablet */

@media (max-width: 991px) {
	nav.horizontally {
		position: static !important;
	}

	#burgerButton {
		font-size: 0;
		border: none !important;
		display: block;
		height: 50px;
		width: 60px;
		border-radius: 2px;
		padding: 6px 8px;
		cursor: pointer;
		background-color: #ffffff;
		box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
	}

	#burgerButton::before,
	#burgerButton::after,
	#burgerButtonInner {
		background-color: #c00000;
		border-radius: 2px;
		position: absolute;
		width: 40px;
		height: 3px;
		left: 10px;
		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: 16px;
	}

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

	#burgerButton::after {
		top: 32px;
		content: "";
	}

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

	.navbar-collapse {
		width: calc(100% - 90px);
		max-width: 300px;
		top: 0;
		background: #c00000;
		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 {
		position: fixed;
		top: 15px;
		right: 15px;
		z-index: 101;
	}

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

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

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally .navbar-nav {
		margin: 25px 0 15px 0;
		display: flex;
		justify-content: space-between;
		align-items: center !important;
		transition: margin 300ms linear;
	}

	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;
	}

	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 a[class*="toplevel"] {
	color: #ffffff;
	font-weight: 400;
	padding: 10px 35px;
	position: relative;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
}

@media (max-width: 991px) {
	nav.horizontally li[class*="toplevel"] {
		border-bottom: 1px solid rgba(255, 255, 255, 0.4);
	}
}

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

	nav.horizontally a[class*="toplevel"] {
		padding: 8px 0;
		text-align: center;
	}
}

nav.horizontally a[class*="toplevel"]::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	background: #ffffff;
	width: 0;
	transition: width 300ms linear;
}

/* toplevel-over */

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

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a::before,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus)::before,
nav.horizontally li[class*="toplevel"].open>a::before,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus)::before,
nav.horizontally li[class*="toplevel"][class*="_over"]>a::before,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus)::before {
	width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	padding: 10px;
	background-color: #1f1f1f;
}

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

	nav.horizontally [class*="toplevel"]>ul {
		margin-top: 14px;
	}

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #ffffff;
	padding: 10px 40px 10px 20px;
	font-weight: 400;
	position: relative;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
}

@media (min-width: 992px) {
	nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
		text-align: center;
	}
}

@media (min-width: 992px) {
	nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
		text-align: left;
	}

	nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
		content: "\00BB";
		position: absolute;
		right: 20px;
		top: 50%;
		margin-top: -12px;
		font-size: 24px;
		line-height: 1;
	}
}

/* secondlevel + thirdlevel over */

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

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

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

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

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

#sticky-wrapper {
	height: 100% !important;
}

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

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

.slider-mask {
	display: block;
	background: linear-gradient(180deg, rgba(35, 35, 35, 0) 0%, rgba(35, 35, 35, 0.8) 80%);
}

#bannerOverlay {
	margin-top: 30px;
	font-size: clamp(1rem, 2vw, 1.25rem);
}

@media (min-width: 992px) {
	#bannerOverlay {
		position: absolute;
		left: 0;
		right: 30px;
		bottom: 10px;
		z-index: 51;
		pointer-events: none;
	}

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

.theme-nivo .nivo-controlNav .slick-dots li,
.nivo-directionNav a,
a.nivo-control,
a.nivo-control.active,
.nivo-controlNav span {
	color: #ffffff !important;
}

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

/* ---------------------------------------- tab with border ------------------------------------- */

#slogan,
#teaser {
	pointer-events: auto;
	position: relative;
	color: #ffffff;
	text-shadow: 0px 2px 4px rgba(0, 0, 0, 1);
	font-size: 1.625rem;
	text-align: right;
}

.sloganHeadline,
.teaserHeadline {
	margin: 0 0 14px 0;
}

.sloganHeadline {
	text-transform: uppercase;
	color: #ffffff;
	font-weight: 600;
	font-size: clamp(2.5rem, 4vw, 3.4375rem) !important;
}

/* #region --------------------------------- scroll bottom -------------------------------------- */

#scrollBottom a {
	position: relative;
	font-size: 0;
	display: block;
	width: 46px;
	height: 46px;
	margin: 70px 40% 45px 49.5%;
	text-align: center;
	background-color: rgba(200, 21, 24, 0.5);
	border: 2px solid #ffffff;
	pointer-events: auto;
	animation: bounceAni 2s infinite 2s;
	animation-play-state: running;
	transition: all 0.2s ease-in;
}

#scrollBottom a:is(:hover, :focus) {
	background-color: #c81518;
	animation-play-state: paused;
}

#scrollBottom a::after,
#scrollBottom a::before {
	position: absolute;
	content: "";
}

#scrollBottom a::after {
	left: 14px;
	top: 12px;
	width: 10px;
	height: 10px;
	display: inline-block;
	border-left: 4px solid #fff;
	border-bottom: 4px solid #fff;
	transform: rotate(-45deg);
	transition: border 300ms linear;
}

@keyframes bounceAni {

	0%,
	100%,
	20%,
	50%,
	80% {
		transform: translateY(0);
	}

	40% {
		transform: translateY(-10px);
	}

	60% {
		transform: translateY(-5px);
	}
}

/* #endregion ------------------------------ scroll bottom -------------------------------------- */
/* ------------------------------------------- content ------------------------------------------ */

#content {
	text-align: left;
}

body:not(.index) #content {
	padding-top: clamp(30px, 4vw, 65px);
	padding-bottom: clamp(30px, 4vw, 70px);
}

body.index #aboveContent {
	display: none
}

/* ------------------------------------------ events + news ------------------------------------- */

#newsWrap {
	background: #f2f2f2 url(../img/muster.png);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	padding: 30px 0;
}

#newsWrap .tab {
	background: #fff;
	padding: 40px 15px;
	gap: 30px 0;
}

@media (min-width: 992px) {
	#newsWrap>.row::after {
		content: "";
		position: absolute;
		pointer-events: none;
		bottom: -30px;
		right: -355px;
		width: 520px;
		height: 406px;
		background: url(../img/freisteller.png) center no-repeat;
	}
}

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

#newsWrap .tab h2 {
	font-size: 1.6875rem;
	text-transform: uppercase;
}

#newsWrap .tab :is(b, strong) {
	color: #c00000;
	font-size: 1.25rem;
	font-weight: 400;
}

:is(#events, #news) .tab_link_title a {
	font-weight: 600;
}

:is(#events, #news) .tab_link_entries a {
	color: inherit;
}

@media (min-width: 768px) {
	:is(#events, #news) .tab_link {
		font-size: 1.125rem;
	}
}

:is(#events, #news) .tab_link_entry:not(:last-child) {
	margin-bottom: clamp(15px, 2vw, 25px);
	padding-bottom: clamp(15px, 2vw, 25px);
	border-bottom: 1px solid rgba(133, 97, 40, 0.3) !important;
}

:is(#events, #news) .tab_spacer {
	display: none;
}

/* ---------------------------------------------- events ---------------------------------------- */

@media (min-width: 992px) {
	#events>.row>div:first-child {
		padding-top: 60px;
		padding-bottom: 60px;
		padding-right: 40px;
		border-right: 1px solid rgba(133, 97, 40, 0.3);
	}
}

#events .tab_link_mehr {
	font-size: 0;
	text-align: center;
}

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

#news .tab_link_entry {
	position: relative;
}

#news .tab_link_title {
	margin-bottom: 10px;
}

#news .tab_link .tab_link_mehr {
	display: none;
}

/* -------------------------------------------- buttons ----------------------------------------- */

.buttonStyle a,
#events .tab_link_mehr a {
	display: inline-block;
	color: #c00000;
	border: 2px solid #c00000;
	padding: 5px 15px;
	font-size: 1rem;
	text-transform: uppercase;
	font-weight: 400;
	text-decoration: none;
	transition: color 300ms linear, background 300ms linear;
	margin-top: clamp(20px, 3vw, 40px);
}

.buttonStyle a:is(:hover, :focus),
#events .tab_link_mehr a:is(:hover, :focus) {
	color: #ffffff;
	background: #c00000;
}

#events .tab_link_mehr a {
	background: #ffffff;
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
	color: #1f1f1f;
	font-weight: 600;
	line-height: 1.2;
	font-family: "Inter", serif;
}

h1,
.h1,
.legacy_h1 {
	font-size: clamp(2rem, 5vw, 2.5rem);
}

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

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

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

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

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

/* -------------------------------------------- footer ------------------------------------------ */

#footer {
	background: linear-gradient(270deg, rgba(183, 3, 3, 1) 0%, rgba(103, 4, 8, 1) 100%);
	padding: 40px 0 25px 0;
	color: #ffffff;
	font-size: 0.9375rem;
	line-height: 1.7;
}

@media (max-width: 991px) {
	:is(#footer, #innerfooter)>.row>.col-xs-12+* {
		border-top: 1px solid rgba(255, 255, 255, 0.2);
		margin-top: 20px;
		padding-top: 20px;
	}
}

@media (min-width: 768px) {
	#innerfooter>.row>.col-xs-12+ :nth-child(2) {
		border: none;
		margin-top: 0;
		padding-top: 0;
	}
}

#footer :is(b, strong) {
	font-size: 1.375rem;
	font-weight: 400;
}

#footer a {
	color: #ffffff;
	text-decoration: underline;
}

#footer a:is(:hover, :focus) {
	color: #ffffff;
}

.footerHeadline {
	color: #ffffff;
	margin: 0 0 7px 0;
	text-transform: uppercase;
	font-size: 1.375rem;
}

/* ------------------------------------------ innerfooter --------------------------------------- */

#innerfooter {
	color: #ffffff;
	background-color: #0f0f0f;
	font-family: "Inter", serif;
	font-size: 1rem;
}

#innerfooter ul {
	padding: 0;
}

#innerfooter li {
	display: inline-block;
}

.innerfooter a {
	color: #ffffff;
	text-decoration: none;
	display: inline-block;
	padding: 46px 20px;
}

.innerfooter a:is(:hover, :focus) {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.15);
	height: 100%;
}

.innerfooter li+li {
	margin-left: 10px;
}

@media (max-width: 991px) {
	.innerfooter a {
		padding: 15px 20px;
	}

	.innerfooter a:is(:hover, :focus) {
		padding: 15px 20px;
	}
}

/* ------------------------------------------- scroll top --------------------------------------- */

#scroll-top {
	font-size: 0;
	width: 33px;
	height: 33px;
	display: block;
	position: relative;
	margin: 0 auto;
	background: #ffffff;
}

@media (min-width: 768px) {
	#scroll-top {
		margin-right: 0;
	}
}

@media (min-width: 992px) {
	#scroll-top {
		margin: 0;
	}
}

#scroll-top::after {
	content: "";
	position: absolute;
	left: 10px;
	top: 3px;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	margin-top: 10px;
	display: inline-block;
	border-right: 3px solid #0f0f0f;
	border-top: 3px solid #0f0f0f;
	transform: rotate(-45deg);
	transition: border 300ms linear;
}

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

#vernetzt {
	gap: 14px;
	text-align: right;
	color: #ffffff;
	line-height: 1.3;
	font-weight: 400;
	text-decoration: none;
	font-size: 0.8125rem;
}

@media (max-width: 991px) {
	#vernetzt {
		margin-bottom: 30px;

	}
}

#vernetzt span span {
	display: block;
}

#vernetzt b {
	font-weight: 400;
}

#vernetzt b:is(:hover, :focus) {
	text-decoration: underline;
}