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

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

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

a {
	color: #3374a3;
}

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

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

#logo {
	display: inline-block;
}

@media (min-width: 1400px) {
	#logo {
		margin-bottom: -26px;
		position: absolute;
		transform-origin: top left;
		transition-property: scale, background, padding;
		transition-duration: 200ms;
		scale: 1;
	}

	.is-sticky #logo {
		scale: 0.6;
		background: #fff;
		padding: 10px;
		box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
	}
}

#logo img {
	display: block;
}

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

/* #region ---------------------------------- navigation ---------------------------------------- */
nav.horizontally {
	padding: 30px 0;
	transition: padding 0.3s;
}

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

/* 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: #3374a3;
		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: 4px;
	}

	.dropdown-toggle-button-wrapper2 {
		top: 3px;
	}
}

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



/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally .navbar-nav {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
		padding: 20px 0;
		transition: padding 0.3s;
	}

	.is-sticky .horizontally .navbar-nav {
		padding: 10px 0;
	}

	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.open > ul {
		pointer-events: none !important;
		opacity: 0 !important;
		visibility: hidden;
	}

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

@media (min-width: 1700px) {
	nav.horizontally,
	.sticky-wrapper {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		z-index: 54;
	}
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
	color: #262626;
	font-weight: 400;
	text-align: center;
	padding: 10px 35px;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	letter-spacing: 1px;
}

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

nav.horizontally a[class*="toplevel"]::before,
nav.horizontally a[class*="toplevel"]::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	scale: 0;
	opacity: 0;
	transition: opacity 300ms, scale 300ms;
}

nav.horizontally a[class*="toplevel"]::before {
	top: 0;
	left: 0;
	border-top: 2px solid #3374a3;
	border-left: 2px solid #3374a3;
	transform-origin: bottom right;
}

nav.horizontally a[class*="toplevel"]::after {
	bottom: 0;
	right: 0;
	border-bottom: 2px solid #3374a3;
	border-right: 2px solid #3374a3;
	transform-origin: top left;
}

@media (max-width: 991px) {
	nav.horizontally a[class*="toplevel"]::before {
		left: -8px;
	}
	nav.horizontally a[class*="toplevel"]::after {
		right: -8px;
	}
}

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

	nav.horizontally a[class*="toplevel"] {
		padding: 8px 10px;
	}
}

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

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,
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 {
	opacity: 1;
	scale: 1;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	padding: 20px 0;
	background-color: #ffffff;
	box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.12);
}

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

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

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

	nav.horizontally [class*="toplevel"] > ul::after {
		top: -10px;
		left: calc(50% - 14px);
		width: 28px;
		height: 12px;
		clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
		background: #ffffff;
	}

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #262626;
	font-weight: 400;
	text-align: center;
	padding: 9px 35px;
	font-size: 0.9375rem;
	line-height: 1.2;
	text-decoration: none;
}

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

/* 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: transparent;
	color: #3374a3;
}

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

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

#slider {
	max-height: clamp(300px, 58vw, 450px);
	position: relative;
}

@media (min-width: 992px) {
	body.index #slider {
		max-height: clamp(300px, 70vw, 720px);
	}

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

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

#headerpic {
	padding: 0;
	overflow: hidden;
	position: relative;
}

@media (min-width: 768px) {
	#bannerOverlay {
		position: absolute;
		right: 0;
		bottom: 40px;
		left: 0;
		z-index: 53;
		pointer-events: none;
	}
}

#slogan {
	padding: 20px 0 10px 0;
	text-transform: uppercase;
	line-height: 1.2;
	pointer-events: auto;
}

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

#slogan p {
	background: rgba(255, 255, 255, 0.75);
	display: inline-block;
	padding: 10px 0;
	font-size: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 768px) {
	#slogan p {
		padding: 6px 20px;
	}
}

#slogan :is(h1, h2, h3, h4, h5, h6) {
	background: rgba(255, 255, 255, 0.9);
	border-bottom: 4px solid #f5d57e;
	font-size: clamp(25px, 4vw, 4rem);
	padding: 10px 0;
	margin: 0;
	display: inline-block;
	width: auto;
	font-weight: 400;
	text-transform: none;
   margin-right: 30px;
}

@media (min-width: 768px) {
	#slogan :is(h1, h2, h3, h4, h5, h6) {
		padding: 10px 20px;
	}
}

#slogan :is(h1, h2, h3, h4, h5, h6) :is(em, i) {
	font-style: normal;
	font-size: clamp(1.5625rem, 7vw, 8.125rem);
	line-height: 0;
}

#sloganLinks {
	pointer-events: auto;
}

#sloganLinks a,
.buttonStyle a {
	line-height: 1;
	display: inline-block;
	font-size: 1rem;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #ffffff;
	background: #c03134;
	border-bottom: 2px solid #c03134;
	padding: 10px 35px 10px 15px;
	position: relative;
	margin-top: 15px;
	transition: border 300ms;
}

#sloganLinks a + a,
.buttonStyle a + a {
	margin-left: 20px;
}

@media (max-width: 575px) {
	#sloganLinks a + a {
	margin-left: 0px;
}
}

#sloganLinks a:is(:hover, :focus),
.buttonStyle a:is(:hover, :focus) {
	border-bottom: 2px solid #f5d57e;
}

#sloganLinks a::after,
#sloganLinks a::before,
.buttonStyle a::after,
.buttonStyle a::before {
	content: "";
	position: absolute;
	right: 15px;
	top: 50%;
}

#sloganLinks a::after,
.buttonStyle a::after {
	margin-top: -5px;
	display: inline-block;
	width: 6px;
	height: 6px;
	border-top: 2px solid #ffffff;
	border-right: 2px solid #ffffff;
	transform: rotate(45deg);
}

#sloganLinks a::before,
.buttonStyle a::before {
	margin-top: -2px;
	display: inline-block;
	height: 2px;
	background: #ffffff;
	width: 9px;
}

.slider-wrapper,
#slider {
	height: 100%;
}

.slider-mask {
	display: none;
}

@media (min-width: 768px) {
	.slider-mask {
		display: block;
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 200px, rgba(255, 255, 255, 0) 400px), linear-gradient(180deg, rgba(255, 255, 255, 0.8) 6%, rgba(255, 255, 255, 0) 30%);
	}
}

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

/* #region --------------------------------- scroll bottom -------------------------------------- */

