@import url("https://fonts.verwaltungsportal.de/import/?family=Source+Sans+3:300,300i,400,400i,600,600i%7CKhand:400,500,600,400i,500i,600i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Courgette:400");

html {
	max-width: 1930px;
	margin-left: auto;
	margin-right: auto;
	background: #f1f2f2;
	scroll-behavior: smooth;
	scroll-padding-top: 50px;
	scrollbar-color: #164f18 #ffffff;
	scrollbar-width: thin;
}

body {
	font-family: "Source Sans 3", sans-serif;
	color: #333333;
	background: #e3eedd;
	font-size: clamp(1rem, 2vw, 1.1875rem);
	/* 1rem = 16px */
	line-height: 1.5;
	isolation: isolate;
}

a {
	color: #164f18;
}

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

.linkUnderline a:not(.has-image, .shareButtonLink) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: text-decoration 300ms;
}

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

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

#overflow {
	overflow: hidden;
}

.row {
	max-width: 1600px;
	width: 100%;
}
/* -------------------------------------------- @nav1 Navigation ------------------------------------------- */

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

.logo {
	display: inline-block;
}

.logo img {
	display: block;
}

@media (min-width: 992px) {
	.logo {
		position: absolute;
		top: -40px;
		transition:
			top 300ms,
			scale 300ms;
		padding: 25px;
		right: 15px;
		transform-origin: top left;
	}
	.logo::after {
		content: "";
		position: absolute;
		background: #fff;
		box-shadow: 0px 1px 33px 0px rgba(0, 0, 0, 0.17);
		inset: 0 0 0 -100vw;
		z-index: -1;
		border-radius: 0 0 30px 0;
	}
	.is-sticky .logo {
		top: -20px;
		scale: 0.75;
	}
}

@media (min-width: 1800px) {
	.logo {
		padding-block: 25px;
		padding-right: 315px;
		margin-right: -315px;
		transform: translateX(-355px);
	}
	.logo::after {
		inset: 0 0 0 -100vw;
		z-index: -1;
		border-bottom-right-radius: clamp(30px, 5vw, 75px);
		background-image: url(../img/high-five.png);
		background-repeat: no-repeat;
		background-position: bottom right 90px;
	}
}

/* LOGO MIT TEXT -------------------------------------------------------- */

.logo {
	display: flex;
	flex-wrap: wrap;
	gap: 15px 15px;
	text-decoration: none !important;
}

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

.logo .cleaner {
	display: none;
}

.logoText {
	color: #244e26;
	font-weight: 600;
	font-size: clamp(1.375rem, 2vw, 1.875rem);
	align-content: center;
	line-height: 1.1;
	font-family: "Khand", sans-serif;
}

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

.logo img {
	display: block;
	max-width: 30vw;
}

/* LOGO MIT TEXT -------------------------------------------------------- */

/* --------------------------------------- navigation --------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
	#menu {
		padding: 10px 0;
		position: static !important;
		background-color: #ffffff;
		box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
	}

	#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: #244e26;
		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;
	}

	#burgerButton:after {
		top: 32px;
	}

	#burgerButton:before,
	#burgerButton:after {
		content: "";
		display: block;
	}

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

	.navbar-collapse {
		width: calc(100% - 90px);
		max-width: 300px;
		top: 0;
		background: #ffffff;
		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.collapse.in {
		left: 0;
		opacity: 1;
		pointer-events: auto;
	}

	.navbar-header {
		position: fixed;
		top: 15px;
		right: 15px;
		z-index: 101;
	}

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

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

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

/* menu desktop */

@media (min-width: 992px) {
	#menu {
		background-color: #e3eedd;
		box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
		padding-block: 40px;
		transition: padding 300ms;
		isolation: isolate;
	}
	.is-sticky #menu {
		padding-block: 20px;
      left: auto !important;
	}

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

	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 {
		position: absolute;
		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: #244e26;
	font-weight: 600;
	text-align: left;
	padding: 15px 35px 15px 15px;
	position: relative;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	line-height: 1.2;
	text-decoration: none;
	font-family: "Khand", sans-serif;
}

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

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

nav.horizontally a[class*="toplevel"]::after {
	content: "";
	position: absolute;
	display: block;
	width: 0;
	bottom: 0;
	height: 3px;
	left: 50%;
	transform: translateX(-50%);
	background: #244e26;
	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: #244e26;
}

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

/* -------------------------------------- secondlevel + thirdlevel dropdown-box -------------------------------------- */

nav.horizontally [class*="toplevel"] ul,
nav.horizontally [class*="secondlevel"] > ul {
	background: #fff;
	box-shadow: 0px 3px 10px 0px rgba(43, 43, 43, 0.15);
}

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

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

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

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

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

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

