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

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

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

a {
	color: #295eff;
}

a:is(:hover, :focus) {
	color: #295eff;
}

.linkUnderline a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: text-decoration 300ms;
}

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

b,
strong {
	font-weight: 600;
}

:is(header, #leistungen, #feedback, #termin) {
	overflow: hidden;
	position: relative;
}

/* #region --------------------------------- buttonStyle ---------------------------------------- */

.buttonStyle a:not(.has-image):not([rel]):not(.nivo-directionNav > a) {
	border-radius: 8px;
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	padding: 16px 20px;
	transition: all 300ms;
	position: relative;
	line-height: 1.2;
	background: #ffffff;
	color: #181d4a !important;
	text-decoration: none;
	margin-top: 15px;
	outline: 2px solid #fff;
	outline-offset: -2px;
}

.buttonStyle a:not(.has-image):not([rel]):not(.nivo-directionNav > a):is(:focus, :hover) {
	color: #fff !important;
	background: #295eff;
}

/* specific buttons */

#termin .buttonStyle a:not(.has-image):not([rel]) {
	font-size: inherit;
}

/* #endregion ------------------------------ buttonStyle ---------------------------------------- */

/* LOGO TEXT -------------------------------------------------------- */

.logo {
	display: flex;
	flex-wrap: wrap;
	gap: 15px 15px;
	text-decoration: none !important;
}

.logo .template-page {
	width: auto;
}

.logo .cleaner {
	display: none;
}

.logoText {
	color: #181d4a;
	font-size: 1.125rem;
	align-content: center;
	line-height: 1.1;
}

.logoText :is(b, strong) {
	color: #295eff;
	text-transform: uppercase;
	font-size: 1.625rem;
}

@media (max-width: 575px) {
	.logoText {
		hyphens: auto;
	}
}

/* LOGO TEXT -------------------------------------------------------- */

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

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

nav.horizontally>.row {
	row-gap: 20px;
}

/* burgermenu for tablet */

@media (max-width: 991px) {
	nav.horizontally {
		position: static !important;
	}

	#burgerButton {
		font-size: 0;
		border: none !important;
		display: block;
		height: 50px;
		width: 60px;
		border-radius: 8px;
		padding: 6px 8px;
		cursor: pointer;
		background-color: #295eff;
	}

	#burgerButton::before,
	#burgerButton::after,
	#burgerButtonInner {
		background-color: #ffffff;
		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;
		right: 15px;
		top: 15px;
		z-index: 101;
	}

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

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

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally {
		padding: 8px 0;
		transition: padding 200ms linear;
	}

	.is-sticky nav.horizontally {
		padding: 10px 0 10px 0;
	}

	nav.horizontally .navbar-nav {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
		row-gap: 2px;
		margin-top: 26px;
		transition: margin-top 200ms linear;
	}

	.is-sticky nav.horizontally .navbar-nav {
		margin-top: 12px;
	}

	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, :hover)>ul,
	nav.horizontally .navbar-nav li.open:focus-within>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.open>ul {
		pointer-events: none !important;
		opacity: 0 !important;
		visibility: hidden;
	}

	nav.horizontally .navbar-nav li:is(:hover, :focus)>ul {
		z-index: 1003;
	}
}

@media (min-width: 1200px) {
	nav.horizontally>.row {
		max-width: 1400px;
		width: 100%;
	}
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
	color: #181d4a;
	font-weight: 600;
	padding: 12px 15px;
	position: relative;
	text-align: left;
	border-radius: 8px;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
}

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

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

	nav.horizontally a[class*="toplevel"].dropdown-toggle::after {
		content: "";
		border-bottom: 1px solid #181d4a;
		border-left: 1px solid #181d4a;
		border-radius: 1px;
		display: block;
		position: absolute;
		right: 13px;
		top: calc(50% - 5px);
		transform: rotate(-45deg);
		height: 6px;
		width: 6px;
		transition: border 300ms linear;
	}
}

