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

html {
	max-width: 1930px;
	margin-left: auto;
	margin-right: auto;
	background: #d9ead7;
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
	scrollbar-color: #3a802d #ffffff;
}

body {
	font-family: "Roboto", sans-serif;
	font-weight: 300;
	color: #64738b;
	background: #ffffff;
	font-size: 1rem;
	/* 1rem = 16px */
	line-height: 1.5;
}

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

a {
	color: #3a802d;
}

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

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

@media (min-width: 992px) {
	body {
		padding-left: clamp(25px, 4vw, 45px);
		padding-right: clamp(25px, 4vw, 45px);
	}
}

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

#logo a {
	display: inline-block;
}

#logo img {
	display: block;
}

@media (max-width: 991px) {
   #logo {
      background: #fff;
      padding: 15px 0;
      margin: 0 auto;
      max-width: 100%;
      transition: max-width 300ms;
   }
	#logo img {
		max-width: calc(100vw - 120px);
		width: 100%;
	}

   .is-sticky #logo {
      max-width: 50vw;
   }
}

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

#search {
	height: 33px;
	background: #d9ead7;
	display: inline-block;
	position: relative;
	margin-top: 20px;
	margin-bottom: 15px;
}
#search_input {
	color: #546073;
	font-size: 0.8125rem;
	font-style: normal;
	background: transparent;
	padding: 0;
	border: 0;
	line-height: 33px;
	padding-left: 10px;
	padding-right: 43px;
	height: 33px;
	width: 100%;
	font-weight: 300;
}
#search_submit {
	width: 33px;
	background: #d9ead7 url("../img/suche-icon.png") center no-repeat;
	padding: 0;
	cursor: pointer;
	line-height: 33px;
	border: none;
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	font-size: 0;
	-webkit-transition: background-color 300ms linear;
	-moz-transition: background-color 300ms linear;
	-ms-transition: background-color 300ms linear;
	-o-transition: background-color 300ms linear;
	transition: background-color 300ms linear;
}
#search_submit:hover {
	background-color: #fff;
}
#search_input::-ms-input-placeholder {
	color: #546073 !important;
	opacity: 1;
}
#search_input::-webkit-input-placeholder {
	color: #546073 !important;
	opacity: 1;
}
#search_input::-moz-placeholder {
	color: #546073 !important;
	opacity: 1;
}
#search_input:-moz-placeholder {
	color: #546073 !important;
	opacity: 1;
}

/* #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: #3a802d;
		color: #fff;
		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: #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 {
		position: fixed;
		top: 15px;
		right: 15px;
		z-index: 101;
	}

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

	.dropdown-toggle-button-wrapper2 {
		top: 2px;
	}
	.horizontally {
		position: relative !important;
	}
}

/* menu desktop */

@media (min-width: 992px) {
	nav .navbar-nav {
		border-top: 1px solid #64738b;
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
		gap: 15px;
	}
	nav.horizontally {
		background: #ffffff;
		position: relative;
	}
	nav.horizontally > .row {
		max-width: 1850px;
		width: 100%;
	}

	.is-sticky nav.horizontally {
		border-bottom: 1px solid #d9ead7;
	}

	nav.horizontally .navbar-nav > li {
		display: inline-block;
	}

	nav.horizontally .dropdown-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 1000;
	}

	nav.horizontally .navbar-nav ul {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 1000;
		display: block !important;
		pointer-events: none;
		opacity: 0;
		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, :hover) > ul,
	nav.horizontally .navbar-nav li.open:focus-within > 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.open > ul {
		pointer-events: none !important;
		opacity: 0 !important;
		visibility: hidden;
	}

	nav.horizontally .navbar-nav li:is(:hover, :focus) > ul {
		z-index: 1003;
	}
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
	color: #64738b;
	text-align: left;
	padding: 10px 15px;
	text-transform: uppercase;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
	font-weight: 500;
}

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

@media (min-width: 992px) {
	nav.horizontally a[class*="toplevel"] {
		padding: 16px 5px;
		margin: 10px 0;
	}
}

