@import url("https://fonts.verwaltungsportal.de/import/?family=Poppins:400,400i,600,600i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Baloo+2:400,400i,500,500i,600,600i,700,700i");

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

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

@media (min-width: 992px) {
	body {
		background: #ffffff url("../img/hintergrund.jpg") top 60px left no-repeat;
	}
}

a {
	color: #007e9e;
}

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

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

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

b,
strong {
	font-weight: 600;
}

#overflow {
	overflow: hidden;
}

/* ----------------------------------------------- @tp2 topbar ----------------------------------------------- */

#tp2 {
	overflow: hidden;
	position: relative;
	background: #8f5824;
	padding-block: 8px;
	color: #fff;
	font-size: 0.875rem;
}

#tp2 div.col-xs-12 {
	padding: 0px;
}

/* -------------------------------------------- contrast_style -------------------------------------------- */

#contrast_style {
	padding-left: 25px;
	padding-right: 17px;
}

#contrast_style button {
	display: inline-block;
	color: #000000;
	position: relative;
	z-index: 1;
	padding: 0;
	font-size: 0;
	width: 21px;
	height: 21px;
	font-weight: 400;
	border-radius: 50%;
	text-align: center;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.6);
	transition: background 300ms linear;
}

#contrast_style * + * {
	margin-left: 10px;
}

#contrast_style button:hover,
#contrast_style button:focus {
	background-color: rgba(255, 255, 255, 0.8);
}

/* -------------------------------------------- styler -------------------------------------------- */

@media (min-width: 992px) {
	#style {
		padding-left: 15px;
		padding-right: 5px;
		border-left: 1px solid rgba(255, 255, 255, 0.5);
	}

	#style button {
		font-size: 20px;
		background: transparent;
		padding: 0;
		border: none;
		color: #ffffff;
		display: inline-block;
		font-weight: 400;
		text-align: center;
		position: relative;
		width: 25px;
		height: 20px;
		line-height: 1;
		margin: 0 3px;
		-webkit-transition: color 150ms linear;
		-moz-transition: color 150ms linear;
		-ms-transition: color 150ms linear;
		-o-transition: color 150ms linear;
		transition: color 150ms linear;
	}

	#style button + button::before {
		content: "";
		position: absolute;
		pointer-events: none;
		display: inline-block;
		left: -3px;
		top: 0;
		bottom: 0;
		width: 1px;
		height: 100%;
		background: #ffffff;
	}

	#style button:hover {
		text-decoration: underline;
	}

	#style button:focus-visible {
		outline: 2px auto;
	}
}

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

.logo {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	align-items: center;
	gap: 30px;
	text-decoration: none !important;
}

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

.logo .cleaner {
	display: none;
}

.logoText {
	color: #8f5824;
	font-size: clamp(1.875rem, 3vw, 3rem);
	align-content: center;
	line-height: 1.1;
	font-weight: 500;
	font-family: "Baloo 2", sans-serif;
}

.logoText :is(b, strong) {
	display: block;
	color: #428230;
	font-weight: 700;
}

.logoText br {
	display: none;
}

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

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

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

.logo.contrast_light_font img {
   background: #fff;
}

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

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

#slider {
	height: clamp(300px, 46vw, 450px);
}

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

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

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

	#headerpic .slider-wrapper {
		margin-right: -13vw;
	}
}

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

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

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

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

	#headerpic .slider-wrapper {
		margin-left: -100px;
		margin-right: calc(-50vw + 481px);
	}
}

@media (min-width: 1200px) {
	#headerpic .slider-wrapper {
		margin-left: -140px;
		margin-right: calc((clamp(1200px, 100vw, 1930px) - 1166px) / -2);
	}
}

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

.slider-wrapper,
.nivo-main-image,
#slider > a > div {
	height: 100% !important;
}

.slider-mask {
	display: block;
	background: url("../img/banner-overlay-v2.png") bottom -1px left / cover no-repeat;
}

