@import url("https://fonts.verwaltungsportal.de/import/?family=Nunito:400,800,400i,800i%7COleo+Script+Swash+Caps:400");

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

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

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

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

b,
strong {
	font-weight: 800;
}

:root {
	--sidePaddingMax: calc((1920px - var(--gridSize)) / 2);
	--gridSize: 1200px;
}

@media (min-width: 992px) {
	:root {
		--sidePadding: calc((100vw - 992px) / 2);
	}
}
@media (min-width: 1200px) {
	:root {
		--sidePadding: calc((100vw - var(--gridSize)) / 2);
	}
}
@media (min-width: 1920px) {
	:root {
		--sidePadding: var(--sidePaddingMax);
	}
}

.rowGap {
	row-gap: 30px;
}

#overflow {
   overflow: hidden;
}

html[style*="font-size"]:not([style*="font-size: 100%"]) {
	hyphens: auto;
}

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

#logo {
	display: inline-block;
	position: relative;
	z-index: 51;
}

#logo img {
	display: block;
	transition: max-height 300ms linear;
	max-height: 150px;
}

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

nav.horizontally {
	background: #fff;
	box-shadow: 0 0 12px 0px rgba(0, 0, 0, 0.1);
}

/* burgermenu for tablet */

@media (max-width: 991px) {
	nav.horizontally {
		padding: 15px 0;
		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: #ce313f;
		border-radius: 2px;
		position: absolute;
		width: 40px;
		height: 3px;
		left: 10px;
		transition:
			transform 200ms linear,
			opacity 200ms linear;
	}

	.contrast_dark_font #burgerButton::before,
	.contrast_dark_font #burgerButton::after,
	.contrast_dark_font #burgerButtonInner {
		background-color: #000 !important;
	}
	.contrast_light_font #burgerButton::before,
	.contrast_light_font #burgerButton::after,
	.contrast_light_font #burgerButtonInner {
		background-color: #fff !important;
	}

	#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: #fff;
		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: 35px 0;
		display: flex;
		justify-content: flex-end;
		align-items: center !important;
		transition: margin 300ms linear;
		flex-wrap: wrap;
	}

	.is-sticky nav.horizontally {
		left: unset !important;
	}

	.is-sticky nav.horizontally .navbar-nav {
		margin-top: 30px;
		margin-bottom: 30px;
	}

	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:focus-within, :hover) > 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:is(:hover, :focus-within) > ul {
		z-index: 1003;
	}
}

@media (min-width: 1200px) {
	nav.horizontally .navbar-nav {
		margin: 40px 0 40px 30px;
	}
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
	color: #444444;
	font-weight: 800;
	text-align: center;
	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);
	}

	nav.horizontally a[class*="toplevel"] {
		text-align: left;
	}
}

@media (min-width: 992px) {
	nav.horizontally li[class*="toplevel"] + li {
		margin-left: clamp(10px, 2vw, 20px);
	}

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

	nav.horizontally a[class*="toplevel"][data-toggle="dropdown"] {
		padding-right: 20px;
	}
}

@media (min-width: 992px) {
	nav.horizontally a[class*="toplevel"][data-toggle="dropdown"]::after {
		content: "";
		position: absolute;
		display: block;
		right: 2px;
		top: 50%;
		margin-top: -7px;
		width: 8px;
		height: 8px;
		border-radius: 1px;
		display: inline-block;
		border-left: 2px solid #ce313f;
		border-bottom: 2px solid #ce313f;
		transform: rotate(-45deg);
		transition: border 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: #ce313f;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	background-color: #fff;
	box-shadow: 0 0 12px 0px rgba(0, 0, 0, 0.1);
	border-top: 4px solid #ce313f;
}

@media (max-width: 991px) {
	nav.horizontally [class*="toplevel"] ul {
		padding: 10px;
		margin: 10px;
	}
}

@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: -19px;
	}

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

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

	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: #444444;
	text-align: left;
	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"])::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: #ce313f;
	color: #ffffff;
}

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

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

#headerpic {
	min-height: clamp(200px, 30vw, 450px);
	overflow: hidden;
	position: relative;
}

@media (min-width: 992px) {
	body.index #headerpic {
		min-height: clamp(350px, 45vw, 650px);
	}
}

#slider,
#headerpic .slick-slider,
#headerpic .slick-slider > .slick-list,
#headerpic .slick-slider > .slick-list > .slick-track,
#headerpic .slick-slider > .slick-list > .slick-track > .slick-slide,
#headerpic .slick-slider > .slick-list > .slick-track > .slick-slide > div,
#headerpic .slick-slider > .slick-list > .slick-track > .slick-slide > div > img {
	height: 100%;
}

#headerpic .slick-slider > .slick-list > .slick-track > .slick-slide > div > img {
	object-fit: cover;
	object-position: center;
}

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

.slider-wrapper {
    position: absolute !important;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.slider-mask {
	background: url("../img/banner-welle.png") right bottom / 100% auto no-repeat;
	display: block;
}

.index .slider-mask {
	display: block;
	background: url("../img/banner-welle.png") right bottom / 100% auto no-repeat, linear-gradient(rgba(56, 56, 56, 0.4), rgba(56, 56, 56, 0.4));
}

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

@media (min-width: 992px) {
	#bannerOverlay {
      padding-block: 110px;
      position: relative;
      z-index: 20;
	}

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

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

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

#slogan {
	pointer-events: auto;
	position: relative;
}