/* --------------------------------------------- secondlevel + thirdlevel -------------------------------------------- */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #333333;
	font-weight: 300;
	text-align: left;
	padding: 8px 25px;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
}
nav.horizontally li + li:is([class*="secondlevel"], [class*="thirdlevel"]) + li:is([class*="secondlevel"], [class*="thirdlevel"]) {
	border-top: 2px solid rgba(0, 0, 0, 0.1);
}

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

/* ------------------------------------------ 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: #244e26;
	color: #fff;
}

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

#slider {
	max-height: 300px;
	overflow: hidden;
	position: relative;
}

@media (min-width: 992px) {
	#slider {
		max-height: 550px;
	}
	
	#headerpic a.nivo-prevNav {
		left: 65px;
	}
	#headerpic a.nivo-nextNav {
		right: 65px;
	}
}


.slider-mask {
	display: none;
}



/* banner dots */

@media (max-width: 991px) {
	#headerpic .nivo-controlNav {
		top: 20px;
		bottom: unset;
	}
}

@media (min-width: 992px) {
	#headerpic .nivo-controlNav {
		display: flex;
		justify-content: end;
		flex-wrap: wrap;
		align-items: center;
		font-size: 0;
		min-height: 40px;
		bottom: 30px !important;
		right: 210px;
	}

	#headerpic .nivo-controlNav > ul > li {
		height: 16px;
		width: 16px;
	}

	#headerpic .nivo-controlNav :is(button:not(#nivo-crtlbtn), a) {
		background: transparent;
		border: 1px solid #ffffff;
		border-radius: 50%;
		width: 14px;
		height: 14px;
		position: relative;
		padding: 0;
	}

	#headerpic .nivo-controlNav :is(button:not(#nivo-crtlbtn), a)::after {
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		margin-left: 0;
		margin-top: 0;
		display: block;
		width: 0;
		height: 0;
		border-radius: 50%;
		background: #ffffff;
		transition:
			width 200ms linear,
			height 200ms linear,
			margin 200ms linear;
	}

	#headerpic .nivo-controlNav li:is(.slick-active, :hover, :focus) button:not(#nivo-crtlbtn)::after,
	#headerpic .nivo-controlNav a:is(.active, :hover, :focus)::after {
		margin-top: -4px;
		margin-left: -4px;
		width: 8px;
		height: 8px;
	}

	#headerpic .nivo-controlNav :is(li + li, a + a) {
		margin-left: 10px;
	}
}

/* banner arrows */

@media (min-width: 992px) {
	#headerpic .nivo-directionNav {
		position: absolute;
		z-index: 60;
		right: 60px;
		bottom: 30px !important;
		text-align: right;
		height: auto;
		display: flex;
	}
}

#headerpic .nivo-directionNav a {
	background: #ffffff;
	width: 40px;
	height: 40px;
	display: inline-block;
	text-indent: 0;
	font-size: 0;
}

@media (min-width: 992px) {
	#headerpic .nivo-directionNav a {
		position: relative;
		left: unset;
		right: unset;
		top: unset;
		opacity: 1;
		transition: background 200ms linear;
	}
}

#headerpic .nivo-directionNav a:is(:hover, :focus) {
	background: #e3eedd;
}

#headerpic .nivo-directionNav a::after {
	content: "\2039";
	font-size: 2.5rem;
	position: absolute;
	left: 12px;
	line-height: 1;
	top: 2px;
	font-family: "Khand", sans-serif;
	color: #333333;
}

#headerpic .nivo-directionNav a.nivo-nextNav::after {
	transform: scaleX(-1);
}

#headerpic .nivo-directionNav a + a {
	margin-left: 30px;
}

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

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

@media (min-width: 992px) {
   main>.row::after{
      content: '';
      position: absolute;
      background: url(../img/young-people-giving-high-five.png);
      width: 248px;
      height: 340px;
      top: 20%;
      left: 125px;
      transform: translateX(-100%);
      
   }
}

#content {
	text-align: left;
	padding-block: clamp(30px, 5vw, 70px);
	background: #fff;
	position: relative;
}
#content::after {
	content: "";
	position: absolute;
	background: #fff;
	inset: 0 -100vw 0 -70px;
	z-index: -1;
}

@media (min-width: 1200px) {
	#content {
		padding-left: 30px;
	}
}

	#bg-left {
      margin-block: 60px;
	}

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



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

/* ---------------------------------------------- tab ------------------------------------------- */

.tab {
	position: relative;
	margin: 0 auto;
	background-color: #e3eedd;
	color: #333333;
	font-size: 1rem;
	max-width: 400px;
}

.tabHeadline {
	margin: 0;
	font-weight: 600;
	color: #164f18;
	font-size: 1.5rem;
}

