@import url("https://fonts.verwaltungsportal.de/import/?family=Barlow:400,500,500i,600,700,800,900,400i,600i,700i,800i,900i");

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

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

a {
	color: #01599e;
}
#content a {
	font-weight: 500;
}

a:is(:hover, :focus) {
	color: #01599e;
	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;
}

.row {
	max-width: 1620px;
	width: 100%;
}

#overflow {
	overflow: hidden;
	position: relative;
}

:not(.cc_banner-wrapper):focus-visible,
#vernetzt:focus-visible span {
	background-color: #fff !important;
	color: #1a601a !important;
	z-index: 100;
	text-decoration: none;
	outline: 2px solid #4e7b2d;
}

/* ------------------------------------- contrast+styler+suche ---------------------------------- */

#topbar {
	border-top: 4px solid #fde26e;
}

.search {
	background-color: #1a601a;
	padding: 9px 25px 6px;
	position: relative;
	display: block;
}

.search:is(:hover, :focus) {
	background: #4e7b2d;
}

@media (min-width: 992px) {
	#contrast_styler_wrapper {
		margin-top: -4px;
		line-height: 1;
		font-size: 20px;
	}

	#contrast_styler_wrapper button {
		border: none;
		background: transparent;
		padding: 0;
	}

	#contrast_style,
	#style {
		background-color: #4e7b2d;
		color: #ffffff;
		padding: 8px 15px;
	}

	#style {
		border-left: 1px solid rgba(255, 255, 255, 0.3);
	}

	:is(#contrast_style, #style) h2 {
		font-size: 0.875rem;
		font-weight: 600;
		color: inherit;
		margin: 0 5px 0 0;
		width: unset;
	}

	#contrast_style {
		line-height: 0;
		column-gap: 9px;
	}

	#style button {
		padding: 0 8px;
		font-weight: 600;
		box-shadow: -3px 1px 0 -2px rgba(255, 255, 255, 0.7);
	}

	#style button:first-of-type {
		box-shadow: unset;
	}

	#style button:is(:hover, :focus) {
		text-decoration: underline;
	}

	.search::after {
		content: "";
		width: 400px;
		height: 100%;
		right: -400px;
		top: 0;
		background: #1a601a;
		display: inline-block;
		position: absolute;
		pointer-events: none;
	}
}

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

#logo {
	display: inline-block;
}

#logo.contrast_light_font img {
	background-color: #fff !important;
}

#logo img {
	display: block;
	transition: all, 300ms;
	position: relative;
}

@media (min-width: 992px) {
	.is-sticky #logo img {
		max-width: 200px;
		top: 15px;
	}
}

@media (max-width: 991px) {
	#logo img {
		max-width: calc(100vw - 120px);
		width: 100%;
	}
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
	nav.horizontally {
		border-top: 3px solid #fde26e;
		padding: 12px 0;
		background-color: rgba(255, 255, 255, 0.95);
		box-shadow: 0 0 5px 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: #1a601a;
		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: 11px;
	}

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

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally {
		padding: 0 0 21px 0;
		border-bottom: 9px solid #fde26e;
		transition: all, 300ms;
		margin-top: -10px;
	}

	.is-sticky nav.horizontally {
		background-color: rgba(255, 255, 255, 0.95);
	}

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

	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[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: #444444;
	font-weight: 600;
	text-align: left;
	padding: 15px 15px;
	position: relative;
	font-size: 1.0625rem;
	line-height: 1.2;
	text-decoration: none;
}

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

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

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

nav.horizontally a[class*="toplevel"]::before {
	content: "";
	width: 0;
	height: 4px;
	display: block;
	position: absolute;
	left: 0;
	transform: translateX(-50%);
	bottom: 0;
	background-color: #fde26e;
	opacity: 0;
	transition: opacity 300ms linear, width 300ms linear;
}

@media (min-width: 992px) {
	.navbar-default .navbar-nav > li > a::before {
		left: 50%;
	}
}

