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

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

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

a {
	color: #856a00;
}

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

.linkUnderline a:not(.has-image, .shareButtonLink) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: text-decoration 300ms;
}

.linkUnderline a:not(.has-image, .shareButtonLink):is(:hover, :focus) {
	text-decoration-color: transparent;
}

b,
strong {
	font-weight: 600;
}

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

.logo {
	display: inline-block;
}

@media (min-width: 992px) {
	nav.horizontally .logo {
		margin-top: -10px;
	}
}

.logo img {
	display: block;
}

@media (max-width: 991px) {
	.logo img {
		max-width: 210px;
		width: 100%;
	}
}

/* ------------------------------------------------- Schriftgröße ------------------------------------------------ */

@media (min-width: 992px) {
	#style {
		flex-wrap: wrap;
		font-size: 0.875rem;
	}
	#style span {
		color: rgba(255, 255, 255, 0.9);
		display: inline-block;
		margin-right: 5px;
	}
	#style button {
		border: none;
		color: #121212;
		display: inline-block;
		width: 1.8125rem;
		height: 1.8125rem;
		font-weight: 600;
		text-align: center;
		background-color: #fff;
		position: relative;
		line-height: 1;
		padding: 0;
	}
	#style * + * {
		margin-left: 3px;
	}
	#style button:hover {
		background: #222222;
		color: #fff;
	}
	#style button:focus-visible {
		outline: 2px auto;
	}
}

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

nav.horizontally {
	background-color: #121212;
	padding-block: 20px;
}

/* 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: #121212;
		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: #121212;
		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-block: 20px 10px;
	}
   .is-sticky #menu {
      left: auto !important;
   }
	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.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: #ffffff;
	font-weight: 400;
	text-align: left;
	padding: 10px 15px 15px 15px;
	position: relative;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	border-radius: 100vw;
}

@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: 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: #222222;
}

/* secondlevel + thirdlevel dropdown-box */

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

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

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

	nav.horizontally [class*="toplevel"] > ul {
		border-bottom-left-radius: 8px;
		border-bottom-right-radius: 8px;
		left: -10px;
		margin-top: 10px;
	}

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

	nav.horizontally [class*="toplevel"] > ul::before {
		content: "";
		position: absolute;
		display: block;
		height: 10px;
		left: 0;
		right: 0;
		top: -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: #121212;
	font-weight: 400;
	text-align: left;
	padding: 8px 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: #e9e9ed;
}

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

#slider {
	max-height: clamp(250px, 28vw, 320px);
	position: relative;
	border-radius: 20px;
}

@media (min-width: 992px) {
	body.index #slider {
		max-height: clamp(300px, 32vw, 385px);
	}

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

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

#headerpic {
	padding: 0;
	overflow: hidden;
	position: relative;
	padding-top: clamp(60px, 10vw, 130px);
}

#headerpic>.row {
   gap: 30px 0;
}

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

.slider-mask {
	display: none;
}

#headerpic .template-page :is(b, strong) {
	font-weight: 700;
	font-size: clamp(1.875rem, 4vw, 3.5rem);
	line-height: 1.1;
}

#headerpic .template-page a {
	background: #121212;
	color: #fff;
	display: inline-block;
	margin-right: 30px;
	border-radius: 6px;
	font-size: 1rem;
	padding: 10px 20px;
	margin-top: 10px;
}

#headerpic .template-page a:is(:hover, :focus) {
	background: #222222;
	text-decoration: none;
}

#headerpic .template-page a img {
	vertical-align: middle;
	margin-right: 20px;
}

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

#content {
	text-align: left;
	padding-bottom: 30px;
	padding-top: 30px;
}

@media (min-width: 992px) {
	#content {
		padding-bottom: 80px;
		padding-top: 80px;
	}
}

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

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

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

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

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

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

h5,
.h5,
.legacy_h5 {
	font-size: clamp(1.375rem, 3.5vw, 1.625rem);
}

h6,
.h6,
.legacy_h6 {
	font-size: clamp(1.25rem, 3vw, 1.5rem);
}

/*  ----------------------------------- leistungen tarif ------------------------------------------- */

:is(#leistungen, #tarif) {
	font-size: 1rem;
	padding-bottom: 80px;
}

:is(#leistungen, #tarif) > .row {
	gap: 30px 0;
}

:is(#leistungen, #tarif) .banner {
	border-radius: 20px;
	line-height: 0;
   max-width: 400px;
   margin: 0 auto;
}

#leistungen .banner {
	height: 385px;
}

#tarif .banner {
	height: 450px;
}

:is(#leistungen, #tarif) .banner img {
	object-position: center;
	border-radius: 20px;
	object-fit: cover;
	width: 100%;
	height: 100%;
}

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

footer {
	color: #ffffff;
	background: #121212;
	font-size: 1rem;
}

footer .logo {
	margin-bottom: 30px;
}

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

footer :is(h1, h2, h3, h4, h5, h6, .footerHeadline) {
	color: #ffffff;
	font-size: 1.375rem;
	margin: 0;
}

#footer {
	padding: 60px 0 40px 0;
}

@media (min-width: 992px) {
	#footer {
		padding: 70px 0;
	}
}

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

.footerTab :is(iframe, .iframe-wrapper-manual-enabling) {
	min-width: 100% !important;
	width: 100% !important;
	display: block;
}

#innerfooter ul {
	padding: 0;
	line-height: 1.7;
}

@media (min-width: 992px) {
	#innerfooter ul {
		border-left: 1px solid rgb(255, 255, 255, 0.5);
		padding-left: 20px;
	}
	#innerfooter ul {
		margin-bottom: -10px;
	}
}

#innerfooter a {
	font-size: 1rem;
	padding-block: 5px;
	display: inline-block;
}

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

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

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

#vernetzt span span {
	display: block;
}

#vernetzt img {
	display: block;
	margin: 0 auto 10px auto;
}

@media (min-width: 992px) {
	#vernetzt {
		text-align: right;
	}
	#vernetzt img {
		margin-right: 0;
	}
}
