@import url("https://fonts.verwaltungsportal.de/import/?family=Nunito:400,400i,700,700i%7COswald:700");

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

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

a {
	color: #1a477f;
}

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

#content a,
b,
strong {
	font-weight: 700;
}

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

@media (min-width: 1200px) {
	.row {
		width: 100%;
		max-width: 1600px;
	}

	#quick-access {
		max-width: 1070px;
	}
}

:not(.cc_banner-wrapper):focus-visible,
#vernetzt:focus-visible span {
	background-color: #fff !important;
	color: #1a477f !important;
	z-index: 100;
	text-decoration: none;
	outline: 2px solid #efd362;
}


#overflow {
	overflow: hidden;
}

/* #region ----------------------------------- topbar ------------------------------------------- */

@media (min-width: 992px) {
	#topbar {
		font-size: 1rem;
		padding: 12px 0;
		background: #e8e8e8;
		position: sticky;
		top: 0;
		z-index: 101;
	}

	#topbar .controls-col {
		column-gap: 30px;
	}

	#topbar .controls-col {
		transition: padding 200ms linear;
	}

	body:has(.is-sticky, #burgerButton[aria-expanded="true"]) #topbar .controls-col {
		padding-right: 130px;
	}

	/* style + contrast */

	#style,
	#contrast_style {
		column-gap: 10px;
	}

	:is(#style, #contrast_style) h2 {
		font-family: inherit;
		font-size: inherit;
		font-weight: 700;
		color: inherit;
		margin: 0 5px 0 0;
	}

	:is(#style, #contrast_style) button {
		width: 35px;
		height: 35px;
		padding: 0;
		border: 2px solid #13345c;
		background: #ffffff;
		font-weight: 700;
		flex-shrink: 0;
		transition: border 300ms linear;
		position: relative;
		line-height: 1;
	}

	:is(#style, #contrast_style) button::after {
		content: "";
		display: block;
		position: absolute;
		top: 3px;
		right: 3px;
		bottom: 3px;
		left: 3px;
		border: 2px solid #8d8d8d;
	}

	:is(#style, #contrast_style) button:is(:hover, :focus) {
		border-color: #efd362;
	}

	/* contrast */

	#contrast_style button::after {
		background: linear-gradient(45deg, #333333, #333333 50%, #ffffff 50%);
	}

	#contrast_style button:nth-of-type(2)::after {
		transform: scale(-1);
	}

	#contrast_style button:nth-of-type(3)::after {
		background: #1a477f;
		border: none;
	}
}

/* #endregion -------------------------------- topbar ------------------------------------------- */

/* -------------------------------------------- @nav1 Navigation ------------------------------------------- */

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

#logo {
	display: inline-block;
}

#logo img {
	display: block;
}

@media (min-width: 992px) {
	#logo {
		margin-top: -36px;
		position: absolute;
		z-index: 60;
	}

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

	#logo img {
		width: 100%;
	}

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

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