.tab .tabHeadline {
	padding: 16px 30px 12px 30px;
	border-bottom: 1px solid rgba(36, 78, 38, 0.2);
}

.tab + .tab .tabHeadline {
	border-top: 1px solid rgba(36, 78, 38, 0.2);
}

.tab .tabContent {
	padding: 30px;
}

.tab .tabContent a {
	color: #164f18;
	text-decoration: underline;
}

@media (min-width: 992px) {
	.tab :is(.tabHeadline, .tabContent) {
		padding-left: 30px;
		padding-right: 30px;
	}
}

.tab .tab_link_entries {
   font-weight: 300;
}

.tab .tab_link_title a {
   text-decoration: none;
   color: #333333;
}

.tab .tab_link_mandat a{
   color: #333333;
   font-weight: 300;
   text-decoration: none;
}

.tab .tab_link_mehr {
   text-align: left;
   font-size: 0;
}

.tab .tab_link_mehr a{
   background: #244e26;
   display: inline-block;
   color: #fff;
   padding: 5px 15px;
   font-size: 1rem;
   text-decoration: none;
   font-weight: 400;
}

.tab .tab_link_mehr a:is(:hover, :focus){
   background: #083d0b;
}


.tabNews .mehrLink a {
   background: #244e26;
   display: inline-block;
   color: #fff;
   padding: 5px 15px;
   font-size: 1rem;
   text-decoration: none;
   font-weight: 400;	
}
.tabNews .mehrLink a:is(:hover, :focus){
   background: #083d0b;
}

.tabNews .tab_link_mehr {
	display: none;
	font-size: 0;
}

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

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

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

h2,
#content .legacy_h2,
.legacy_h2,
.h2 {
	font-size: clamp(1.875rem, 3.5vw, 2rem);
}

h3,
#content .legacy_h3,
.legacy_h3,
.h3 {
	font-size: clamp(1.75rem, 3vw, 1.875rem);
}

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

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

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

:is(h1, h2, h3, h4, h5, h6) :is(i, em) {
	color: #164f18;
	font-size: 80%;
	font-style: normal;
}

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

footer {
   background: #e3eedd;
   border-top: 10px solid #fff;
}

@media (min-width: 992px) {
	footer {
		font-size: 1.0625rem;
	}
}

#footer {
	padding: 40px 0;
}

#footer > .row {
	row-gap: 20px;
}

/* -------------------------------------------- social ------------------------------------------ */

#social {
	line-height: 1.2;
}

#social :is(img + img, img + a, a + a, a + img) {
	margin-left: 10px;
}

/* --------------------------------------------- suche ------------------------------------------ */

#search {
	display: flex;
	max-width: 300px;
	width: 100%;
	font-family: "Khand", sans-serif;
}

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

@media (min-width: 992px) and (max-width: 1199px) {
	#search {
		max-width: 170px;
	}
}

#search_input {
	color: #333333;
	font-size: 1.0625rem;
	font-style: normal;
	background: transparent;
	padding: 0 5px 0 0;
	border: 0;
	width: 100%;
}

#search_submit {
	width: 30px;
	flex-shrink: 0;
	background: url("../img/suche-icon.png") center right no-repeat;
	padding: 0;
	cursor: pointer;
	border: none;
	font-size: 0;
}

#search_input::placeholder {
	color: #333333 !important;
	opacity: 1 !important;
	font-style: normal !important;
}

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

#innerfooter {
	font-size: 1.0625rem;
	padding: 4px 0;
	font-family: "Khand", sans-serif;
}

@media (min-width: 768px) {
	* + #innerfooter {
		margin-left: 25px;
		padding-left: 25px;
		border-left: 1px rgba(0, 0, 0, 0.3) solid;
	}
}

#innerfooter a {
	color: #333333;
	text-decoration: none;
	display: inline-block;
}

#innerfooter a:is(:hover, :focus) {
	color: #164f18;
}

#innerfooter a + a {
	margin-left: clamp(15px, 2vw, 22px);
}

/* ---------------------------------------------- contact --------------------------------------- */

#contact {
	padding-bottom: 40px;
}

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

#contact::before {
	content: "";
	display: block;
	margin: 0 auto 40px auto;
	max-width: 1300px;
	height: 1px;
	opacity: 0.5;
	background: #000000;
}

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

#vernetzt {
	display: inline-block;
	font-size: 0.875rem;
	color: #333333;
	line-height: 1.3;
	text-decoration: none;
	text-align: right;
   font-weight: 300;
}

#vernetzt span {
	display: block;
}

#vernetzt strong {
	font-weight: 600;
	color: #164f18;
}

#vernetzt img {
	margin-left: 8px;
}
