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

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

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

a {
	color: #000;
}

#content a {
	text-decoration-color: #009ee0 !important;
}

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

#content a:is(:focus-visible) {
	border: 2px solid #009ee0;
	background: #eaf6fe;
}

#content a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
}

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

b,
strong {
	font-weight: 600;
}

a:focus-visible,
button:focus-visible,
form:focus-visible,
input:focus-visible {
	outline: 2px solid #000000 !important;
	outline-offset: 2px;
}

nav.horizontally a[class*="toplevel"]:focus-visible,
#scrollBottom:focus-visible,
#innerfooter a:focus-visible {
	outline-color: #ffffff !important;
}

form [id^="search_input"]:focus-visible,
form [id^="search_submit"]:focus-visible,
nav.horizontally a[class*="toplevel"]:focus-visible {
	outline-offset: -2px;
}

form [id^="search_submit"]:focus-visible {
	outline-color: #009ee0 !important;
}

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

#topbar {
	padding: clamp(15px, 3vw, 28px) 0;
}

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

#logo {
	display: inline-block;
}

#logo img {
	display: block;
}

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

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

form[id^="search"] {
	background: #eaf6fe;
	display: inline-flex;
	border: 2px solid #009ee0;
	margin: 0;
}

@media (max-width: 991px) {
	.searchMobil {
		background: #eaf6fe;
		padding: 10px 15px;
	}
}

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

form [id^="search_input"] {
	color: #000000;
	font-size: 1rem;
	font-style: normal !important;
	background: transparent;
	font-weight: 400;
	border: 0;
	width: 100%;
	padding: 3px 14px;
}

form [id^="search_submit"] {
	background: #009ee0 url("../img/lupe-icon.png") center no-repeat;
	padding: 0;
	cursor: pointer;
	margin: -2px -2px -2px 0;
	font-size: 0;
	aspect-ratio: 1/1;
	min-width: 35px;
	flex-shrink: 0;
	border: unset;
	transition: background-color 150ms linear;
}

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

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

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

/* #region ----------------------------------- styler + contrast ------------------------------------------- */

.styleBox {
	gap: clamp(30px, 4vw, 55px);
	flex-wrap: wrap;
}

.styleME1 {
	margin-right: 5px;
}

#style,
#contrast_style {
	column-gap: 10px;
}

.styleME span {
	text-align: left;
	font-size: 16px;
	font-weight: 400;
	color: #000000;
	width: 100%;
	display: block;
	margin: 0 0 10px 0;
}

@media (min-width: 992px) {
	.styleME {
		display: flex;
		align-items: center;
		align-content: center;
		flex-direction: column;
	}

	.styleME span {
		text-align: center;
	}
}

@media (max-width: 575px) {
	.styleME {
		margin-top: 10px;
	}
}

:is(#style, #contrast_style) button {
	min-width: 35px;
	min-height: 35px;
	padding: 0;
	font-size: 16px;
	border: 2px solid #009ee0;
	background: #eaf6fe;
	font-weight: 600;
	flex-shrink: 0;
	transition:
		color 300ms linear,
		background 300ms linear;
	position: relative;
	line-height: 1;
}

#style button {
	padding-bottom: 3px;
}

#contrast_style button::after {
	content: "";
	display: block;
	position: absolute;
	top: 3px;
	right: 3px;
	bottom: 3px;
	left: 3px;
	border: 2px solid #000000;
}

:is(#style, #contrast_style) button:is(:hover, :focus) {
	background-color: #eaf6fe;
	outline: 2px auto;
}

/* contrast */

#contrast_style button::after {
	background: linear-gradient(45deg, #000000, #000000 50%, #ffffff 50%);
}

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

#contrast_style button:nth-of-type(3)::after {
	background: #ea5b0c !important;
	border: none;
	filter: unset !important;
}

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

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