/* --------------------------------------- navigation --------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
	#menu {
		padding: 10px 0;
		position: static !important;
		background-color: #ffffff;
	}

	.is-sticky #menu {
		-webkit-box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
		box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
	}

	#burgerButton {
		font-size: 0;
		border: none !important;
		position: relative;
		z-index: 1002;
		display: block;
		width: 46px;
		height: 40px;
		border-radius: 2px;
		cursor: pointer;
		background-color: #ffffff;
		padding: 3px;
	}

	#burgerButton:before,
	#burgerButton:after,
	#burgerButtonInner {
		background-color: #1a477f;
		border-radius: 2px;
		position: absolute;
		width: 40px;
		height: 3px;
		left: 2px;
		-webkit-transition: transform 200ms linear, opacity 200ms linear;
		-moz-transition: transform 200ms linear, opacity 200ms linear;
		-ms-transition: transform 200ms linear, opacity 200ms linear;
		-o-transition: transform 200ms linear, opacity 200ms linear;
		transition: transform 200ms linear, opacity 200ms linear;
	}

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

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

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

	#burgerButtonInner {
		top: 10px;
	}

	#burgerButton:before {
		top: 18px;
	}

	#burgerButton:after {
		top: 26px;
	}

	#burgerButton:before,
	#burgerButton:after {
		content: "";
		display: block;
	}

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

	.navbar-collapse {
		top: 0;
		background: #ffffff;
		position: fixed;
		left: -100%;
		bottom: 0;
		z-index: 100;
		height: auto !important;
		-webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
		box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
		opacity: 0;
		pointer-events: none;
		overflow-y: auto;
		-webkit-transition: left 300ms linear, opacity 300ms linear;
		-moz-transition: left 300ms linear, opacity 300ms linear;
		-ms-transition: left 300ms linear, opacity 300ms linear;
		-o-transition: left 300ms linear, opacity 300ms linear;
		transition: left 300ms linear, opacity 300ms linear;
	}

	.navbar-collapse.collapse.in {
		left: 0;
		opacity: 1;
		pointer-events: auto;
	}

	.navbar-header {
		height: 50px;
		width: 60px;
		border-radius: 2px;
		padding: 6px 8px;
		background-color: #ffffff;
		position: fixed;
		top: 15px;
		right: 15px;
		z-index: 101;
		-webkit-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
		box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
	}

	.navbar-collapse.in:after {
		content: "";
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: -1;
		display: block;
		width: 90px;
		background-color: rgba(0, 0, 0, 0.5);
	}
}

@media (min-width: 575px) and (max-width: 991px) {
	.navbar-collapse {
		width: 60%;
	}

	.navbar-collapse.collapse.in:after {
		width: 40%;
	}
}

/* menu desktop */

@media (min-width: 992px) {
	#menu {
		background-color: #ffffff;
	}

	.is-sticky #menu {
		-webkit-box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
		box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
	}

	nav.horizontally .navbar-nav {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-pack: end !important;
		-ms-flex-pack: end !important;
		justify-content: flex-end !important;
		-webkit-box-align: center !important;
		-ms-flex-align: center !important;
		align-items: center !important;
		flex-wrap: wrap;
		gap: 10px 60px;
	}

	nav.horizontally li[class*="toplevel"]>ul {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 1000;
		margin: 0;
		padding: 10px 0;
		padding-top: 20px;
		padding-bottom: 20px;
		max-height: 60vh;
		overflow: visible;
		display: block !important;
		pointer-events: none;
		opacity: 0;
		-webkit-transition: opacity 300ms linear;
		-moz-transition: opacity 300ms linear;
		-ms-transition: opacity 300ms linear;
		-o-transition: opacity 300ms linear;
		transition: opacity 300ms linear;
	}

	nav.horizontally li[class*="toplevel"]>ul::after {
		content: "";
		display: block;
		position: absolute;
		width: 100vw;
		z-index: -1;
		-moz-transform: translateX(-50%);
		-webkit-transform: translateX(-50%);
		-o-transform: translateX(-50%);
		-ms-transform: translateX(-50%);
		transform: translateX(-50%);
		left: 50%;
		top: 0;
		bottom: 0;
		background: rgba(19, 52, 92, 0.96);
		box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
		-webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
		-moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
	}

	nav.horizontally li[class*="toplevel"]>ul:not(.mCustomScrollbar),
	nav.horizontally li[class*="toplevel"]>ul .mCSB_container {
		-webkit-column-count: 5;
		-moz-column-count: 5;
		column-count: 5;
		-webkit-column-gap: 30px;
		-moz-column-gap: 30px;
		column-gap: 30px;
		max-width: 992px;
		margin-left: auto;
		margin-right: auto;
		padding: 0 15px;
		height: auto;
		display: flex !important;
	}

	nav.horizontally li[class*="secondlevel"] {
		float: none;
		-webkit-column-break-inside: avoid;
		page-break-inside: avoid;
		break-inside: avoid;
		display: table !important;
	}

	.navbar-default .navbar-nav li[class*="toplevel"]:hover>ul {
		pointer-events: auto !important;
		opacity: 1 !important;
		top: 100%;
		z-index: 1003;
	}

	.navbar-default .navbar-nav li[class*="toplevel"]:focus-within>ul {
		pointer-events: auto !important;
		opacity: 1 !important;
		top: 100%;
	}

	.nav li[class*="toplevel"].open>.dropdown-menu {
		pointer-events: none !important;
		opacity: 0 !important;
	}

	#mCSB_1_scrollbar_vertical {
		left: 50%;
		margin-left: calc(962px/2);
	}

	nav.horizontally .dropdown-menu {
		display: block !important;
	}
}

