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

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

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

a {
	color: #50715e;
}

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

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

#overflow {
	overflow: hidden;
}

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

#logo {
	display: inline-block;
	margin-bottom: 20px;
}

#logo img {
	display: block;
}

@media (max-width: 991px) {
	#logo img {
		max-width: 210px;
		width: 100%;
	}
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
	#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: #50715e;
		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: #f6f6ed;
		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: 7px;
	}

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

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally {
		background-color: #f6f6ed;
		border-bottom: 5px solid transparent;
		transition: border 300ms;
	}

	.is-sticky nav.horizontally {
		border-color: #fff;
	}

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

	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: #4c4c43;
	font-weight: 300;
	text-align: left;
	padding: 10px 15px 15px 15px;
	position: relative;
	font-size: 1.25rem;
	line-height: 1.2;
	text-decoration: none;
}

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

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

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

	.is-sticky .horizontally a[class*="toplevel"] {
		padding: 30px 0;
	}

	nav.horizontally a[class*="toplevel"]::before {
		content: "";
		width: 30px;
		height: 15px;
		display: block;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		top: 0;
		background-color: #50715e;
		opacity: 0;
		transition: opacity 300ms linear;
		clip-path: polygon(100% 0, 0 0, 50% 100%);
	}
}

/* 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: #50715e;
	background-color: transparent;
}

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 {
	opacity: 1;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	background-color: #50715e;
}

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

	nav.horizontally [class*="toplevel"] ul {
		margin: 10px;
	}
}

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

	nav.horizontally [class*="toplevel"] ul::after {
		content: "";
		position: absolute;
		background: #50715e;
		clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
		width: 30px;
		height: 15px;
		left: 50%;
		translate: -50% -100%;
		top: 0;
	}

	nav.horizontally [class*="secondlevel"] ul::after {
		clip-path: polygon(0 50%, 100% 100%, 100% 0);
		height: 30px;
		width: 15px;
		left: 0;
		top: 10px;
		translate: -100% 0;
	}

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

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

	nav.horizontally [class*="toplevel"]>ul::before {
		content: "";
		position: absolute;
		display: block;
		height: 5px;
		left: 0;
		right: 0;
		top: -5px;
	}

	nav.horizontally [class*="secondlevel"]>ul::before {
		content: "";
		position: absolute;
		display: block;
		width: 25px;
		top: 0;
		bottom: 0;
		left: -25px;
	}
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #fff;
	font-weight: 300;
	text-align: center;
	padding: 8px 25px;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
}

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

	nav.horizontally a[class*="secondlevel"].dropdown-toggle2 {
		padding-right: 35px;
	}
}

/* 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: #f6f6ed;
	color: #4c4c43;
}

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

/* -------------------------------------------- banner ------------------------------------------ */

#slider {
	height: clamp(300px, 42vw, 400px);
}

#slider div,
#slider div img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	object-position: center;
}

.slider-wrapper {
	position: relative;
	isolation: isolate;
}

.slider-wrapper::after {
	content: "";
	position: absolute;
	bottom: -30px;
	left: -40px;
	z-index: -1;
	background-color: #d2e0d8;
	width: 670px;
	height: 390px;
	max-width: 95%;
	max-height: 60%;
	clip-path: polygon(0 0, 0% 100%, 100% 100%);
}

@media (min-width: 992px) {
	body.index #slider {
		height: clamp(400px, 62vw, 488px);
	}

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

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

#headerpic {
	padding: 0;
	padding-bottom: 30px;
	position: relative;
	isolation: isolate;
	background: #f6f6ed;
}

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

#headerpic>.row {
	gap: 60px 0;
}

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

.slider-mask {
	display: none;
}

/* ------------------------------------------------ bannerTabs ----------------------------------------------- */

#bannerTabs {
	background: #f6f6ed;
	padding-block: clamp(20px, 4vw, 60px);
	position: relative;
	color: #50715e;
	font-size: 1.25rem;
}

#bannerTabs::after {
	content: "";
	position: absolute;
	inset: 0 -100vw;
	z-index: -1;
	background: #f6f6ed;
}

#bannerTabs .tabHeadline {
	font-weight: 300;
	color: #50715e;
	margin-bottom: clamp(15px, 4vw, 35px);
	text-transform: uppercase;
}

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

main {
	text-align: left;
	padding-top: 40px;
	padding-bottom: 30px;
}

@media (min-width: 992px) {
	main {
		padding-top: 80px;
		padding-bottom: 60px;
	}
}

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

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

