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

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

body {
	font-family: "Jost", sans-serif;
	color: #2d2d2d;
	background: #ffffff;
	font-size: clamp(1rem, 2vw, 1.125rem);
	line-height: 1.5;
}

a {
	color: #2d833b;
}

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

b,
strong {
	font-weight: 600;
}

.overflow {
	overflow: clip;
	position: relative;
}

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

#logo {
	align-items: center;
	align-content: center;
	text-decoration: none;
}

@media (min-width: 992px) {
	#logo {
		display: flex;
		align-items: center;
		align-content: center;
		text-decoration: none;
	}

	#logo .logoImg img {
		display: block;
	}

	#logo .logoTxt {
		padding: 16px;
		padding-left: 16px;
		padding-left: 40px;
		margin-left: -20px;
	}
}

#logo .logoImg img {
	background-color: #fff;
	border: solid 3px #fff;
	border-radius: 50%;
	z-index: 12;
	position: relative;
	width: 100%;
	min-width: 177px;
	box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
	-webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
	-moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
}

#logo .logoTxt {
	line-height: 1.2;
	font-size: clamp(1rem, 3vw, 1.25rem);
	color: #2d2d2d;
	font-weight: 400;
	background: linear-gradient(90deg, rgba(241, 250, 244, 1) 10%, rgba(241, 250, 244, 0.8) 35%, rgba(241, 250, 244, 0) 70%);
	padding: 16px;
	display: block;
	width: 100%;
	padding-left: 30px;
	margin-left: -20px;
}

@media (max-width: 991px) {
	#logo .logoTxt {
		margin-left: unset;
	}
}

#logo .logoTxt :is(b, strong) {
	color: #086d44;
	font-weight: 600;
	font-size: clamp(1.25rem, 3vw, 2.125rem);
}

@media (max-width: 991px) {
	#logo .logoImg img {
		max-width: 170px;
	}

	#logo .logoTxt {
		text-align: center;
		background: rgba(241, 250, 244, 0.8);
		padding-top: 30px;
		margin-top: -30px;
	}
}

/* #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: #f1faf4;
		box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
	}

	#burgerButton::before,
	#burgerButton::after,
	#burgerButtonInner {
		background-color: #2d833b;
		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: #f1faf4;
		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: #f1faf4;
		box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2);
		position: sticky;
		left: 0;
		right: 0;
		top: 0;
		z-index: 101;
		left: 0;
		right: 0;
		margin: auto;
	}

	nav.horizontally > .row {
		max-width: 1600px;
		width: 100% !important;
	}

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

/* toplevel */

nav.horizontally a[class*="toplevel"] {
	color: #2d2d2d;
	font-weight: 600;
	text-align: left;
	padding: 12px 15px;
	position: relative;
	font-size: 1.125rem;
	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 a[class*="toplevel"] {
		padding: 51px 10px;
		display: flex;
		align-content: center;
		align-items: center;
		justify-content: center;
		text-align: center;
		height: 100%;
		transition: padding 300ms linear;
	}
	.is-sticky nav.horizontally a[class*="toplevel"] {
		padding: 25px 10px;
	}
}

/* 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) {
	background-color: #2d833b;
	color: #fff;
}

/* secondlevel + thirdlevel dropdown-box */

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

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

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	background-color: transparent;
	color: #494949;
	font-weight: 400;
	text-align: center;
	padding: 8px 30px;
	position: relative;
	font-size: 1rem;
	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;
	}
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
	content: "";
	position: absolute;
	left: 0%;
	top: 50%;
	height: 2px;
	margin-top: -1px;
	width: 0;
	background-color: #086d44;
	transition: width 200ms 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: #4b813b;
	background-color: transparent;
}

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

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

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

#slider,
#headerpic {
	padding: 0;
	overflow: hidden;
	position: relative;
	max-height: 100%;
	z-index: 0;
}

@media (min-width: 992px) {
	#headerpic a.nivo-prevNav {
		left: 65px;
	}

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

	.theme-nivo .nivo-controlNav {
		top: 740px !important;
		bottom: unset !important;
	}

	.theme-nivo .nivo-directionNav a {
		top: 720px !important;
	}
}

@media (max-width: 991px) {
	.theme-nivo .nivo-controlNav {
		top: 590px !important;
		bottom: unset !important;
	}

	.theme-nivo .nivo-directionNav a {
		top: 540px !important;
	}
}

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

.slider-mask {
	display: block;
	opacity: 0.6;
	height: 10px;
	bottom: 0;
	pointer-events: all;
}

#headerpic {
	height: 100%;
	position: fixed;
	width: 100%;
	overflow: hidden;
	top: 0;
	bottom: 0;
	z-index: 0;
	left: 0;
	right: 0;
}

/* --------------------------------------------- bannerOverlay ------------------------------------------- */

