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

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

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

a {
	color: #5b7c13;
}

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

#content a,
b,
strong {
	font-weight: 600;
}

#overflow {
	overflow: hidden;
}

/* --------------------------------------------- Topbar ------------------------------------------- */

#topbar {
	z-index: 2;
	position: relative;
	padding: 5px 0;
}


#google_translate_element {
   padding: 0 15px;
}

@media (max-width: 991px) {
	#google_translate_element {
		margin-top: 30px;
	}
}



.phone {
	color: #252525;
	padding-left: 32px;
	font-size: 1rem;
	font-weight: 600;
	position: relative;
}

.phone::before {
	content: '';
    display: block;
    position: absolute;
    top: 50%;
	transform: translateY(-50%);
    left: 0;
	width: 26px;
    height: 26px;
    background: url('../img/icon-telefon.png');
}

.mail a {
	color: #fff;
	background: #5b7c13;
	display: inline-block;
	text-align: center;
	padding: 8px 25px;
	font-family: "Oswald", sans-serif;
	font-weight: 500;
	text-transform: uppercase;
	text-shadow: none;
	backface-visibility: hidden;
	font-size: 1rem;
	text-decoration: none;
	transition: background 150ms linear;
	border-radius: 0 15px;
	position: relative;
}
.mail a + a {
	margin-left: 30px;
}
.mail a::after {
	content: "";
	position: absolute;
	inset: 0;
	outline: 2px solid #5b7c13;
	outline-offset: -1px;
	transform: translate(6px, 6px);
	border-radius: 0 15px;
	transition: transform 150ms linear, color 150ms linear;
	pointer-events: none;
	z-index: -1;
}

.mail a:is(:hover, :focus) {
	background: #5b7c13;
}

.mail a:is(:hover, :focus)::after {
	transform: translate(10px, 10px);
	outline-color: #5b7c13;
}
/* --------------------------------------------- logo ------------------------------------------- */

#logo {
	color: #fff;
	display: inline-block;
	width: 100%;
}

#logo img {
	display: block;
}

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

/* --------------------------------------------- Schriftgröße ------------------------------------------- */

@media (min-width: 992px) {
	#style button {
		border: none;
		color: #252525;
		display: inline-block;
		width: 1.875rem;
		height: 1.875rem;
		font-weight: 400;
		text-align: center;
		background-color: #e7e4e4;
		position: relative;
		line-height: 1;
		font-family: "Oswald", sans-serif;
		font-weight: 500;
		font-size: 1rem;
	}
	#style {
		position: relative;
      padding: 0 15px;
	}
	#style::after {
		content: "";
		position: absolute;
		right: -15px;
		background: #5b7c13;
		width: 2px;
		height: 60px;
		top: 50%;
		transform: translateY(-50%);
	}
	#style button + button {
		margin-left: 8px;
	}
	#style button:hover {
		background: #5b7c13;
		color: #fff;
	}
	#style button:focus-visible {
		outline: 2px auto;
	}
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
	nav.horizontally {
		background: #5b7c13;
	}

	#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: #5b7c13;
		color: #fff;
		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: #5b7c13;
		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 {
		padding: 0;
		max-width: 1930px;
		width: 100%;
		transition: 300ms linear background;
		position: relative;
	}
	nav.horizontally>.row {
      background: #5b7c13;
	}
	nav.horizontally::before,
	nav.horizontally::after {
		content: "";
		position: absolute;
		width: 100vw;
		height: 100%;
		inset: 0;
		background: #5b7c13;
		z-index: -1;
		opacity: 0;
		transition: 300ms linear opacity;
	}
	nav.horizontally::before {
		right: auto;
		transform: translateX(-100%);
	}
	nav.horizontally::after {
		left: auto;
		transform: translateX(100%);
	}

	.is-sticky nav.horizontally {
		background: #5b7c13;
		left: 50%;
		transform: translateX(-50%);
	}
	.is-sticky nav.horizontally::before,
	.is-sticky nav.horizontally::after {
		opacity: 1;
	}

	nav > .row {
		padding: 0 35px;
	}

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

	nav.horizontally .navbar-nav ul {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 1000;
		display: block !important;
		pointer-events: none;
		opacity: 0;
		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: #ffffff;
	text-align: left;
	padding: 12px 15px;
	position: relative;
	font-family: "Oswald", sans-serif;
	font-weight: 500;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
}