#headerpic .nivo-controlNav {
	bottom: unset;
	top: 20px;
}

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

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

#content {
	text-align: left;
}

main {
	padding-top: clamp(30px, 4vw, 55px);
	padding-bottom: clamp(30px, 10vw, 175px);
	position: relative;
}

#contentbottom_left {
	position: relative;
	z-index: 2;
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
	#burgerButton {
		font-size: 0;
		border: none !important;
		display: block;
		width: 46px;
		height: 40px;
		cursor: pointer;
		background-color: #ffffff;
		padding: 6px 8px;
		margin: 6px 0 0 auto;
		position: relative;
	}

	#burgerButton::before,
	#burgerButton::after,
	#burgerButtonInner {
		background-color: #428230;
		border-radius: 2px;
		position: absolute;
		width: 40px;
		height: 3px;
		left: 3px;
		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: 10px;
	}

	#burgerButton::before {
		top: 18px;
		content: "";
	}

	#burgerButton::after {
		top: 26px;
		content: "";
	}

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

	.navbar-collapse {
		width: calc(100% - 90px);
		max-width: 300px;
		top: 70px;
		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: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 {
		height: 70px;
		line-height: 1;
		border-radius: 2px;
		padding: 10px 15px;
		background-color: #ffffff;
		position: fixed;
		top: 0;
		right: 0;
		left: 0;
		z-index: 101;
		box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
	}

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

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

/* menu desktop */

@media (min-width: 992px) {
	nav.navbar {
		border: 1px solid #dbe2e1;
		border-right: unset;
	}

	nav.navbar li:is([class*="_over"], [class*="open"]) > ul {
		display: block;
	}
}

/* toplevel */

nav.navbar a[class*="toplevel"] {
	color: #444444;
	font-weight: 600;
	text-align: left;
	padding: 8px 15px 8px 15px;
	position: relative;
	font-size: 1.25rem;
	line-height: 1.2;
	text-decoration: none;
	font-family: "Baloo 2", sans-serif;
}

@media (min-width: 992px) {
	nav.navbar a[class*="toplevel"] {
		padding: 13px clamp(15px, 2vw, 28px);
	}

	.navbar-default .navbar-nav > li > a.dropdown-toggle::after {
		content: url(../img/vogel-orange.png);
		position: absolute;
		display: block;
		right: 10px;
		top: 50%;
		transform: translateY(-50%);
	}
}

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

nav.navbar li[class*="toplevel"] + li {
	border-top: 1px solid #dbe2e1;
}

/* toplevel-over */

nav.navbar li[class*="toplevel"]:is(:hover, :focus-within) > a,
nav.navbar li[class*="toplevel"] > a:is(:hover, :focus),
nav.navbar li[class*="toplevel"].open > a,
nav.navbar li[class*="toplevel"].open > a:is(:hover, :focus),
nav.navbar li[class*="toplevel"][class*="_over"] > a,
nav.navbar li[class*="toplevel"][class*="_over"] > a:is(:hover, :focus) {
	color: #007e9e;
}

/* secondlevel + thirdlevel dropdown-box */

nav.navbar [class*="toplevel"] > ul {
	border-top: 1px solid #dbe2e1;
	padding: 12px 0 12px 14px;
	position: relative;
}

@media (min-width: 1200px) {
	nav.navbar [class*="toplevel"] > ul {
		padding-left: 30px;
	}
}

nav.navbar [class*="toplevel"] > ul::after {
	content: "";
	display: block;
	position: absolute;
	top: 28px;
	left: 20px;
	bottom: 28px;
	width: 1px;
	background: #dbe2e1;
}

@media (min-width: 1200px) {
	nav.navbar [class*="toplevel"] > ul::after {
		left: 35px;
	}
}

/* secondlevel + thirdlevel */

nav.navbar a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #444444;
	font-weight: normal;
	text-align: left;
	position: relative;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
}

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

nav.navbar a[class*="secondlevel"] {
	padding: 9px 15px 9px 30px;
}