@media (min-width: 1200px) {

	nav.horizontally li[class*="toplevel"]>ul:not(.mCustomScrollbar),
	nav.horizontally li[class*="toplevel"]>ul .mCSB_container {
		max-width: 1340px;
		padding-top: 20px;
		padding-bottom: 45px;
	}

	#mCSB_1_scrollbar_vertical {
		margin-left: calc(1170px/2);
	}
}

nav.horizontally li[class$="_end"], nav.horizontally li[class$="_start"] {
	display: none;
}

/* ---------------------------------------------- toplevel ---------------------------------------------- */

.navbar-default .navbar-nav>li>a {
	color: #333333;
	font-weight: 400;
	text-align: left;
	padding: 15px 35px 15px 15px;
	position: relative;
	font-size: clamp(1.125rem, 1.5vw, 1.375rem);
	line-height: 1.2;
	text-decoration: none;
}

@media (max-width: 991px) {
	.navbar-default .navbar-nav>li {
		border-bottom: 1px solid rgba(68, 68, 68, 0.2);
	}
}

@media (min-width: 992px) {
	.navbar-default .navbar-nav>li>a {
		padding: 34px 5px 36px 5px;
		display: flex;
		align-content: center;
		align-items: center;
		justify-content: center;
		text-align: center;
		height: 100%;
	}
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) and (min-width: 992px) {
	.navbar-default .navbar-nav>li>a {
		display: block;
	}
}

.navbar-default .navbar-nav>li>a::after {
	content: "";
	position: absolute;
	display: block;
	width: 0;
	bottom: 30px;
	height: 2px;
	left: 50%;
	-moz-transform: translateX(-50%);
	-webkit-transform: translateX(-50%);
	-o-transform: translateX(-50%);
	-ms-transform: translateX(-50%);
	transform: translateX(-50%);
	background: #efd362;
	-webkit-transition: width 300ms linear;
	-moz-transition: width 300ms linear;
	-ms-transition: width 300ms linear;
	-o-transition: width 300ms linear;
	transition: width 300ms linear;
}

@media (max-width: 991px) {
	.navbar-default .navbar-nav>li>a::after {
		bottom: 0;
	}
}

/* -------------------------------------------- toplevel-over ------------------------------------------- */

.navbar-nav>li:hover>a,
.navbar-nav>li>a:hover,
.navbar-nav>li>a:focus,
.navbar-nav>li.open>a,
.navbar-nav>li.open>a:hover,
.navbar-nav>li.open>a:focus,
.navbar-nav>li[class$="_over"]>a,
.navbar-nav>li[class$="_over"]>a:hover,
.navbar-nav>li[class$="_over"]>a:focus {
	color: #1a477f;
}

.navbar-nav>li:focus-within>a {
	color: #1a477f;
}

.navbar-nav>li:hover>a::after,
.navbar-nav>li>a:hover::after,
.navbar-nav>li>a:focus::after,
.navbar-nav>li.open>a::after,
.navbar-nav>li.open>a:hover::after,
.navbar-nav>li.open>a:focus::after,
.navbar-nav>li[class$="_over"]>a::after,
.navbar-nav>li[class$="_over"]>a:hover::after,
.navbar-nav>li[class$="_over"]>a:focus::after {
	width: 100%;
}

.navbar-nav>li:focus-within>a::after {
	width: 100%;
}

/* -------------------------------------- secondlevel + thirdlevel dropdown-box -------------------------------------- */

@media (max-width: 991px) {

	.navbar-default li[class*="toplevel"]>.dropdown-menu,
	.navbar-default li[class*="toplevel"]>.dropdown-menu>li>.dropdown-menu {
		padding: 10px;
		background: rgba(19, 52, 92, 0.96);
	}
}

@media (min-width: 992px) {
	.navbar-default li[class*="toplevel"]>.dropdown-menu>li>.dropdown-menu {
		display: block;
		min-width: fit-content !important;
	}
}

/* --------------------------------------------- secondlevel + thirdlevel -------------------------------------------- */