/* 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: #009ee0;
		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: #009ee0;
		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-color: #007db3;
	}

	nav.horizontally .navbar-nav {
		display: flex;
		justify-content: space-between;
		align-items: center;
		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, :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: #fff;
	font-weight: 600;
	text-align: left;
	padding: 10px 15px 15px 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 li[class*="toplevel"] + li {
		margin-left: 10px;
	}

	nav.horizontally a[class*="toplevel"] {
		text-align: center;
		padding: 18px 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) {
	background-color: #eaf6fe;
   color: #000000;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	background-color: #eaf6fe;
	border: 3px solid #009ee0;
}

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

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

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

	nav.horizontally [class*="toplevel"] > ul::before {
		content: "";
		position: absolute;
		display: block;
		top: -12px;
		height: 12px;
		left: 0;
		right: 0;
	}

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #000;
	font-weight: 400;
	text-align: center;
	padding: 11px 25px;
	font-size: 1.125rem;
	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: #009ee0;
}

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

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

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

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

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

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

#scrollBottom {
	font-size: 0;
	border: 2px solid #ffffff;
	display: block;
	width: 40px;
	height: 40px;
	text-align: center;
	background-color: #009ee0;
	position: absolute;
	left: calc(50% - 20px);
	bottom: 20px;
	z-index: 50;
	animation: bounceAni 2s infinite 2s;
	transition: all 0.2s ease-in;
}

@media (min-width: 768px) {
	#scrollBottom {
		bottom: 40px;
	}
}

#scrollBottom:is(:hover, :focus) {
	animation-play-state: paused;
	border-color: #009ee0;
}

#scrollBottom::after {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 1px;
	margin-top: 10px;
	display: inline-block;
	border-left: 2px solid #ffffff;
	border-bottom: 2px solid #ffffff;
	transform: rotate(-45deg);
	transition: border 300ms linear;
}

@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-top: clamp(30px, 4vw, 60px);
	padding-bottom: clamp(30px, 4vw, 60px);
}

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

#nw1 {
	padding-bottom: clamp(30px, 5vw, 75px);
}

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

#nw1 .tab {
	font-size: clamp(1rem, 1vw, 1.125rem);
	color: #000;
	padding: 40px 30px;
	font-weight: 500;
	overflow: hidden;
	background:
		url("../img/icon-meldnungen.png") top 20px right 20px no-repeat,
		#eaf6fe;
	border: 3px solid #009ee0;
}

#nw1 .tab a {
	color: #000;
	text-decoration: underline;
}

#nw1 .tabHeadline {
	color: #000;
	hyphens: auto;
	font-size: clamp(1.75rem, 2vw, 2rem);
	padding-right: 30px;
}

#nw1 .tab,
#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%;
	padding: 160px 30px 30px 30px;
	background: #ffffff;
	background-color: #eaf6fe;
	border: 3px solid #009ee0 !important;
}

#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: 120px;
	overflow: hidden;
}

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

#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: 105px;
	color: #000;
	font-size: 0.75rem;
	padding: 6px 20px;
	background-color: #eaf6fe;
	border: 3px solid #009ee0;
}

#nw1 .tab_link_title a {
	display: block;
	font-weight: 600;
	color: #009ee0;
	line-height: 1.2;
	margin-bottom: 8px;
}

#nw1 .tab_link_entries + div,
#nw1 .tab_link_entries .tab_spacer,
#nw1 .tab_link_entry > div:nth-last-child(2) {
	display: none;
}

/* ------------------------------------------- @1nw buttonStyle ------------------------------------------- */

#nw1 .buttonStyle a {
	text-decoration: none;
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	color: #000000;
	padding: 6px 16px;
	transition:
		background 300ms linear,
		color 300ms linear;
	background-color: #eaf6fe;
	border: 3px solid #009ee0;
}

@media (min-width: 768px) {
	#nw1 .buttonStyle a + a {
		margin-left: 12px;
	}
}

#nw1 .buttonStyle a:hover,
#nw1 .buttonStyle a:focus {
	background: #009ee0;
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
	color: #000000;
	font-weight: 600;
	line-height: 1.2;
}

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

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

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

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 ------------------------------------------- */

#footer {
	font-size: 1rem;
	padding-top: clamp(30px, 3vw, 40px);
	padding-bottom: 30px;
	background-color: #eaf6fe;
	border-top: 3px solid #009ee0;
}

#footer img.contrast_grayscale {
	background: #fff;
}

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

#footer .tabFooter a {
	text-decoration: underline;
}

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

#footer .tabFooter {
	font-weight: 500;
}

#footer .tabFooter .tabHeadline {
	font-size: clamp(1.75rem, 3vw, 2.1875rem);
	margin-bottom: 10px;
}

#logoFooter {
	display: inline-block;
}

#logoFooter img {
	display: block;
}

#innerfooter {
	color: #fff;
	background-color: #007db3;
	padding-top: 15px;
	padding-bottom: 15px;
	font-size: 1rem;
}

#innerfooter ul {
	padding: 0;
}

#innerfooter li {
	display: block;
}

#innerfooter a {
	color: #fff;
	text-decoration: none;
	font-weight: 400;
}

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

@media (min-width: 576px) {
	#innerfooter li + li::before {
		content: "•";
		margin: 0 clamp(15px, 2vw, 25px);
	}

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

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

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

#vernetzt {
	gap: 12px;
	text-align: right;
	font-size: 14px;
	color: #ffffff;
	line-height: 1.3;
	font-weight: 400;
	text-decoration: none !important;
}

#vernetzt span span {
	display: block;
}

#vernetzt strong {
	font-weight: 600;
}

#mitglied {
   font-size: 1rem;
   margin-bottom: 60px;
}

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

/* ------------------------------------------ kontraste ------------------------------------------ */

.contrast_dark_font #nw1 .tab,
.contrast_light_font #logo img {
	background-color: #ffffff !important;
}

.contrast_dark_font #nw1 .tab_link_entry,
.contrast_dark_font #scrollBottom::after {
	border-color: #000000 !important;
}

.contrast_dark_font #nw1 .buttonStyle a,
.contrast_dark_font #nw1 .tab {
	border: 2px solid #000000 !important;
}

.contrast_light_font #nw1 .tab,
.contrast_dark_font #logoFooter img {
	background-color: #000000 !important;
}

.contrast_light_font #nw1 .buttonStyle a,
.contrast_light_font #nw1 .tab {
	border: 1px solid #ffffff !important;
}

.contrast_light_font #nw1 .tab_link_entry {
	border-color: #ffffff !important;
}
