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

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

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

a {
	color: #06709d;
}

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

.gap {
	gap: 30px 0;
}

b,
strong {
	font-weight: 700;
}

#overflow {
	overflow: hidden;
}

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

#topbar {
	background: #fff;
	padding: clamp(10px, 2vw, 30px) 0;
}

.is-sticky #topbar {
	box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
}

#contact {
	font-size: 0.875rem;
}

#contact p {
	display: inline-block;
	vertical-align: middle;
	padding-block: 5px;
}

@media (min-width: 992px) {
	#contact p + p {
		padding-left: 20px;
		margin-left: 20px;
		border-left: rgba(0, 0, 0, 0.1) 1px solid;
	}
}

#contact br {
	display: none;
}

#logo {
	display: inline-block;
	position: relative;
	z-index: 51;
	box-shadow: 0px 5px 6px 0px rgba(0, 0, 0, 0.15);
	border-radius: 100vw;
}

#logo img {
	display: block;
	transition: max-height 300ms linear;
	max-height: 150px;
}

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

	.is-sticky #logo img {
		max-height: 70px;
	}
	.is-sticky #logo {
		margin-bottom: -30px;
	}
}

@media (min-width: 992px) {
	#logo {
		padding: 40px 20px 20px 20px;
		aspect-ratio: 1;
		height: fit-content;
		margin-top: -30px;
		position: absolute;
		top: 0;
		left: 15px;
		background: #fff;
		width: inherit;
		text-align: center;
		display: flex;
		justify-content: center;
		align-items: center;
		transition:
			padding 300ms,
			width 300ms;
	}

	.is-sticky #logo {
		padding: 20px;
		width: auto;
	}

	#logo img {
		max-height: 250px;
	}

	.is-sticky #logo img {
		max-height: 150px;
	}
}

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

/* burgermenu for tablet */

@media (min-width: 992px) {
	nav.burger {
		box-shadow: 0px 10px 25px 0px rgba(0, 0, 0, 0.15);
		padding: 0 20px;
		border-radius: 10px;
		margin-top: 20px;
		position: relative;
	}
	nav.burger::before {
		content: "";
		position: absolute;
		background: url(../img/schmetterlinge-menue.png);
		width: 112px;
		height: 73px;
		left: -10px;
		transform: translateX(-100%);
	}
}

#burgerButton {
	font-size: 0;
	border: none !important;
	position: relative;
	z-index: 1004;
	display: block;
	width: 50px;
	height: 50px;
	cursor: pointer;
	background-color: transparent !important;
}

@media (max-width: 991px) {
	#burgerButton {
		position: fixed;
		right: 15px;
		top: 15px;
		background-color: #ffffff !important;
		box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
		border-radius: 2px;
	}
}

@media (min-width: 992px) {
	#burgerButton {
		margin: 0 -10px 0 0;
	}
}

#burgerButton::before,
#burgerButton::after,
#burgerButtonInner {
	position: absolute;
	background: #282828;
	width: 28px;
	height: 2px;
	left: calc(50% - 14px);
	color: #ffffff !important;
	transition:
		transform 200ms linear,
		opacity 200ms linear,
		width 200ms linear;
}

@media (prefers-contrast: more) {
	#burgerButton::before,
	#burgerButton::after,
	#burgerButtonInner {
		border: 1px solid #ffffff;
		box-sizing: border-box;
	}
}

#burgerButton[aria-expanded="true"] #burgerButtonInner {
	transform: rotate(-45deg) translate(-4px, 6px);
}

#burgerButton[aria-expanded="true"]::before {
	opacity: 0;
}

#burgerButton[aria-expanded="true"]::after {
	transform: rotate(45deg) translate(-4px, -6px);
	width: 28px;
}

#burgerButtonInner {
	top: 16px;
}

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

#burgerButton::after {
	top: 30px;
	width: 14px;
	content: "";
}