.navbar-default li[class*="secondlevel"]>a,
.navbar-default li[class*="thirdlevel"]>a {
	color: #fff;
	text-align: left;
	padding: 8px 35px 8px 15px;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
}

.navbar-default li[class*="secondlevel"]>a {
	font-weight: 400;
	text-transform: uppercase;
}

.navbar-default li[class*="thirdlevel"]>a {
	font-weight: 400;
}

@media (min-width: 992px) {
	.navbar-default li[class*="secondlevel"]>a {
		padding: 20px 0 2px 0;
		hyphens: auto;
	}

	.navbar-default li[class*="thirdlevel"]>a {
		padding: 5px 0;
		hyphens: auto;
	}
}

/* ------------------------------------------ secondlevel + thirdlevel over ------------------------------------------ */

.navbar-nav li[class*="secondlevel"]:hover>a,
.navbar-nav li[class*="secondlevel"]>a:hover,
.navbar-nav li[class*="secondlevel"]>a:focus,
.navbar-nav li[class*="secondlevel"].open>a,
.navbar-nav li[class*="secondlevel"].open>a:hover,
.navbar-nav li[class*="secondlevel"].open>a:focus,
.navbar-nav li[class*="secondlevel"][class$="_over"]>a,
.navbar-nav li[class*="secondlevel"][class$="_over"]>a:hover,
.navbar-nav li[class*="secondlevel"][class$="_over"]>a:focus,
.navbar-nav li[class*="thirdlevel"]>a:hover,
.navbar-nav li[class*="thirdlevel"]>a:focus,
.navbar-nav li[class*="thirdlevel"].open>a,
.navbar-nav li[class*="thirdlevel"].open>a:hover,
.navbar-nav li[class*="thirdlevel"].open>a:focus,
.navbar-nav li[class*="thirdlevel"][class$="_over"]>a,
.navbar-nav li[class*="thirdlevel"][class$="_over"]>a:hover,
.navbar-nav li[class*="thirdlevel"][class$="_over"]>a:focus {
	color: #efd362;
}

/* #region ------------------------------------ header ------------------------------------------ */

/* banner */

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

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

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

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

@media (min-width: 992px) and (max-width: 1199px) {
	#headerpic .nivo-directionNav a {
		top: unset;
		bottom: 30px;
	}
}

@media (min-width: 1200px) {
	.index #headerpic .nivo-controlNav {
		bottom: 140px;
	}
}

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

@media (min-width: 1200px) {
	#headerpic::after {
		content: '';
		display: block;
		position: absolute;
		bottom: -40px;
		right: 4%;
		width: 269px;
		height: 139px;
		background: url('../img/logo-magistrat-der-stadt-amoeneburg.png') no-repeat;
		z-index: 45;
		pointer-events: none;
	}
}

@media (min-width: 992px) {
	#headerpic {
		background: #333333;
	}

	#headerpic * {
		color: #ffffff;
	}
}

.slider-wrapper {
	height: 100%;
}

.slider-mask {
	display: none;
}

@media (min-width: 992px) {
	.slider-mask {
		display: block;
		background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
	}

	.slider-wrapper::before {
		content: '';
		pointer-events: none;
		display: block;
		height: 2px;
		background: #fff;
		position: absolute;
		bottom: 30px;
		width: 100%;
		z-index: 12;
	}
}

/* #endregion --------------------------------- header ------------------------------------------ */

/* banner overlay */

#headerpic-overlay {
	padding: 30px 0;
}

@media (min-width: 992px) {
	#headerpic-overlay {
		padding: 0;
		position: absolute;
		top: 48px;
		bottom: 150px;
		left: 0;
		right: 0;
		z-index: 20;
		line-height: 1.2;
	}

	#headerpic-overlay>:first-child {
		margin-bottom: 30px;
	}

	#headerpic-overlay>:last-child {
		margin-top: auto;
	}

	#headerpic-overlay a {
		text-decoration: underline;
	}
}

@media (min-width: 1200px) {
	#headerpic-overlay {
		bottom: 300px;
	}
}

/* search */

#search {
	background: #ffffff;
	margin: clamp(25px, 3vw, 35px) 0 0 0;
	width: 100%;
	outline: 2px solid #efd362;
}

