@import url("https://fonts.verwaltungsportal.de/import/?family=Poppins:400,400i,700,700i");
@import url("https://fonts.verwaltungsportal.de/import/?family=League+Spartan:700");

html {
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
	scrollbar-color: #6907ca #ded3cf;
	scrollbar-width: thin;
}

body {
	font-family: "Poppins", sans-serif;
	font-weight: 400;
	color: #373632;
	background-color: #ded3cf;
	font-size: clamp(1rem, 2vw, 1.25rem);
	/* 1rem = 16px */
	line-height: 1.5;
	background-attachment: fixed;
	background-size: cover;
}

@media (min-width: 768px) {
	html {
		position: relative;
	}

	body::before {
		content: "";
		display: block;
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		background: url("../img/background-overlay.svg") center top / 100% auto repeat-y;
		z-index: 1;
	}
}

a {
	color: #6907ca;
	text-decoration-thickness: 2px !important;
}

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

.linkUnderline a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	transition: text-decoration 300ms;
}

.linkUnderline a:is(:hover, :focus) {
	text-decoration-color: transparent;
}

b,
strong {
	font-weight: 700;
}

@media (min-width: 1200px) {
	.compact {
		max-width: 1600px;
	}

	nav.horizontally,
	#headerpic,
	footer {
		max-width: 1337px;
		margin-left: auto;
		margin-right: auto;
	}

	.row {
		max-width: 1367px;
		width: 100%;
	}

	.row .row {
		max-width: none;
	}
}

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

.logo {
	display: inline-block;
}

.logo img {
	display: block;
}

@media (max-width: 991px) {
	.logo {
		margin-bottom: 15px;
	}

	.logo img {
		max-width: calc(100vw - 120px);
		width: 100%;
	}
}

@media (min-width: 992px) {
	.logo {
		margin-top: 10px;
		width: auto;
	}
}

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

.navbar-nav {
	background-color: #ded3cf;
}

/* burgermenu for tablet */

@media (max-width: 991px) {
	.navbar-nav {
		position: relative !important;
		width: auto !important;
	}

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

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

	#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: #ded3cf;
		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: 5px;
	}

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

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally .navbar-nav {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
		outline: 10px solid #f9f6f2;
	}

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

	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.open>ul {
		pointer-events: none !important;
		opacity: 0 !important;
		visibility: hidden;
	}

	nav.horizontally .navbar-nav li:is(: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)>ul {
		z-index: 1003;
	}
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
	color: #373632;
	font-weight: 700;
	text-align: left;
	padding: 10px 15px;
	font-size: clamp(1.25rem, 2vw, 1.375rem);
	line-height: 1.2;
	text-decoration: none;
	font-family: "League Spartan", sans-serif;
	border: 2px solid #ded3cf;
}

@media (max-width: 991px) {
	nav.horizontally a[class*="toplevel"].dropdown-toggle {
		padding-right: 35px;
	}
}

@media (min-width: 992px) {
	nav.horizontally a[class*="toplevel"] {
		padding: 17px;
		text-align: center;
	}
}

