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

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

body {
	font-family: "Open Sans", sans-serif;
	font-weight: 400;
	color: #3f4545;
	background: #ffffff;
	font-size: clamp(1rem, 2vw, 1.125rem);
	line-height: 1.5;
}

a {
	color: #c61818;
}

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

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

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

a:focus-visible,
button:focus-visible,
form:focus-visible,
input:focus-visible {
	outline: 3px solid #ff0000 !important;
}

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

#logo {
	display: flex;
	align-items: center;
	align-content: center;
	gap: 20px;
	text-decoration: none;
	margin: 20px 0 15px 0;
}

#logo .logoImg img {
	display: block;
}

@media (max-width: 991px) {
	#logo .logoImg img {
		max-width: 210px;
		width: 100%;
		padding: 10px;
	}
}

#logo .logoTxt {
	line-height: 1.2;
	font-size: clamp(1rem, 2.5vw, 1.5625rem);
	color: #3f4545;
	font-weight: 400;
	font-family: "Open Sans", sans-serif;
	hyphens: auto;
}

/* ------------------------------------------ search -------------------------------------------- */
/* ----------------------------------------------- search ----------------------------------------------- */

form[id^="search"] {
	background: #27d5ec;
	display: inline-flex;
	border-radius: 4px;
	overflow: hidden;
	max-width: 290px;
}

@media (max-width: 991px) {
	form[id^="search"] {
		width: calc(100% - 30px);
		margin: 20px 15px;
	}
}

@media (min-width: 992px) {
	form#search1 {
		position: relative;
		z-index: 60;
		margin-right: 4px;
	}
}

form[id^="search"] label {
	color: #233261;
	font-size: 0.9375rem;
	font-weight: 600;
	padding: 9px 15px;
	border-right: 1px solid rgba(0, 0, 0, 0.2);
}

form [id^="search_input"] {
	color: #233261;
	font-size: 0.9375rem;
	font-style: normal;
	background: transparent;
	padding: 9px 15px;
	border: 0;
	width: 100%;
}

form [id^="search_submit"] {
	min-width: 40px;
	border: none;
	background: url("../img/lupe-icon.png") center no-repeat;
	padding: 0;
	cursor: pointer;
	font-size: 0;
}

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

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

/* ---------------------------------------- adresszeile ----------------------------------------- */

.adresszeile {
	background: #f5f5f5;
	padding: 10px 0;
	font-size: 0.875rem;
}

.adresszeile a {
	color: #c61818;
	text-decoration: underline;
}

@media (min-width: 991px) {
	#addresszeile {
		position: static !important;
	}
}

@media (min-width: 992px) {
	#adresszeile,
	#adresszeile-sticky-wrapper {
		position: absolute;
		width: 100%;
		top: 0;
		z-index: 100;
		transition: all 300ms ease-in;
	}

	#adresszeile {
		opacity: 0;
		pointer-events: none;
	}

	.is-sticky #adresszeile {
		opacity: 1;
		pointer-events: auto;
	}
}

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

nav.horizontally {
	border-bottom: 5px solid #354d93;
}

/* 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 !important;
		box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
	}

	#burgerButton::before,
	#burgerButton::after,
	#burgerButtonInner {
		background-color: #354d93;
		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: 3px;
	}
}

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally .navbar-nav {
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
	}

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

/* toplevel */

nav.horizontally a[class*="toplevel"] {
	color: #2f333f;
	font-weight: 500;
	text-align: left;
	padding: 12px 15px 16px 15px;
	position: relative;
	font-size: 1.375rem;
	line-height: 1.2;
	text-decoration: none;
	font-family: "Oswald", sans-serif;
}

nav.horizontally a[class*="toplevel"]::after {
	content: "";
	position: absolute;
	width: 100%;
	height: 5px;
	bottom: 0px;
	transition: all 300ms ease;
	background: #445ba1;
	left: 0;
	margin: auto;
	right: 0;
}

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

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

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

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

	.navbar-default .navbar-nav > li > a::after {
		bottom: -5px;
	}
}

