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

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

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

a {
	color: #8d000b;
}

#content a {
	text-decoration: underline;
}

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

b,
strong {
	font-weight: 600;
}

#overflow {
	overflow: hidden;
}

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

#topbar {
	padding: clamp(15px, 2vw, 24px) 0;
}

#logo {
	display: inline-block;
}

#logo img {
	display: block;
}

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

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

#search {
	background: #eaf3dd;
	position: relative;
	border-radius: 30px;
	width: 100%;
	max-width: 380px;
	height: fit-content;
}

@media (min-width: 992px) {
	#search {
		min-width: 240px;
		width: auto;
	}
}

#search_input {
	color: #282828;
	font-size: 0.875rem;
	font-weight: 300;
	font-style: normal;
	background: transparent;
	border: 0;
	width: 100%;
	border-radius: 30px;
	padding: 0.4375rem 14px;
	line-height: 1;
}

#search_submit {
	border: 5px solid #ffffff;
	background: #4b6a21 url("../img/lupe-icon-v2.png") center / 14px 14px no-repeat;
	padding: 0;
	border-radius: 50%;
	cursor: pointer;
	margin: -5px -5px -5px 0;
	font-size: 0;
	aspect-ratio: 1/1;
	min-width: 3rem;
	flex-shrink: 0;
	transition: transform 150ms linear;
}

@media (min-width: 768px) {
	#search_submit:is(:hover, :focus) {
		transform: scale(1.2);
	}
}

#search input::placeholder {
	color: #282828 !important;
	opacity: 1 !important;
	font-style: normal !important;
}

#search2 {
	font-size: 0;
	flex-shrink: 1;
	margin-left: 0;
	transition: margin-left 150ms linear;
}

.is-sticky #search2 {
	margin-left: 15px;
}

#search2 #search_submit2 {
	font-size: 0;
	border: none;
	background-color: transparent;
	width: 0;
	height: 20px;
	background: url(../img/lupe-icon-2.png);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	transition: width 150ms linear;
	padding: 0;
}

.is-sticky #search2 #search_submit2 {
	width: 20px;
}

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

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

#bfElements {
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
	font-size: 0;
}

#bfElements h2 {
	font-size: 0.875rem;
	color: inherit;
	font-weight: 400;
	margin: 0 0 10px 0;
	display: block;
	text-align: center;
	font-family: "Poppins", sans-serif;
	color: #282828;
}

#bfElements button + button {
	margin-left: 10px;
}

#bfElements button {
	font-size: 1.125rem;
	border: none;
	color: #282828;
	display: inline-block;
	width: 2.25rem;
	height: 2.25rem;
	aspect-ratio: 1/1;
	border-radius: 50%;
	font-weight: 400;
	text-align: center;
	position: relative;
	background-color: #eaf3dd;
	line-height: 1;
	transition:
		background 150ms linear,
		color 150ms linear;
	padding: 0;
}

#bfElements button:is(:hover, :focus) {
	background: #4b6a21;
	color: #fff;
}

#contrast_style button::before {
	content: "";
	display: block;
	position: absolute;
	inset: 7px;
	border: 1px solid rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	background: #fff;
}

#contrast_style button::after {
	content: "";
	display: block;
	position: absolute;
	inset: 13px;
	border: 1px solid rgba(0, 0, 0, 0.6);
	border-radius: 50%;
}

#contrast_style button:nth-of-type(1)::after {
	background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6) 50%, rgba(255, 255, 255, 1) 50%);
}

#contrast_style button:nth-of-type(2)::after {
	background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1) 50%, rgba(0, 0, 0, 0.6) 50%);
}

#contrast_style button:nth-of-type(3)::after {
	background: #ea5b0c;
	border: none;
	filter: unset;
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
	#burgerButton {
		font-size: 0;
		display: block;
		height: 50px;
		width: 60px;
		border-radius: 2px;
		padding: 6px 8px;
		cursor: pointer;
		background: #ffffff;
		border: none !important;
		box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
	}

	#burgerButton::before,
	#burgerButton::after,
	#burgerButtonInner {
		background-color: #4b6a21;
		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: #4b6a21;
		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: 6px;
	}

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

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally {
		background-color: #4b6a21;
	}
	nav.horizontally::before {
		content: "";
		position: absolute;
		inset: 10px -20px;
		border: 2px dashed #fff;
		opacity: 0.5;
		pointer-events: none;
	}

	.is-sticky nav.horizontally {
		box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.1);
		-webkit-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.1);
		-moz-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.1);
	}

	nav.horizontally .navbar-nav {
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
		flex-grow: 1;
		gap: 40px 0;
		transition: gap 150ms linear;
	}

	.is-sticky nav.horizontally .navbar-nav {
		gap: 20px 0;
	}

	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: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: 500;
	text-align: left;
	padding: 12px 15px;
	text-transform: uppercase;
	position: relative;
	font-size: 1.25rem;
	line-height: 1.2;
	text-decoration: none;
	font-family: "Oswald", sans-serif;
}