/* 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: #3a802d;
	background-color: #ffffff;
}

/* secondlevel + thirdlevel dropdown-box */

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

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

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

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

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

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

/* secondlevel + thirdlevel */

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

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

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
	content: "\00BB";
	position: absolute;
	top: 7px;
	left: 25px;
	margin-right: 4px;
}

/* 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: #ffffff;
	color: #64738b;
}

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

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

#headerpic {
	margin: 0;
	position: relative;
	overflow: hidden;
}

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

@media (min-width: 768px) {
	#headerpic .nivo-directionNav a {
		top: auto;
		bottom: 12px;
	}

	#headerpic .nivo-controlNav {
		width: calc(100% - 100px);
		left: 50px;
	}
}

@media (min-width: 992px) {
	#headerpic .nivo-directionNav a {
		bottom: 20px;
	}

	#headerpic .nivo-controlNav {
		bottom: 10px;
	}

	body.index #slider {
		max-height: clamp(300px, 62vw, 675px);
	}
}

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

.slider-mask {
	display: block;
	background: linear-gradient(90deg, rgba(67, 150, 53, 0.75) 0%, rgba(38, 68, 95, 0.75) 60%);
	width: 1200px;
	max-width: 80%;
	clip-path: polygon(0 0, calc(100% - 430px) 0, 100% 100%, 0% 100%);
}
@media (max-width: 767px) {
   .slider-mask {
      display: none;
   }
}

#slogan {
	font-weight: 300;
	padding: 15px;
	font-size: clamp(1.75rem, 3vw, 2.75rem);
	line-height: 1.2;
	text-transform: uppercase;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
}

#slogan :is(i, em) {
	font-weight: 300;
	font-size: clamp(1.75rem, 4.5vw, 3.125rem);
   text-transform: none;
   font-style: normal;
   margin-bottom: 20px;
}

#slogan a {
   text-transform: none;
}

@media (min-width: 768px) {
	#slogan {
      color: #ffffff;
		display: inline-block;
		pointer-events: auto;
	}

	#bannerOverlay {
		position: absolute;
		right: 0;
		top: 50%;
		transform: translateY(-50%);
		left: -15px;
		z-index: 53;
		pointer-events: none;
	}
}

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

/* ----------------------------------------- scroll bottom -------------------------------------- */

#scrollBottom {
	border-bottom: 1px solid rgba(67, 150, 53, 0.5);
	padding: clamp(10px, 2vw, 24px) 0;
}

#scrollBottom a {
	font-size: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 40px;
	margin: 0 auto;
}

#scrollBottom a::after {
	content: "";
	width: 0;
	height: 0;
	display: block;
	border-style: solid;
	border-width: 8px 8px 0 8px;
	border-color: #64738b transparent transparent transparent;
	transition: border 300ms linear;
}

#scrollBottom a:is(:hover, :focus)::after {
	border-color: #3a802d transparent transparent transparent;
}

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

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

/*-- events --*/

#events .tab {
	background-color: #f9f9f9;
	padding: 40px 20px;
	font-size: 1rem;
	border: 1px solid rgba(67, 150, 53, 0.36);
}

@media (max-width: 991px) {
   #events {
      margin-top: 50px;
   }
}

#events .tabHeadline {
	color: #26445f;
	font-size: clamp(1.25rem, 1.5vw, 1.5rem);
	font-weight: 500;
	text-transform: uppercase;
}

#events .tab_spacer {
	display: none;
}

#events .tab_link_entry {
	position: relative;
	margin-bottom: 35px;
}

#events .tab_link_entry::before {
	display: block;
	position: absolute;
	content: "";
	height: 1px;
	width: 100%;
	background: rgb(213, 213, 213);
	background: linear-gradient(90deg, rgba(213, 213, 213, 1) 0%, rgba(249, 249, 249, 1) 100%);
	bottom: -17.5px;
	left: -20px;
}

#events a {
	color: #26445f;
	font-size: 1rem;
	font-weight: 500;
}

#events .tab_link_mandat a {
	color: #26445f;
	font-weight: 300;
}

#events .tab_link_entries .tab_link_entry:nth-child(4) {
	margin-bottom: 0;
}