/* 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: #526dbe;
	background-color: transparent;
}

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 {
	background: #27d5ec;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	padding: 10px 0;
	background-color: #526dbe;
}

@media (min-width: 992px) {
	nav.horizontally [class*="toplevel"] > ul {
		margin-top: 10px;
		left: 50%;
		transform: translate(-50%);
	}

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

	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::before {
		width: 10px;
		top: 0;
		bottom: 0;
		left: -10px;
	}
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	background-color: transparent;
	color: #ffffff;
	font-weight: 400;
	text-align: left;
	padding: 8px 30px;
	position: relative;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
}

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

@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) {
	color: #27d5ec;
	background-color: #233261;
}

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

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

#slider {
	max-height: clamp(300px, 62vw, 400px);
	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: none;
}

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

.buttonStyle a:not(:is([href*="mailto"], [href*="tel"], li a)),
.tabGalerie a :is(i, em) {
	color: #233261;
	background: #27d5ec;
	font-size: 0.875rem;
	text-transform: uppercase;
	font-weight: 600;
	border-radius: 4px;
	padding: 8px 12px;
	text-decoration: none;
	display: inline-block;
	font-family: "Open Sans", sans-serif;
}

.buttonStyle a:not(:is([href*="mailto"], [href*="tel"], li a)):is(:hover, :focus),
.tabGalerie a :is(i, em):is(:hover, :focus) {
	background: #b0e6ed;
}

:is(#tab, #tab1) .buttonStyle a:not(:is([href*="mailto"], [href*="tel"], li a)) {
	background: #233261;
	color: #27d5ec;
}

:is(#tab, #tab1) .buttonStyle a:not(:is([href*="mailto"], [href*="tel"], li a)):is(:hover, :focus) {
	background: #32488b;
}

#tab1 .buttonStyle a:not(:is([href*="mailto"], [href*="tel"], li a)) {
	margin-top: 30px;
	padding: 8px 15px;
}

.tabGalerie a :is(i, em) {
	font-style: normal;
}

/* #region ------------------------------------- teaser ----------------------------------------- */

#teaser {
	color: #ffffff;
	background: #354d93;
}

#teaser > .row {
	background: #354d93;
   width: 100%;
   max-width: none;
}

@media (min-width: 1600px) {
   #teaser {
      background: transparent;
   }
	#teaser > .row {
		max-width: 1600px;
		width: 100%;
		margin-top: clamp(45px, 4vw, 60px);
	}
}

#teaser a:is([href*="mailto"], [href*="tel"]) {
	color: #fff;
	text-decoration: underline;
}

#teaser a:is(li a) {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.25rem;
}

#teaser a:is(li a):is(:hover, :focus) {
	color: #fff;
	text-decoration: underline;
}

#teaser .tabHeadline {
	color: #ffffff;
	font-size: 1.875rem;
	font-weight: 600;
	margin-bottom: 15px;
	margin-left: -15px;
}

#teaser > .row > * {
	padding: 25px 15px;
}
@media (max-width: 1199px) {
	#teaser > .row > * {
		padding: 25px 50px;
	}
}

#teaser > .row > *:nth-child(2) {
	background: #445ba1;
}
#teaser > .row > *:nth-child(3) {
	background: #4e66af;
}

#teaser > .row > *:nth-child(4) {
	background: #5d72b6;
	color: #fff;
}

#teaser > .row > *:nth-child(4) a {
	color: #fff;
}

#teaser > .row > *:nth-child(4) .tabHeadline {
	color: #fff;
}

@media (min-width: 1200px) {
	#teaser > .row > * {
		padding: 40px 30px 30px 60px;
	}
}

/* #endregion ---------------------------------- teaser ----------------------------------------- */

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

#content {
	text-align: left;
	padding-top: clamp(30px, 5vw, 70px);
	padding-bottom: clamp(40px, 6vw, 90px);
}
/* ------------------------------------------- tab, tab1 ---------------------------------------- */

#tab,
#tab1 {
	padding: clamp(35px, 6vw, 80px) 0;
	color: #233261;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	font-size: clamp(1.25rem, 2vw, 1.375rem);
	background-color: #27d5ec;
}

@media (max-width: 767px) {
	#tab {
		box-shadow: inset 0 0 0 50vw rgba(39, 213, 236, 0.8);
		background-image: none !important;
	}
}

#tab1 {
	background-color: #b8c2df;
	padding: clamp(35px, 6vw, 85px) 0 clamp(35px, 6vw, 60px) 0;
}

#tab {
	font-size: clamp(1.5625rem, 2vw, 1.875rem);
}

#tab ul {
	margin: 0;
	list-style: none;
}

#tab ul > li {
	position: relative;
	padding-left: 0px;
	min-height: 26px;
	transition: color 300ms linear;
}
#tab ul > li::before {
	display: none;
}

#tab ul > li + li {
	margin-top: 8px;
}

#tab ul > li a {
	color: #233261;
	text-decoration: none;
}

#tab ul > li a:is(:hover, :focus) {
	text-decoration: underline;
}

@media (min-width: 992px) {
	:is(#tab, #tab1) > .row:first-child::before {
		content: "";
		position: absolute;
		pointer-events: none;
		display: block;
	}
}

