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

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

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

body::after {
	content: "";
	position: absolute;
	inset: 0;
	top: auto;
	background: url(../img/deko-bg.jpg);
	width: 100%;
	height: 1200px;
	background-position: bottom center;
	background-repeat: no-repeat;
	z-index: -1;
}

a {
	color: #87c644;
}

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

/* .linkUnderline a:not(.has-image, .shareButtonLink) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: text-decoration 300ms;
}

.linkUnderline a:not(.has-image, .shareButtonLink):is(:hover, :focus) {
	text-decoration-color: transparent;
} */

:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 2px;
}

b,
strong {
	font-weight: 700;
}

.rowGap {
	row-gap: 30px;
}

.rowColumn {
	display: flex;
	flex-direction: column;
}

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

#topbar > .row {
	background: url(../img/deko-top.png);
	background-position: right 100px bottom;
	background-repeat: no-repeat;
}

@media (min-width: 992px) {
	#style {
		padding-block: 40px;
	}
}
#style button {
	border: none;
	color: #232323;
	display: inline-block;
	width: 40px;
	height: 40px;
	font-weight: 400;
	text-align: center;
	position: relative;
	line-height: 1;
	position: relative;
	background: transparent !important;
	isolation: isolate;
	font-size: 0.875rem;
	transition: transform, 300ms;
}
#style button.contrast_light_font {
	color: #000 !important;
}
#style button#font_std {
	font-size: 1rem;
}
#style button#font_add {
	font-size: 1.1875rem;
}
#style button::after {
	content: "";
	position: absolute;
	inset: 0;
	box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.09);
	background: #fff;
	z-index: -1;
	rotate: -45deg;
}
#style button + button {
	margin-left: 20px;
}
#style button:hover {
	-moz-transform: scale(1.2);
	-webkit-transform: scale(1.2);
	-o-transform: scale(1.2);
	-ms-transform: scale(1.2);
	transform: scale(1.2);
}
#style button:focus-visible {
	outline: 2px auto;
}

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

#logo {
	display: inline-block;
}

#logo img {
	display: block;
}

@media (max-width: 991px) {
	#logo img {
		max-width: 210px;
		width: 100%;
	}
	#topbar {
		padding-block: 25px;
	}
}

@media (min-width: 992px) {
	#logo {
		position: relative;
		z-index: 20;
		isolation: isolate;
	}
	#logo::after {
		content: "";
		position: absolute;
		width: 400px;
		height: 400px;
		background: #fff;
		left: 50%;
		bottom: -20px;
		transform: translateX(-50%) rotate(45deg);
		box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.09);
		z-index: -1;
	}
	#logo::before {
		content: "";
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		width: 600px;
		height: 600px;
		bottom: -60px;
		background: #92d050;
		clip-path: polygon(50% 0%, 100% 80%, 50% 100%, 0 80%);
		z-index: -1;
	}
}

/* ------------------------------------------ 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: #232323;
		border-radius: 2px;
		position: absolute;
		width: 40px;
		height: 3px;
		left: 10px;
		transition:
			transform 200ms linear,
			opacity 200ms linear;
	}

	.contrast_dark_font #burgerButton::before,
	.contrast_dark_font #burgerButton::after,
	.contrast_dark_font #burgerButtonInner {
		background-color: #000 !important;
	}
	.contrast_light_font #burgerButton::before,
	.contrast_light_font #burgerButton::after,
	.contrast_light_font #burgerButtonInner {
		background-color: #fff !important;
	}

	#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: 4px;
	}

	.navbar-collapse {
		width: calc(100% - 90px);
		max-width: 300px;
		top: 0;
		background: #f4f4f4;
		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 700ms 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 .navbar-nav {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
		gap: 4px;
		padding: 10px;
		background: #f4f4f4;
	}

	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 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 li {
		position: relative;
	}

	nav.horizontally .navbar-nav li:is(.open:focus-within, :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-within) > ul {
		z-index: 1003;
	}
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
	color: #ffffff;
	font-weight: 400;
	text-align: left;
	padding: 10px 15px 15px 15px;
	position: relative;
	font-size: 1.4375rem;
	line-height: 1.2;
	text-decoration: none;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1)) var(--navColor);
	text-shadow: -0.407px 0.914px 2px rgba(0, 0, 0, 0.55);
}

nav.horizontally li[class*="toplevel"] {
	--navColor: #92d050;
}

nav.horizontally li[class*="toplevel"]:nth-child(4n + 2) {
	--navColor: #f93c3c;
}

nav.horizontally li[class*="toplevel"]:nth-child(4n + 3) {
	--navColor: #2e90ea;
}

nav.horizontally li[class*="toplevel"]:nth-child(4n + 4) {
	--navColor: #dec80a;
}

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

@media (min-width: 992px) {
	nav.horizontally a[class*="toplevel"] {
		text-align: center;
		padding: 12px 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) {
	text-decoration: underline;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	background-color: #fff;
	box-shadow: -0.407px 0.914px 10px 0px rgba(0, 0, 0, 0.25);
}

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

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

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

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

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

	nav.horizontally [class*="secondlevel"] > ul::before {
		content: "";
		position: absolute;
		display: block;
		width: 20px;
		top: 0;
		bottom: 0;
		left: -15px;
	}
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #232323;
	font-weight: 400;
	padding: 8px 10px;
	padding-right: 30px;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
	background-image: url(../img/deko-subnav.png);
	background-repeat: no-repeat;
	background-position: center right 8px;
}

@media (max-width: 991px) {
	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-color: #87c644;
	color: #fff;
}

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

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

@media (min-width: 992px) {
	#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: block;
	box-shadow: inset 0px 0px 16px 0px rgba(0, 0, 0, 0.55);
}

.slider-mask.contrast_light_font {
	display: none;
}

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

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

@media (min-width: 992px) {
	main {
		padding-bottom: 60px;
		padding-top: 60px;
	}
}

main .tab {
	background: #fff;
	box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.09);
	color: #232323;
	max-width: 370px;
	margin-inline: auto;
   hyphens: auto;
}

main .tabHeadline {
	background: #87c644;
	color: #fff;
	text-shadow: -0.407px 0.914px 2px rgba(0, 0, 0, 0.55);
	padding: 10px 15px;
}

main .tabContent {
	padding: 10px 15px;
	padding-bottom: 30px;
	font-size: 1.0625rem;
}

main .tab_link_title a {
	color: #232323;
	font-weight: 700;
}

main .tab_link_mandat a {
	color: #232323;
}

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

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

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

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

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

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

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

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

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

footer {
	padding-block: 25px;
	background: #efefef;
	box-shadow: inset 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
}

.innerfooter {
	padding-block: 10px;
	font-size: 1rem;
}

.innerfooter ul {
	padding: 0;
}

.innerfooter li {
	display: block;
}

.innerfooter a {
	color: #282727;
	text-decoration: none;
	font-weight: 400;
	font-size: 1.0625rem;
}

.innerfooter a:is(:hover, :focus) {
	color: #62a917;
}
.innerfooter li + li::before {
	content: "";
	margin-right: 15px;
}

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

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

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

#vernetzt span span {
	display: block;
}