/* 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: #f0f4ff;
	color: #181d4a;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	background: #ffffff;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
	padding: 15px;
	border-radius: 10px;
}

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

	nav.horizontally [class*="secondlevel"]>ul {
		padding: 15px;
	}
}

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

	nav.horizontally [class*="toplevel"]>ul {
		margin-top: 40px;
	}

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #181d4a;
	font-weight: normal;
	text-align: left;
	padding: 9px 15px;
	font-size: 0.875rem;
	line-height: 1.2;
	text-decoration: none;
	border-radius: 8px;
}

@media (max-width: 991px) {
	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: #f0f4ff;
	color: #181d4a;
}

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

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

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

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

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

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

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

#headerpic {
	padding: 30px 0 clamp(40px, 6vw, 80px) 0;
	z-index: 2;
	background: #f0f4ff;
}

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

#headerpic>.row:first-child {
	max-width: 1400px;
	width: 100%;
}


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

.slider-mask {
	display: none;
}

@media (min-width: 992px) {
	body.index .slider-mask {
		display: block;
		background: linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 100%);

	}
}

/* Banner-Tabs */

#bannerTabs {
	margin-top: 30px;
}

@media (min-width: 768px) {
	#bannerTabs {
		margin-top: -60px;
	}
}

#bannerTabs,
#bannerTabs .tab1>.row {
	row-gap: 30px;
}

#bannerTabs .tab {
	border-radius: 20px;
	font-size: 1rem;
	line-height: 1.75;
	min-height: 100%;
	padding: 40px 50px 30px 30px;
	position: relative;
	z-index: 12;
}

#bannerTabs .tab1 {
	background: #ffffff;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
	#bannerTabs .tab1>.row>*:not(:last-child) {
		padding-right: 30px;
	}

	#bannerTabs .tab1>.row>*+* {
		border-left: 1px solid rgba(0, 0, 0, 0.2);
		padding-left: 30px;
	}
}

#bannerTabs .tab2 {
	background: #295eff;
	color: #ffffff;
}

#bannerTabs .tab2,
#bannerTabs .tab2 :is(h1, h2, h3, h4, h5, h6, a) {
	color: #ffffff;
}

/* Banner-Tabs icon */

#bannerTabs .tab::before {
	content: "";
	display: block;
	height: 30px;
	position: absolute;
	right: 20px;
	top: 20px;
	width: 30px;
}

#bannerTabs .tab:is(:hover, :focus-within)::before {
	animation: shake 1s ease 1;
}

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

/* ------------------------------------------ ICONS Shake --------------------------------------- */

@keyframes shake {

	40%,
	60% {
		transform: rotate(-5deg);
	}

	50% {
		transform: rotate(5deg);
	}

	70% {
		transform: rotate(0deg);
	}

	100% {
		transform: scale(1);
	}
}

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

#content {
	text-align: left;
	padding-bottom: clamp(40px, 7vw, 100px);
	padding-top: 40px;
}

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

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

h1,
.h1,
.legacy_h1,
#termin :is(h1, h2) {
	font-size: clamp(1.75rem, 4vw, 2.1875rem);
}

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

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

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

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

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

#bannerTabs .tab .tabHeadline,
#footer :is(h1, h2, h3, h4, h5, h6) {
	font-size: 1.375rem;
}

main :is(h1, h2) {
	margin-bottom: 25px;
}

:is(h1, h2, h3) :is(i, em) {
	color: #295eff;
	font-size: 1rem;
	font-weight: 400;
	margin-bottom: 8px;
	font-style: normal;
	display: block;
}

:is(#termin .tab) :is(h1, h2, h3) :is(i, em) {
	color: #ffffff;
}

/* ----------------------------------------------- @1nw news -------------------------------------------- */

#nw1 {
	padding-top: 30px;
	padding-bottom: 70px;
	margin-bottom: 70px;
	background: linear-gradient(to bottom, #fff 50%, #f0f4ff 50%);
}

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

#nw1 .tab {
	color: #ffffff;
	padding: 30px;
	overflow: hidden;
	background: #295eff;
	border-top-left-radius: 20px;
	box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
	#nw1 .tab {
		border-bottom-left-radius: 20px;
	}
}

@media (max-width: 991px) {
	#nw1 .tab {
		border-top-right-radius: 20px;
	}
}

#nw1 .tabHeadline {
	color: #ffffff;
	font-weight: 600;
	hyphens: auto;
	font-size: clamp(1.75rem, 2vw, 2rem);
}

#nw1 .tab,
#nw1 .tab_link,
#nw1 .tab_link>div {
	height: 100%;
	min-height: 100%;
}

#nw1 .tab_link_entries {
	display: grid;
	gap: 30px;
}

@media (min-width: 576px) {
	#nw1 .tab_link_entries {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 768px) {
	#nw1 .tab_link_entries {
		grid-template-columns: repeat(3, 1fr);
	}
}

#nw1 .tab_link_entry {
	font-size: 1rem;
	position: relative;
	width: 100%;
	padding: 160px 30px 30px 30px;
	background: #ffffff;
	box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1) !important;
}