/* 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: #6907ca;
	background-color: #f9f6f2;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	padding: 12px 0;
	background-color: #f9f6f2;
	border: 2px solid #ded3cf;
}

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

@media (min-width: 992px) {
	nav.horizontally [class*="toplevel"]>ul {
		margin-top: -2px;
		left: 0;
	}

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

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

	nav.horizontally [class*="secondlevel"]:before {
		height: 0;
		left: 0;
		right: 0;
		top: -0;
	}

	nav.horizontally [class*="thirdlevel"]::before {
		width: 15px;
		top: 0;
		bottom: 0;
		left: -15px;
	}
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #373632;
	font-weight: 400;
	text-align: left;
	padding: 6px 30px;
	background-color: transparent;
	position: relative;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
}

@media (max-width: 991px) {
	nav.horizontally a[class*="secondlevel"].dropdown-toggle2 {
		padding-right: 35px;
	}
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
	content: "";
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	display: block;
	width: 7px;
	height: 7px;
	background-color: #6907ca;
	border-radius: 100%;
	opacity: 0;
	transition: opacity 300ms linear;
}

/* 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) {
	color: #6907ca;
}

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus)::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus)::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus)::before {
	opacity: 1;
}

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

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

#slider,
.slider-wrapper {
	max-height: clamp(250px, 30vw, 300px);
	overflow: hidden;
	height: 100%;
}

@media (min-width: 992px) {
	#slider {
		clip-path: polygon(0 0, 100% 0, 100% calc(100% - 45px), 0% 100%);
	}

	#slider,
	.slider-wrapper {
		max-height: clamp(300px, 44vw, 430px);
	}

	#headerpic .nivo-controlNav {
		top: 10px;
		bottom: auto;
		pointer-events: none;
	}

	#headerpic .nivo-controlNav li {
		pointer-events: auto;
	}

	#headerpic .nivo-directionNav a {
		top: 18px;
	}
}

#headerpic {
	margin: 0 auto;
	overflow: hidden;
	position: relative;
	width: 100%;
}

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

	#headerpic>.row {
		margin-inline: -15px;
		width: calc(100% + 30px);
	}
}

.slider-mask {
	display: none;
}

#headerpic .grayTab {
	height: 100%;
}

body:not(.index) #headerpic .grayTab {
	background: url('../img/muster.webp') center / cover no-repeat;
}

#logoArea {
	font-size: 1.25rem;
	font-weight: 700;
	padding-block: 20px;
}

@media (min-width: 992px) {
	#logoArea {
		padding-left: 50px;
		padding-right: 50px;
	}
}

#logoArea li {
	list-style: none;
	padding-left: 40px;
	min-height: 30px;
	align-content: center;
	background: url(../img/icon-check.png);
	background-position: center left;
	background-repeat: no-repeat;
	display: block;
	margin-top: 20px;
}

#logoArea li a {
	color: #373632;
}

#logoArea li a:is(:hover, :focus) {
	color: #6907ca;
	text-decoration: none;
}

#logoArea .logo {
	margin-bottom: 10px;
}

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

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

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

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

@media (min-width: 768px) {
	#content.md-gutter {
		margin-left: -15px;
		margin-right: -15px;
	}
}

@media (min-width: 992px) {
	#contentCol {
		padding: clamp(20px, 3vw, 30px) clamp(25px, 4vw, 45px) 0 clamp(20px, 4vw, 45px);
	}
}

@media (min-width: 1200px) {
	body:not(.noListStyle) main ul:not([class*="menue"]):not([class*="slick-dots"]):not(.rsbtn_toollist) li:not(.gallery-list-item):not(.album-list-item):not(.entry)::before {
		top: 24px;
	}
}

.compact {
	padding: 15px;
	background-color: #f9f6f2;
	border: 2px solid #ded3cf;
	position: relative;
	z-index: 5;
}

@media (min-width: 768px) {
	.compact {
		padding: 30px clamp(15px, 3vw, 30px) clamp(15px, 3vw, 30px) clamp(15px, 3vw, 30px);
		margin-top: clamp(30px, 5vw, 60px);
		margin-bottom: clamp(30px, 5vw, 60px);
	}
}

/* ------------------------------------------ grayTab ----------------------------------------- */

.grayTab {
	background: #ded3cf;
	padding: 25px;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 45px));
	padding-bottom: 80px;
	font-size: 1rem;
	position: relative;
	max-width: 450px;
	margin-inline: auto;
}

.grayTab+.grayTab {
	margin-top: 30px;
}

.grayTab a:not([href^="mailto"], [href^="tel"]) {
	display: inline-block;
	background: #373632;
	font-weight: 700;
	color: #fff !important;
	text-decoration: none;
	padding: 5px 10px;
	transition: background 300ms, color 300ms;
	margin-top: 30px;
}

.grayTab a:not([href^="mailto"], [href^="tel"]):is(:hover, :focus) {
	background: #f9f6f2;
	color: #6907ca !important;
}

.grayTab :is(.tabHeadline, .tabContent) {
	position: relative;
	z-index: 2;
}

.grayTab a:not([href^="mailto"], [href^="tel"])::after {
	content: " »";
}

#asideTab .grayTab:has(img)::after {
	content: "";
	clip-path: polygon(0 0, 100% 0, 100% calc(100px + 45px), 0 calc(20px + 45px));
	inset: 0;
	background: #f9f6f2;
	position: absolute;
}

.grayTab .banner {
	margin-bottom: 30px;
	line-height: 0;
	outline: 10px solid #ded3cf;
	position: relative;
	z-index: 2;
}

.grayTab .banner img {
	min-height: 150px;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* ----------------------------------------------- @9ev events -------------------------------------------- */

#ev9 .tab {
	background: #ded3cf;
	padding: 25px;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 45px));
	padding-bottom: 80px;
	font-size: clamp(1rem, 1vw, 1.125rem);
	position: relative;
	max-width: 450px;
	margin-inline: auto;
}

#ev9 .tabSpecial {
	margin-bottom: 20px;
}

#ev9 .tabHeadline {
	position: relative;
	z-index: 2;
}

#ev9 .tab_link_entry {
	border: none !important;
	display: flex !important;
	flex-wrap: wrap;
	position: relative;
	flex-direction: column;
	justify-content: center;
	min-height: 80px;
	z-index: 12;
}

#ev9 .tab_link_entry+.tab_link_entry {
	margin-top: 30px;
}

#ev9 .tab_link_entry+.tab_link_entry::before {
	content: '';
	pointer-events: none;
	height: 1px;
	width: 100%;
	position: absolute;
	top: -15px;
	left: -30px;
	right: 0px;
	background: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}

