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

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

body {
	font-family: "Poppins", sans-serif;
	color: #fff;
	background: #191919;
	font-weight: 300;
	font-size: clamp(1rem, 2vw, 1.125rem);
	/* 1rem = 16px */
	line-height: 1.5;
}

a {
	color: #27b7c1;
}

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

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

#overflow {
	overflow: clip;
	position: relative;
}

/* --------------------------------------------- topBox ------------------------------------------- */

@media (min-width: 992px) {
	#topBox {
		position: absolute;
		left: 0;
		right: 0;
		top: 0;
		z-index: 102;
	}
}

@media (min-width: 1200px) {
	#topBox {
		top: 60px;
	}
}

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

#topbar {
	padding: 15px 0;
	background: #ffffff;
}

@media (min-width: 1200px) {
	#topbar {
		max-width: 1200px;
		width: 100%;
		margin: auto;
	}
}

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

#logo {
	display: inline-block;
}

#logo img {
	display: block;
}

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

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

/* burgermenu for tablet */

@media (max-width: 991px) {
	nav.horizontally {
		position: static !important;
      background: #fff;
      padding: 10px 0;
	}

	#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: #1c7a82;
		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: 4px;
	}
}

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally {
		padding: 20px 0;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		right: 0;
		top: 0;
		max-width: 1930px;
		width: 100%;
		z-index: 101;
		transition: 300ms linear background;
      background: #fff;
	}
	nav.horizontally > .row {
      max-width: 1440px;
      width: 100%;
	}

	.is-sticky nav.horizontally {
		background: #ffffff;
  box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
	}

	nav > .row {
		padding: 0 35px;
	}

	nav.horizontally .navbar-nav {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	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: #2f1c2a;
	text-align: left;
	padding: 12px 15px;
	position: relative;
	font-weight: 600;
	font-family: "Oswald", sans-serif;
	font-size: 1rem;
   text-transform: uppercase;
	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"] {
		padding: 29px 6px;
	}

	nav.horizontally a[class*="toplevel"][data-toggle="dropdown"] {
		padding-right: 16px;
	}
}

nav.horizontally a[class*="toplevel"]::before {
	content: "";
	width: 0;
	height: 5px;
	display: block;
	position: absolute;
	left: 50%;
	bottom: 0;
	background-color: #9b8bb5;
	background: linear-gradient(to right, #e96ca7 0%, #9b8bb5 30%, #4ca5bb 70%, #22bac2 100%);
	opacity: 0;
	pointer-events: none;
	transition:
		opacity 300ms linear,
		width 300ms linear;
	transform: translateX(-50%);
}

@media (min-width: 992px) {
	nav.horizontally a[class*="toplevel"]::before {
		bottom: unset;
		top: 0;
	}

	nav.horizontally a[class*="toplevel"][data-toggle="dropdown"]::after {
		content: "\203A";
		position: absolute;
		left: -5px;
		right: 0;
		margin: auto;
		bottom: 16px;
		width: 5px;
		transform: rotate(90deg);
		border-radius: 1px;
		display: inline-block;
		transition: border 300ms linear;
		line-height: 0;
	}

	nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within) > a[data-toggle="dropdown"]::after {
		border-color: #1c7a82;
	}
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	padding: 15px 0;
	margin: 0;
	background-color: rgba(255, 255, 255, 0.96);
	border-radius: 2px;
}

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

@media (min-width: 992px) {
	nav.horizontally [class*="toplevel"] ul {
		box-shadow: 0 20px 12px -8px rgba(0, 0, 0, 0.12);
	}

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

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

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

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

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

	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-color: #9b8bb5;
	background: linear-gradient(to right, #e96ca7 0%, #9b8bb5 30%, #4ca5bb 70%, #22bac2 100%);
	color: #191919;
}

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

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

#slider {
	height: clamp(300px, 62vw, 650px);
	overflow: hidden;
	position: relative;
}

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

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

@media (min-width: 992px) {
	body.index #headerpic .nivo-controlNav {
		bottom: 130px;
		z-index: 99;
	}
}

@media (min-width: 1200px) {
	body.index #headerpic .nivo-controlNav {
		bottom: 50px;
	}
}

@media (min-width: 1200px) {

	body.index #headerpic {
		margin-bottom: 80px;
	}

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

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

.slider-mask {
	display: none;
}

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