@media (min-width: 992px) {
	nav.horizontally a[class*="toplevel"] {
		padding: 30px 6px;
		text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
	}
}

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

@media (min-width: 992px) {
	nav.horizontally a[class*="toplevel"]::before {
		bottom: unset;
		top: 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) {
	color: #ffffff;
	background-color: transparent;
}

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 {
	padding: 15px 0;
	margin: 0;
	background-color: #ffffff;
}

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

@media (min-width: 992px) {
	nav.horizontally [class*="toplevel"] ul {
		box-shadow: 0 20px 12px -8px rgba(0, 0, 0, 0.12);
	}

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

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

	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: #252525;
	text-align: center;
	padding: 10px 25px;
	font-size: 0.9375rem;
	line-height: 1.2;
	text-decoration: none;
	font-weight: 300;
}

@media (max-width: 991px) {
	nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
		text-align: left;
		padding: 10px 15px;
	}

	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: #5b7c13;
	color: #fff;
}

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

/* #region -------------------------------------- header ---------------------------------------- */

header {
	background-position: center;
	background-size: cover;
	position: relative;
	background-color: #fff;
}
header::before {
	content: "";
	inset: 0;
	position: absolute;
	background: url(../img/wave2.png), url(../img/kreis-header-1.png), url(../img/kreis-header-2.png), linear-gradient(0deg, #fafafa 30px, rgba(250, 250, 250, 0) 30px);
	background-size: 100% auto, auto, auto;
	background-position: top center, top right, bottom left, bottom center;
	background-repeat: no-repeat;
	z-index: 1;
}
#headerWrap {
	z-index: 200;
	box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.2);
	background: rgba(91, 124, 19, 0);
}

@media (max-width: 991px) {
	#headerWrap {
		background: rgba(255, 255, 255, 0.5);
	}
}

#headerpic {
	margin: 60px 0 60px 0;
}

@media (max-width: 767px) {
	#headerpic {
		margin-top: 0;
	}
}

#headerpic > .row {
	margin: 0;
}

/* header text */

#header-text {
	padding: 50px 50px 60px 50px;
	position: relative;
	text-transform: uppercase;
}

#header-text::before {
	content: "";
	display: block;
	max-width: 100%;
	background: url(../img/herz.png);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	width: 306px;
	height: 52px;
	margin: 0 auto;
	margin-bottom: 40px;
}

#header-text h2 {
	font-size: clamp(1.125rem, 6vw, 2.625rem);
}

body:not(.index) #header-text p {
	display: none;
}

/* #endregion ----------------------------------- header ---------------------------------------- */

/* #region -------------------------------------- banner ---------------------------------------- */

#slider {
	height: 100vw;
	max-height: 200px;
	position: relative;
   background: #fff;
}

body.index #slider {
	max-height: 388px;
}

@media (min-width: 992px) {
	#slider {
		max-height: 300px;
	}

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

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

#slider {
	animation: initBoxShadow 1s forwards;
}

@keyframes initBoxShadow {
	0% {
		box-shadow: 0 0 rgba(255, 255, 255, 0);
	}

	100% {
		box-shadow: -30px -30px #5b7c13;
	}
}

.slider-wrapper {
	position: relative;
	z-index: 1;
	height: auto !important;
}

#headerBanner {
	padding: 0 50px 0 15px;
}

@media (max-width: 991px) {
	#headerBanner {
		padding: 0 50px;
	}
}

.slider-wrapper::after {
	content: "";
	display: block;
	position: absolute;
	z-index: -1;
	top: 30px;
	left: 30px;
	right: 0;
	bottom: 0;
	border: 2px solid #5b7c13;
	animation: initBorderRight 1s forwards;
}

@keyframes initBorderRight {
	0% {
		right: 0;
		bottom: 0;
	}

	100% {
		right: -30px;
		bottom: -30px;
	}
}