@media (min-width: 992px) {
	#menuspan {
		font-size: 1.125rem;
		font-weight: 700;
		font-family: "Balsamiq Sans", serif;
	}
}

/* burgermenu for tablet */

@media (max-width: 991px) {
	.dropdown-toggle-button-wrapper,
	.dropdown-toggle-button-wrapper2 {
		color: #fff;
	}
	.navbar-nav {
		margin: 20px 0;
		background-color: #ffffff;
		box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.15);
	}

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

	.dropdown-toggle-button::before,
	.dropdown-toggle-button::after {
		background: #c2001d;
	}
}

/* menu desktop */

@media (min-width: 992px) {
	#myNavbar {
		padding: 30px 15px;
		background: #ffffff;
		box-shadow: none;
		pointer-events: none;
		position: absolute;
		z-index: 1002;
		top: 70px;
		right: 0;
		opacity: 0;
		width: 992px;
		border-radius: 0;
		height: auto !important;
		overflow: visible !important;
		visibility: hidden;
		transition:
			opacity 300ms linear,
			top 300ms linear;
		box-shadow:
			0px 0px 50px 10px rgba(0, 0, 0, 0.15),
			0 0 0 100vw rgba(217, 242, 252, 0.4);
		border-radius: 10px;
	}

	#burgerButton[aria-expanded="true"] + #myNavbar,
	#myNavbar:focus-within {
		pointer-events: auto;
		opacity: 1;
		top: 140px;
		visibility: visible;
	}

	#myNavbar::before {
		content: "";
		display: block;
		position: absolute;
		right: 24px;
		top: -16px;
		width: 30px;
		height: 16px;
		clip-path: polygon(0 100%, 100% 100%, 50% 0);
		background: #ffffff;
	}

	#myNavbar > .mCustomScrollBox {
		max-height: 70vh;
		padding-right: 15px;
	}

	nav.burger .navbar-nav {
		display: block;
		column-count: 3;
		column-gap: 30px;
		column-rule: 1px solid rgba(0, 0, 0, 0.2);
	}

	nav.burger .navbar-nav > li {
		padding-bottom: 17px;
		padding-top: 7px;
		float: none;
		-webkit-column-break-inside: avoid;
		page-break-inside: avoid;
		break-inside: avoid;
		display: table !important;
	}

	nav.burger .navbar-nav ul {
		display: block !important;
	}

	nav.burger {
		margin-left: 30px;
	}
}

@media (min-width: 1200px) {
	#myNavbar.navbar-collapse {
		width: 1200px;
	}

	nav.burger .navbar-nav {
		column-count: 4;
	}
}

/* toplevel */

nav.burger a[class*="toplevel"] {
	color: #c2001d;
	font-weight: 600;
	text-align: left;
	padding: 12px 15px;
	position: relative;
	font-size: 1rem;
	line-height: 1.2;
	hyphens: auto;
	text-decoration: none;
}

@media (max-width: 991px) {
	nav.burger li[class*="toplevel"] {
		border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	}

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

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

/* toplevel-over */

nav.burger li[class*="toplevel"]:is(:hover, :focus-within) > a,
nav.burger li[class*="toplevel"] > a:is(:hover, :focus),
nav.burger li[class*="toplevel"].open > a,
nav.burger li[class*="toplevel"].open > a:is(:hover, :focus),
nav.burger li[class*="toplevel"][class*="_over"] > a,
nav.burger li[class*="toplevel"][class*="_over"] > a:is(:hover, :focus) {
	color: #c2001d;
	text-decoration: underline;
}

/* secondlevel + thirdlevel dropdown-box */

nav.burger [class*="toplevel"] ul {
	background: #ffffff;
}

/* secondlevel + thirdlevel */

nav.burger a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #282828;
	font-weight: 400;
	text-align: left;
	padding: 8px 35px;
	position: relative;
	font-size: 0.9375rem;
	line-height: 1.2;
	text-decoration: none;
	hyphens: auto;
}