/* 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: #1a601a;
}

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

/* secondlevel + thirdlevel dropdown-box */

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

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

nav.horizontally [class*="toplevel"] > ul {
	padding: 10px 0;
}

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

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

	nav.horizontally [class*="toplevel"] > ul {
		margin-top: 10px;
		border-bottom-left-radius: 3px;
		border-bottom-right-radius: 3px;
	}

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

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

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

	nav.horizontally [class*="secondlevel"] > ul::before {
		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: left;
	padding: 9px 25px 9px 35px;
	font-size: 1rem;
	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: "";
	display: block;
	position: absolute;
	left: 20px;
	top: 16px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #4e7b2d;
	transition: background 300ms linear;
}

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]) + li:not(:nth-child(2)) {
	border-top: 1px solid rgba(0, 0, 0, 0.15);
}

/* 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: #4e7b2d;
}

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 {
	background: #fde26e;
}

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

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

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

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

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

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

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

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

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

.slider-mask {
	display: none;
}

/* -------------------------------------------- overlay ----------------------------------------- */

#overlay {
	background: #4e7b2d;
	color: #ffffff;
	padding: 22px 0 30px 0;
	font-size: 1rem;
}

@media (min-width: 992px) {
	#overlay {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 12;
		padding-bottom: 16px;
		background: rgba(26, 96, 26, 0.8);
	}
}

#overlay > .row {
	row-gap: 22px;
}

#overlay .tab {
	padding-left: 100px;
	line-height: 1.7;
	background: url(../img/icon-uhr.png) center left 15px no-repeat;
}

#overlay > .row > .tab:nth-of-type(2) {
	background-image: url(../img/icon-telefon.png);
}

#overlay > .row > .tab:nth-of-type(3) {
	background-image: url(../img/icon-mail.png);
}

#overlay .tabHeadline {
	color: #ffffff;
	font-weight: 700;
	font-size: 1.25rem;
	margin: 0 0 3px 0;
}

#overlay a {
	color: #ffffff;
}

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

#content {
	text-align: left;
	padding-bottom: 30px;
	padding-top: 40px;
}

#information {
	padding-bottom: clamp(30px, 4vw, 60px);
}

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

#information .headline {
	margin-bottom: 25px;
}

#information::before {
	content: "";
	margin: clamp(30px, 4vw, 60px) auto;
	height: 1px;
	background: #fde26e;
	display: block;
	max-width: calc(1620px - 30px);
	width: 100%;
}

/* ----------------------------------------- events + news -------------------------------------- */

:is(#events, #news) .tab_link {
	font-size: 1rem;
}

:is(#events, #news) .tab_link a {
	color: inherit;
}

:is(#events, #news) .tab_link_title a {
	font-weight: 600;
}

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

:is(#events, #news) .tab_link_mehr a {
	display: inline-block;
	font-size: 1rem;
	color: #ffffff;
	background: #4e7b2d;
	padding: 9px 25px 10px 25px;
	text-decoration: none;
	font-weight: 600;
	margin-top: 15px;
}

#bg-events .tab_link_mehr {
	display: none;
}

:is(#events, #news) .tab_link_mehr a:is(:hover, :focus) {
	background: #1a601a;
}

:is(#events, #news) .tab_link_mehr a::after {
	content: "\00BB";
	margin-left: 3px;
}

/* ------------------------------------------- events ------------------------------------------- */

#events .tab_link_entries {
	display: grid;
	gap: 25px 30px;
}

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

#bg-events {
	padding: clamp(30px, 4vw, 64px) clamp(20px, 3vw, 40px);
	background-size: cover;
	background-position: center;
	background-color: #1a601a;
	color: #ffffff;
}

#events .tab_link_entry:not(:last-of-type) {
	padding-bottom: 25px;
	border-bottom: 2px solid rgba(255, 170, 18, 0.5);
}

@media (min-width: 576px) {
	#events .tab_link_entry:nth-last-of-type(2) {
		padding-bottom: 0;
		border-bottom: 0;
	}
}