@media (min-width: 992px) {
	#search {
		outline-color: #efd362;
		outline-offset: 15px;
	}
}

#search_input {
	color: #696969;
	font-size: clamp(1rem, 3vw, 1.375rem);
	font-style: normal !important;
	background: transparent;
	border: 0;
	width: 100%;
	padding: 20px clamp(15px, 3vw, 40px);
}

#search_submit {
	border: none;
	background: url('../img/icon-search.png') center no-repeat;
	padding: 0;
	cursor: pointer;
	margin: 0;
	font-size: 0;
	min-width: clamp(35px, 5vw, 70px);
	flex-shrink: 0;
}

#search_submit:is(:hover, :focus) {
	background-color: #e8e8e8;
}

#search_input::placeholder {
	color: #696969 !important;
	opacity: 1 !important;
	font-style: italic !important;
}

/* #region --------------------------------- quick-access --------------------------------------- */

#quick-access {
	font-size: 1rem;
	background: #13345c;
}

@media (min-width: 1200px) {
	#quick-access {
		position: relative;
		z-index: 50;
		margin-top: -125px;
		border: 2px solid #ffffff;
	}
}

#quick-access * {
	color: #fff;
}

#quick-access .tab {
	padding: 30px 15px;
	position: relative;
	transition: background 200ms linear, margin 200ms linear, padding 200ms linear, height 200ms linear;
}

#quick-access .tab+.tab::after {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	top: -1px;
	width: 100%;
	height: 1px;
	background: rgba(255, 255, 255, 0.4);
	transition: opacity 200ms linear, margin 200ms linear;
}

@media (min-width: 1200px) {
	#quick-access .tab {
		padding: 75px clamp(15px, 1vw, 30px);
		height: 250px;
		overflow: hidden;
	}

	#quick-access .tab+.tab::after {
		top: 45px;
		bottom: 45px;
		width: 1px;
		height: unset;
	}

	#quick-access .tab:is(:hover, :focus-within)::after,
	#quick-access .tab:is(:hover, :focus-within)+.tab::after {
		opacity: 0;
	}

	#quick-access .tab:is(:hover, :focus-within) {
		background: #1a477f;
		height: 360px;
		margin: -55px 0;
		padding-top: 30px;
		padding-bottom: 30px;
	}
}

#quick-access .tab :is(.row, .row > *) {
	position: static;
}

@media (min-width: 1200px) {
	#quick-access .tab .template-page {
		max-height: 0;
		opacity: 0;
		transition: opacity 200ms linear;
	}

	#quick-access .tab:is(:hover, :focus-within) .template-page {
		opacity: 1;
	}
}

#quick-access .tab a {
	font-weight: 700;
	text-decoration: underline;
	color: #efd362;
}

#quick-access .tab a::after {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

#quick-access .tab-heading {
	text-transform: uppercase;
	font-size: 1.25rem;
	padding-top: 65px;
	background: url("../img/quick-access/icon-terminbuchung.png") center top / 50px auto no-repeat;
	transition: padding 200ms linear, transform 200ms linear;
	color: #efd362;
}

@media (min-width: 1200px) {
	#quick-access .tab-heading {
		margin: 0;
	}

	#quick-access .tab:is(:hover, :focus-within) .tab-heading {
		padding: 75px 0 30px 0;
	}
}

#quick-access .tab-2 .tab-heading {
	background-image: url("../img/quick-access/icon-verwaltung.png");
}

#quick-access .tab-3 .tab-heading {
	background-image: url("../img/quick-access/icon-kontakt.png");
}

#quick-access .tab-4 .tab-heading {
	background-image: url("../img/quick-access/icon-ansprechpartner.png");
}

/* #endregion ------------------------------ quick-access --------------------------------------- */

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

#content {
	text-align: left;
	padding: clamp(40px, 7vw, 90px) 0 clamp(40px, 5vw, 70px) 0;
}

@media (min-width: 992px) {
	#content>.row::after {
		content: "";
		position: absolute;
		background: url(../img/wasserzeichen-wappen.png);
		width: 350px;
		height: 390px;
		right: 210px;
		transform: translateX(100%);
		bottom: 30px;
	}
}

body.index #content>.row::after {
	bottom: -270px;
}

