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

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

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

a {
	color: #ad2212;
}

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

b,
strong {
	font-weight: 700;
}

/* ------------------------------------------ topbar -------------------------------------------- */

.topbar {
	padding: 22px 0 34px 0;
	background-color: #fff;
	transition: padding 200ms linear;
}

@media (min-width: 992px) {
	.topbar > .row > *:last-child {
		margin-top: -10px;
	}
}

#logo {
	display: inline-block;
	background-color: #ffffff;
}

#logo img {
	display: block;
}

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

	#logo img {
		max-width: 160px;
		width: 100%;
	}
}

@media (min-width: 992px) {
	nav.horizontally > .row > * {
		position: static;
	}

	#logo {
		position: absolute;
		bottom: 0;
		max-width: 165px;
		min-height: 100%;
      z-index: 201;
	}

	#logo img {
		max-height: 189px;
		transition: max-height 200ms linear;
	}

	.is-sticky #logo img {
		max-height: 135px;
	}

	.is-sticky .topbar {
		padding: 15px 0;
	}
}

@media (min-width: 1200px) {
	#logo {
		max-width: 268px;
	}
}

/* #region ----------------------------------- search ------------------------------------------- */

form[id^="search"] {
	background: #f4f4f4;
	display: inline-flex;
	border-radius: 30px;
	margin: 15px 15px 0 15px;
}

@media (min-width: 992px) {
	form[id^="search"] {
		min-width: 220px;
		margin: 0 30px 0 0;
	}
}

form [id^="search_input"] {
	color: #444444;
	font-size: 1rem;
	font-style: normal !important;
	background: transparent;
	border: 0;
	width: 100%;
	border-radius: 30px;
	padding: 6px 14px;
}

form [id^="search_submit"] {
	border: 5px solid #037c11;
	background: #037c11 url("../img/lupe-icon.png") center / 14px auto no-repeat;
	padding: 0;
	border-radius: 50%;
	cursor: pointer;
	margin: -5px -5px -5px 0;
	font-size: 0;
	aspect-ratio: 1/1;
	min-width: 48px;
	flex-shrink: 0;
	transition: transform 150ms linear;
}

@media (min-width: 992px) {
	form [id^="search_submit"] {
		border-color: #ffffff;
	}
}

form [id^="search_submit"]:is(:hover, :focus) {
	transform: scale(1.2);
}

form [id^="search_input"]::placeholder {
	color: #444444 !important;
	opacity: 1 !important;
	font-style: normal !important;
}

/* #endregion -------------------------------- search ------------------------------------------- */

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

@media (min-width: 992px) {
	#style h2 {
		font-size: 1rem;
		color: inherit;
		font-weight: 400;
		margin: 0 0 5px 0;
	}

	#style button {
		border: none;
		color: #fff;
		display: inline-block;
		border-radius: 50%;
		font-weight: 400;
		text-align: center;
		background: #037c11;
		line-height: 1;
		font-size: 1rem;
		min-width: 38px;
		min-height: 38px;
		transition: transform 150ms linear;
	}

	#style button:nth-child(3) {
		background: #ad2212;
	}

	#style button + button {
		margin-left: 6px;
	}

	#style button:is(:hover, :focus) {
		transform: scale(1.2);
	}
}

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

/* burgermenu for tablet */
.horizontally {
	background-color: #ad2212;
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.15);
}

@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: #037c11;
		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: #ad2212;
		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: #fff;
	}

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

	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 {
      position: relative;
      z-index: 200;
      background: #ad2212;
   }

   nav.horizontally .navbar::after {
      content: '';
      background: #ad2212;
      position: absolute;
      inset: 0 -100vw;
      z-index: -1;
   }

	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: #fff;
	font-weight: 400;
	text-align: left;
	padding: 10px 15px 15px 15px;
	position: relative;
	font-size: 1.25rem;
	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 li[class*="toplevel"] + li {
		margin-left: 20px;
	}

	nav.horizontally a[class*="toplevel"] {
		text-align: center;
		padding: 18px 0;
	}
}

nav.horizontally a[class*="toplevel"]::before {
	content: "";
	width: 0;
	height: 2px;
	display: block;
	position: absolute;
	left: 0;
	top: -2px;
	border-top-left-radius: 90px;
	border-top-right-radius: 90px;
	background-color: #037c11;
	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: #ad2212;
	background-color: #fff;
}

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 {
	width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	background-color: #ffffff;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
}

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

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

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

	nav.horizontally [class*="secondlevel"] > ul {
		margin-top: -18px;
		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: #444444;
	font-weight: 400;
	text-align: center;
	padding: 8px 25px;
	font-size: 1.125rem;
	border-bottom: 2px solid #fff;
	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;
	}
}

