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

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

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

a {
	color: #235da5;
}

#content a,
a:is(:hover, :focus) {
	color: #235da5;
	text-decoration: underline;
}

b,
strong {
	font-weight: 700;
}

#over {
	overflow: clip;
	position: relative;
}

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

#topbar {
	padding: 15px 0;
	border-top: 6px solid #d3dfed;
}

#topbar > .row {
	max-width: 1920px;
	width: 100%;
}

/* LOGO MIT TEXT -------------------------------------------------------- */

.logo {
	display: flex;
	flex-wrap: wrap;
	gap: 15px 15px;
	text-decoration: none !important;
}

.logo .template-page {
	width: auto;
}

.logo .cleaner {
	display: none;
}

.logoText {
	color: #000000;
	font-size: 1.25rem;
	align-content: center;
	line-height: 1.1;
}

.logoText :is(b, strong) {
	display: block;
	font-weight: 700;
	color: #235da5;
}

.logoText :is(i, em) {
	display: block;
	font-style: normal;
	padding-left: 15px;
}

.logoText p + p {
	padding-top: 10px;
}

.logoText br {
	display: none;
}

@media (max-width: 575px) {
	.logoText {
		hyphens: auto;
	}
}

.logo img {
	display: block;
	max-width: 30vw;
}

/* LOGO MIT TEXT -------------------------------------------------------- */

/* #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: #191919;
		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: #ffffff;
		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: 6px;
	}
}

/* menu desktop */

@media (min-width: 992px) {
	#menuBox {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		z-index: 102;
	}

	nav.horizontally {
		position: relative;
		background-color: rgba(255, 255, 255, 0.3);
		transition: all 0.3s 0s linear;
	}

	.is-sticky nav.horizontally {
		background-color: #fff;
		box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
		bottom: unset;
	}

	nav.horizontally .navbar-nav {
		padding: 9px 0;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
	}

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

@media (min-width: 1200px) {
	nav.horizontally > .row {
		max-width: 1920px;
		width: 100%;
	}
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
	color: #191919;
	background: #ecd7a7;
	font-weight: 700;
	text-align: left;
	padding: 12px 15px;
	position: relative;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
	hyphens: auto;
}

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

nav.horizontally li[class*="toplevel"]:nth-child(4n + 3) > a {
	background: #e8bb7f;
}

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

@media (max-width: 991px) {
	nav.horizontally li[class*="toplevel"] {
		border-bottom: 2px solid #ffffff;
	}

	nav.horizontally a[class*="toplevel"].dropdown-toggle {
		padding-right: 35px;
	}
}

@media (min-width: 992px) {
	nav.horizontally li[class*="toplevel"] + li {
		margin-left: 2px;
	}

	nav.horizontally a[class*="toplevel"] {
		padding: 19px 10px;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		height: 100%;
	}
}

/* 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: #e89527;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	background-color: #ffffff;
}

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

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

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

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

	nav.horizontally :is([class*="toplevel"], [class*="secondlevel"]) > ul::before {
		content: "";
		position: absolute;
		display: block;
	}

	nav.horizontally [class*="toplevel"] > ul::before {
		height: 20px;
		left: 0;
		right: 0;
		top: -20px;
	}

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #191919;
	font-weight: 400;
	text-align: left;
	padding: 9px 25px;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
	position: relative;
	hyphens: auto;
}

@media (max-width: 991px) {
	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: 2px solid rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
	nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
		padding: 7px 20px 7px 30px;
	}
}

@media (min-width: 992px) {
	nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
		content: "";
		position: absolute;
		display: block;
		right: 13px;
		top: 13px;
		width: 11px;
		height: 11px;
		border-radius: 100%;
		background: #e89527;
		opacity: 0;
		transition: opacity 300ms linear;
	}
}

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

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within) > a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]) > a:is(:hover, :focus)::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open > a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open > a:is(:hover, :focus)::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"] > a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"] > a:is(:hover, :focus)::before {
	opacity: 1;
}

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

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

#headerpic {
	position: relative;
}

#slider {
	overflow: hidden;
	position: relative;
	/*1920px * 768px*/
	height: 40vw;
	max-height: clamp(400px, 62vw, 650px);
}

body:not(.index) #slider {
	/*1920px * 576px*/
	height: 30vw;
	max-height: clamp(300px, 42vw, 400px);
}

@media (min-width: 992px) {
	#headerpic a.nivo-prevNav {
		left: 65px;
	}

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

@media (max-width: 991px) {
	#slider-onebanner,
	#slider .nivo-box > div,
	#slider .nivo-slice > div,
	#slider .nivo-main-image,
	#slider div[style*="background-size"] {
		background-attachment: unset !important;
		background-size: 100% auto !important;
	}
}

.slider-mask {
	display: none;
}

#bannerTab .tab {
	border-radius: 15px;
	background: rgba(255, 255, 255, 0.8);
	padding: 40px 30px;
	pointer-events: all;
}

#bannerTab .tabHeadline {
	font-size: clamp(1.5rem, 3vw, 2.125rem);
	margin: 0;
}

@media (min-width: 992px) {
	#bannerTab {
		position: absolute;
		bottom: 60px;
		z-index: 20;
		width: 100%;
		pointer-events: none;
	}
}

