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

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

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

a {
	color: #25552c;
}

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

#content a {
	color: #25552c;
	text-decoration: underline;
}

b,
strong {
	font-weight: 600;
}

#topbar {
	background-color: #e30613;
	padding: 4px 0;
	color: #ffffff;
}

#search {
	height: 33px;
	background: #e30613;
	display: inline-block;
	position: relative;
	border-left: 1px solid #fff;
}

#search_input {
	color: #fff;
	font-size: 16px;
	font-style: normal;
	background: transparent;
	padding: 0;
	border: 0;
	line-height: 33px;
	padding-left: 10px;
	padding-right: 43px;
	height: 33px;
	width: 100%;
}

#search_submit {
	width: 33px;
	background: url("../img/suche-icon.png") center no-repeat;
	padding: 0;
	cursor: pointer;
	line-height: 33px;
	border: none;
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	font-size: 0;
	-webkit-transition: background-color 300ms linear;
	-moz-transition: background-color 300ms linear;
	-ms-transition: background-color 300ms linear;
	-o-transition: background-color 300ms linear;
	transition: background-color 300ms linear;
}

#search_input::-ms-input-placeholder {
	color: #fff !important;
}

#search_input::-webkit-input-placeholder {
	color: #fff !important;
}

#search_input::-moz-placeholder {
	opacity: 1;
}

#search_input:-moz-placeholder {
	opacity: 1;
}

#language a + a {
	margin-left: 15px;
}

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

#logo {
	display: inline-block;
}

@media (min-width: 992px) {
	#logo {
		margin-bottom: -26px;
	}

	.is-sticky #logo {
		margin-bottom: 0px;
	}

	.is-sticky #logo img {
		max-width: 90px;
	}
}

#logo img {
	display: block;
	max-width: 180px;
}

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

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

/* menu desktop */

nav.horizontally {
	padding: 13px 0 clamp(13px, 2vw, 25px);
	transition: all 0.3s 0s ease;
}

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

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

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

/* toplevel */

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

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

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

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

.navbar-default .navbar-nav > li:is(:hover, :focus) > a:is([href*="mailto"], [href*="formulare"]) {
	transform: scale(1.2);
}

/* secondlevel + thirdlevel dropdown-box */

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

nav.horizontally [class*="secondlevel"] ul {
	padding: 20px 0;
	background-color: #fff;
	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: 12px;
		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: -12px;
		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: 12px;
		left: 0;
		right: 0;
		top: -12px;
	}

	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: #fff;
	font-weight: 500;
	text-align: center;
	padding: 9px 35px;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
}

nav.horizontally a:is([class*="thirdlevel"]) {
	color: #636363;
	font-weight: 500;
	text-align: center;
	padding: 9px 35px;
	text-transform: uppercase;
	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: #fff;
	color: #e30613;
}

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

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

#slider {
	overflow: hidden;
	position: relative;
	/*1920px * 768px*/
	height: 40vw;
}

body:not(.index) #slider {
	/*1920px * 576px*/
	height: 30vw;
}

@media (min-width: 992px) {
	#headerpic a.nivo-prevNav {
		left: 65px;
	}

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

@media (max-width: 991px) {
	#slider-onebanner,
	#slider .nivo-box > div,
	#slider .nivo-slice > div,
	#slider .nivo-main-image,
	#slider div[style*="background-size"] {
		background-attachment: unset !important;
		background-size: 100% auto !important;
	}
}

.slider-mask {
	display: none;
}

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

#headerpic::before {
	content: "";
	display: block;
	position: absolute;
	bottom: 10px;
	left: 0;
	right: 0;
	height: 2px;
	width: 100%;
	background: #ffed00;
	z-index: 20;
	pointer-events: none;
}

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

.slider-mask {
	display: none;
}

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

.theme-nivo .nivo-controlNav {
	bottom: 10px;
}

/* #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(255, 255, 255, 1);
	border: 2px solid #deeaf3;
	pointer-events: auto;
	animation: bounceAni 2s infinite 2s;
	transition: all 0.2s ease-in;
}

#scrollBottom a:is(:hover, :focus) {
	background-color: #deeaf3;
	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 #cd1e16;
	border-bottom: 2px solid #cd1e16;
	transform: rotate(-45deg);
	transition: border 300ms linear;
}

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

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

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

#tabs {
	padding-bottom: 40px;
}

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

#tabs .tab .tabHeadline {
	color: #e30613;
	font-size: clamp(1.75rem, 2vw, 2.1875rem);
}

#tabs .tab2 {
	text-align: center;
	height: 100%;
	padding: 10px;
	border: 1px solid #e0101c;
	background:
		url("../img/wasserzeichen-logo.png") bottom left no-repeat,
		#ffffff;
}

#tabs .tab2 .tabHeadline {
	color: #ffffff;
	font-size: 1.5625rem;
	margin: 0;
	padding: 14px 20px;
	text-transform: uppercase;
	background: #e0101c;
}

#tabs .tab2 .tabContent {
	color: #636363;
	padding: 35px 0 10px 0;
}

#tabs .tab2 .tab_link_title a {
	color: #636363;
	font-weight: 700;
}

#tabs .tab2 .tab_link_mehr {
	font-size: 0;
	text-align: center !important;
}

#tabs .tab2 .tab_link_mehr a {
	text-decoration: none;
	display: inline-block;
	color: #ffffff;
	font-size: 1rem;
	padding: 5px 15px;
	background: #e1101c;
}

#tabs .tab2 .tab_link_mehr a:is(:hover, :focus) {
	background: #636363;
}

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

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

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

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

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

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

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

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

/* ---------------------------------------------- kontakt ------------------------------------------ */

#kontakt {
	background: #fff;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	position: relative;
	background-attachment: fixed;
}

#kontakt::before {
	content: "";
	display: block;
	position: absolute;
	bottom: 10px;
	left: 0;
	right: 0;
	height: 2px;
	width: 100%;
	background: #ffed00;
}

#kontakt .tab {
	padding: 60px clamp(40px, 6vw, 80px);
	color: #636363;
	background:
		url("../img/logo-wasserzeichen.png") bottom -50px left -50px no-repeat,
		#fff;
	position: relative;
}

#kontakt .tab::before {
	content: "";
	display: block;
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: 10px;
	right: 10px;
	height: calc(100%-20px);
	width: calc(100%-20px);
	border: 2px solid #e30613;
}

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

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

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

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

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

#footer {
	background-color: #ffffff;
	padding: 20px 0;
	color: #636363;
}

#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: 767px) {
	#innerfooter {
		border-bottom: 1px solid #9faeba;
		margin-bottom: 20px;
		padding-bottom: 15px;
	}
}

#innerfooter a {
	color: #636363;
	text-decoration: none;
	display: inline-block;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.9375rem;
}

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

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

#vernetzt {
	gap: 12px;
	text-align: left;
	font-size: 0.8125rem;
	color: #636363;
	line-height: 1.3;
	text-decoration: none;
}

#vernetzt span span {
	display: block;
}
