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

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

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

a {
	color: #9f4c04;
}

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

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

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

b,
strong {
	font-weight: 700;
}

#overflow {
   overflow: hidden;
}

.imprint-contact-data dd img {
	display: none;
}
/* ------------------------------------------ topbar -------------------------------------------- */

#topbar {
	padding: 0;
}

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

#logo {
	display: inline-block;
}

#logo img {
	display: block;
}

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

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

form[id^="search"] {
	background: #f4f4f4;
	display: inline-flex;
	border-radius: 30px;
	margin: 15px 15px 0 15px;
	box-shadow: 1px 1px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
}

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

form [id^="search_input"] {
	color: #6e6e6e;
	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 #f18e37;
	background: #f18e37 url("../img/lupe-icon-schwarz.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: #f4f4f4;
	}
}

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

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

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

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

@media (min-width: 992px) {
	#style img {
		margin-right: 20px;
	}

	#style button {
		border: none;
		color: #082e1d;
		display: inline-block;
		border-radius: 50%;
		font-weight: 400;
		text-align: center;
		background: #f4f4f4;
		box-shadow: 1px 1px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
		line-height: 1;
		font-size: 1rem;
		min-width: 38px;
		min-height: 38px;
		transition: transform 150ms linear;
	}

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

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

/* #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: #f4f4f4;
		box-shadow: 1px 1px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
	}

	#burgerButton::before,
	#burgerButton::after,
	#burgerButtonInner {
		background-color: #105c3b;
		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: #a6bea7;
		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: #a6bea7;
		position: relative;
	}
	nav.horizontally::after {
		content: "";
		position: absolute;
		inset: 5px -10px;
		outline: 1px dashed #262626;
		pointer-events: none;
	}

	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;
		flex-grow: 1;
	}

	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: #262626;
	font-weight: 400;
	text-align: left;
	padding: 10px 15px 15px 15px;
	position: relative;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	font-family: "Paprika", serif;
}

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

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

nav.horizontally a[class*="toplevel"]::before {
	content: "";
	width: 20px;
	height: 9px;
	display: block;
	position: absolute;
	left: 30px;
	bottom: 0;
	border-top-left-radius: 90px;
	border-top-right-radius: 90px;
	background-color: #ffffff;
	opacity: 0;
	transition: opacity 300ms linear;
}

@media (min-width: 992px) {
	nav.horizontally a[class*="toplevel"]::before {
		left: 50%;
		transform: translateX(-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: #ffffff;
	background-color: #0b3d26;
}

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

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

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

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

	nav.horizontally [class*="secondlevel"] > ul {
		margin-top: -18px;
		border-radius: 4px;
		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: #2e3c48;
	font-weight: 400;
	text-align: center;
	padding: 8px 25px;
	font-size: 1rem;
	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) {
	background: #f18e37;
}

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

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

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

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

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

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

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

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

.slider-mask {
	display: none;
}

@media (min-width: 992px) {
	.slider-mask {
		display: block;
		background: linear-gradient(0deg, rgba(25, 98, 67, 0.5) 0%, rgba(11, 61, 38, 0) 40%);
	}
}

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

#scrollBottom {
	font-size: 0;
	border-radius: 50%;
	display: block;
	width: 40px;
	height: 40px;
	text-align: center;
	background-color: #f4f4f4;
	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 #082e1d;
	border-bottom: 2px solid #082e1d;
	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: #105c3b;
}

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

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

#content {
	text-align: left;
	padding-bottom: clamp(30px, 4vw, 60px);
	padding-top: clamp(30px, 4vw, 60px);
}
#content > .row::before {
	content: "";
	position: absolute;
	top: clamp(-60px, -4vw, -30px);
	left: -65px;
	background: url(../img/deko_links.png);
   width: 312px;
   height: 510px;
   transform: translateX(-100%);
}
#content > .row::after {
	content: "";
	position: absolute;
	top: clamp(-60px, -4vw, -30px);
	right: -55px;
	background: url(../img/buecher-rechts.png);
   width: 322px;
   height: 462px;
   transform: translateX(100%);
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
	color: #105c3b;
	font-weight: 400;
	line-height: 1.2;
	font-family: "Paprika", serif;
}

h1,
.h1,
.legacy_h1 {
	font-size: 2.1875rem;
}

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

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

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

#footer {
	background-color: #a6bea7;
	padding: clamp(40px, 4vw, 55px) 0;
	color: #262626;
	position: relative;
	border-bottom: 1px dashed #262626;
	width: 100%;
	font-size: 0.875rem;
}
#footer::after {
	content: "";
	position: absolute;
	top: 20px;
	border-top: 1px dashed #262626;
	width: 100%;
}

#footer :is(h1, h2, h3, h4, h5, h6) {
	color: #262626;
	font-size: 1.25rem;
}

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

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

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

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

#footerButton a {
	display: inline-block;
	line-height: 1;
	background: #ffffff;
	border-radius: 8px;
	background-repeat: no-repeat;
	font-size: 1.3125rem;
	font-weight: 600;
	padding: 30px;
	color: #202020 !important;
	text-decoration: none !important;
	margin-bottom: 40px;
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
}

#footerButton a:is(:hover, :focus) {
	background-color: #e6e5e5;
}

#innerfooter {
	background-color: #a6bea7;
	padding-top: 30px;
	padding-bottom: 30px;
	font-size: 1rem;
}

#innerfooter ul {
	padding: 0;
}

#innerfooter li {
	display: block;
}

#innerfooter a {
	color: #262626;
	text-decoration: none;
	font-weight: 400;
	font-size: 0.875rem;
}

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

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

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

/* Map -------------------------------------------------------- */

#map :is(iframe, .iframe-wrapper-manual-enabling) {
	width: 100%;
	min-width: 100% !important;
}

#map .template-page {
	background: #a6bea7;
}

#map iframe {
	display: block;
}

@media (min-width: 768px) and (max-width: 991px) {
	#map {
		margin-top: 30px;
	}
}

/* Map -------------------------------------------------------- */

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

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

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

#vernetzt span span {
	display: block;
}

/* ------------------------------------------ partner ------------------------------------------ */

#partner {
	padding: 25px 0;
}

#partner p:has(img) {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	align-content: center;
	gap: 30px;
}