/* #region ------------------------------ h1 - h6, newslink ------------------------------------- */

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

:is(h1, h2) :is(i, em) {
	font-style: normal;
	color: #333333;
	font-size: 1.375rem;
	display: block;
	text-transform: uppercase;
	margin-bottom: 15px;
}

#footer :is(h1, h2) :is(i, em) {
	font-size: 1.25rem;
}

h1,
.h1,
.legacy_h1,
#headerpic-overlay .tab-headline {
	font-size: clamp(2rem, 4vw, 2.8125rem);
}

h2,
.h2,
.legacy_h2 {
	font-size: 1.875rem;
}

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

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4,
#tabs .tab :is(h1, h2, h3, h4, h5, h6) {
	font-size: 1.625rem;
}

h5,
.h5,
.legacy_h5,
:is(#footer) :is(h1, h2, h3, h4, h5, h6) {
	font-size: 1.5rem;
}

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

/* #endregion --------------------------- h1 - h6, newslink ------------------------------------- */

/* #region --------------------------------- button-style --------------------------------------- */

.button-style a:not([href^="mailto:"]):not(.has-image):not([rel]) {
	display: inline-block;
	background: #13345c;
	color: #ffffff;
	text-decoration: none;
	font-weight: 400;
	font-size: 1.125rem;
	padding: 11px 28px;
	outline: 2px solid #efd362;
	outline-offset: 10px;
	margin: 12px;
	transition: outline-color 200ms linear, outline-offset 200ms linear;
}

/* large */

.button-style.button-large a:not([href^="mailto:"]):not(.has-image):not([rel]) {
	display: inline-block;
	text-align: center;
	font-weight: 700;
	font-size: 1.375rem;
	padding: 14px 36px;
	outline: 1px solid #efd362;
}

/* phone */

.button-style a[href^="tel:"]:not([href^="mailto:"]):not(.has-image):not([rel])::before {
	content: "";
	width: 40px;
	height: 40px;
	display: inline-block;
	margin: -4px 15px -4px 0;
	vertical-align: bottom;
	background: url("../img/icon-phone.svg") center left / 40px auto no-repeat;
}

/* hover */

.button-style a:not([href^="mailto:"]):not(.has-image):not([rel]):is(:hover, :focus) {
	outline-color: #13345c;
	outline-offset: 3px;
}

/* #endregion ------------------------------ button-style --------------------------------------- */

/* ----------------------------------------------- @3nw news -------------------------------------------- */

#nw3 {
	font-size: 1rem;
	display: grid;
	row-gap: 15px;
	padding-bottom: 60px;
}

#nw3 .tabHeadline {
	font-weight: 700;
	font-size: 1.875rem;
	margin-bottom: 0;
}

#nw3 .tab {
	font-size: 1rem;
	margin-bottom: 15px;
}

#nw3 .tab_link_entry {
	position: relative;
	margin-left: 400px;
	min-height: 200px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-bottom: none !important;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

#nw3 .tab_link_entries {
	display: grid;
	gap: 15px;
}

@media (min-width: 992px) {
	#nw3 .tab_link_entry {
		padding: 25px;
	}

	#nw3 .tab_link_entries {
		gap: 25px;
	}
}

#nw3 .tab_link_title {
	order: 2;
}

#nw3 .vorschau {
	order: 3;
	opacity: 1;
}

#nw3 .tab_date {
	order: 1;
	font-weight: 700;
	font-size: 1.3125rem;
}

#nw3 .tab_link_mandat a {
	color: #333333;
}

#nw3 .tab_link_title a {
	display: block;
	color: #1a477f;
	font-weight: 700;
	margin-bottom: 2px;
	font-size: 1.125rem;
}

#nw3 .tab_link_entry::after {
	content: "";
	background: center / cover no-repeat, #e3e3e3;
}

#nw3 .tab_preview_picture {
	background: #ffffff;
}

#nw3 .tab_link_entry::after,
#nw3 .tab_preview_picture {
	display: block;
	width: 375px;
	height: 100%;
	position: absolute;
	left: -400px;
	top: 0;
	overflow: hidden;
}