@media (min-width: 992px) {
	#slogan,
	.sloganHeadline {
		color: #fff;
		text-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
	}
}

.sloganHeadline {
	margin: 0 0 14px 0;
	font-size: clamp(2rem, 5vw, 4.0625rem);
}

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

.button-style a,
#eventsList .tab_link_mehr a {
	color: #fff;
	text-transform: uppercase;
	font-weight: 700;
	display: inline-block;
	text-align: center;
	font-size: 1.125rem;
	text-decoration: none;
	min-width: 110px;
	padding: 5px clamp(10px, 2vw, 20px);
	margin-top: 22px;
	border: 3px solid #fff;
	background: #ce313f;
	transition:
		background-color 300ms linear,
		color 300ms linear,
		border 100ms linear;
	border-radius: 25px;
	box-shadow: 0.877px 1.798px 8px 0px rgba(0, 0, 0, 0.19);
	text-shadow: none;
}

.button-style a:is(:hover, :focus),
#eventsList .tab_link_mehr a:is(:hover, :focus) {
	color: #444444;
	background: #c9c9c9;
	border-color: #fff;
}

.button-style a + a {
	margin-left: 20px;
}

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

#content {
	text-align: left;
	padding-block: clamp(40px, 4vw, 70px);
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
	color: #444444;
	font-weight: 400;
	line-height: 1.2;
	font-family: "Oleo Script Swash Caps", 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;
}

/* ----------------------------------------------- @19ev events -------------------------------------------- */

#ev19 {
	position: relative;
	padding-block: 90px;
}

@media (max-width: 991px) {
	#ev19 {
		padding-block: 40px;
	}
}

@media (min-width: 992px) {
	#ev19 > .row::before {
		content: "";
		position: absolute;
		right: calc(var(--sidePadding) * -1 - 15px);
		width: 950px;
		top: -40px;
		bottom: -40px;
		background-position: center;
		background-repeat: no-repeat;
		background-size: cover;
		z-index: -1;
		border-radius: 130px 0 0 130px;
	}
}

#eventsHeadline {
	position: relative;
}

#eventsBox {
	padding: 30px 40px;
	background: #fff url(../img/icon-kalender.png);
	background-repeat: no-repeat;
	background-position: top 35px right 35px;
	box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.08);
	border-radius: 20px;
	margin-top: -5px;
}

@media (max-width: 991px) {
	#eventsBox {
		padding: 30px 30px 35px 30px;
		margin-top: -2px;
	}
}

#eventsKalender #clr-events-hide,
#eventsKalender .tab_link_mehr {
	display: none;
	height: 0;
}

#eventsKalender .eventclndr-tab {
	margin-bottom: 0;
	margin-top: 16px;
}

@media (max-width: 767px) {
	#eventsKalender .eventclndr-tab {
		margin-top: 0;
		margin-bottom: 15px;
	}
}

#eventsList {
	position: relative;
	color: #444444;
	font-size: clamp(1rem, 2vw, 1.125rem);
}

#eventsList .tab_spacer {
	height: 0;
	display: none;
}

#eventsList .tab_link_entry {
	border-bottom: 1px solid rgba(37, 37, 37, 0.2);
	padding-bottom: 20px;
}

#eventsList .tab_link_entries {
	display: grid;
	gap: clamp(20px, 2vw, 30px);
}

#eventsList .tab_link_title a {
	color: #444444;
	font-weight: 800;
}

#eventsList .tab_link_mandat a {
	color: #444444;
}

#eventsList .tab_link_mehr {
	font-size: 0;
	position: relative;
	text-align: left !important;
}

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

#footer {
	background: #ce313f;
	padding: 40px 0;
	color: #ffffff;
	font-size: 1rem;
}

@media (min-width: 992px) {
	#footer > .row {
		background-image: url(../img/kreuz-icon-weiss.png);
		background-repeat: no-repeat;
		background-position: center left;
	}
}

#footer a {
	color: #ffffff;
}

.footerHeadline {
	color: #ffffff;
	margin: 0 0 10px 0;
	font-size: 1.5625rem;
}

/* Map -------------------------------------------------------- */

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

#map iframe {
	display: block;
}

/* Full height */
#map :is(iframe, .iframe-wrapper-manual-enabling),
#map .template-page,
#map .template-page > .row {
	height: 100%;
}

@media (min-width: 992px) {
	#map {
		margin-block: -40px;
		margin-right: calc(var(--sidePadding) * -1 - 20px);
      height: calc(100% + 80px);
	}
}

/* Map -------------------------------------------------------- */

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

#innerfooter {
	background-color: #fff;
	padding: 20px 0;
	font-size: 1rem;
}

#innerfooter ul {
	padding: 0;
}

#innerfooter li {
	display: inline-block;
}

.innerfooter a {
	color: #444444;
	text-decoration: none;
	display: inline-block;
	padding: 10px 12px;
}

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

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

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

#scroll-top {
	font-size: 0;
	width: 36px;
	height: 36px;
	display: block;
	position: relative;
	margin: 0 auto;
	background: #ce313f;
	border-radius: 100%;
}

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

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

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

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

#vernetzt {
	gap: 15px;
	text-align: right;
	font-size: 0.875rem;
	color: #444444;
}

#vernetzt span span {
	display: block;
}