#ev9 .tab_link_title a {
	color: #444444;
	font-weight: 700;
}

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

#ev9 .tab_preview_picture,
#ev9 .vorschau,
#ev9 .tab_link .tab_link_mehr {
	display: none;
}

#ev9 .tab_link_entry .tab_spacer {
	height: 0;
}

#ev9 .tab_link_mehr {
	font-size: 0;
}

#ev9 .mehrButton a {
	text-decoration: none !important;
	position: relative;
	text-align: right;
	font-size: 1rem;
	display: inline-block;
	background: #373632;
	font-weight: 700;
	color: #fff;
	padding: 5px 10px;
	transition: background 300ms, color 300ms;
	margin-top: 30px;
}

#ev9 .mehrButton a:hover,
#ev9 .mehrButton a:focus {
	background: #f9f6f2;
	color: #6907ca;
}

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

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

h1,
.h1,
.legacy_h1 {
	font-size: clamp(2rem, 4vw, 2.8125rem);
	margin-bottom: clamp(20px, 3vw, 30px);
}

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

h3,
.h3,
.legacy_h3 {
	font-size: clamp(1.7rem, 3vw, 2.1875rem);
}

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.375rem;
}

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

footer {
	background-color: #ded3cf;
	position: relative;
}

footer>.row {
	position: relative;
	z-index: 2;
}

footer>.row>* {
	padding: 50px clamp(30px, 4vw, 50px);
}

footer>.row>*:first-child {
	background: #f9f6f2;
	border: 2px solid #ded3cf;
}

@media (min-width: 768px) {
	footer>.row>*:first-child {
		clip-path: polygon(0 0, 100% 0, calc(100% - 45px) 100%, 0 100%);
	}
}

#innerfooter ul {
	padding: 0;
}

@media (max-width: 575px) {
	#innerfooter {
		border-top: 1px solid rgba(255, 255, 255, 0.5);
		margin-top: 15px;
		padding-top: 15px;
	}
}

#innerfooter a {
	color: #373632;
	display: inline-block;
	font-weight: 400;
	font-size: 1.125rem;
	position: relative;
}

@media (min-width: 992px) {
	#innerfooter a {
		padding-right: 15px;
	}

	#innerfooter a::after {
		content: "";
		height: 7px;
		aspect-ratio: 1;
		background: transparent;
		position: absolute;
		top: 50%;
		right: 0;
		transform: translateY(-50%);
		transition: background 300ms;
		border-radius: 100vw;
	}

	#innerfooter a:is(:hover, :focus)::after {
		background-color: #6907ca;
	}
}

#newsletterInputs {
	height: 36px;
	display: flex;
	position: relative;
	border-radius: 2px;
	margin-left: auto;
	border: 1px solid rgba(105, 7, 202, 0.5);
	margin-top: 20px;
}

#newsletter_input {
	color: #373632;
	font-size: 16px;
	font-style: normal !important;
	background: transparent;
	padding: 0;
	border: 0;
	line-height: 36px;
	padding-left: 15px;
	padding-right: 43px;
	height: 32px;
	width: 100%;
}

#newsletter_submit {
	width: 36px;
	background: url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" height="22px" viewBox="0 -960 960 960" width="22px" fill="%236907ca"><path d="M145.09-145.87q-32.51 0-55.87-23.35-23.35-23.36-23.35-55.87v-509.82q0-32.74 23.35-56.26 23.36-23.53 55.87-23.53h669.82q32.74 0 56.26 23.53 23.53 23.52 23.53 56.26v509.82q0 32.51-23.53 55.87-23.52 23.35-56.26 23.35H145.09ZM480-443.91l-334.91-223v441.82h669.82v-441.82L480-443.91Zm0-73 330.91-218H150.09l329.91 218Zm-334.91-150v-68 509.82-441.82Z"/></svg>') center no-repeat, transparent;
	padding: 0;
	cursor: pointer;
	line-height: 36px;
	border: none;
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	font-size: 0;
	transition: background-color 300ms linear;
}

#newsletter_submit:hover,
#newsletter_submit:focus {
	background-color: #f9f6f2;
}

#newsletter_input::-ms-input-placeholder {
	color: #373632 !important;
}

#newsletter_input::-webkit-input-placeholder {
	color: #373632 !important;
}

#newsletter_input::-moz-placeholder {
	color: #373632 !important;
	opacity: 1;
}

#newsletter_input:-moz-placeholder {
	color: #373632 !important;
	opacity: 1;
}

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

#vernetzt {
	display: grid;
	gap: 12px;
	font-size: 0.875rem;
	color: #373632;
	line-height: 1.3;
	font-weight: 400;
	text-decoration: none;
}

#vernetzt strong {
	font-weight: 700;
}

#vernetzt :is(span, img) {
	display: block;
}

@media (max-width: 767px) {
	#vernetzt img {
		margin: 0 auto;
	}
}