@media (max-width: 767px) {
	#nw3 .tab_link_entry {
		margin-left: 0px;
		padding-top: 185px !important;
	}

	#nw3 .tab_link_entry::after,
	#nw3 .tab_preview_picture {
		display: block;
		width: 100%;
		height: 170px;
		position: absolute;
		left: 0;
		top: 0;
		bottom: 0px;
		right: 0px;
		overflow: hidden;
	}
}

#nw3 .tab_preview_picture img {
	position: absolute;
	z-index: 2;
	height: 100%;
	width: 100%;
	object-fit: cover;
	object-position: center;
}

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

/* ----------------------------------------- @3nw tab_link_mehr ---------------------------------------- */

#nw3 .tab_link_mehr {
	text-align: right;
	color: transparent;
	font-size: 0;
}

#nw3 .tab_link_mehr a {
	display: inline-block;
	text-decoration: none;
	position: relative;
	font-weight: 400;
	color: #ffffff;
	font-size: 1rem;
	padding: 8px 20px;
	background: #1a477f;
	transition: background 300ms linear;
}

#nw3 .tab_link_mehr a:hover,
#nw3 .tab_link_mehr a:focus {
	color: #ffffff;
	background: #004261;
}



/* #region -------------------------------------- tabs ------------------------------------------ */

#tabs {
	background: linear-gradient(to top, #e8e8e8 100px, rgba(255, 255, 255, 0) 100px);
}

@media (min-width: 992px) {
	#tabs {
		background: linear-gradient(to top, #e8e8e8 50%, rgba(255, 255, 255, 0) 50%);
	}
}

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

#tabs .tab {
	height: 100%;
	padding: 26px;
	background: #ffffff;
	border: 4px solid #1a477f;
	transition: border 200ms linear;
	position: relative;
	z-index: 2;
	font-size: 1.125rem;
}

#tabs .tab:is(:hover, :focus) {
	border-color: #efd362;
}

#tabs .tab :is(h1, h2, h3, h4, h5, h6) {
	font-family: inherit;
	margin-bottom: 0;
}

#tabs .tab a {
	text-decoration: underline;
}

#tabs .tab:not(:is(:hover, :focus-within)) :is(h1, h2, h3, h4, h5, h6) {
	color: #333333;
}

#tabs .tab :is(.row, .row > *) {
	position: static;
}

#tabs .tab a::after {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

/* #endregion ----------------------------------- tabs ------------------------------------------ */

/* #region ------------------------------- events ---------------------------------- */

#events-newsletter {
	padding-top: clamp(40px, 5vw, 70px);
	background: linear-gradient(to bottom, #e8e8e8 400px, rgba(255, 255, 255, 0) 400px);
	margin-bottom: 50px;
}

@media (min-width: 992px) {
	#events-newsletter {
		isolation: isolate;
		background: linear-gradient(to bottom, #e8e8e8 60%, rgba(255, 255, 255, 0) 60%), linear-gradient(to bottom, rgba(255, 255, 255, 0) calc(60% + 30px), #e8e8e8 calc(60% + 30px), #e8e8e8 calc(60% + 32px), rgba(255, 255, 255, 0) calc(60% + 32px));
	}

	#events-newsletter>.row::after {
		content: "";
		position: absolute;
		background: url(../img/wasserzeichen-wappen-grau.png);
		width: 351px;
		height: 391px;
		left: 210px;
		transform: translateX(-100%);
		bottom: 70px;
		z-index: -1;
	}
}

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

#events-newsletter .tab {
	font-size: 1rem;
	background: #ffffff;
	padding: 26px;
	border: 4px solid #e8e8e8;
	margin-top: 15px;
}



/* #endregion ---------------------------- events ---------------------------------- */

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

footer {
	overflow: hidden;
}

body:not(.index) footer {
	border-top: 4px solid #e8e8e8;
}

#footer {
	padding: clamp(40px, 5vw, 70px) 0;
	row-gap: 30px;
}

body.index #footer {
	padding-top: 0;
}

#footer :is(h1, h2, h3, h4, h5, h6) {
	text-transform: uppercase;
	margin: 0;
}

#footer a {
	font-weight: 700;
}

/* scroll-top-button */