:is(#tab, #tab1) :is(h1, h2, h3, h4, h5, h6) {
	color: #233261;
	font-size: clamp(1.875rem, 4vw, 2.125rem);
}
@media (min-width: 1200px) {
	:is(#tab) :is(h1, h2, h3, h4, h5, h6) {
		padding-right: 40px;
	}
}

#tab1 :is(h1, h2, h3, h4, h5, h6) {
	margin-bottom: 4px;
	text-transform: uppercase;
}

#tab1 {
	font-family: "Oswald", sans-serif;
	font-weight: 500;
	font-size: clamp(1.25rem, 2vw, 1.625rem);
}

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

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

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

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

h3,
.h3,
.legacy_h3 {
	font-size: clamp(1.875rem, 4vw, 2rem);
}

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

h5,
.h5,
.legacy_h5 {
	font-size: clamp(1.625rem, 4vw, 1.75rem);
}

h6,
.h6,
.legacy_h6 {
	font-size: clamp(1.5rem, 4vw, 1.625rem);
}

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

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

footer {
	background: #252525;
}

#footer {
	color: #ffffff;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

@media (min-width: 768px) {
	#footer {
		font-size: 1rem;
	}
}

#footer > .row:nth-child(1) {
	padding-top: 50px;
	padding-bottom: 50px;
}

@media (max-width: 767px) {
	#footer > .row:nth-child(1) > div + div {
		margin-top: 30px;
	}

	#footer > .row:last-child {
		padding-top: 20px;
		padding-bottom: 25px;
	}
}

#footer > .row:nth-child(1) a {
	color: #fff;
	text-decoration: underline;
}

#footer .footerHeadline {
	color: #ffffff;
	font-weight: 500;
	font-size: 1.5625rem;
	line-height: 1;
	margin-bottom: 20px;
}

#footer hr {
	margin: 0;
	height: 2px;
	opacity: 1;
	background: rgba(255, 255, 255, 0.5);
}

#footer .banner {
	position: relative;
	z-index: 1;
}

#footer .banner::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100%;
	width: 100%;
	background: #fff;
	transform: rotate(3deg);
	z-index: -1;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#footer .banner img {
	border: 5px solid #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#innerfooter ul {
	padding: 0;
}

#innerfooter li {
	display: block;
}

#innerfooter a {
	color: #ffffff;
	text-decoration: none;
	position: relative;
	display: inline-block;
	font-weight: 400;
	font-size: 0.9375rem;
	padding: 6px 10px;
}
@media (min-width: 576px) {
	#innerfooter li + li::before {
		content: "•";
		margin: 0 15;
		color: #fff;
	}

	#innerfooter li {
		display: inline-block;
	}
}

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

@media (min-width: 768px) {
	#innerfooter a {
		padding: 36px 10px;
	}
}

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

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

#vernetzt {
	text-align: right;
	font-size: 0.875rem;
	color: #ffffff;
	line-height: 1.4;
	margin: 15px auto 0 auto;
	text-decoration: none;
	font-weight: 400;
}

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

#vernetzt span {
	color: #ffffff;
}

#vernetzt span span {
	display: block;
}

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

#vernetzt :is(b, strong) {
	font-weight: 500;
}

/* --------------------------------------------- Kontrast --------------------------------------- */
.contrast_dark_font #burgerButton::before,
.contrast_dark_font #burgerButton::after,
.contrast_dark_font #burgerButtonInner,
.contrast_light_font .dropdown-toggle-button {
	background-color: #000 !important;
}
.contrast_light_font #burgerButton::before,
.contrast_light_font #burgerButton::after,
.contrast_light_font #burgerButtonInner {
	background-color: #000 !important;
}

.contrast_light_font #logo img {
	background: #fff !important;
}

.contrast_light_font #tab ul > li {
	filter: brightness(1000) !important;
}

.contrast_light_font .buttonStyle a:not(:is([href*="mailto"], [href*="tel"], li a)) {
	border: solid 1px #fff !important;
}

.contrast_light_font .is-sticky #adresszeile {
	border-bottom: solid 1px #fff !important;
}

.contrast_dark_font .buttonStyle a:not(:is([href*="mailto"], [href*="tel"], li a)) {
	border: solid 1px #000 !important;
}

.contrast_dark_font .is-sticky #adresszeile {
	border-bottom: solid 1px #000 !important;
}

.contrast_dark_font #teaser a:is(li a),
.contrast_dark_font #teaser :is(p, b, strong, i, em),
.contrast_dark_font #teaser .tabHeadline {
	background-color: #fff !important;
}

#counter {
	border: 1px solid #fff;
	padding: 10px 15px;
	font-size: 1rem;
}

#counter-l,
#counter-r {
	display: inline-block;
}