#events .tab_link_entries .tab_link_entry:nth-child(4)::before {
	display: none;
}

#events .tab_link .tab_link_mehr {
	display: none;
}

#events .tab_link_mehr,
.buttonStyle a {
	background-color: #3a802d;
	padding: 14px 40px;
	position: relative;
	transition: background 300ms;
}

#events .tab_link_mehr a,
.buttonStyle a {
	color: #fff;
	font-size: 1.125rem;
	font-weight: 300;
	font-variant: small-caps;
	position: relative;
	padding-right: 15px;
	text-decoration: none;
}

#events .tab_link_mehr a::before,
.buttonStyle a::before {
	content: "»";
	display: inline-block;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

.buttonStyle a {
	padding-right: 70px;
	margin-top: 30px;
	display: inline-block;
}

.buttonStyle a::before {
	right: 35px;
}

#events .tab_link_mehr:is(:hover, :focus),
.buttonStyle a:is(:hover, :focus) {
	background: #26445f;
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
	color: #26445f;
	font-weight: 500;
	line-height: 1.2;
}

h1,
.h1,
.legacy_h1,
#tabs :is(h1, h2, h3, h4, h5, h6) {
	font-size: clamp(1.875rem, 4vw, 2.5rem);
}

h2,
.h2,
.legacy_h2 {
	font-size: 1.6875rem;
}

h3,
.h3,
.legacy_h3 {
	font-size: 1.5625rem;
}

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

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

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

/* ----------------------------------------------- @2nw news -------------------------------------------- */

#nw2 {
	padding-top: 40px;
	padding-bottom: 40px;
	background: #fafafa;
	max-width: 1850px;
	width: 100%;
	background-position: center;
	background-size: cover;
}

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

#nw2 .specialHeadline {
	position: relative;
	color: #fff;
	font-size: clamp(1.25rem, 10vw, 1.875rem);
	font-weight: 500;
	margin-bottom: 0;
	text-transform: uppercase;
}

@media (max-width: 991px) {
	#nw2 .specialHeadline {
		margin-bottom: 30px;
	}
}

@media (min-width: 768px) {
	#nw2 .tab_link_entries {
		-ms-flex-wrap: wrap;
		display: -ms-flexbox;
		display: -webkit-box;
		display: flex;
		flex-wrap: wrap;
	}
}

@media (min-width: 992px) {
	#nw2 .tab_link_entries {
		padding-right: 100px;
		position: relative;
	}
}

#nw2 .tab_link_entry {
	color: #26445f;
	padding: 20px;
	width: 100%;
	font-size: 1.125rem;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: rgba(231, 234, 237, 0.85);
	-webkit-box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.15);
	box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
	#nw2 .tab_link_entry {
		padding: 40px 25px;
		width: calc(50% - 15px);
	}

	#nw2 .tab_link_entry:nth-child(2n + 1) {
		margin-right: 15px;
	}

	#nw2 .tab_link_entry:nth-child(2n + 2) {
		margin-left: 15px;
	}
}

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

@media (min-width: 768px) {
	#nw2 .tab_link_entry:nth-child(2) {
		margin-top: 0;
	}
}

#nw2 .tab_link_title a {
	color: #26445f;
	font-size: 1.625rem;
	font-weight: 400;
	line-height: 1.1;
	margin-bottom: 4px;
}

#nw2 .tab_link_mehr {
	font-size: 0;
	color: transparent;
	margin-top: 30px;
}

@media (min-width: 992px) {
	#nw2 .tab_link_mehr {
		margin-top: 0;
	}
}

#nw2 .tab_link_mehr a,
#teaser a:last-of-type {
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	display: inline-block;
	color: #ffffff;
	font-weight: 300;
	font-size: 3.75rem;
	line-height: 0.5;
	width: 100%;
	padding: 5px 10px 15px 10px;
	background: #3a802d;
	transition: background 300ms linear;
}

#teaser a:last-of-type {
	font-size: 0;
}

#teaser a:last-of-type::after {
	content: "\00BB";
	font-size: 3rem;
}

