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

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

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

a {
	color: #1313bd;
}

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

.row {
	max-width: var(--gridSize);
	width: 100%;
}

#overflow {
	overflow: hidden;
}

:root {
	--iconMinWidth: 60px;
	--sidePaddingMax: calc((1920px - var(--gridSize)) / 2);
	--gridSize: 1200px;
}

@media (min-width: 992px) {
	:root {
		--sidePadding: max(var(--iconMinWidth), calc((100vw - 992px) / 2));
	}
}
@media (min-width: 1200px) {
	:root {
		--sidePadding: max(var(--iconMinWidth), calc((100vw - var(--gridSize)) / 2));
	}
}
@media (min-width: 1920px) {
	:root {
		--sidePadding: max(var(--iconMinWidth), var(--sidePaddingMax));
	}
}

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

#logo {
	display: inline-block;
	position: relative;
	z-index: 51;
}

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

@media (max-width: 991px) {
	#logo {
		margin-bottom: -60px;
	}

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

@media (min-width: 992px) {
	#logo {
		position: absolute;
		top: 0;
		left: 15px;
		margin-top: 15px;
	}

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

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

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

nav.horizontally {
	background: #fff;
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
}

/* 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: 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: #1313bd;
		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: #fff;
		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: 4px;
	}

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

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally > .row::after {
		content: "";
		position: absolute;
		background: url(../img/deko-element-blau-klein.png) no-repeat right bottom;
		width: calc(var(--sidePadding) - 10px);
		height: 50px;
		right: 0;
		transform: translateX(100%);
		bottom: 10px;
	}
	nav.horizontally .navbar-nav {
		margin: 35px 0;
		display: flex;
		justify-content: space-between;
		gap: 35px;
		flex-wrap: wrap;
		align-items: center !important;
		transition: margin 300ms linear;
	}

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

	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: -15px;
	}

	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 .navbar-nav {
		margin: 40px 0 40px 30px;
	}
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
	color: #212020;
	font-weight: 400;
	text-align: left;
	padding: 10px 35px 10px 15px;
	position: relative;
	font-family: "Oswald", sans-serif;
	font-size: 1.25rem;
	line-height: 1.2;
	text-decoration: none;
}

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

@media (min-width: 992px) {
	nav.horizontally li[class*="toplevel"] + li {
		margin-left: 5px;
	}

	nav.horizontally a[class*="toplevel"] {
		padding: 8px 0;
		text-align: center;
	}

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

nav.horizontally a[class*="toplevel"]::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	background: url("../img/nav_hover.png") no-repeat;
	height: 4px;
	width: 0;
	transition: width 300ms linear;
}

/* toplevel-over */

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within) > a::before,
nav.horizontally li[class*="toplevel"] > a:is(:hover, :focus)::before,
nav.horizontally li[class*="toplevel"].open > a::before,
nav.horizontally li[class*="toplevel"].open > a:is(:hover, :focus)::before,
nav.horizontally li[class*="toplevel"][class*="_over"] > a::before,
nav.horizontally li[class*="toplevel"][class*="_over"] > a:is(:hover, :focus)::before {
	width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

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

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

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

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #212020;
	text-align: left;
	padding: 10px 40px 10px 20px;
	font-weight: 400;
	font-family: "Oswald", sans-serif;
	position: relative;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
}

@media (min-width: 992px) {
	nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before,
	nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
		content: "";
		position: absolute;
		left: 0;
		top: 0%;
		height: 100%;
		background: #fff;
		width: 4px;
	}
	nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
		right: 0;
		left: auto;
	}
}

