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

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

body {
	font-family: "Source Sans 3", sans-serif;
	font-weight: 300;
	color: #ffffff;
	background: #242423;
	font-size: clamp(1rem, 2vw, 1.25rem);
	line-height: 1.5;
}

a {
	color: #ffffff;
}

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

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

/* ------------------------------------------ contact ------------------------------------------- */

.contact {
	background-color: #333533;
	color: #ffffff;
	font-size: 1rem;
	padding: 15px 0;
}

@media (min-width: 992px) {
	.contact {
		padding: 6px 0 5px 0;
	}
}

.contact p {
	margin: 0;
	display: inline-block;
}

.contact p + p {
	margin-left: clamp(15px, 2vw, 25px);
}

.contact a {
	color: #ffffff;
	display: inline-block;
	text-decoration: underline;
}

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

#logo {
	display: flex;
	align-items: center;
	align-content: center;
	gap: 8px;
	text-decoration: none;
}
#logo .logoImg img {
	display: block;
}

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

#logo .logoTxt {
	line-height: 1.2;
	font-size: clamp(1rem, 2vw, 1.125rem);
	color: #fff;
	font-weight: 400;
	font-family: "Tinos", serif;
}

#logo .logoTxt :is(b, strong) {
	color: #fff;
	text-transform: uppercase;
	font-weight: 400;
	font-size: clamp(1.125rem, 2vw, 1.25rem);
	font-family: "Tinos", serif;
}
@media (min-width: 992px) {
	#logo .logoImg img {
		margin-top: -5px;
	}
}

@media (max-width: 575px) {
	#logo {
      flex-wrap: wrap;
	}
	#logo .logoTxt {
		margin-left: -15px;
	}
}
/* #region ---------------------------------- navigation ---------------------------------------- */

nav.horizontally {
	background: #242423;
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
}
.is-sticky nav.horizontally {
	border-bottom: solid 2px #fff;
}
/* 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: #010101;
		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;
	}

	#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: #242423;
		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: 5px;
	}

	.dropdown-toggle-button-wrapper2 {
		top: 6px;
	}
	.dropdown-toggle-button {
		background-color: #010101;
	}
}

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally .navbar-nav {
		display: flex;
		justify-content: flex-end;
		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.open > ul {
		pointer-events: none !important;
		opacity: 0 !important;
		visibility: hidden;
	}

	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: #ffffff;
	font-weight: 400;
	text-align: left;
	padding: 12px 35px;
	position: relative;
	text-transform: uppercase;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	hyphens: auto;
	transition:
		background-color 300ms linear,
		color 300ms linear,
		padding 150ms linear;
}

@media (max-width: 991px) {
	nav.horizontally li[class*="toplevel"] {
		border-bottom: 1px solid rgba(255, 255, 225, 0.5);
	}
}

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

	.is-sticky nav.horizontally a[class*="toplevel"] {
		padding: 25px 10px;
	}

	.navbar-default .navbar-nav > li + li {
		border-left: 1px solid #e8e8e8;
	}
}

/* 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: #fff;
	background-color: #010101;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	padding: 10px;
	box-shadow: 0 2px 1px 0 rgba(0, 0, 0, 0.2);
}

nav.horizontally [class*="toplevel"] > ul {
	background: #333533;
}

nav.horizontally [class*="secondlevel"] > ul {
	margin: 0;
	background: #333533;
}

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

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

	nav.horizontally [class*="toplevel"] > ul::before {
		content: "";
		position: absolute;
		top: -12px;
		left: calc(50% - 20px);
		width: 40px;
		height: 12px;
		clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
		background: #333533;
	}

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	font-weight: 400;
	text-align: left;
	padding: 10px 35px;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	hyphens: auto;
}

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

nav.horizontally a[class*="secondlevel"] {
	color: #ffffff;
}

nav.horizontally a[class*="thirdlevel"] {
	color: #ffffff;
}

/* secondlevel + thirdlevel over */

nav.horizontally li[class*="secondlevel"]:is(:hover, :focus-within) > a,
nav.horizontally li[class*="secondlevel"] > a:is(:hover, :focus),
nav.horizontally li[class*="secondlevel"].open > a,
nav.horizontally li[class*="secondlevel"].open > a:is(:hover, :focus),
nav.horizontally li[class*="secondlevel"][class*="_over"] > a,
nav.horizontally li[class*="secondlevel"][class*="_over"] > a:is(:hover, :focus) {
	background: #d9d9d9;
	color: #242423;
}

nav.horizontally li[class*="thirdlevel"]:is(:hover, :focus-within) > a,
nav.horizontally li[class*="thirdlevel"] > a:is(:hover, :focus),
nav.horizontally li[class*="thirdlevel"].open > a,
nav.horizontally li[class*="thirdlevel"].open > a:is(:hover, :focus),
nav.horizontally li[class*="thirdlevel"][class*="_over"] > a,
nav.horizontally li[class*="thirdlevel"][class*="_over"] > a:is(:hover, :focus) {
	background: #d9d9d9;
	color: #242423;
}

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

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

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

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

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

#bannerOverlay {
	background: rgba(217, 217, 217, 0.9);
	color: #0d1b2a;
	padding: 30px 20px;
	font-weight: 400;
	font-size: 1.375rem;
	margin-top: 15px;
}

