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

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

body {
	font-family: "Fira Sans", sans-serif;
	font-weight: 400;
	color: #60707b;
	background: #ffffff;
	font-size: clamp(1rem, 2vw, 1.125rem);
	/* 1rem = 16px */
	line-height: 1.5;
	border-top: 25px solid #bcdf41;
}

a {
	color: #407614;
}

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

b,
strong {
	font-weight: 600;
}

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

.gap {
	gap: 30px 0;
}

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



/* #region ------------------------------- contrast + styler ------------------------------------ */
#options {
	position: relative;
	margin-top: -30px;
	z-index: 55;
}
#contrast_style+#style {
    margin-left: clamp(20px, 2vw, 40px);
}

#style,
#contrast_style {
    line-height: 1;
	background-color: #60707b;
	padding: 10px 25px;
	border-radius: 0 0 10px 10px;
}

@media (min-width: 992px) and (max-width: 1199px) {
    #options {
        row-gap: 4px;
    }

    #style,
    #contrast_style {
        display: flex;
        align-items: center;
        column-gap: 5px;
    }
}

:is(#contrast_style, #style) h2 {
    font-size: 15px;
    font-weight: inherit;
    color: #fff;
    margin: 0 5px 5px 5px;
}

:is(#style, #contrast_style) button {
    font-size: 18px;
    padding: 0;
    border: 1px solid #bcdf41;
    color: #191919;
    display: inline-block;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    text-align: center;
    background: #bcdf41;
    position: relative;
    line-height: 1;
}

:is(#style, #contrast_style) button:is(:hover, :focus) {
    background: #407614;
	color: #fff;
}

:is(#style, #contrast_style) button+button {
    margin-left: 2px;
}

#contrast_style button::after {
    content: "";
    display: block;
    position: absolute;
    top: 7px;
    left: 7px;
    right: 7px;
    bottom: 7px;
    border-radius: 50%;
    border: 1px solid #ffffff;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1) 50%, #444444 50%);
}

#contrast_style button:nth-of-type(2)::after {
    transform: scale(-1);
}

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

/* #endregion ---------------------------- contrast + styler ------------------------------------ */

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

.logo {
	display: inline-block;
}

.logo img {
	display: block;
}

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

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

/* burgermenu for tablet */

@media (max-width: 991px) {
	nav.horizontally {
		position: static !important;
		padding: 15px 0;
	}

	#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: #407614;
		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: #bcdf41;
		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: #ffffff;
		padding: 13px 0 30px 0;
		transition: all 0.2s 0s linear;
	}

	.is-sticky nav.horizontally {
		padding: 10px 0;
		box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
	}

	nav.horizontally .navbar-nav {
		background: #bcdf41;
		border-radius: 10px;
		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;
		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: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: #191919;
	font-weight: 600;
	text-align: left;
	padding: 10px 15px 14px 15px;
	position: relative;
	font-size: 1.125rem;
	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: 25px 10px;
		text-align: center;
	}

	nav.horizontally li[class*="toplevel"]:first-child a {
		border-radius: 10px 0 0 10px;
	}

	nav.horizontally li[class*="toplevel"]:last-child a {
		border-radius: 0 10px 10px 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) {
	background: #407614;
	color: #fff;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	background-color: #407614;
	box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.15);
	border-radius: 5px;
}

@media (max-width: 991px) {

	nav.horizontally [class*="toplevel"] ul {
      padding: 10px;
      margin: 10px;
      border: 2px solid #bcdf41;
	}
}

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

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

	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: -25px;
		margin-left: 10px;
	}

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #fff;
	font-weight: 400;
	text-align: center;
	padding: 9px 25px;
	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;
		text-align: left;
	}
}