@media (min-width: 1200px) {
	#bannerOverlay>.row {
		max-width: 1600px;
		width: 100% !important;
	}
}

#bannerOverlay .bannerTab {
	padding: 20px 20px;
}

@media (min-width: 1200px) {
	#bannerOverlay {
		position: absolute;
		pointer-events: all;
		top: 300px;
		left: 0;
		right: 0;
		z-index: 12;
	}

	#bannerOverlay .bannerTab {
		pointer-events: all;
	}
}

/* --------------------------------------------- tabs ------------------------------------------- */

#contentWrapper {
	max-width: 1600px;
	margin: 0 auto;
}

#contentWrapper .tabKontakt {
	max-width: 400px;
	margin: 0 auto;
	background-color: #fff;
	position: relative;
	padding: clamp(25px, 4vw, 60px) clamp(20px, 3vw, 30px);
	border-radius: clamp(25px, 4vw, 50px) 2px;
	border-top: 5px solid rgba(45, 131, 59, 0.6);
	border-bottom: 5px solid rgba(8, 109, 68, 0.6);
	box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
	font-size: 1.125rem;
}

#contentWrapper .tabKontakt :is(h1, h2, h3, h4, h5, h6) {
	font-size: 1.5rem;
	margin: 0 0 25px 0;
	color: #086d44;
}

@media (max-width: 991px) {
	#contentWrapper .tabKontakt {
		margin-top: 30px;
	}
}

/* --------------------------------------------- ticker ------------------------------------------- */
#tickerWrapper {
	color: #2d2d2d;
	font-size: 1rem;
}

#tickerWrapper a {
	color: #2d833b;
	text-decoration: underline;
}

#tickerWrapper a:is(:hover, :focus) {
	text-decoration: none;
}

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

#content {
	text-align: left;
	row-gap: 30px;
}

#contentWrapper {
	margin-top: 533px;
	margin-bottom: 350px;
	padding-top: 60px;
	padding-bottom: 60px;
	background: rgba(241, 250, 244, 0.95);
	pointer-events: auto;
	z-index: 1;
	position: relative;
}

@media (max-width: 991px) {
	#contentWrapper {
		margin-top: 333px;
		margin-bottom: 150px;
	}
}

#contentWrapper::before {
	content: "";
	width: 100%;
	height: 10px;
	background: #086d44;
	opacity: 0.55;
	top: -70px;
	position: relative;
	display: block;
}

#contentWrapper::after {
	content: "";
	width: 100%;
	height: 10px;
	background: #2d833b;
	opacity: 0.55;
	bottom: -70px;
	position: relative;
	display: block;
}

@media (min-width: 1200px) {
	#contentWrapper>.row::before {
		content: "";
		position: absolute;
		background: url(../img/wasserzeichen-v2.png) no-repeat;
		width: 759px;
		height: 693px;
		bottom: -70px;
		z-index: 0;
		pointer-events: none;
		right: -200px;
		display: block;
	}
}

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

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

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

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

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

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

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

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

/* ----------------------------------------------- @6nw news -------------------------------------------- */

#nw6 {
	font-size: 1rem;
	padding-top: clamp(30px, 4vw, 65px);
	padding-bottom: clamp(30px, 3vw, 50px);
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: scroll, fixed;
	background-size: cover;
}

#nw6 .tabHeadline {
	color: #086d44;
	font-size: clamp(2rem, 3vw, 2.5rem);
	font-weight: 600;
	margin-bottom: 5px;
}

#nw6 .tabContent {
	font-size: 1rem;
	color: #2d2d2d;
}

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

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

@media (min-width: 768px) {
	#nw6 .tab_link {
		margin-top: 18px;
	}

	#nw6 .tab_link_entries {
		grid-template-columns: repeat(2, 1fr);
	}
}

#nw6 .tab_link_entry {
	text-align: center;
	position: relative;
	width: 100%;
	border-bottom: none !important;
	padding: 165px 20px 20px 20px;
	background: #ffffff;
	box-shadow: 0px 0px 5px 0px rgba(43, 43, 43, 0.15);
	box-shadow: 0px 5px 0px 0px rgba(45, 131, 59, 0.6);
	hyphens: auto;
	border-bottom-right-radius: 50px;
}

#nw6 .tab_link_entry::before {
	content: "";
	position: absolute;
	display: block;
	top: 0;
	left: 0;
	right: 0;
	height: 150px;
	background:
		center / cover no-repeat,
		#666666;
}

#nw6 .tab_link_entry .tab_preview_picture {
	position: absolute;
	display: block;
	left: 0;
	right: 0;
	top: 0;
	height: 150px;
	overflow: hidden;
	background: #ffffff;
}

