@import url("https://fonts.verwaltungsportal.de/import/?family=Caveat:700");
@import url("https://fonts.verwaltungsportal.de/import/?family=Red+Hat+Text:400,400i,500,500i,600,600i");

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

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

a {
	color: #2952a1;
}

a:is(:hover, :focus) {
	color: #2952a1;
	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;
}

/* ------------------------------------------- header ------------------------------------------- */

#logoMobil img {
	max-width: calc(100vw - 120px);
	width: 100%;
	max-height: 80px;
}

.logo {
	display: inline-block;
}

.logo img {
	display: block;
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
	.navbar-collapse>.row {
		padding-top: 15px;
		padding-bottom: 10px;
	}

	nav.horizontally {
		margin-top: 100px;
	}

	#burgerButton {
		font-size: 0;
		border: none !important;
		position: absolute;
		z-index: 1002;
		display: block;
		width: 46px;
		height: 40px;
		border-radius: 2px;
		cursor: pointer;
		background-color: #ffffff;
		padding: 3px;
		right: 12px;
		top: 50%;
		margin-top: -20px;
	}

	#burgerButton::before,
	#burgerButton::after,
	#burgerButtonInner {
		background-color: #2952a1;
		border-radius: 2px;
		position: absolute;
		width: 40px;
		height: 3px;
		left: 2px;
		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: 11px;
	}

	#burgerButton::before {
		top: 19px;
		content: "";
	}

	#burgerButton::after {
		top: 27px;
		content: "";
	}

	.navbar-nav {
		margin: 20px 0;
	}

	.navbar-collapse {
		width: calc(100% - 90px);
		max-width: 300px;
		top: 100px;
		background: #2952a1;
		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 {
		height: 100px;
		line-height: 1;
		padding: 10px 15px;
		background-color: #ffffff;
		position: fixed;
		top: 0;
		right: 0;
		left: 0;
		z-index: 101;
		box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);
	}

	.dropdown-toggle-button-wrapper,
	.dropdown-toggle-button-wrapper2 {
		z-index: 1;
	}

	.dropdown-toggle-button-wrapper {
		top: 5px;
	}

	.dropdown-toggle-button-wrapper2 {
		top: 2px;
	}
}

/* menu desktop */

@media (min-width: 992px) {
	#menu {
		background: linear-gradient(to bottom, #2952a1, #506ea8);
		box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.15);
	}

	.is-sticky #menu {
		left: unset !important;
	}

	.navbar-collapse>.row {
		padding-top: 15px;
		padding-bottom: 15px;
	}

	nav.horizontally .navbar-nav {
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
	}

	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: #fff;
	font-weight: 400;
	text-align: left;
	padding: 10px 35px;
	position: relative;
	z-index: 1;
	font-size: 1.25rem;
	line-height: 1.2;
	text-decoration: none;
}

@media (min-width: 992px) {
	nav.horizontally a[class*="toplevel"] {
		padding: 28px 14px;
		display: flex;
		align-content: center;
		align-items: center;
		justify-content: center;
		height: 100%;
		text-align: center;
	}
}

nav.horizontally a[class*="toplevel"]::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	opacity: 0;
	z-index: -1;
	background: url(../img/aktiv.png);
	background-repeat: no-repeat;
	background-position: center;
	transition: opacity 300ms linear;
}

@media (max-width: 991px) {
	nav.horizontally a[class*="toplevel"]::after {
		background-size: 50px;
		background-position: right 50px center;
	}
}

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

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a::after,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"].open>a::after,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"][class*="_over"]>a::after,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus)::after {
	opacity: 1;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	padding: 10px 0;
	background-color: rgba(255, 255, 255, 0.95);
	box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2);
	border-radius: 3px;
}

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

@media (min-width: 992px) {
	nav.horizontally [class*="toplevel"]>ul {
		margin-top: 0;
		border-radius: 0 0 3px 3px;
	}

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	background-color: transparent;
	color: #2952a1;
	font-weight: 400;
	text-align: left;
	padding: 6px 35px;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
	position: relative;
	isolation: isolate;
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
	content: "";
	inset: 0;
	opacity: 0;
	transition: opacity 300ms;
	position: absolute;
	background: linear-gradient(to bottom, #2952a1, #506ea8);
	z-index: -1;
}

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

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
	content: "\2013";
	margin-right: 12px;
	transition: color 300ms;
}

/* 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),
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus)::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus)::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus)::before {
	color: #fff;
}

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus)::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus)::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus)::after {
	opacity: 1;
}

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

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

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

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

	#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: block;
	background: url("../img/banner-bogen.png") center bottom / 100% auto no-repeat;
}

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

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

/* ------------------------------------------ tabsLeft ------------------------------------------- */

@media (max-width: 991px) {
	#tabsLeft {
		margin: 0 auto 30px auto;
	}
}

#tabsLeft .tab {
	color: #ffffff;
	background: url("../img/Kopf.png") bottom right no-repeat, #2952a1;
}

#tabsLeft .tab a {
	color: #ffffff;
}