/* 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) {
	color: #fff;
	background-color: #1313bd;
}

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

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

#slider {
	height: 63vw;
	position: relative;
}

#slider > * {
	height: 100% !important;
}

@media (min-width: 768px) {
	#slider {
		height: 300px;
		position: relative;
	}

	#headerpic {
		display: flex;
		align-items: stretch;
	}

	#headerpic .slider-wrapper {
		order: 2;
	}

	#bannerOverlay {
		order: 1;
	}

	#headerpic > * {
		flex-grow: 1;
		max-width: 50%;
	}

	#slider {
		height: 100%;
		max-height: 600px;
		width: 100%;
	}
}

#headerpic {
	padding: 0;
	overflow: hidden;
	position: relative;
	align-content: center;
}

.slider-mask {
	display: none;
}

#bannerOverlay {
	background: #1313bd;
	position: relative;
	color: #fff;
	padding-bottom: 50px;
}

@media (min-width: 992px) {
	#bannerOverlay > .row {
		align-content: space-between;
		display: flex;
		height: 100%;
		padding-top: 30px;
	}
   #jubilaeum {
      padding-inline: 30px;
   }
}

#bannerOverlay .h1.tabHeadline {
	color: #fff;
	font-family: "Oswald", sans-serif;
	font-size: 2.25rem;
	font-weight: 700;
}

@media (max-width: 767px) {
	#bannerOverlay .h1.tabHeadline {
		font-size: 1.25rem;
	}

	#bannerOverlay {
		padding-top: 30px;
		padding-bottom: 30px;
		background-image: none;
	}
}

@media (min-width: 768px) {
	#bannerOverlay .bannerText {
		padding-right: 50px;
	}

	#bannerOverlay > .row > * {
		z-index: 10;
	}

	.index #bannerOverlay,
	.index #headerpic {
		height: 600px;
		align-content: end;
	}

	#bannerOverlay,
	#headerpic {
		height: 300px;
		align-content: end;
	}

	#headerpic a:is(.nivo-prevNav, .nivo-nextNav) {
		right: 100px;
		top: 45%;
	}

	#headerpic a.nivo-prevNav {
		left: 100px;
		top: 45%;
	}

	#headerpic .nivo-controlNav {
		text-align: right;
		font-size: 0;
		bottom: 20px;
		right: calc(50% - 15px);
	}
}

#bannerOverlay .tabHeadline {
	margin: 0;
}

@media (min-width: 1200px) {
	#bannerOverlay {
		padding-left: calc(calc(100% - 1200px) / 2);
	}
}

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

.buttonStyle a:not([href^="mailto"], [href^="tel"]),
#events .tab_link_mehr a {
	color: #fff;
	font-family: "Oswald", sans-serif;
	font-size: 1.125rem;
	display: inline-block;
	border: 4px solid #fff;
	padding: 3px 37px 5px 37px;
	background: #1313bd;
	margin-top: 20px;
}

header .buttonStyle a:not([href^="mailto"], [href^="tel"]) {
	margin-top: clamp(10px, 4vw, 50px);
}

.buttonStyle a:not([href^="mailto"], [href^="tel"]):is(:hover, :focus),
#events .tab_link_mehr a:is(:hover, :focus) {
	color: #212020;
	text-decoration: none;
	border-color: #fff;
	background-color: #fff;
}

.buttonStyle.noBorder a:not([href^="mailto"], [href^="tel"]),
#events .tab_link_mehr a {
	border: none;
}

.buttonStyle.noBorder a:not([href^="mailto"], [href^="tel"]):is(:hover, :focus),
#events .tab_link_mehr a:is(:hover, :focus) {
	background: #212020;
	color: #fff;
}

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

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

:is(h1, h2, h3, h4, h5, h6) :is(b, strong) {
	font-weight: 700;
}

h1,
.h1,
.legacy_h1,
:is(#header-text) :is(h1, h2, h3, h4, h5, h6) {
	margin-bottom: clamp(15px, 4vw, 35px);
}

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

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

h3,
.h3,
.legacy_h3 {
	font-size: clamp(1.6875rem, 4vw, 1.75rem);
}

h4,
.h4,
.legacy_h4 {
	font-size: 1.625rem;
}

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

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

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

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

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

#content-area > .row {
	row-gap: 60px;
}

@media (min-width: 992px) {
	#content-area > .row::before {
		content: "";
		position: absolute;
		background: url(../img/deko-element-blau.png) no-repeat left bottom;
		width: calc(var(--sidePadding) - 20px);
		min-width: 100px;
		height: 100px;
		left: 0;
		transform: translateX(-100%);
		top: -40px;
	}
	#content-area > .row::after {
		content: "";
		position: absolute;
		background: url(../img/deko-element-blau.png) no-repeat right bottom;
		width: calc(var(--sidePadding) - 20px);
		min-width: 100px;
		height: 100px;
		right: 0;
		transform: translateX(100%);
		bottom: -40px;
	}
}

/* ----------------------------------------------- events ----------------------------------------------- */
#events {
	background-color: rgb(255, 255, 255);
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
	padding: 0 0 20px 0;
	font-size: 1rem;
	max-width: 400px;
	margin: 0 auto;
}