@media (min-width: 768px) {
	#bannerOverlay {
		padding: 63px 30px;
		position: absolute;
		left: 30px;
		right: 0;
		bottom: -68px;
		z-index: 60;
	}
	#bannerOverlay::after {
		content: "";
		position: absolute;
		background: #010101;
		width: 4px;
		height: 40px;
		top: 0px;
		z-index: 0;
		pointer-events: none;
		left: 0;
		right: 0;
		margin: auto;
		display: block;
	}
	#bannerOverlay::before {
		content: "";
		position: absolute;
		background: #010101;
		width: 4px;
		height: 40px;
		bottom: 0px;
		z-index: 0;
		pointer-events: none;
		left: 0;
		right: 0;
		margin: auto;
		display: block;
	}
}

.bannerHeadline {
	margin: 0 0 10px 0;
	color: #0d1b2a;
	font-size: clamp(1.5625rem, 4vw, 1.875rem) !important;
	font-family: "Tinos", serif;
	font-weight: 400;
}

#bannerOverlay a {
	color: #0d1b2a;
	text-decoration: underline;
}

#bannerOverlay a:is(:hover, :focus) {
	color: #0d1b2a;
	text-decoration: none;
}

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

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

#search {
	background: #333533;
	display: inline-block;
	position: relative;
	width: 100%;
	margin-top: 10px;
	border: 2px solid #010101;
}

#search_input {
	color: #ffffff;
	font-size: 1.25rem;
	font-weight: 400;
	font-style: normal;
	background: transparent;
	border: 0;
	padding: 13px 70px 13px 26px;
	width: 100%;
}

#search_input:is(:hover, :focus) {
	background: rgba(140, 118, 95, 0.1);
}

#search_submit {
	width: 60px;
	border: none;
	background: url("../img/icon-lupe.png") center / 20px auto no-repeat;
	padding: 0;
	cursor: pointer;
	position: absolute;
	top: 8px;
	bottom: 8px;
	right: 0px;
	font-size: 0;
	border-left: 2px solid #ffffff;
	transition: background 100ms linear;
}

#search_submit:is(:hover, :focus) {
	background-size: 26px auto;
}

#search input::placeholder {
	color: #ffffff !important;
	opacity: 1 !important;
	font-style: normal !important;
}

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

body #content:not(:has(#welcomepage-wrapper)) {
	text-align: left;
	padding-top: clamp(30px, 4vw, 60px);
	padding-bottom: clamp(40px, 4vw, 60px);
}

/* -------------------------------------------- teaser ------------------------------------------ */

#teaser {
	color: #ffffff;
	font-weight: 400;
	line-height: 1.4;
	padding-bottom: clamp(30px, 4vw, 50px);
	font-size: 1.125rem;
	padding-top: clamp(30px, 4vw, 50px);
}

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

.teaser {
	background: #333533;
	border: solid 2px #010101;
	border: solid 2px #010101;
	padding: clamp(20px, 3vw, 45px) clamp(20px, 2vw, 24px);
	height: 100%;
	min-height: 100%;
	box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.1);
	color: #fff;
	font-size: 1.125rem;
	text-transform: uppercase;
}

.teaser :is(h1, h2, h3, h4, h5, h6) {
	font-size: 1.5rem;
	color: #ffffff;
	font-family: "Tinos", serif;
	margin-bottom: 0;
	text-transform: none;
	line-height: 1;
}

.teaser img {
	margin-bottom: 16px;
	margin-top: 8px;
}

.teaser:is(:hover, :focus-within) img {
	animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
}

@keyframes shake {
	10%,
	90% {
		transform: translate3d(-1px, 0, 0);
	}

	20%,
	80% {
		transform: translate3d(2px, 0, 0);
	}

	30%,
	50%,
	70% {
		transform: translate3d(-4px, 0, 0);
	}

	40%,
	60% {
		transform: translate3d(4px, 0, 0);
	}
}

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

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

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

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

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

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

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

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

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

#footer {
	background: #333533;
	padding: clamp(15px, 4vw, 25px) 0;
	font-weight: 400;
	font-size: 1.125rem;
	border-top: solid 4px #010101;
	line-height: 1.3;
}

#footer .note {
	font-size: 1.5rem;
	font-weight: 400;
	font-family: "Tinos", sans-serif;
}

@media (max-width: 767px) {
	#footer > .row > .col-xs-12 + * {
		border-top: 1px solid rgba(255, 255, 255, 0.2);
		margin-top: 20px;
		padding-top: 20px;
	}
}

#footer .kontaktFooter :is(b, strong) {
	font-weight: 700;
}
#footer .kontaktFooter a {
	text-decoration: underline;
}
#footer .kontaktFooter a:is(:hover, :focus) {
	text-decoration: none;
}

#innerfooter {
	background: #242423;
	padding: 19px 0;
	font-size: 1rem;
}

#innerfooter ul {
	padding: 0;
}

#innerfooter li {
	position: relative;
}

#innerfooter a {
	color: #ffffff;
	text-decoration: none;
	display: inline-block;
	font-weight: 400;
	position: relative;
}

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

#innerfooter a::after {
	content: "";
	position: absolute;
	left: 0;
	width: 0;
	bottom: 2px;
	height: 1px;
	background: #ffffff;
	transition: width 150ms linear;
}

#innerfooter a:is(:hover, .focus)::after {
	width: 100%;
}

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

	#innerfooter li + li::before {
		content: "•";
		color: #ffffff;
		margin: 0 24px;
	}
}

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

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

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

#vernetzt span span {
	display: block;
}