#slider,
.slider-wrapper::after {
	border-radius: 0 100px;
}

.slider-mask {
	display: none;
}

#headerpic .nivo-main-image {
	min-height: 100% !important;
}

/* #endregion ------------------------------------ banner --------------------------------------- */

/* #region ------------------------------------ teaser1 ----------------------------------------- */

#teaser1 {
	color: #252525;
	padding: 0 50px;
	position: relative;
}

#teaser1-position {
	margin-bottom: 60px;
	width: 100%;
}

#teaser1 .tab {
	background: #fff;
	box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
	height: 100%;
	padding: 40px 30px;
	position: relative;
	overflow: hidden;
}

#teaser1 a {
	font-weight: 400;
  position: absolute;
  width: 200%;
  height: 200%;
  display: block;
  font-size: 0;
  left: -50%;
  top: -70%;
}

#teaser1 > .row {
	row-gap: 15px;
}

@media (min-width: 992px) {
	#teaser1-position {
		margin: 0;
		margin-bottom: -150px;
		position: relative;
	}
	body.index header {
		margin-bottom: 150px;
	}

	#teaser1 .tab {
		padding: 40px 30px 40px 130px;
	}

	#teaser1 .tabHeadline {
		position: relative;
	}

	#teaser1 .tabHeadline::before {
		content: url(../img/icon-check-01.png);
		position: absolute;
		top: 50%;
		left: -30px;
		transform: translate(-100%, -50%);
	}
}

/* #endregion --------------------------------- teaser1 ----------------------------------------- */

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

#content {
	text-align: left;
	padding-bottom: clamp(40px, 7vw, 90px);
	padding-top: clamp(40px, 6vw, 50px);
}

@media (min-width: 992px) {
	#content {
		position: relative;
		z-index: 70;
	}
}

/* #region -------------------------------------- f-tab ----------------------------------------- */

.f-tab {
	position: relative;
	z-index: 1;
}

.f-tab-tab {
	position: relative;
	padding: clamp(40px, 8vw, 50px) 50px clamp(50px, 8vw, 50px) 50px;
	background: #5b7c13;
	isolation: isolate;
}

.f-tab-tab:is(:hover, :focus-within)::before {
	opacity: 1;
	top: -30px;
	right: -30px;
	bottom: -30px;
	left: -30px;
}

.f-tab-tab,
.f-tab-tab :is(h1, h2, h3, h4, h5, h6, a) {
	color: #ffffff;
}
.f-tab-tab :is(i, em) {
	font-size: clamp(1.125rem, 2vw, 1.375rem);
	font-weight: 600;
	font-style: normal;
}
.f-tab-tab1 {
	margin-top: clamp(15px, 8vw, 50px);
}

@media (min-width: 992px) {
	.f-tab-tab1 {
		background: #5b7c13 url(../img/jobsuche-grafik.jpg);
		background-position: bottom right;
		background-repeat: no-repeat;
	}
}

.f-tab-tab2 {
	margin-bottom: clamp(30px, 8vw, 55px);
}

.f-tab-tab2 h2 {
   text-transform: uppercase;
}

@media (min-width: 1200px) {
	.f-tab-tab2 {
		background: #5b7c13 url(../img/gruppe.jpg);
		background-position: bottom left;
		background-repeat: no-repeat;
	}
}

/* #endregion ----------------------------------- f-tab ----------------------------------------- */

/* -------------------------------------------- buttons ----------------------------------------- */

.button-style a {
	color: #252525;
	background: #e7e4e4;
	display: inline-block;
	text-align: center;
	padding: 8px 45px;
	margin-top: 25px;
	font-family: "Oswald", sans-serif;
	font-weight: 500;
	text-transform: uppercase;
	text-shadow: none;
	backface-visibility: hidden;
	font-size: 1rem;
	text-decoration: none;
	transition: background 150ms linear;
	border-radius: 0 15px;
	position: relative;
}
.button-style a + a {
	margin-left: 30px;
}
.button-style a::after {
	content: "";
	position: absolute;
	inset: 0;
	outline: 2px solid #e7e4e4;
	outline-offset: -1px;
	transform: translate(6px, 6px);
	border-radius: 0 15px;
	transition: transform 150ms linear, color 150ms linear;
	pointer-events: none;
	z-index: -1;
}