/* #region ------------------------------------ teaser1 ----------------------------------------- */

#teaser1 {
	color: #2f1c2a;
	position: relative;
	font-size: 1rem;
	padding: 20px 15px;
	border-radius: 60px 0 60px 0;
	border-top: 20px solid #f1f1f1;
	background-color: #9b8bb5;
	background: linear-gradient(to right, #e96ca7 0%, #9b8bb5 30%, #4ca5bb 70%, #22bac2 100%);
	box-shadow: 0 55px 15px -40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
	#teaser1-position {
		padding-top: 30px;
	}
}

#teaser1 a {
	font-weight: 300;
}

#teaser1 > .row {
	row-gap: 15px;
}

@media (min-width: 992px) {
	#teaser1 {
		padding: 38px 60px;
		margin-left: 50px;
		margin-right: 50px;
	}

	#teaser1-position {
		z-index: 65;
		margin-top: -130px;
		position: relative;
	}
}

#teaser1 {
	color: #2f1c2a;
	font-weight: 300;
}

#teaser1 :is(h1, h2, h3, h4, h5, h6) {
	color: #2f1c2a;
	margin: 0;
	font-family: "Italiana", serif;
	font-weight: 400;
	font-size: clamp(1.25rem, 4vw, 2rem);
}

/* #endregion --------------------------------- teaser1 ----------------------------------------- */

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

main {
   background-position: center;
   background-size: cover;
   background-attachment: fixed;
   color: #fff;
}

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

@media (min-width: 992px) {
	#content {
		position: relative;
		z-index: 70;
	}
}

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

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

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

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

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

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

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

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

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

#footer {
	font-size: 1rem;
	font-weight: 300;
	color: #191919;
	padding-top: 45px;
	padding-bottom: 45px;
	font-size: clamp(1rem, 2vw, 1.125rem);
	background: #fff center / cover no-repeat;
}

#footer .tabHeadline {
	color: #191919;
	margin: 0 0 10px 0;
	font-size: 1.625rem;
}

#footer a {
	color: inherit;
	text-decoration: underline;
}

#footer a:is(:hover, :focus) {
	color: #191919;
}

#footer .tabButton a {
	display: block;
	text-decoration: none;
	text-transform: uppercase;
	color: #191919;
	font-weight: 400;
	line-height: 1.2;
	margin-top: 5px;
	hyphens: auto;
	font-family: "Italiana", serif;
	font-size: clamp(1rem, 2vw, 1.5rem);
	padding: 18px 30px 17px 30px;
	border: 2px solid #191919;
	border-radius: 30px;
	background: transparent;
	transition: all 300ms linear;
}

#footer .tabButton a:is(:hover, :focus) {
	color: #191919;
	background: linear-gradient(to right, #e96ca7 0%, #9b8bb5 30%, #4ca5bb 70%, #22bac2 100%);
}

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

/* -------------------------------------------- lastFooter ---------------------------------------- */

#lastFooter {
	color: #191919;
	font-size: 1rem;
	background-color: #9b8bb5;
	background: linear-gradient(to right, #e96ca7 0%, #9b8bb5 30%, #4ca5bb 70%, #22bac2 100%);
}

@media (max-width: 991px) {
	#lastFooter {
		padding: 20px 0;
	}

	#lastFooter > .row > .col-xs-12 + * {
		border-top: 1px solid rgba(25, 25, 25, 0.2);
		margin-top: 20px;
		padding-top: 20px;
	}
}

@media (min-width: 768px) {
	#lastFooter > .row > .col-xs-12:nth-child(2) {
		border: none;
		margin-top: unset;
		padding-top: unset;
	}
}

/* ------------------------------------------ innerfooter ------------------------------------------ */

#innerfooter ul {
	padding: 0;
}

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

	#innerfooter li + li {
		margin-left: 10px;
	}
}

#innerfooter a {
	color: #191919;
	border-top: 7px solid transparent;
	display: inline-block;
	padding: 10px 20px;
	transition: all 300ms linear;
}

@media (min-width: 992px) {
	#innerfooter a {
		padding: 32px 20px;
	}
}

#innerfooter a:is(:hover, :focus) {
	color: #191919;
	text-decoration: underline;
	border-color: #22bac2;
	background: #ffffff;
}

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

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

#vernetzt span span {
	display: block;
}
