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

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

body {
	font-family: "Oswald", sans-sans-serif;
	color: #444444;
	background: #ffffff;
	font-size: clamp(1rem, 2vw, 1.25rem);
	/* 1rem = 16px */
	line-height: 1.4;
}

a {
	color: #324b88;
}

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

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

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

#logo {
	display: inline-block;
	background: #ffffff;
	padding: 30px 40px;
	position: relative;
}

#logo img {
	display: block;
}

@media (min-width: 992px) {
	.logo-col {
		z-index: 102;
	}

	#logo {
		position: absolute;
		top: 0;
		left: 15px;
	}
}

@media (max-width: 991px) {
	#logo {
		padding: 10px 0;
	}

	#logo img {
		max-width: 250px;
		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: #324b88;
		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: #324b88;
		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) {
	.is-sticky {
		z-index: 104;
	}

	nav.horizontally {
		background: #324b88;
		border-bottom: 5px solid #ffffff;
	}

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

	nav.horizontally>.row>div {
		transition: all 0.2s 0s ease;
	}

	.is-sticky nav.horizontally>.row>div {
		margin-left: 0;
		max-width: 100%;
		flex: 0 0 100%;
	}

	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.open:focus-within>ul,
	nav.horizontally .navbar-nav li.open: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: #eec950;
	font-weight: 700;
	text-align: left;
	padding: 12px 15px;
	position: relative;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
	font-family: "Roboto", sans-serif;
}

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

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

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

	nav.horizontally a[class*="toplevel"] {
		padding: 19px 10px;
		display: flex;
		align-content: center;
		align-items: center;
		justify-content: center;
		height: 100%;
		text-align: center;
	}
}

nav.horizontally a[class*="toplevel"]::before {
	content: "";
	width: 100%;
	height: 16px;
	display: block;
	position: absolute;
	bottom: -16px;
	background-color: #243b73;
	transition: all 150ms linear;
	opacity: 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) {
	background-color: #243b73;
}

@media (min-width: 992px) {

	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: #ffffff;
	box-shadow: -1px 0px 5px 0 rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
	nav.horizontally [class*="toplevel"] ul {
		box-shadow: inset -1px 0px 5px 0 rgba(0, 0, 0, 0.2);
		margin: 10px;
	}

	nav.horizontally [class*="toplevel"]>ul {
		background-color: rgba(255, 255, 255, 0.95);
	}

	nav.horizontally [class*="secondlevel"]>ul {
		background-color: rgba(255, 255, 255, 0.15);
	}
}

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

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #444444;
	font-weight: 400;
	text-align: left;
	padding: 7px 16px;
	font-size: 1.25rem;
	line-height: 1.2;
	text-decoration: none;
	position: relative;
}

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

@media (min-width: 992px) {
	nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
		content: "";
		width: 0;
		height: 0;
		border-top: 36px solid #324b88;
		border-right: 18px solid transparent;
		display: block;
		position: absolute;
		top: 0;
		bottom: 0;
		right: -18px;
		opacity: 0;
		transition: all 300ms;
	}
}

/* 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: #eec950;
	background: #324b88;
}

@media (min-width: 992px) {

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

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

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

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

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

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

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

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

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

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

.slider-mask {
	display: block;
	background: linear-gradient(to top, #324b88, rgba(255, 255, 255, 0) 30%);
}

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

#content {
	background: #324b88 url(../img/rasen.png) bottom center / 100% auto no-repeat;
}

#contentmain {
	background: #ffffff;
	padding: 20px;
	min-height: clamp(200px, 25vw, 400px);
}

@media (min-width: 992px) {
	#contentmain {
		padding: 30px 40px 30px 40px;
		margin-top: -110px;
		position: relative;
		z-index: 55;
	}
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
	color: #324b88;
	font-weight: 700;
	line-height: 1.2;
	font-family: "Roboto", 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;
}

/* #region ---------------------------------- news + events ------------------------------------- */

#news,
#events {
	background-color: #ffffff;
	background-repeat: no-repeat;
	padding: 45px 0;
	position: relative;
	z-index: 56;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1200px) {
	#news {
		background-image: url(../img/grafik-orange-pflanzen.png);
		background-position: bottom right;
	}

	#events {
		background-image: url(../img/grafik-blaue-pflanze.png);
		background-position: bottom left;
	}
}

:is(#news, #events) .tabHeadline {
	margin: 0 0 20px;
	padding-left: 15px;
	width: auto;
	position: relative;
	z-index: 2;
	background: linear-gradient(#e8eaf0, #e8eaf0) bottom left 8px / 100px 20px no-repeat;
}

:is(#news, #events) .template-page a {
	text-decoration: underline;
}

:is(#news, #events) .tab_link_entries {
	display: grid;
	gap: 20px 30px;
	filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.15));
}