@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;
	}
}
nav.horizontally a[class*="toplevel"]::after {
	content: "";
	position: absolute;
	height: 2px;
	bottom: 22px;
	left: 0;
	transition: width 150ms linear;
	background: #fff;
	width: 0;
}

@media (max-width: 991px) {
	nav.horizontally a[class*="toplevel"]::after {
		bottom: 0;
	}
}

@media (min-width: 992px) {
	nav.horizontally a[class*="toplevel"] {
		padding: 30px 0;
		display: flex;
		align-content: center;
		align-items: center;
		justify-content: center;
		text-align: center;
		height: 100%;
	}
}

/* toplevel-over */

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within) > a::after,
nav.horizontally li[class*="toplevel"] > a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"].open > a::after,
nav.horizontally li[class*="toplevel"].open > a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"][class*="_over"] > a::after,
nav.horizontally li[class*="toplevel"][class*="_over"] > a:is(:hover, :focus)::after {
	width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	background: #eaf3dd;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

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

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

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

	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: -18px;
		margin-left: 20px;
	}

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #2e3c48;
	font-weight: 400;
	text-align: center;
	padding: 10px 15px;
	font-size: 1.125rem;
	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;
	}
}

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

/* 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: #fff;
	background-color: #4b6a21;
}

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

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

#slider {
	max-height: clamp(300px, 42vw, 400px);
	overflow: hidden;
	position: relative;
	border-bottom: solid 6px #4b6a21;
}

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

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

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

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

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

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

.slider-mask {
	display: none;
}

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

main {
	text-align: left;
	padding-bottom: 30px;
	padding-top: 30px;
}

@media (min-width: 992px) {
	main {
		padding-bottom: 80px;
      background: url(../img/blume-links.png), url(../img/blume-rechts.png);
      background-position: top 100px left 80px, bottom right 60px;
      background-repeat: no-repeat;
	}
}

#tabs {
	margin-bottom: 10px;
}

#tabs > .row > div {
	margin-bottom: 20px;
}

#tabs .tab {
	background:
		url("../img/bg-tab.png") center no-repeat,
		#eaf3dd;
	padding: 30px;
	color: #272727;
	height: 100%;
}

#tabs .tabHeadline {
	color: #272727;
	font-size: 1.375rem;
}

#tabs .tab_link_title a {
	color: #272727;
	font-weight: 600;
}

.tab_link_mehr {
	font-size: 0;
}

.tab_link_mehr a {
	font-size: 1rem;
	color: #ffffff;
	background-color: #4b6a21;
	padding: 10px 60px 10px 15px;
	position: relative;
}
.tab_link_mehr a::after {
	font-size: 1rem;
	color: #ffffff;
	background-color: #4b6a21;
	padding: 9px 15px;
	content: "\2192";
	border-left: 1px solid #fff;
	position: absolute;
	top: 0;
	right: 0;
}

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

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

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

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

h3,
.h3,
.legacy_h3 {
	font-size: clamp(1.625rem, 4.5vw, 2.5rem);
}

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

h5,
.h5,
.legacy_h5 {
	font-size: clamp(1.375rem, 3.5vw, 1.875rem);
}

h6,
.h6,
.legacy_h6 {
	font-size: clamp(1.25rem, 3vw, 1.5625rem);
}

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

@media (max-width: 575px) {
	:is(#innerfooter) > .row > .col-xs-12 + * {
		border-top: 1px solid rgba(255, 255, 255, 0.2);
		margin-top: 20px;
		padding-top: 20px;
	}
}

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

@media (min-width: 768px) {
	#innerfooter > .row > .col-xs-12 + :nth-child(2) {
		border: none;
		margin-top: 0;
		padding-top: 0;
	}
}
/* ------------------------------------------ innerfooter --------------------------------------- */

#innerfooter {
	color: #272727;
	background-color: #eaf3dd;
	font-size: 1rem;
	padding: 15px 0;
}

#innerfooter ul {
	padding: 0;
}

#innerfooter li {
	display: inline-block;
}

.innerfooter a {
	color: #272727;
	text-decoration: none;
	display: inline-block;
	padding: 10px 12px;
}

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

.innerfooter li + li {
	margin-left: 10px;
}

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

#vernetzt {
	gap: 14px;
	text-align: right;
	color: #282828;
	line-height: 1.3;
	font-weight: 400;
	text-decoration: none;
	font-size: 1rem;
	line-height: 1.2;
}

#vernetzt strong {
	color: #4b6a21;
	font-weight: 500;
}

#vernetzt span span {
	display: block;
}
