@import url("https://fonts.verwaltungsportal.de/import/?family=Merriweather+Sans:400,600,400,600i%7CPatua+One:400");

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

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

a {
	color: #2b7192;
}

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

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

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

form[id^="search"] {
	background: #e5eff2;
	display: inline-flex;
	border-radius: 2px;
	width: 100%;
}

@media (min-width: 992px) {
	form[id^="search"] {
		max-width: 246px;
	}
}

form [id^="search_input"] {
	color: #2a2a2a;
	font-size: 0.875rem;
	font-style: normal !important;
	background: transparent;
	border: 0;
	width: 100%;
	padding: 8px 14px;
}

form [id^="search_submit"] {
	border: none;
	background: url("../img/lupe-icon.png") center / 16px auto no-repeat;
	padding: 0;
	cursor: pointer;
	margin: 0;
	font-size: 0;
	min-width: 48px;
	flex-shrink: 0;
	transition: transform 100ms linear;
}

form [id^="search_submit"]:is(:hover, :focus) {
	transform: scale(1.4);
}

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

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

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

nav.horizontally {
	background: #2b7192;
	color: #fff;
	box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
}

/* burgermenu for tablet */

@media (max-width: 991px) {
	nav.horizontally {
		padding: 20px 0;
	}

	#burgerButton {
		font-size: 0;
		border: none !important;
		display: block;
		height: 50px;
		width: 60px;
		border-radius: 2px;
		padding: 6px 8px;
		cursor: pointer;
		background-color: #2b7192;
		box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
	}

	#burgerButton::before,
	#burgerButton::after,
	#burgerButtonInner {
		background-color: #fff;
		border-radius: 2px;
		position: absolute;
		width: 40px;
		height: 3px;
		left: 10px;
		transition:
			transform 200ms linear,
			opacity 200ms linear;
	}

	.contrast_dark_font #burgerButton::before,
	.contrast_dark_font #burgerButton::after,
	.contrast_dark_font #burgerButtonInner {
		background-color: #000 !important;
	}
	.contrast_light_font #burgerButton::before,
	.contrast_light_font #burgerButton::after,
	.contrast_light_font #burgerButtonInner {
		background-color: #fff !important;
	}

	#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: #2b7192;
		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,
	.dropdown-toggle-button-wrapper2 {
		color: #2a2a2a;
	}

	.dropdown-toggle-button-wrapper {
		top: 7px;
	}

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

/* menu desktop */

@media (min-width: 992px) {
	.is-sticky nav.horizontally {
		left: auto !important;
	}

	nav.horizontally .navbar-nav {
		display: flex;
		gap: 2px;
		align-items: start;
		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;
	}

	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;
	font-weight: 400;
	text-align: left;
	padding: 12px 15px;
	position: relative;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
}

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

@media (min-width: 992px) {
	nav.horizontally a[class*="toplevel"] {
		text-align: center;
		padding: 24px 15px;
	}
}

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

/* 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 {
	width: 100%;
	opacity: 1;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	background-color: #e5eff2;
	box-shadow: 0 3px 12px 0 rgba(68, 84, 64, 0.15);
}

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

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

	nav.horizontally [class*="toplevel"] > ul {
		left: 50%;
		transform: translate(-50%, 0);
	}

	nav.horizontally [class*="toplevel"] > ul:after {
		content: "";
		display: block;
		position: absolute;
		left: calc(50% - 20px);
		top: 0;
		width: 40px;
		height: 20px;
		clip-path: polygon(100% 0, 0 0, 50% 100%);
		background: #2b7192;
		transition: top 150ms linear;
	}

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

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

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

	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: #2b7192;
	color: #fff;
}

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

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

#logobar {
	background: #e5eff2;
	min-height: 50px;
}

#logo {
	display: inline-block;
	text-decoration: none;
	line-height: 1;
	background: #e5eff2;
   	width: fit-content;
	padding: 0px 0;
	margin: 0;
}

@media (max-width: 991px) {
	#logo {
		font-size: clamp(1.5rem, 4vw, 1.875rem);
	}
}

@media (min-width: 992px) {
	#logo {
		padding: 0px 100px;
		margin: 0 -40px;
		position: absolute;
		z-index: 30;
		top: 0;
		left: -45px;
		clip-path: polygon(0 0, 100% 0, calc(100% - 90px) 100%, 90px 100%);
	}
}

#logo img {
	display: block;
}

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

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

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

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

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

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

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

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

.slider-mask {
	display: none;
}



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

#slogan {
    padding: 10px 0 10px 0;
    color: #2b7192;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.2;
    pointer-events: auto;
	font-family: "Patua One", serif;
	display: block;
	  background: #e7f1f4;
	
}
#slogan p :is(i,em) {
	text-align: right !important;
	font-style: normal;
}

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

#slogan p {
  
    display: inline-block;
    padding: 10px 0;
    letter-spacing: 2px;
    font-size: clamp(1.5625rem, 2vw, 1.875rem);
	text-align: left;
}

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


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

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

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

#content::after {
	content: "";
	display: block;
	width: 100%;
	height: clamp(100px, 25vw, 334px);
	background: url("../img/overlay-footer.webp") center bottom -1px / 100% auto no-repeat;
}

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

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

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

h2,
.h2,
.legacy_h2 {
	font-size: 1.75rem;
}

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

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

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

/* @1f footer */

#f1 {
	color: #ffffff;
	font-size: 1rem;
	padding: 40px 0;
	background-color: #2b7192;
}

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

#f1 a,
#f1 a:is(:hover, :focus) {
	color: #ffffff;
}

#f1 .footerTab a {
	text-decoration: underline;
}

#f1 .tabHeadline {
	font-size: 1.625rem;
	color: #ffffff;
}

/* innerfooter */

#innerfooter ul {
	border-bottom: 2px solid rgba(0, 0, 0, 0.1);
	padding: 0;
}

#innerfooter li {
	border-top: 2px solid rgba(0, 0, 0, 0.1);
}

#innerfooter a {
	text-decoration: none;
	position: relative;
	display: block;
	font-size: 1rem;
	font-weight: 400;
	padding: 6px 10px 6px 25px;
}

#innerfooter a::before {
	content: "";
	position: absolute;
	display: block;
	left: 10px;
	top: 16px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.2);
	transition: background 300ms linear;
}

#innerfooter a:is(:hover, :focus)::before {
	background: #ffffff;
}

/* vernetzt */

#vernetzt {
	gap: 18px;
	text-align: right;
	font-size: 0.8125rem;
	color: #ffffff;
	line-height: 1.3;
	font-weight: 400;
	text-decoration: none;
}

#vernetzt span span {
	display: block;
}

/* #endregion -------------------------------- footer ------------------------------------------- */