#scrollBottom a {
	position: relative;
	font-size: 0;
	display: block;
	width: 30px;
	height: 30px;
	margin: clamp(50px, 7vw, 70px) auto 10px auto;
	text-align: center;
	background-color: rgba(88, 120, 141, 0.5);
	border: 2px solid #fff;
	pointer-events: auto;
	animation: bounceAni 2s infinite 2s;
	transition: all 0.2s ease-in;
}

#scrollBottom a:is(:hover, :focus) {
	background-color: #3374a3;
	animation-play-state: paused;
}

#scrollBottom a::after,
#scrollBottom a::before {
	position: absolute;
	content: "";
}

#scrollBottom a::after {
	left: 8px;
	top: 9px;
	width: 8px;
	height: 8px;
	display: inline-block;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(-45deg);
	transition: border 300ms linear;
}

#scrollBottom a::before {
	left: 12px;
	top: 7px;
	width: 2px;
	height: 12px;
	background-color: #fff;
}

@keyframes bounceAni {
	0%,
	100%,
	20%,
	50%,
	80% {
		transform: translateY(0);
	}

	40% {
		transform: translateY(-10px);
	}

	60% {
		transform: translateY(-5px);
	}
}

/* #endregion ------------------------------ scroll bottom -------------------------------------- */

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

#content {
	text-align: left;
	padding-bottom: clamp(30px, 4vw, 70px);
	padding-top: clamp(30px, 4vw, 70px);
}

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

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

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

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

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

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

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

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

/* ----------------------------------------------- @1nw news -------------------------------------------- */

#nw1 > .row {
	gap: 30px 0;
}

#nw1 {
	padding-top: 30px;
	padding-bottom: 30px;
}

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

#nw1 .tab_link,
#nw1 .tab_link > div {
	height: 100%;
	min-height: 100%;
}

#nw1 .tab_link_entries {
	display: grid;
	gap: 30px;
}

@media (min-width: 576px) {
	#nw1 .tab_link_entries {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 768px) {
	#nw1 .tab_link_entries {
		grid-template-columns: repeat(3, 1fr);
	}
}

#nw1 .tab_link_entry {
	font-size: 1rem;
	position: relative;
	width: 100%;
	border-radius: 3px;
	padding: 200px 30px 30px 30px;
	background: #ffffff;
	box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.2);
}