#nw6 .tab_preview_picture img {
	position: absolute;
	left: 50%;
	top: 50%;
	max-width: none;
	min-width: 100%;
	min-height: 100%;
	max-width: 100%;
	width: auto;
	height: auto;
	transform: translateX(-50%) translateY(-50%);
}

#nw6 .tab_date {
	position: absolute;
	display: inline-block;
	z-index: 1;
	left: 50%;
	top: 134px;
	font-weight: 400;
	font-size: 1rem;
	color: #fff;
	padding: 4px 10px;
	background: #086d44;
	transform: translateX(-50%);
}

#nw6 .tab_link_title a {
	color: #086d44;
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.2;
	text-decoration: none;
}

#nw6 .tab_link_entry>div:nth-last-child(2) {
	font-size: 0;
	line-height: 0;
}

#nw6 a:hover,
#nw6 a:focus {
	text-decoration: none;
}

/* events */

#events {
	padding-top: clamp(40px, 4vw, 55px);
	padding-bottom: clamp(40px, 4vw, 60px);
}

@media (min-width: 768px) {
	#events {
		font-size: 1.125rem;
	}
}

#events {
	padding-left: 15px;
	padding-right: 15px;
}

#events .tab_link_entries {
	margin-bottom: 30px;
	display: grid;
	gap: 30px;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	#events .tab_link_entries {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 992px) {
	#events .tab_link_entries {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

#events .tab_link_mehr {
	color: transparent;
	font-size: 0;
}

#events .tab_link_title a {
	font-weight: 400;
	color: #086d44;
	font-weight: 600;
}

#events :is(.tab_link_mandat) a {
	color: inherit;
}

#events .tab_link_entry:not(:last-of-type) {
	padding-bottom: 25px;
	border-bottom: 2px solid rgba(191, 191, 191, 0.2);
}

@media (min-width: 768px) {
	#events .tab_link_entry:nth-last-of-type(2) {
		padding-bottom: 0;
		border-bottom: 0;
	}
}

@media (min-width: 992px) {
	#events .tab_link_entry:nth-last-of-type(3) {
		padding-bottom: 0;
		border-bottom: 0;
	}
}

#events .tab_spacer {
	display: none;
}

/* #endregion --------------------------------- news events -------------------------------------------- */

/* ----------------------------------------- @6nw tab_link_mehr_main ---------------------------------------- */

#nw6 .tab_link_mehr_main {
	color: transparent;
	font-size: 0;
	text-align: right;
}

#nw6 .tab_link_mehr_main a,
#events .tab_link_mehr a {
	text-decoration: none;
	display: inline-block;
	position: relative;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	padding: 13px 25px;
	background: #086d44;
	transition:
		color 300ms linear,
		background 300ms linear;
}

#nw6 .tab_link_mehr_main a::after,
#events .tab_link_mehr a::after {
	content: url(../img/arrow-small.png);
	margin-left: 15px;
}

@media (min-width: 992px) {

	#nw6 .tab_link_mehr_main a,
	#events .tab_link_mehr a {
		padding: 13px 55px;
	}
}

#nw6 .tab_link_mehr_main a:hover,
#nw6 .tab_link_mehr_main a:focus,
#events .tab_link_mehr a:is(:hover, :focus) {
	color: #ffffff;
	background: #2d833b;
}

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

footer {
	background: #086d44;
	position: relative;
	z-index: 1;
}

@media (max-width: 991px) {
	footer {
		padding-top: 20px;
		padding-bottom: 20px;
	}
}

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

#innerfooter ul {
	padding: 0;
}

#innerfooter a {
	color: #fff;
	text-decoration: none;
	display: inline-block;
	font-size: 1rem;
	font-weight: 400;
	padding: 6px 0;
}

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

	#innerfooter a {
		padding: 20px 8px;
	}

	#innerfooter li+li::before {
		content: "|";
		margin: 0 0px;
		color: #fff;
	}
}

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

@media (min-width: 1200px) {
	#innerfooter a {
		padding: 56px clamp(10px, 2vw, 20px);
	}
}

#innerfooter a:is(:hover, :focus) {
	background: #2d833b;
}

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

#scroll-top {
	opacity: 1 !important;
	font-size: 0;
	border: 1px solid #ffffff;
	border-radius: 3px;
	width: 40px;
	height: 40px;
	display: block;
	position: relative;
	margin: 0 auto;
}

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

#scroll-top::after {
	content: "";
	position: absolute;
	left: 13px;
	top: 16px;
	width: 9px;
	height: 9px;
	border-radius: 2px;
	display: inline-block;
	border-right: 2px solid #ffffff;
	border-top: 2px solid #ffffff;
	transform: rotate(-45deg);
	transition: border 300ms linear;
}

#scroll-top:is(:hover, :focus) {
	background-color: #2d833b;
}

#besucher {
	color: #fff;
}