@media (max-width: 991px) {
	nav.burger a[class*="secondlevel"] {
		padding-left: 30px;
	}

	nav.burger a[class*="thirdlevel"] {
		padding-left: 45px;
	}
}

@media (min-width: 992px) {
	nav.burger a[class*="secondlevel"] {
		padding: 5px 5px 5px 30px;
	}

	nav.burger a[class*="thirdlevel"] {
		padding: 4px 10px 4px 53px;
	}

	nav.burger a[class*="thirdlevel"]::after {
		content: "\00BB";
		position: absolute;
		left: 41px;
		top: 2px;
		bottom: 0;
		margin: auto;
	}
}

nav.burger li:is([class*="_start"], [class*="end"]) {
	display: none;
}

/* secondlevel + thirdlevel over */

nav.burger li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within) > a,
nav.burger li:is([class*="secondlevel"], [class*="thirdlevel"]) > a:is(:hover, :focus),
nav.burger li:is([class*="secondlevel"], [class*="thirdlevel"]).open > a,
nav.burger li:is([class*="secondlevel"], [class*="thirdlevel"]).open > a:is(:hover, :focus),
nav.burger li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"] > a,
nav.burger li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"] > a:is(:hover, :focus) {
	color: #c2001d;
	text-decoration: underline;
}

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

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

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

@media (min-width: 992px) {
	body.index #slider {
		max-height: clamp(450px, 78vw, 695px);
	}
}

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

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

.slider-mask {
	display: block;
	background: url("../img/banner-welle-oben.png"), url(../img/banner-welle-unten.png);
	background-position:
		top center,
		bottom center;
	background-repeat: no-repeat;
	background-size: contain;
}

#bannerOverlay {
	margin-top: 30px;
	font-size: clamp(1rem, 2vw, 1.25rem);
}

@media (min-width: 992px) {
	#bannerOverlay {
		position: absolute;
		left: 0;
		right: 30px;
		bottom: 90px;
		z-index: 51;
		pointer-events: none;
	}

	#headerpic .nivo-controlNav {
		bottom: 15px;
	}
}

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

#slogan {
	background: rgba(255, 255, 255, 0.9);
	border-radius: 30px;
	padding: 40px;
	pointer-events: all;
	position: relative;
	hyphens: auto;
}

@media (min-width: 992px) {
	#slogan {
		padding-right: 200px;
		hyphens: none;
	}
	#slogan::after {
		content: "";
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		background: url(../img/sticker.png);
		width: 175px;
		height: 139px;
		right: 30px;
	}
}

.sloganHeadline {
	margin: 0;
}

/* ------------------------------------------- buttons ------------------------------------------ */

.buttonStyle a {
	color: #06709d;
	display: inline-block;
	text-align: center;
	font-size: 0.9375rem;
	text-decoration: none;
	min-width: 110px;
	padding: 8px clamp(10px, 2vw, 20px);
	margin-top: 22px;
	background: #ffffff;
	border: 1px solid #06709d;
	border-radius: 10px;
	transition:
		background-color 300ms linear,
		color 300ms linear,
		border 100ms linear;
}

.buttonStyle a:is(:hover, :focus) {
	background: #06709d;
	color: #ffffff;
}

.buttonStyle a + a {
	margin-left: 20px;
}

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

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

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

#breaker {
	background-attachment: fixed;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 70px 0;
}

#teaser {
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
	border-top: #06709d 6px solid;
	border-radius: 30px;
	padding: clamp(30px, 4vw, 60px);
	position: relative;
}

#teaser::before,
#teaser::after {
	content: "";
	position: absolute;
}

@media (min-width: 992px) {
	#teaser::before {
		background: url(../img/zwei-kinder-hand-in-hand.png);
		width: 144px;
		height: 123px;
		top: -30px;
		right: -50px;
	}
}

#teaser::after {
	background: url(../img/mädchen.png);
	width: 105px;
	height: 153px;
	bottom: -40px;
	left: -40px;
}