#nw1 .vorschau {
	opacity: 1;
}

#nw1 .tab_preview_picture {
	background: #ffffff;
}

#nw1 .tab_link_entry::before,
#nw1 .tab_link_entry .tab_preview_picture {
	position: absolute;
	display: block;
	top: -1px;
	left: -1px;
	right: -1px;
	height: 170px;
	overflow: hidden;
	border-radius: 3px 3px 0 0;
}

#nw1 .tab_link_entry::before {
	content: "";
	background: center / cover no-repeat, #262626;
}

#nw1 .tab_preview_picture img {
	position: absolute;
	margin: 0 !important;
	left: 50%;
	top: 50%;
	max-width: none;
	min-width: 100%;
	min-height: 100%;
	max-width: 350px;
	width: auto;
	height: auto;
	-ms-interpolation-mode: bicubic;
	transform: translateX(-50%) translateY(-50%);
}

#nw1 .tab_date {
	display: inline-block;
	position: absolute;
	z-index: 1;
	left: -1px;
	top: 155px;
	color: #ffffff;
	font-size: 0.75rem;
	padding: 6px 20px;
	background: #3374a3;
	border-radius: 0 3px 3px 0;
}

#nw1 .tab_link_title a {
	display: block;
	font-weight: 700;
	font-size: 1.125rem;
	color: #3374a3;
	line-height: 1.2;
	margin-bottom: 8px;
}

#nw1 .tab_link_entries + div,
#nw1 .tab_link_entries .tab_spacer {
	display: none;
}
#nw1 .tab_link_entry .tab_link_mehr {
	font-size: 0;
}
#nw1 .tab_link_entry .tab_link_mehr a {
	font-size: 1rem;
	font-weight: 700;
	font-style: italic;
	color: #c03134;
}
#nw1 .tab_link_entry .tab_link_mehr a::after {
	content: " »";
}

/* ---------------------------------------------- tabs ------------------------------------------ */

#kontakt {
	background-color: #262626;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

#kontakt .tab {
	padding: 60px clamp(40px, 6vw, 80px);
	color: #ffffff;
	background: rgba(51, 116, 163, 0.9);
}

#kontakt .tabHeadline {
	color: #ffffff;
	margin: 0 0 10px 0;
	font-weight: 400;
	font-size: 1.5625rem;
	text-transform: uppercase;
}

#kontakt .tabHeadline::after {
	content: "";
	display: block;
	height: 3px;
	width: 160px;
	background-color: #bcc8d1;
	margin: 10px auto 15px auto;
}

@media (min-width: 768px) {
	#kontakt .tabHeadline::after {
		margin-left: auto;
		margin-right: 0;
	}
}

#kontakt a {
	color: #ffffff;
	text-decoration: underline;
}

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

#footer {
	background-color: #ffffff;
	padding: clamp(30px, 4vw, 60px) 0;
	color: #262626;
}

#innerfooter ul {
	padding: 0;
}

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

	#innerfooter li + li {
		margin-left: clamp(20px, 3vw, 40px);
	}
}

@media (max-width: 991px) {
	#innerfooter {
		border-bottom: 1px solid #9faeba;
		margin-bottom: 20px;
		padding-bottom: 15px;
	}
}

#innerfooter a {
	color: #262626;
	text-decoration: none;
	display: inline-block;
	position: relative;
	padding: 8px 10px;
}

#innerfooter a::before,
#innerfooter a::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	scale: 0;
	opacity: 0;
	transition: opacity 300ms, scale 300ms;
}

#innerfooter a::before {
	top: 0;
	left: 0;
	border-top: 2px solid #3374a3;
	border-left: 2px solid #3374a3;
	transform-origin: bottom right;
}

#innerfooter a::after {
	bottom: 0;
	right: 0;
	border-bottom: 2px solid #3374a3;
	border-right: 2px solid #3374a3;
	transform-origin: top left;
}

#innerfooter a:is(:hover, :focus) {
	color: #3374a3;
}

#innerfooter a:is(:hover, :focus)::before,
#innerfooter a:is(:hover, :focus)::after {
	opacity: 1;
	scale: 1;
}

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

#vernetzt {
	gap: 12px;
	text-align: right;
	font-size: 1rem;
	color: #262626;
	line-height: 1.3;
	text-decoration: none;
}

#vernetzt span span {
	display: block;
}