.button-style a:is(:hover, :focus) {
	background: #fff;
}

.button-style a:is(:hover, :focus)::after {
	transform: translate(10px, 10px);
	outline-color: #fff;
}

.f-tab-tab2 a {
   padding-left: 20px;
   padding-right: 20px;
}
/* -------------------------------------- h1 - h6, newslink ------------------------------------- */

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

h2,
h4,
h6 {
	color: #5b7c13;
}

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

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

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

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
	font-size: 1.625rem;
}

h5,
.h5,
.legacy_h5 {
	font-size: 1.5rem;
}

h6,
.h6,
.legacy_h6 {
	font-size: 1.375rem;
}

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

footer {
	background: #ffffff;
	position: relative;
}
footer::before {
	content: "";
	display: block;
	width: 100%;
	background: url(../img/wave-footer.png);
	height: 15vw;
	max-height: 289px;
	background-size: 100% auto;
	background-position: bottom center;
	position: absolute;
	top: 0;
	transform: translateY(-100%);
	background-repeat: no-repeat;
}

body:not(.index) footer {
	margin-top: 200px;
}

@media (max-width: 1600px) {
	footer {
		padding-top: 20px;
	}
}

@media (max-width: 1199px) {
	footer {
		padding-top: 50px;
	}
}

footer :is(h1, h2, h3, h4, h5, h6, a) {
	color: inherit;
}

#footer {
	font-size: 1rem;
}

@media (min-width: 992px) {
	#footer > .row {
		padding: 0px 50px;
	}
}

#footer hr {
	margin: 50px -50px 15px -50px;
	background: #5b7c13;
	height: 2px;
	opacity: 1;
	border: none;
}

#footer :is(h1, h2, h3, h4, h5, h6) {
	font-size: 1.375rem;
	font-weight: 400;
	margin-bottom: clamp(15px, 2vw, 25px);
	color: #5b7c13;
}

#footer a {
	text-decoration: underline;
}

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

@media (max-width: 767px) {
	#maps {
		margin-bottom: 30px;
	}
}

/* ----------------------------------------------- @5f footer ----------------------------------------------- */

#f5 {
	margin-bottom: 15px;
}
@media (min-width: 768px) {
	#f5 {
		background-position: center;
		background-repeat: no-repeat;
	}
}
/* --------------------------------------------- innerfooter -------------------------------------------- */

@media (max-width: 767px) {
	#innerfooter {
		border-top: 1px solid rgba(0, 0, 0, 0.1);
		padding-top: 15px;
		margin-top: 15px;
	}
}

#innerfooter ul {
	padding: 0;
}

#innerfooter li {
	display: inline-block;
}

#innerfooter a {
	color: #252525;
	text-decoration: none;
	display: inline-block;
	font-size: 1rem;
	font-weight: 500;
	font-family: "Oswald", sans-serif;
}

#innerfooter a:hover,
#innerfooter a:focus {
	color: #5b7c13;
	text-decoration: none;
}

#innerfooter li + li::before {
	content: "";
	margin: 0 6px;
}

@media (min-width: 992px) {
	#innerfooter li + li::before {
		margin: 0 15px;
	}
}

@media (max-width: 767px) {
	#innerfooter li {
		display: block;
		text-align: center;
		padding: 5px;
		margin: 0;
	}

	#innerfooter li + li::before {
		display: none;
	}
}

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

#vernetzt {
	text-align: left;
	font-size: 0.875rem;
	color: #252525;
	line-height: 1.3;
	margin: 0 auto;
	text-decoration: none;
}

@media (min-width: 768px) {
	#vernetzt {
		margin: 0;
	}
}

#vernetzt span {
	color: #252525;
}

#vernetzt span span {
	display: block;
}

#vernetzt img {
	margin-right: 12px;
}