/* 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) {
	border-color: #037c11;
	color: #ad2212;
}

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

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

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

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

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

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

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

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

.slider-mask {
	display: none;
}

#bannerTab {
	pointer-events: none;
   margin-top: -30px;
   position: relative;
   z-index: 50;
}

#bannerTab .tab {
	width: 220px;
	min-height: 220px;
	border-radius: 100vw;
	pointer-events: all;
	background: #ad2212;
   border: 6px solid #fff;
   color: #fff;
	z-index: 50;
   padding: 30px;
   align-content: center;
   font-weight: 700;
   font-size: 1.75rem;
   overflow: hidden;
}

#bannerTab .tab a {
   color: #fff;
   text-decoration: none;
}

#bannerTab .tab a::after {
   content: '';
   position: absolute;
   inset: -100vw;
}

@media (min-width: 992px) {
	#bannerTab {
		position: absolute;
		bottom: -70px;
		width: 100%;
	}
}

/* #region -------------------------------- scroll bottom --------------------------------------- */

#scrollBottom {
	font-size: 0;
	border-radius: 50%;
	display: block;
	width: 40px;
	height: 40px;
	text-align: center;
	background-color: #fff;
	animation: bounceAni 2s infinite 2s;
	transition: all 0.2s ease-in;
	position: absolute;
	left: calc(50% - 20px);
	bottom: 20px;
	z-index: 50;
}

@media (min-width: 768px) {
	#scrollBottom {
		bottom: 45px;
	}
}

#scrollBottom:is(:hover, :focus) {
	animation-play-state: paused;
}

#scrollBottom::after {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 1px;
	margin-top: 13px;
	display: inline-block;
	border-left: 2px solid #037c11;
	border-bottom: 2px solid #037c11;
	transform: rotate(-45deg);
	transition: border 300ms linear;
}

@keyframes bounceAni {
	0%,
	100%,
	20%,
	50%,
	80% {
		transform: translateY(0);
	}

	40% {
		transform: translateY(-10px);
	}

	60% {
		transform: translateY(-5px);
	}
}

#scrollBottom:is(:hover, :focus)::after {
	border-color: #ad2212;
}

/* #endregion ----------------------------- scroll bottom --------------------------------------- */

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

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

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
	color: #037c11;
	font-weight: 700;
	line-height: 1.2;
	font-family: "Open Sans", sans-serif;
}

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

h2,
.h2,
.legacy_h2 {
	font-size: clamp(1.75rem, 2vw, 2rem);
}

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

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

/* ----------------------------------------------- @1nw news -------------------------------------------- */

#nw1 {
	padding-top: clamp(30px, 6vw, 90px);
	padding-bottom: 30px;
}

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

#nw1 .tab {
	color: #ffffff;
	padding: 30px;
	overflow: hidden;
	border-radius: 3px;
	background:
		url("../img/icon-meldnungen.png") top 20px right 20px no-repeat,
		#037c11;
}

#nw1 .tab a {
	color: #ffffff;
	text-decoration: underline;
}

#nw1 :is(h1, h2, h3, h4, h5, h6) {
	color: #ffffff;
	font-weight: 700;
	hyphens: auto;
	font-size: clamp(1.5rem, 2vw, 1.75rem);
	padding-right: 40px;
}

#nw1 .tab,
#nw1 .tab_link,
#nw1 .tab_link > div {
	height: 100%;
	min-height: 100%;
}

#nw1 .tab_link_entries {
	display: grid;
	gap: 30px;
   height: 100%;
}

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

@media (min-width: 768px) {
	#nw1 .tab_link_entries {
		grid-template-columns: repeat(2, 1fr);
	}
}

#nw1 .tab_link_entry,
#kontaktOben .tabLight {
	font-size: 1rem;
	position: relative;
	width: 100%;
	border-radius: 3px;
	padding: 30px;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.15) !important;
}


#kontaktOben .tabLight  :is(h1, h2, h3, h4, h5, h6) {
   color: #037c11;
}

#kontaktOben .tabLight a:is([href^="mailto"], [href^="tel"]) {
   color: #ad2212;
   text-decoration: underline;
}