#teaser .teaserHeadline {
	font-size: clamp(2rem, 5vw, 3.125rem);
	margin: 0;
}

#teaser :is(b, strong) {
	font-size: clamp(1.25rem, 2.5vw, 1.875rem);
	font-family: "Balsamiq Sans", serif;
	font-weight: 400;
	color: #c2001d;
	display: block;
}

#teaser a::after {
	content: "\00BB";
	margin-left: 4px;
	display: inline-block;
}
/* ----------------------------------------------- @10nw news -------------------------------------------- */

#nw10 .tab {
	font-size: 0.9375rem;
	color: #282828;
	position: relative;
	padding: 45px 20px 20px 20px;
	background: #ffffff;
	border-top: 4px solid #06709d;
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
	border-radius: 10px;
}

@media (max-width: 991px) {
	#nw10 .tab {
		margin-top: 60px;
	}
}

#nw10 .tab::before {
	content: "";
	position: absolute;
	display: block;
	top: -32px;
	left: 0;
	right: 0;
	margin: auto;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background:
		url("../img/icon-aktuelles.png") center no-repeat,
		#ffffff;
	box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.15);
}

#nw10 .tabSpecial {
	margin-bottom: 20px;
}

#nw10 .tabSpecial .tabHeadline {
	font-size: 1.4375rem;
	font-weight: 700;
	margin-bottom: 0;
}

#nw10 .tab .tab_link_entries {
	display: grid;
	gap: 20px;
}

#nw10 .tab .tab_link_title a {
	color: #282828;
	font-weight: 700;
}

#nw10 .tab .tab_link_mandat a {
	color: #282828;
}

#nw10 .tab .tab_preview_picture,
#nw10 .tab .tab_link_entry > div:nth-last-child(2),
#nw10 .tab .tab_spacer {
	display: none;
}

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

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

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

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

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

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

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

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

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

#footer {
	background: #fff;
	padding: 60px 0 80px 0;
	font-size: 1rem;
	position: relative;
	isolation: isolate;
}

#footer::after {
	content: "";
	display: block;
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: -1;
	background: url(../img/banner-welle.png) no-repeat center bottom;
	background-size: contain;
}

#footer .logo {
	box-shadow: 0px 0px 25px 0px rgba(0, 0, 0, 0.15);
	border-radius: 100vw;
	display: block;
	width: fit-content;
	margin: 0 auto;
}

@media (max-width: 991px) {
	:is(#footer, #innerfooter) > .row > .col-xs-12 + * {
		border-top: 1px solid rgba(255, 255, 255, 0.2);
		margin-top: 20px;
		padding-top: 20px;
	}
}

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

.footerHeadline {
	margin: 0 0 10px 0;
	font-size: 1.5625rem;
}

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

#innerfooter {
	background-color: #fdf1e2;
	padding: 20px 0;
	font-size: 1rem;
}

#innerfooter ul {
	padding: 0;
}

#innerfooter li {
	display: inline-block;
}

.innerfooter a {
	color: #282828;
	text-decoration: none;
	display: inline-block;
	padding: 10px 12px;
}

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

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

/* ------------------------------------------- scroll top --------------------------------------- */

#scroll-top {
	font-size: 0;
	width: 33px;
	height: 33px;
	display: block;
	position: relative;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 10px;
}

@media (min-width: 768px) {
	#scroll-top {
		margin-right: 0;
	}
}

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

#scroll-top::after {
	content: "";
	position: absolute;
	left: 10px;
	top: 3px;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	margin-top: 10px;
	display: inline-block;
	border-right: 3px solid #06709d;
	border-top: 3px solid #06709d;
	transform: rotate(-45deg);
	transition: border 300ms linear;
}

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

#vernetzt {
	gap: 14px;
	text-align: right;
	color: #282828;
	line-height: 1.3;
	font-weight: 400;
	text-decoration: none;
	font-size: 0.8125rem;
}

#vernetzt span span {
	display: block;
}