@media (min-width: 576px) {
	:is(#news, #events) .tab_link_entries {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

:is(#news, #events) .tab_link_entry {
	background-color: #324b88;
	color: #ffffff;
	padding: clamp(25px, 2vw, 30px) clamp(20px, 2vw, 25px);
	border: none !important;
}

@media (min-width: 992px) {
	:is(#news, #events) .tab_link_entry {
		clip-path: polygon(0 0, 100% 0, calc(100% - 30px) 100%, 0% 100%);
	}
}

:is(#news, #events) .tab_link_entry a {
	color: #ffffff;
}

:is(#news, #events) .tab_link_title a {
	font-size: 1.375rem;
	line-height: 1.2;
	font-weight: 700;
	margin-bottom: 6px;
	display: inline-block;
	color: #eec950;
	font-family: "Roboto", sans-serif;
}

:is(#news, #events) .tab_link_date {
	font-style: normal;
}

:is(#news, #events) .tab_spacer {
	display: none;
}

/* button */

:is(#news, #events) .tab_link_mehr {
	font-size: 0;
}

:is(#news, #events) .tab_link_mehr a {
	display: inline-block;
	text-decoration: none;
	position: relative;
	color: #ffffff;
	background-color: #243b73;
	width: 170px;
	margin-top: 30px;
	padding: 6px 20px 14px 20px;
	line-height: 1;
	transition: all 300ms;
	clip-path: polygon(30px 0, 100% 0, 100% 100%, 0% 100%);
}

@media (min-width: 576px) and (max-width: 991px) {
	:is(#news, #events) .tab_link_mehr a {
		position: absolute;
		bottom: 0;
		right: 15px;
	}
}

:is(#news, #events) .tab_link_mehr a:is(:hover, :focus) {
	background-color: #324b88;
}

:is(#news, #events) .tab_link_mehr a::after {
	content: "\00BB";
	font-size: clamp(30px, 4vw, 45px);
}

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

/* --------------------------------------------- parallax --------------------------------------- */

#news {
	margin-top: 410px;
}

#news::before {
	content: "";
	display: block;
	position: absolute;
	z-index: -1;
	top: -410px;
	right: 0;
	bottom: 0;
	left: 0;
	height: 410px;
	background-position: center;
	background-attachment: fixed;
	background-size: cover;
	background-repeat: no-repeat;
}

/* #region --------------------------------- maps_contact @3f ----------------------------------- */

#maps_contact {
	position: relative;
	background: #324b88;
	min-height: 250px;
}

#maps_contact :is(h1, h2, h3, h4, h5, h6, a, i, em, .tabHeadline) {
	color: #eec950;
	font-style: normal;
}

#maps_contact {
	color: #fff;
}

#maps_contact a {
	text-decoration: underline;
}

#maps_contact .tab {
	padding-top: clamp(25px, 4vw, 60px);
	padding-bottom: clamp(25px, 4vw, 50px);
}

@media (min-width: 992px) {
	#maps_contact .tab {
		padding-left: 30px;
	}

	#maps_contact::before {
		content: "";
		position: absolute;
		right: 0;
		top: 0;
		bottom: 0;
		left: 50%;
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
		display: block;
		pointer-events: none;
		opacity: 0.2;
	}
}

#maps_contact .colMaps :is(iframe, .iframe-wrapper-manual-enabling) {
	min-width: 100% !important;
	width: unset;
	display: block;
	max-height: 100%;
	min-height: 100%;
	margin: 0 -15px;
}

@media (min-width: 768px) {

	#maps_contact>.row,
	#maps_contact>.row>div,
	#maps_contact .colMaps :is(.row, .row > div) {
		position: static;
	}

	#maps_contact .colMaps :is(iframe, .iframe-wrapper-manual-enabling) {
		min-width: 50% !important;
		position: absolute;
		top: 0;
		right: 50%;
		bottom: 0;
		left: 0;
		margin: 0;
	}
}

/* #endregion ------------------------------ maps_contact @3f ----------------------------------- */

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

footer>.row {
	padding: 30px 0;
}

body:not(.index) footer {
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
	position: relative;
	z-index: 56;
}

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

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

#vernetzt {
	gap: 18px;
	text-align: left;
	font-size: 1rem;
	color: #444444;
	line-height: 1.3;
	font-weight: 400;
	text-decoration: none;
}

#vernetzt strong {
	color: #324b88;
	font-weight: 400;
}

#vernetzt span span {
	display: block;
}

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

.social a {
	text-decoration: underline;
}

.social img {
	transition: transform 0.2s 0s ease;
}

.social img:is(:hover, :focus) {
	transform: scale(1.3);
}

/* ------------------------------------------ scrollTop ----------------------------------------- */

#scrollTopBtn {
	position: relative;
	text-decoration: none;
	padding: 6px 15px 6px 15px;
	display: inline-block;
	font-size: 1.125rem;
	color: #ffffff;
	font-weight: 400;
	background: #243b73;
}

#scrollTopBtn:is(:hover, :focus) {
	background: #324b88;
}

#scrollTopBtn::after {
	content: "\203A";
	position: relative;
	bottom: 1px;
	display: inline-block;
	margin-left: 15px;
	transform: rotate(-90deg);
}

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

#innerfooter {
	padding: 18px 0;
	background: rgba(238, 201, 80, 0.2);
}

#innerfooter ul {
	padding: 0 !important;
}

#innerfooter a {
	color: #444444;
	text-decoration: none;
	display: inline-block;
	font-weight: 400;
	font-size: 1.125rem;
	padding: 4px 0;
}

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

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

	#innerfooter li+li::before {
		content: "•";
		margin: 0 clamp(15px, 4vw, 40px);
		color: #444444;
	}
}