#nw1 .tab_link_entry {
   padding-top: 160px;
}
#nw1 .vorschau {
	opacity: 1;
}

#nw1 .tab_preview_picture {
	background: #ffffff;
}

#nw1 .tab_link_entry::before,
#nw1 .tab_link_entry .tab_preview_picture {
	position: absolute;
	display: block;
	top: -1px;
	left: -1px;
	right: -1px;
	height: 120px;
	overflow: hidden;
	border-radius: 3px 3px 0 0;
}

#nw1 .tab_link_entry::before {
	content: "";
	background:
		center / cover no-repeat,
		#666666;
}

#nw1 .tab_preview_picture img {
	position: absolute;
	margin: 0 !important;
	left: 50%;
	top: 50%;
	max-width: none;
	min-width: 100%;
	min-height: 100%;
	max-width: 350px;
	width: auto;
	height: auto;
	-ms-interpolation-mode: bicubic;
	transform: translateX(-50%) translateY(-50%);
}

#nw1 .tab_date {
	display: inline-block;
	position: absolute;
	z-index: 1;
	left: -1px;
	top: 105px;
	font-weight: 400;
	color: #ffffff;
	font-size: 0.75rem;
	padding: 6px 20px;
	background: #ad2212;
	border-radius: 0 3px 3px 0;
}

#nw1 .tab_link_title a {
	display: block;
	font-weight: 700;
	font-size: 1rem;
	color: #037c11;
	line-height: 1.2;
	margin-bottom: 8px;
}

#nw1 .tab_link_entries + div,
#nw1 .tab_link_entries .tab_spacer,
#nw1 .tab_link_entry > div:nth-last-child(2) {
	display: none;
}

/* ------------------------------------------- @1nw buttonStyle ------------------------------------------- */

#nw1 .buttonStyle a:not([href^="mailto"], [href^="tel"]) {
	text-decoration: none;
	display: inline-block;
	font-size: 0.75rem;
	margin-top: 20px;
	font-weight: 400;
	color: #ffffff;
	padding: 5px 30px;
	border-radius: 3px;
	border: 1px solid #ffffff;
	background: transparent;
	transition:
		background 300ms linear,
		color 300ms linear;
}
#kontaktOben .tabLight a:not([href^="mailto"], [href^="tel"]) {
   background: #037c11;
   color: #fff;
}

@media (min-width: 768px) {
	#nw1 .buttonStyle a:not([href^="mailto"], [href^="tel"]) + a:not([href^="mailto"], [href^="tel"]) {
		margin-left: 12px;
	}
}

#nw1 .buttonStyle a:not([href^="mailto"], [href^="tel"]):hover,
#nw1 .buttonStyle a:not([href^="mailto"], [href^="tel"]):focus {
	color: #ffffff;
	background: #ad2212;
}

#nw1 .buttonStyle a:not([href^="mailto"], [href^="tel"])::after {
	content: "»";
	color: #fff;
	font-size: 0.75rem;
	padding-left: 2px;
}

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

#footer {
	background-color: #037c11;
	padding: clamp(30px, 4vw, 40px) 0 20px 0;
	color: #ffffff;
}

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

@media (max-width: 991px) {
	#footer > .row > .col-xs-12:last-child {
		border-top: 1px solid rgba(0, 0, 0, 0.2);
		margin-top: 15px;
		padding-top: 15px;
	}
}

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

#footer a:not(#vernetzt) {
	color: #fff;
	text-decoration: underline;
}

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

#footer .footerSlogan {
	font-weight: 400;
}

#innerfooter {
	background-color: #037c11;
	padding-top: 15px;
	padding-bottom: 15px;
	font-size: 1rem;
}

#innerfooter ul {
	padding: 20px 0 0 0;
	border-top: 2px solid #fff;
}

#innerfooter li {
	display: block;
}

#innerfooter a {
	color: #fff;
	text-decoration: none;
	font-weight: 400;
	display: inline-block;
}

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

@media (min-width: 576px) {
	#innerfooter li + li::before {
		content: "•";
		margin: 0 clamp(15px, 2vw, 25px);
		color: #fff;
	}

	#innerfooter li {
		display: inline-block;
	}
}

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

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

#vernetzt {
	gap: 18px;
	text-align: right;
	font-size: 14px;
	color: #ffffff;
	line-height: 1.3;
	font-weight: 400;
	text-decoration: none;
}

#vernetzt span span {
	display: block;
}