#scroll-top-button {
	width: 50px;
	height: 50px;
	padding: 0;
	background-image: url("../img/arrow-top.svg");
	background-position: center;
	background-size: 28px auto;
	background-repeat: no-repeat;
}

/* innerfooter */

#innerfooter {
	font-size: 1rem;
	background: #1a477f;
	padding: 15px 0;
	color: #fff;
}

@media (max-width: 767px) {
	#innerfooter {
		padding: 30px 0;
	}
}

#innerfooter>.row {
	row-gap: 25px;
}

#innerfooter ul {
	padding: 0;
}

#innerfooter ul a {
	color: inherit;
	text-decoration: none;
	display: inline-block;
	padding: 6px 10px;
	outline: 2px solid transparent;
	outline-offset: 10px;
	transition: outline-color 200ms linear, outline-offset 200ms linear;
}

#innerfooter ul a:is(:hover, :focus) {
	outline-color: #efd362;
	outline-offset: 0;
}

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

	#innerfooter li+li::before {
		content: "";
		display: inline-block;
		height: 1px;
		width: 15px;
		margin: 0 15px;
		background: #efd362;
		vertical-align: middle;
	}
}

/* Map -------------------------------------------------------- */

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

#map iframe {
	display: block;
}

/* Map -------------------------------------------------------- */

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

/* #region ------------------------------------ vernetzt ---------------------------------------- */

#vernetzt {
	gap: 15px;
	text-align: right;
	font-size: 1rem;
	color: inherit;
	line-height: 1.3;
	font-weight: 400;
	text-decoration: none;
}

#vernetzt span span {
	display: block;
}

/* #endregion --------------------------------- vernetzt ---------------------------------------- */

/* #region ---------------------------------- decoration ---------------------------------------- */

:is(#contact, #events, .headlien-deko) h2 :is(i, em),
#scroll-top-button {
	position: relative;
}

:is(#scroll-top-button)::before,
.headlien-deko h2 :is(i, em)::before,
:is(:is(#contact, #events, .headlien-deko) h2 :is(i, em), #scroll-top-button)::after {
	content: "";
	display: block;
	position: absolute;
	background: #efd362;
}

/* contact */

:is(#contact) h2 :is(i, em)::after {
	bottom: -10px;
	left: -180px;
	right: calc(100% - 145px);
	height: 2px;
}

/* generell */

.headlien-deko h2 :is(i, em)::after {
	bottom: -10px;
	left: -313px;
	right: calc(100% - 75px);
	height: 2px;
}

.headlien-deko h2 :is(i, em)::before {
	top: -5px;
	bottom: -240px;
	left: -32px;
	width: 2px;
}

.headlien-deko-noVert.headlien-deko h2 :is(i, em)::before {
	display: none;
}

/* events */

#news h2 :is(i, em)::after {
	bottom: -10px;
	left: -180px;
	right: calc(100% - 100px);
	height: 2px;
}

/* scroll-top-button */

#scroll-top-button::before {
	top: -5px;
	bottom: -240px;
	left: 88px;
	width: 2px;
}

#scroll-top-button::after {
	top: 50%;
	width: 180px;
	right: -192px;
	height: 2px;
}

/* #endregion ------------------------------- decoration ---------------------------------------- */

/* #region ----------------------------------- contrast ----------------------------------------- */

:is(.contrast_dark, .contrast_light) :is(#events) .tab_link_entry .tab_link_title a::before {
	display: none;
}

.contrast_dark #burgerButton,
.contrast_dark #events .slick-button,
.contrast_dark #events .slick-dots .slick-active button,
.contrast_dark #events .slick-dots button:is(:hover, :focus) {
	background-color: #ffffff !important;
}

.contrast_light #burgerButton::before,
.contrast_light #burgerButton::after,
.contrast_light #burgerButtonInner {
	background: #333333 !important;
}

.contrast_light nav.burger .dropdown-toggle-button::before {
	color: #000000;
}

@media (min-width: 1200px) {
	.contrast_light #quick-access .tab:is(:hover, :focus-within) {
		background: #ffffff;
	}
}

.contrast_light #events .slick-dots .slick-active button,
.contrast_light #events .slick-dots button:is(:hover, :focus) {
	background-color: #000000 !important;
}

/* #endregion -------------------------------- contrast ----------------------------------------- */