/* 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: #bcdf41;
	color: #191919;
}

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

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

header > .row {
	row-gap: 30px;
}

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

.slider-wrapper,
.nivo-main-image,
#slider > a > div {
	height: 100% !important;
}

@media (min-width: 768px) {
	#slider,
	#headerpic {
		height: 100% !important;
	}
	.index #headerpic {
		max-height: calc(100% - 75px);
	}
	#slider {
		min-height: clamp(300px, 42vw, 450px);
	}

	body.index #slider {
		min-height: 570px;
	}

	#slider .nivo-directionNav .nivo-prevNav {
		left: auto;
		top: 50px;
		right: 10px;
	}

	#slider .nivo-directionNav .nivo-nextNav {
		left: auto;
		top: 90px;
		right: 10px;
	}

	#headerpic .nivo-controlNav {
		bottom: auto;
		text-align: right;
		top: 10px;
		right: 10px;
	}
}

#headerpic {
	padding: 0;
	overflow: hidden;
	position: relative;
	border-radius: 3px;
	background: #407614;
}

.slider-mask {
	display: none;
}

#headerpic .nivo-directionNav a,
#headerpic .slick-dots * {
	color: #ffffff !important;
}

/* ----------------------------------- headerTab ------------------------------------------- */

#headerTab {
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.05);
	border-radius: 10px;
	height: 100%;
	padding: 40px 30px;
	font-size: 1rem;
}

#headerTab hr {
	background: #d0d7dc;
	height: 1px;
	border: none;
	opacity: 1;
	margin: 35px 0;
}

#headerTab .headerButtons a {
	display: block;
	background: #bcdf41;
	text-align: center;
	border-radius: 10px;
	color: #191919;
	font-weight: 600;
	padding: 15px 20px;
	margin-block: 10px;
}

#headerTab .headerButtons a:is(:hover, :focus) {
	background: #407614;
	color: #ffffff;
	text-decoration: none;
}

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

form[id^="search"] {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

form[id^="search"] label {
	display: block;
	font-weight: 600;
	font-size: 1.125rem;
	margin-bottom: 18px;
	line-height: 1;
	width: 100%;
	color: #191919;
}

form [id^="search_input"] {
	color: #60707b;
	font-size: 0.9375rem;
	font-style: normal;
	padding: 8px 10px 8px 14px;
	border: 0;
	width: calc(100% - 38px);
	background: #ffffff !important;
	border-radius: 10px 0 0 10px;
	border: 1px solid #407614;
	border-right: none;
}

form [id^="search_submit"] {
	width: 38px;
	flex-shrink: 0;
	border: none;
	background: #ffffff url("../img/icon-suche.png") center no-repeat;
	padding: 0;
	cursor: pointer;
	font-size: 0;
	transition: background 150ms linear;
	border-radius: 0 10px 10px 0;
	border: 1px solid #407614;
	border-left: none;
}

form [id^="search_submit"]:is(:hover, :focus) {
	background-color: #e8ecef;
}

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

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

/* #region ----------------------------------- bannerTab ------------------------------------------- */

#bannerTab {
	color: #191919;
	pointer-events: none;
}

#bannerTab .tab {
	background: #bcdf41;
	border-radius: 10px;
	padding: 30px;
	pointer-events: all;
}

#bannerTab :is(h1, h2, h3, h4, h5, h6, a) {
	color: #191919;
}

@media (min-width: 992px) {
	#bannerTab {
		position: absolute;
		top: 30px;
		left: 45px;
		z-index: 20;
	}

	#bannerTab .tab {
		background: rgba(189, 223, 65, 0.9);
	}
}

/* #endregion ----------------------------------- bannerTab ------------------------------------------- */

/* #region ----------------------------------- lowerTabs ------------------------------------------- */

#lowerTabs {
	color: #fff;
	font-size: 1rem;
}

#lowerTabs > .row > * {
	padding: 15px 30px 0 30px;
}

#lowerTabs .tab {
	padding: 45px 30px 30px 30px;
	background: #60707b;
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.05);
	border-radius: 10px;
	position: relative;
	height: 100%;
}