nav.navbar a[class*="secondlevel"]::before {
	content: "";
	display: block;
	position: absolute;
	z-index: 1;
	left: 0;
	top: 15px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #007e9e;
	transition: background 300ms linear;
}

nav.navbar a[class*="thirdlevel"] {
	padding: 7px 15px 7px 45px;
}

/* secondlevel + thirdlevel over */

nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within) > a,
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"]) > a:is(:hover, :focus),
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"]).open > a,
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"]).open > a:is(:hover, :focus),
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"] > a,
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"] > a:is(:hover, :focus) {
	color: #007e9e;
}

nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within) > a::before,
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"]) > a:is(:hover, :focus)::before,
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"]).open > a::before,
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"]).open > a:is(:hover, :focus)::before,
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"] > a::before,
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"] > a:is(:hover, :focus)::before {
	background: #007e9e;
}

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

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

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

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

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

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

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

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

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

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

footer {
	border-top: 1px solid #dbe2e1;
	position: relative;
	margin-top: 300px;
   font-size: 1rem;
}

@media (min-width: 992px) {
	footer::after {
		content: "";
		position: absolute;
		bottom: 0;
		right: 0;
		z-index: -1;
		background: #ffffff url("../img/hintergrund-footer.jpg") bottom right no-repeat;
		width: 582px;
		height: 751px;
	}
}

footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -301px;
	background-size: cover;
	background-position: top right, center;
	background-repeat: no-repeat;
	display: block;
	height: 300px;
	max-width: 734px;
	pointer-events: none;
}

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

	footer::before {
		width: 33.33%;
		height: 495px;
		right: unset;
		top: unset;
		bottom: 0;
	}
}

@media (min-width: 1200px) {
	footer::before {
		width: calc(400px + (50vw - 600px));
	}
}

#footer {
	padding: clamp(30px, 4vw, 55px) 0 clamp(30px, 4vw, 40px) 0;
}

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

.footerHeadline {
	font-size: 1.5625rem;
	margin: 0 0 clamp(15px, 2vw, 25px) 0;
}

.footerTab a {
	color: #444444;
}

.footerTab a:has(img) {
	background: #8f5824;
	border-radius: 100vw;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	align-content: center;
	justify-content: center;
	padding: 10px;
	transition: background 300ms;
	margin-top: 10px;
	margin-right: 10px;
	display: inline-flex;
}

.footerTab a:has(img):is(:hover, :focus) {
	background: #428230;
}

/* #endregion -------------------------------- footer ------------------------------------------- */

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

#vernetzt {
	font-size: 0.875rem;
	color: #444444;
	justify-content: center;
	line-height: 1.3;
	text-decoration: none;
	display: inline-block;
}

#vernetzt span {
	color: #444444;
	display: block;
}

#vernetzt strong {
	color: #428230;
}

#vernetzt img {
	margin-bottom: 6px;
}

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

#innerfooter ul {
	border-top: 1px solid #dbe2e1;
	font-size: 1rem;
	padding: 25px 0;
}

#innerfooter a {
	color: #444444;
	text-decoration: none;
   position: relative;
   font-weight: 600;
}

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

@media (min-width: 992px) {
	#innerfooter a::before {
      content: '';
      position: absolute;
      left: 50%;
      top: 0;
      transform: translate(-50%, -100%);
      background: url(../img/vogel-blau.png);
      width: 37px;
      height: 22px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 300ms;
	}
   
	#innerfooter a:is(:hover, :focus)::before  {
      opacity: 1;
   }
}

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

	#innerfooter li + li::before {
		content: "\2022";
		margin: 0 clamp(15px, 2vw, 25px);
		color: #444444;
	}
}

#footerRight {
	display: flex;
	flex-wrap: wrap;
	gap: 30px 60px;
	align-content: space-between;
	justify-content: end;
}
/* ------------------------------------------- contrast ----------------------------------------- */

.contrast_light_font footer .row {
	background: transparent !important;
}