@media (min-width: 992px) {
	#nw2 .tab_link_mehr a,
	#teaser a:last-of-type {
		position: absolute;
		top: 0;
		bottom: 0;
		right: 15px;
		width: 70px;
		display: flex;
		align-items: center;
		align-content: center;
		justify-content: center;
		padding: 5px 10px 5px 10px;
	}
	#teaser a:last-of-type {
		right: -25px;
		transform: translateX(100%);
	}
}

#nw2 .tab_link_mehr a:hover,
#nw2 .tab_link_mehr a:focus,
#teaser a:last-of-type:is(:hover, :focus) {
	background: #26445f;
}

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

#tabs {
   padding: 70px 0;
}

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

#tabs .tab {
   background: #edeeed;
   color: #26445f;
   font-size: 1.375rem;
   padding: 45px 30px;
}

#tabs .tab :is(b, strong) {
   font-size: 3.125rem;
}

#tabs .tab img {
   margin-bottom: 20px;
}

/* -------------------------------------------- teaser ------------------------------------------ */

#teaser {
	padding: clamp(50px, 10vw, 100px) 0;
	background-color: #fff;
	color: #26445f;
	font-weight: 300;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	font-size: 1.125rem;
}

#teaser .tabHeadline {
	font-weight: 500;
	text-transform: uppercase;
	margin: 0 0 30px 0;
	font-size: clamp(2rem, 5vw, 1.875rem);
	color: #ffffff;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
	font-weight: 500;
}
#teaser .template-page {
   isolation: isolate;
}
#teaser .template-page > .row > div {
   padding: 30px 45px;
}

@media (min-width: 992px) {
	#teaser .template-page {
		padding-right: 110px;
      text-align: left;
	}
}
#teaser .template-page > .row::after {
   content: "";
   inset: 0 15px;
   background: #fff;
   position: absolute;
   opacity: 0.75;
   z-index: -1;
}

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

@media (max-width: 767px) {
	#footer > .row > div + div {
		border-top: 1px solid #eff1f3;
		margin-top: 20px;
		padding-top: 20px;
	}
}

@media (min-width: 768px) {
	#footer > .row > div:not(:last-child) {
		padding-top: 10px;
		padding-bottom: 10px;
		border-left: 1px solid #eff1f3;
	}
}

#footer :is(h1, h2, h3, h4, h5, h6) {
   
	font-variant: small-caps;
   margin: 0;
   font-size: 1.5rem;
}

#footer {
	padding: 30px 0;
	color: #64738b;
	font-size: 1rem;
}

#footer .footerContactTab a {
	position: relative;
}

#footer a:is([href*="mailto:"], a[href*="tel:"]) {
	position: relative;
	display: inline-block;
	padding-left: 30px;
	margin-top: 5px;
	text-decoration: underline;
}

#footer a[href*="tel:"] {
   color: #64738b;
}

#footer a:is([href*="mailto:"], a[href*="tel:"])::before {
	content: "";
	display: block;
	position: absolute;
	height: 22px;
	width: 22px;
	background: url("../img/mail-icon.png") center no-repeat, #3a802d;
	top: 50%;
	left: 0;
	border-radius: 50%;
	transform: translateY(-50%);
}

#footer a[href*="tel:"]::before {
	background: url("../img/phone-icon.png") center no-repeat, #64738b !important;
}

#innerfooter ul {
	padding: 0;
}

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

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

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

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

#vernetzt {
	gap: 12px;
	text-align: left;
	font-size: 0.875rem;
	color: #64738b;
	line-height: 1.3;
	text-decoration: none;
}

#vernetzt span span {
	display: block;
}

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

#scrollTop {
	font-size: 0;
	background-color: #64738b;
	color: #ffffff;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: block !important;
	position: relative;
	margin: 0 0 0 auto;
}

#scrollTop:is(:hover, :focus) {
	background-color: #3a802d;
}

#scrollTop::after {
	content: "";
	width: 0;
	height: 0;
	position: absolute;
	left: 9px;
	top: 12px;
	border-style: solid;
	border-width: 0 6px 6px 6px;
	border-color: transparent transparent #ffffff transparent;
	transform: none;
}