#lowerTabs > .row > * .tab::before {
	content: "";
	position: absolute;
	background-color: #bcdf41;
	border-radius: 100vw;
	width: 58px;
	aspect-ratio: 1;
	top: 0;
	right: 15px;
	transform: translateY(-50%);
	background-repeat: no-repeat;
	background-position: center;
	box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.15);
}

#lowerTabs > .row > *:nth-child(3n + 1) .tab::before {
	background-image: url(../img/icon-standort.png);
}

#lowerTabs > .row > *:nth-child(3n + 2) .tab::before {
	background-image: url(../img/icon-werkstatt.png);
}

#lowerTabs > .row > *:nth-child(3n + 3) .tab::before {
	background-image: url(../img/icon-lernen.png);
}

#lowerTabs :is(h1, h2, h3, h4, h5, h6, a) {
	color: #ffffff;
}

#lowerTabs :is(h1, h2, h3, h4, h5, h6) {
	font-size: 20px;
}

@media (min-width: 992px) {
	#lowerTabs {
		position: absolute;
		left: 15px;
		right: 15px;
		bottom: 0;
		z-index: 20;
	}
}

/* #endregion ----------------------------------- lowerTabs ------------------------------------------- */

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

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

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

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

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

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

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

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

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

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

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

/* ----------------------------------------------- @2f footer ----------------------------------------------- */

#footer > .row {
	padding-top: 30px;
	padding-bottom: 30px;
	border-top: 1px solid #d0d7dc;
}

@media (min-width: 768px) and (max-width: 991px) {
	#footer > .row > * + * {
		margin-top: 30px;
	}
}

@media (max-width: 767px) {
	#footer .row > .col-xs-12:not(:first-child)::before {
		background: #000000;
		content: " ";
		display: block;
		height: 1px;
		margin: 25px 0;
		opacity: 0.2;
		width: 100%;
	}

	#footer .row > .col-xs-12.hidden-xs ~ .col-xs-12::before,
	#footer .row > .col-xs-12.hidden-sm ~ .col-xs-12::before {
		display: none;
	}
}

/* --------------------------------------------- footerTab -------------------------------------------- */

#footerTab {
	font-size: 1rem;
}

/* ----------------------------------------------- scrollTop ----------------------------------------------- */

#scrollTop {
	text-decoration: none;
	color: #191919;
	font-size: 1rem;
	font-weight: 600;
	opacity: 1 !important;
	max-width: fit-content;
	display: inline-block;
	padding: 10px 20px;
	margin: 0 auto 0 auto;
	border-radius: 10px;
	background-color: #d0d7dc;
}

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

#scrollTop:hover,
#scrollTop:focus {
	background-color: #bcdf41;
}

#scrollTop span {
	position: relative;
	display: inline-block;
	font-size: 0;
	height: 35px;
	width: 18px;
	margin-right: 4px;
	transition: border-radius 300ms linear;
}

#scrollTop span::after {
	content: "";
	position: absolute;
	display: inline-block;
	margin-top: -1px;
	left: 0;
	top: 50%;
	width: 7px;
	height: 7px;
	border-radius: 1px;
	border-right: 2px solid #191919;
	border-top: 2px solid #191919;
	transform: rotate(-45deg);
}

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

#f5 {
	padding-top: 12px;
	padding-bottom: 12px;
	background-color: #bcdf41;
	color: #191919;
}

/* --------------------------------------------- innerfooter -------------------------------------------- */

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

#innerfooter ul {
	padding: 0;
}

#innerfooter li {
	display: inline-block;
}

#innerfooter a {
	color: #191919;
	text-decoration: none;
	display: inline-block;
	font-size: 1rem;
}

#innerfooter a:hover,
#innerfooter a:focus {
	color: #191919;
	text-decoration: underline;
}

#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 {
	gap: 12px;
	text-align: right;
	font-size: 0.9375rem;
	color: #191919;
	line-height: 1.3;
	text-decoration: none;
}

#vernetzt span span {
	display: block;
}