@media (min-width: 992px) {
	#nw1 .tab_link_entry:last-of-type {
		border-bottom-right-radius: 20px;
		border-top-right-radius: 20px;
		overflow: hidden;
	}
}

@media (max-width: 991px) {
	#nw1 .tab_link_entry:last-of-type {
		border-bottom-right-radius: 20px;
	}

	#nw1 .tab_link_entry:first-of-type {
		border-bottom-left-radius: 20px;
	}
}

#nw1 .vorschau {
	opacity: 1;
}

#nw1 .tab_preview_picture {
	background: #ffffff;
}

#nw1 .tab_link_entry::before,
#nw1 .tab_link_entry .tab_preview_picture {
	position: absolute;
	display: block;
	top: -1px;
	left: -1px;
	right: -1px;
	height: 120px;
	overflow: hidden;
}

#nw1 .tab_link_entry::before {
	content: "";
	background: center / cover no-repeat, #666666;
}

#nw1 .tab_preview_picture img {
	position: absolute;
	margin: 0 !important;
	left: 50%;
	top: 50%;
	max-width: none;
	min-width: 100%;
	min-height: 100%;
	max-width: 350px;
	width: auto;
	height: auto;
	-ms-interpolation-mode: bicubic;
	transform: translateX(-50%) translateY(-50%);
}

#nw1 .tab_date {
	display: inline-block;
	position: absolute;
	z-index: 1;
	left: -1px;
	top: 105px;
	font-weight: 400;
	color: #ffffff;
	font-size: 0.75rem;
	padding: 6px 20px;
	background: #295eff;
	border-radius: 0 3px 3px 0;
}

#nw1 .tab_link_title a {
	display: block;
	font-weight: 600;
	font-size: 1rem;
	color: #295eff;
	line-height: 1.2;
	margin-bottom: 8px;
}

#nw1 .tab_link_entries+div,
#nw1 .tab_link_entries .tab_spacer,
#nw1 .tab_link_entry>div:nth-last-child(2) {
	display: none;
}


/* #region ------------------------------------- termin ----------------------------------------- */

#termin {
	z-index: 1;
	background: linear-gradient(to bottom, #fff 50%, #f0f4ff 50%);
	padding: 0 15px;
}

#termin>.row {
	background: #295eff;
	border-radius: 20px;
}

@media (min-width: 768px) {
	#termin>.row::before {
		content: "";
		display: block;
		position: absolute;
		left: 41%;
		top: 0;
		right: 0;
		bottom: 0;
		width: 59%;
		background: center / cover no-repeat;
		border-top-right-radius: 20px;
		border-bottom-right-radius: 20px;
	}
}

@media (min-width: 1200px) {
	#termin>.row {
		max-width: 1170px;
		width: 100%;
	}
}

#termin .tab {
	padding: clamp(40px, 5vw, 70px) clamp(30px, 4vw, 60px) clamp(40px, 7vw, 100px) clamp(30px, 4vw, 60px);
}

#termin .tab,
#termin .tab :is(h1, h2, h3, h4, h5, h6) {
	color: #ffffff;
}

#tabImg {
	background: center / cover no-repeat;
}

/* #endregion ---------------------------------- termin ----------------------------------------- */

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

#footer {
	font-size: 1rem;
	padding: clamp(40px, 4vw, 55px) 0 clamp(40px, 3vw, 50px) 0;
	background: #f0f4ff;
}

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

#footer :is(h1, h2, h3, h4, h5, h6) {
	margin-bottom: 20px;
}

#footer hr {
	background: rgba(0, 0, 0, 0.2);
	margin: clamp(30px, 3vw, 35px) 0 30px 0;
	border: unset;
	height: 1px;
	width: 100%;
	opacity: 1;
}

#innerfooter ul {
	padding: 0;
}

#innerfooter ul a {
	color: inherit;
	text-decoration: none;
}

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

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

	#innerfooter li+li::before {
		content: "•";
		color: #295eff;
		margin: 0 clamp(15px, 4vw, 45px);
	}
}

#innerfooter a {
	display: inline-block;
}

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

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

#footer #vernetzt {
	gap: clamp(15px, 3vw, 55px);
	text-align: left !important;
	font-size: 0.875rem;
	color: #181d4a;
	line-height: 1.3;
	font-weight: 400;
	text-decoration: none;
}

#footer #vernetzt span span {
	display: block;
}

#footer #vernetzt b {
	color: #295eff;
}