/* ----------------------------------------------- Tabs ----------------------------------------------- */

#tabs {
	padding-top: clamp(30px, 3vw, 45px);
	position: relative;
	isolation: isolate;
   margin-bottom: clamp(-120px, -8vw, -60px);
}

#tabs>.row>* {
   display: flex;
   flex-direction: column;
   row-gap: 30px;
}

@media (min-width: 1200px) {
	#tabs > .row::after {
		content: "";
		position: absolute;
		pointer-events: none;
		right: -365px;
		top: -15px;
		width: 263px;
		height: 388px;
		background: url("../img/deko-rechts-v2.png") center no-repeat;
	}
}

#tabs .linkBox {
	min-height: 325px;
	color: #191919;
	align-content: end;
	font-size: clamp(1rem, 2vw, 1.25rem);
	font-weight: 700;
	height: 100%;
	hyphens: auto;
	padding: 30px;
	border-radius: 15px;
	overflow: hidden;
	position: relative;
	background: #d3dfed;
	overflow: hidden;
}

#tabs > .row {
	row-gap: 30px;
}

#tabs .rowGap {
	margin-top: 30px;
}

#tabs .linkBox img {
	position: absolute;
	inset: 0;
	object-fit: cover;
	object-position: center;
	height: 100%;
	width: 100%;
	opacity: 0.1;
	transition: opacity 300ms;
}

#tabs .linkBox .template-page > .row,
#tabs .linkBox .template-page > .row > div {
	position: static;
}

#tabs .linkBox:has(a:is(:hover, :focus)) .linkBox img {
	opacity: 0;
}

#tabs .linkBox a {
	color: inherit;
	text-decoration: none;
}

#tabs .linkBox a::after {
	content: "";
	position: absolute;
	inset: -100vw;
}

/* ------------------------------------------------ contentBox ----------------------------------------------- */

body:not(.index) #contentBox {
	text-align: left;
	padding-top: clamp(30px, 5vw, 75px);
	padding-bottom: clamp(30px, 4vw, 55px);
	background-color: #ffffff;
	position: relative;
}

#contentBox > .row {
	row-gap: 30px;
}

@media (min-width: 992px) {
	#contentBox {
		background: #ffffff center bottom / 100% auto no-repeat;
	}
}

@media (min-width: 1200px) {
	.index #contentBox > .row::after {
		content: "";
		position: absolute;
		pointer-events: none;
		left: -365px;
		bottom: 0px;
		width: 247px;
		height: 388px;
		background: url("../img/deko-links-v2.png") center bottom -50px no-repeat;
	}
}

/* ------------------------------------------------ tabsRight ----------------------------------------------- */

#tabs .tab.tabsInhalt {
	font-size: 1rem;
	border-radius: 15px;
	background: #ffffff;
	box-shadow: 0px 0px 8px 0px rgba(43, 43, 43, 0.25);
	min-height: 325px;
}

#tabs .tab.tabsInhalt .tabHeadline {
	margin-bottom: 0;
	text-align: center;
	color: #191919;
	hyphens: auto;
	font-size: 1.5625rem;
	padding: 19px 25px;
	background: #d3dfed;
}

#tabs .tab.tabsInhalt .tabContent {
	padding: 20px;
}

#tabs  .tab.tabsInhalt a {
	text-decoration: underline;
}

/* ----------------------------------------------- @12ev events -------------------------------------------- */

#ev12 {
	font-size: 1rem;
	position: relative;
	border-radius: 15px;
	background: #ffffff;
	box-shadow: 0px 0px 8px 0px rgba(43, 43, 43, 0.25);
	overflow: hidden;
}

#ev12 #clr-events-hide > P:first-of-type {
	display: none;
}

#ev12 .tab_link_title a {
	font-weight: 700;
	color: #235da5;
}

#ev12 .tab_link_mandat a {
	color: #191919;
	font-style: italic;
}

#ev12 .tab_link_mehr {
	font-size: 0;
	text-align: right !important;
	padding: 0 !important;
}

#ev12 .tab_link_mehr a {
	text-decoration: none;
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 700;
	color: #ffffff;
	padding: 5px 15px;
	border-radius: 5px;
	background: #235da5;
}

#ev12 .tab_link_mehr a:hover,
#ev12 .tab_link_mehr a:focus {
	color: #191919;
	background: #95e357;
}

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

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

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

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

h3,
.h3,
.legacy_h3 {
	font-size: 26px;
}

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

/* ----------------------------------------------- breaker ----------------------------------------------- */

#breaker {
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	min-height: 150px;
}

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

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

#f5 {
	font-size: 0.9375rem;
	color: #191919;
	padding-top: 12px;
	padding-bottom: 12px;
	background-color: #d3dfed;
}

#f5 > .row {
	row-gap: 12px;
}

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

#innerfooter ul {
	padding: 0;
}

#innerfooter li {
	display: inline-block;
}

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

#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 clamp(15px, 2vw, 22px);
	}
}

@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.875rem;
	color: #191919;
	line-height: 1.3;
	text-decoration: none;
}

#vernetzt span span {
	display: block;
}