#tabsLeft .tab .tabHeadline {
	color: #ffffff;
	padding: 15px;
	font-size: 1.5rem;
	font-family: "Red Hat Text", sans-serif;
	font-weight: 500;
	position: relative;
}

#tabsLeft .tab .tabHeadline::after {
	content: '-';
	position: absolute;
	pointer-events: none;
	bottom: -10px;
	left: 15px;
}

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

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

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

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

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

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

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

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

/* ----------------------------------- angebote --------------------------------------- */

#angebote {
	padding-bottom: clamp(30px, 4vw, 60px);
	font-size: clamp(1.5rem, 4vw, 1.9375rem);
	color: #2952a1;
	font-weight: 700;
	line-height: 2;
	font-family: "Caveat", cursive;
	hyphens: auto;
	position: relative;
}

#angebote .banner,
#angebote .banner img {
	aspect-ratio: 1;
	width: 100%;
	border-radius: 100vw;
	overflow: hidden;
	line-height: 0;
	object-fit: cover;
	object-position: center;
	z-index: 1;
	position: relative;
}

@media (min-width: 1200px) {
	#angebote>.row::before {
		content: "";
		position: absolute;
		pointer-events: none;
		left: 25px;
		top: 0;
		bottom: 0;
		margin: auto;
		width: 289px;
		height: 349px;
		background: url('../img/mund-recht.png') center no-repeat;
	}

	#angebote>.row::after {
		content: "";
		position: absolute;
		right: 15px;
		top: 0;
		bottom: 0;
		margin: auto;
		width: 289px;
		height: 379px;
		background: url('../img/mund-links.png') center no-repeat;
	}
}

/* ----------------------------------- breaker --------------------------------------- */

#breaker {
	height: 330px;
	background-position: center;
	background-attachment: fixed;
	position: relative;
}

#breaker::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url(../img/parallax-bogen.png);
	background-repeat: no-repeat;
	background-position: top center;
	background-size: contain;
}

/* #region ----------------------------------- contactRow --------------------------------------- */

#contactRow {
	padding-bottom: clamp(30px, 7vw, 100px);
	padding-top: 60px;
}

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

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

#contactRow .tabHeadline {
	margin: 0;
	font-size: clamp(1.625rem, 4.5vw, 2.25rem);
}

.contactElement {
	padding-left: 35px;
	font-size: 1rem;
	margin-top: 25px;
	min-height: 30px;
}

.location {
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%232952a1" height="48" viewBox="0 -960 960 960" width="48"><path d="M480.089-490Q509-490 529.5-510.589q20.5-20.588 20.5-49.5Q550-589 529.411-609.5q-20.588-20.5-49.5-20.5Q451-630 430.5-609.411q-20.5 20.588-20.5 49.5Q410-531 430.589-510.5q20.588 20.5 49.5 20.5ZM480-159q133-121 196.5-219.5T740-552q0-117.79-75.292-192.895Q589.417-820 480-820t-184.708 75.105Q220-669.79 220-552q0 75 65 173.5T480-159Zm0 79Q319-217 239.5-334.5T160-552q0-150 96.5-239T480-880q127 0 223.5 89T800-552q0 100-79.5 217.5T480-80Zm0-480Z"/></svg>') no-repeat left -6px center / 35px auto;
}

.phone {
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%232952a1" height="48" viewBox="0 -960 960 960" width="48"><path d="M795-120q-116 0-236.5-56T335-335Q232-438 176-558.5T120-795q0-19.286 12.857-32.143T165-840h140q14 0 24 10t14 25l26.929 125.641Q372-665 369.5-653.5q-2.5 11.5-10.729 19.726L259-533q26 44 55 82t64 72q37 38 78 69.5t86 55.5l95-98q10-11 23.151-15T686-369l119 26q15 4 25 16.044T840-300v135q0 19.286-12.857 32.143T795-120ZM229-588l81-82-23-110H180q2 42 13.5 88.5T229-588Zm369 363q41 19 89 31t93 14v-107l-103-21-79 83ZM229-588Zm369 363Z"/></svg>') no-repeat left -4px center / 32px auto;
}

.mail {
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%232952a1" height="48" viewBox="0 -960 960 960" width="48"><path d="M120-160v-640l760 320-760 320Zm60-93 544-227-544-230v168l242 62-242 60v167Zm0 0v-457 457Z"/></svg>') no-repeat left -4px center / 32px auto;
}

.iframeTab {
	min-height: 230px;
}

.iframeTab .template-page :is(.row, .row > *) {
	position: static !important;
}

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

@media (min-width: 768px) {
	.iframeTab :is(.iframe-wrapper-manual-enabling, iframe) {
		position: absolute;
		top: 0;
		right: 15px;
		bottom: 0;
		left: 15px;
		height: 100% !important;
		width: calc(100% - 30px) !important;
		min-width: calc(100% - 30px) !important;
	}
}

/* #endregion -------------------------------- contactRow --------------------------------------- */

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

#footerNav {
	padding: 20px 0;
	background: linear-gradient(to bottom, #2952a1, #506ea8);
}

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

#innerfooter ul {
	padding: 0;
	font-size: 1rem;
}

#innerfooter li {
	display: inline-block;
}

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

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

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

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