/* ------------------------------------------- 3nw news------------------------------------------ */

#news .tab_link_entry {
	position: relative;
	border-bottom: none !important;
	padding: 20px;
	background: #ffffff;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

#news .tab_link_entry + .tab_link_entry {
	margin-top: 25px;
}

#news .tab_link_entry .tab_preview_picture {
	margin-bottom: 20px;
	display: block;
}

@media (min-width: 576px) {
	#news .tab_link_entry {
		margin-left: 267px;
		min-height: 120px;
	}

	#news .tab_link_entry .tab_link_title a::before,
	#news .tab_link_entry .tab_preview_picture {
		position: absolute;
		display: block;
		top: 0;
		left: -267px;
		bottom: 0;
		width: 237px;
		overflow: hidden;
		margin: 0;
	}

	#news .tab_link_entry .tab_link_title a::before {
		content: "";
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
	}

	#news .tab_preview_picture img {
		margin: 0 !important;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}

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

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

h1,
.h1,
.legacy_h1 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 900;
	letter-spacing: 1px;
}

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

h3,
.h3,
.legacy_h3 {
	font-size: clamp(1.5625rem, 3vw, 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;
}

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

footer {
	background: #4e7b2d;
	color: #ffffff;
	font-size: 1rem;
}

@media (min-width: 992px) {
	footer .footerTab {
		padding-right: 100px;
		position: relative;
	}

	footer .footerTab::after {
		content: "";
		position: absolute;
		background: url(../img/storch.png);
		width: 235px;
		height: 240px;
		bottom: clamp(-40px, -4vw, -30px);
		right: 100px;
		transform: translateX(100%);
		z-index: 20;
		pointer-events: none;
	}
}

footer hr {
	border-color: #ffffff;
	height: 1px;
	margin: 18px 0;
	opacity: 0.5;
}

footer .template-page a {
	color: #ffffff;
	text-decoration: underline;
}

footer > .row > div:nth-of-type(1) {
	padding-top: clamp(30px, 4vw, 40px);
	padding-bottom: clamp(30px, 4vw, 40px);
}

@media (max-width: 767px) {
	footer > .row > div:nth-of-type(2) {
		background: #1a601a;
	}
}

@media (min-width: 768px) {
	footer > .row > div:nth-of-type(2)::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		right: -370px;
		pointer-events: none;
		height: 100%;
		display: inline-block;
		border-top: 7px solid #fde26e;
		background: #1a601a url(../img/wasserzeichen-wappen.png) right 100px center / auto no-repeat;
	}
}

@media (min-width: 992px) {
	footer > .row > div:nth-of-type(2)::before {
		left: -100px;
	}
}

footer .tabWrapper {
	padding-top: clamp(30px, 4vw, 60px);
	padding-bottom: clamp(30px, 4vw, 60px);
}

@media (max-width: 767px) {
	footer .tabWrapper + .tabWrapper {
		padding-top: 0;
	}
}

.iframeTab :is(iframe, .iframe-wrapper-manual-enabling) {
	min-width: 100% !important;
	width: 100% !important;
	display: block;
	max-height: 160px;
}

#innerfooter ul {
	padding: clamp(30px, 4vw, 60px) 0;
	border-top: 1px solid rgba(255, 255, 255, 0.5);
}

#innerfooter li {
	display: inline-block;
}

#innerfooter a {
	color: #ffffff;
	text-decoration: none;
}

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

#innerfooter li + li::before {
	content: "•";
	margin: 0 clamp(15px, 2vw, 30px);
	color: #ffffff;
}

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

#vernetzt {
	font-size: 0.9375rem;
	color: #ffffff;
	line-height: 1.3;
	font-weight: 400;
	display: inline-block;
	text-decoration: none;
}

#vernetzt span {
	display: block;
}

#vernetzt img {
	margin-bottom: 10px;
	color: #012c4d;
}