#events .tabHeadline {
	font-size: 1.875rem;
	color: #fff;
	margin-bottom: 0;
	padding: 25px 30px;
	background-color: #1313bd;
}

.eventclndr-tab {
	border-bottom: 6px solid #1313bd;
}

#clr-events-hide {
	padding: 0 15px 0 25px;
}

.tab_link_title a {
	position: relative;
	color: #212020;
	font-weight: 700;
	font-size: 18px;
}

.tab_link_title a::before {
	position: absolute;
	content: "";
	background: #1313bd;
	width: 4px;
	height: 4px;
	top: 9px;
	left: -12px;
}

.tab_link_mandat a {
	color: #212020;
	font-weight: 400;
}

#events .tab_link_mehr {
	font-size: 0;
	position: relative;
	padding-right: 20px;
}

/* ----------------------------------------------- Breaker ----------------------------------------------- */

#breaker {
	background-attachment: fixed;
	background-position: center;
	background-size: cover;
}

@media (max-width: 991px) {
	#breaker {
		padding-block: 120px 15px;
	}
}

#breaker #info {
	background: rgba(19, 19, 189, 0.8) url(../img/deko-element-weiss-klein.png) no-repeat right 10px top 10px;
	color: #fff;
	padding: 50px 30px;
}

#breaker .tabHeadline {
	font-size: clamp(1.75rem, 4.5vw, 2.625rem);
}

#breaker a:is([href^="mailto"], [href^="tel"]) {
	color: inherit;
}

/* ----------------------------------------------- @1f footer ----------------------------------------------- */
footer {
	background-color: #1313bd;
	color: #ffffff;
}

@media (min-width: 992px) {
	footer {
		border-top: 10px solid #fff;
	}
}

#f1 {
	color: #ffffff;
	font-size: 1.125rem;
	padding-top: 40px;
	padding-bottom: 40px;
}

@media (max-width: 991px) {
	#f1 > .row > * + * {
		margin-top: 30px;
	}
}

@media (min-width: 992px) {
	#f1 > .row::before {
		content: "";
		position: absolute;
		background: url(../img/deko-element-weiss.png) no-repeat left bottom;
		width: calc(var(--sidePadding) - 20px);
		min-width: 100px;
		height: 100px;
		left: 0;
		transform: translateX(-100%);
		bottom: -20px;
	}
}

#f1 a,
#f1 a:hover,
#f1 a:focus {
	color: #ffffff;
}

#f1 .tabHeadline {
	font-size: 1.75rem;
	font-weight: 700;
	color: #ffffff;
}

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

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

#innerfooter ul {
	padding: 0;
}

#innerfooter li + li {
	margin-top: 5px;
}

#innerfooter a {
	text-decoration: none;
	position: relative;
	display: block;
	font-family: "Oswald", sans-serif;
	font-size: 1.125rem;
	font-weight: 400;
	padding: 6px 10px 6px 0;
}

#innerfooter a::before {
	content: "";
	position: absolute;
	display: block;
	bottom: 0;
	background: url("../img/footer_hover.png") no-repeat;
	width: 0;
	height: 4px;
	transition: 200ms width linear;
}

@media (max-width: 991px) {
	#innerfooter a::before {
		left: 50%;
		transform: translateX(-50%);
		background-position: center;
	}
}

#innerfooter a:hover::before,
#innerfooter a:focus::before {
	width: 61px;
}

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

#vernetzt {
	color: #ffffff;
	text-align: left;
	font-family: "Figtree", sans-serif;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.3;
	margin: 30px auto 0 auto;
	text-decoration: none;
}

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

#vernetzt span {
	color: #ffffff;
}

#vernetzt span span {
	display: block;
}

#vernetzt img {
	margin-right: 18px;
}