h1,
.h1,
.legacy_h1 {
	font-size: clamp(1.875rem, 5.5vw, 3.125rem);
}

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

h3,
.h3,
.legacy_h3 {
	font-size: clamp(1.625rem, 4.5vw, 2.5rem);
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
	font-size: clamp(1.5rem, 4vw, 2.1875rem);
}

h5,
.h5,
.legacy_h5,
#bannerTabs .tabHeadline {
	font-size: clamp(1.375rem, 3.5vw, 1.875rem);
}

h6,
.h6,
.legacy_h6 {
	font-size: clamp(1.25rem, 3vw, 1.5625rem);
}

/* #region -------------------------------- footerwrapper --------------------------------------- */

.footerwrapper {
	background: #f6f6ed;
	font-size: 1rem;
	position: relative;
}

.footerwrapper>.row {
	row-gap: 30px;
}

.footerwrapper>.row:first-child {
	padding: 40px 0 5px 0;
}

@media (min-width: 992px) {
	.footerwrapper>.row:first-child>* {
		padding-top: clamp(30px, 5vw, 50px);
		padding-bottom: clamp(30px, 5vw, 50px);
	}

	.footerwrapper>.row:first-child>*:nth-child(2)::before {
		content: "";
		position: absolute;
		left: -50px;
		top: 0;
		bottom: 0;
		width: 2px;
		margin: auto;
		background-color: rgba(0, 0, 0, 0.2);
	}
}

.footerwrapper>.row:last-child {
	padding: 35px 0;
}

.footerwrapper a {
	color: inherit;
}

.footerwrapper .tabHeadline {
	margin-bottom: 10px;
	font-size: 1.5rem;
	color: inherit;
}

.footerwrapper .tab2 {
	line-height: 1.8;
}

.footerwrapper a {
	text-decoration: underline;
}

/* #endregion ----------------------------- footerwrapper --------------------------------------- */

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

#innerfooter {
	background: #50715e;
}

#innerfooter ul {
	padding: 0;
}

#innerfooter a {
	color: #ffffff;
	text-decoration: none;
	font-size: 0.875rem;
	padding: 5px;
	display: inline-block;
	padding-block: clamp(10px, 2vw, 30px);
	position: relative;
}

#innerfooter a::before {
	content: "";
	width: 30px;
	height: 15px;
	display: block;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 0;
	background-color: #fff;
	opacity: 0;
	transition: opacity 300ms linear;
	clip-path: polygon(50% 0, 0% 100%, 100% 100%);
}

#innerfooter a:is(:hover, :focus)::before {
	opacity: 1;
}

@media (min-width: 576px) {
	#innerfooter li {
		display: inline-block;
	}

	#innerfooter li+li {
		margin-left: clamp(15px, 5vw, 50px);
	}
}

#footerRight {
	display: flex;
	flex-wrap: wrap;
	gap: 30px 60px;
	align-content: space-between;
}

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

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

#map .iframe-wrapper-manual-enabling {
	height: 100%;
}

#map>.template-page>.row {
	margin: 0;
}

#map>.template-page>.row>* {
	padding: 0;
}

#map iframe {
	display: block;
}

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

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

#vernetzt {
	gap: 12px;
	text-align: right;
	font-size: 0.9375rem;
	color: #4c4c43;
	line-height: 1.3;
	text-decoration: none;
}

#vernetzt span span {
	display: block;
}

.tabButtons :is(p + p, a + a) {
	margin-top: 20px;
}

.tabButtons a {
	font-size: 1.125rem;
	font-weight: 500;
	border: 2px solid rgba(0, 0, 0, 0.2);
	text-decoration: none;
	padding: 12px 55px 12px 20px;
	display: block;
	position: relative;
	line-height: 1.2;
}

.tabButtons a:is(:hover, :focus) {
	background-color: rgba(0, 0, 0, 0.1);
}

.tabButtons a::after {
	content: "\00BB";
	position: absolute;
	width: 50px;
	text-align: center;
	right: 0;
	top: 8px;
	bottom: 8px;
	font-size: 30px;
	line-height: 25px;
	border-left: 2px solid rgba(0, 0, 0, 0.2);
}

#scrollTopBtn {
	color: #50715e;
	font-size: 1.125rem;
	font-weight: 700;
	text-decoration: none;
}

#scrollTopBtn::after {
	content: url(../img/arrow.png);
	margin-left: 15px;
	bottom: -5px;
	transition: bottom 300ms;
	position: relative;
}

#scrollTopBtn:is(:hover, :focus)::after {
	bottom: 5px;
}