@import url("https://fonts.verwaltungsportal.de/import/?family=Jost:400,400i,500,500i,600,600i,700,700i");

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

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

a {
	color: #a60722;
}

.linkUnderline a:not(.has-image, .shareButtonLink) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: text-decoration 300ms;
	font-style: italic;
}

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

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

b,
strong {
	font-weight: 600;
}

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

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

/* 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: #0e4094;
		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;
		top: 15px;
		right: 15px;
		z-index: 101;
	}

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

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

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally {
		background: #ffffff;
		transition: all 0.2s 0s linear;
	}

	.is-sticky nav.horizontally {
		box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.18);
	}

	nav.horizontally .navbar-nav {
		display: flex;
		justify-content: space-between;
		align-items: center;
		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:is(.open:focus-within, :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-within) > ul {
		z-index: 1003;
	}
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
	color: #444444;
	font-weight: 500;
	text-align: left;
	padding: 12px 15px;
	position: relative;
	font-size: 1.1875rem;
	line-height: 1.2;
	text-decoration: none;
}

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

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

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

	nav.horizontally a[class*="toplevel"] {
		padding: 42px 0;
		text-align: center;
		font-size: clamp(1rem, 1.2vw, 1.25rem);
	}

	nav.horizontally a[class*="toplevel"].dropdown-toggle::before,
	nav.horizontally a[class*="toplevel"].dropdown-toggle::after {
		content: "";
		display: block;
		position: absolute;
		z-index: 1004;
		background-color: #0e4094;
		left: 50%;
		transform: translate(-50%, 0);
		height: 0;
	}

	nav.horizontally a[class*="toplevel"].dropdown-toggle::before {
		width: 3px;
		top: 80px;
		transition: all 150ms linear;
	}

	nav.horizontally a[class*="toplevel"].dropdown-toggle::after {
		width: 0;
		bottom: -25px;
		border-radius: 50%;
		transition: all 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) {
	color: #0e4094;
}

@media (min-width: 992px) {
	nav.horizontally li[class*="toplevel"]:hover > a.dropdown-toggle::before,
	nav.horizontally li[class*="toplevel"].open > a.dropdown-toggle::before,
	nav.horizontally li[class*="toplevel"].open > a.dropdown-toggle:is(:hover, :focus)::before {
		height: 48px;
	}

	nav.horizontally li[class*="toplevel"]:hover > a.dropdown-toggle::after,
	nav.horizontally li[class*="toplevel"].open > a.dropdown-toggle::after,
	nav.horizontally li[class*="toplevel"].open > a.dropdown-toggle:is(:hover, :focus)::after {
		width: 15px;
		height: 15px;
	}
}

/* secondlevel + thirdlevel dropdown-box */

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

@media (max-width: 991px) {
	nav.horizontally [class*="toplevel"] ul {
		box-shadow: inset -1px 0px 5px 0 rgba(0, 0, 0, 0.2);
	}

	nav.horizontally [class*="toplevel"] > ul {
		padding: 15px;
		background-color: rgba(255, 255, 255, 0.65);
	}

	nav.horizontally [class*="secondlevel"] > ul {
		padding: 15px 0;
		background-color: rgba(255, 255, 255, 0.15);
	}
}

@media (min-width: 992px) {
	nav.horizontally [class*="toplevel"] > ul {
		padding: 50px 0 18px 0;
		left: 50%;
		transform: translate(-50%);
		margin-top: 0px;
	}

	nav.horizontally [class*="secondlevel"] > ul {
		padding: 18px 0;
		margin-top: -18px;
		margin-left: 20px;
	}

	nav.horizontally [class*="secondlevel"] > ul::before {
		content: "";
		position: absolute;
		display: block;
		width: 20px;
		top: 0;
		bottom: 0;
		left: -20px;
	}
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #444444;
	font-weight: 400;
	text-align: left;
	padding: 7px 16px;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
}

@media (max-width: 991px) {
	nav.horizontally a[class*="secondlevel"].dropdown-toggle2 {
		padding-right: 35px;
	}
}

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

	nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]) + li:not(:nth-child(2)) {
		border-top: 1px solid rgba(200, 200, 200, 0.5);
	}
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
	content: "";
	width: 0;
	height: 0;
	border-radius: 50%;
	background-color: #0e4094;
	display: inline-block;
	position: absolute;
	left: 5px;
	top: 50%;
	transition: all 200ms;
	transform: translate(-50%, -50%);
}

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

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 {
	width: 6px;
	height: 6px;
}

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

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

#slider {
	position: relative;
}

.slider-wrapper {
   height: 711px;
   aspect-ratio: 1920 / 711;
   width: 1920px;
   margin: 0 auto;
   max-width: 100%;

}

@media (min-width: 992px) {
   

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

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

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

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

#headerpic .slick-track {
   width: 100%;
   height: 100%;
}

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

.slider-mask {
	display: none;
}

@media (min-width: 992px) {
	.slider-mask {
		display: block;
      background-image: url(../img/overlay-banner.png);
      background-repeat: no-repeat;
      background-position: center bottom;
      background-size: contain;
	}
}

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

main {
	overflow: hidden;
}

#content {
	text-align: left;
	padding-bottom: clamp(30px, 6vw, 100px);
}

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

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

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

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

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

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

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

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

/* #region ------------------------------------- news ------------------------------------------- */

#news .newstitle .tabHeadline {
	display: inline-block;
	width: auto;
	margin-bottom: 0;
}

#news .newscontent {
	margin-top: 45px;
	padding: 70px 0 70px 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-color: #444444;
	position: relative;
}

#news .newscontent .tab_link_entries {
	display: grid;
	gap: 30px;
	flex-grow: 1;
}

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

#news .newscontent .tab_link_entry {
	background-color: rgba(43, 69, 136, 0.92);
   color: #fff;
	padding: 40px 25px;
	box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.15);
}

#news .newscontent .tab_link_title a {
	font-size: 1.25rem;
	line-height: 1.2;
	font-weight: 700;
	color: #fff;
	display: inline-block;
}

#news .newscontent .tab_link_date {
   color: #fff;
}

#news .tab_link_mandat a {
   color: #fff;
}

#news .tab_spacer {
	display: none;
}

/* button */

#news .newscontent .tab_link {
	display: grid;
	gap: 30px;
}

@media (min-width: 576px) {
	#news .newscontent .tab_link {
		display: flex;
	}

	#news .newscontent .tab_link > div:nth-child(2) {
		width: 70px !important;
		flex-shrink: 0;
	}
}

@media (min-width: 992px) {
	#news .newscontent .tab_link > .tab_link_entries {
		width: auto !important;
	}
}

@media (min-width: 1200px) {
	#news .newscontent .tab_link {
		column-gap: 60px;
	}
}

#news .newscontent .tab_link > div:nth-child(2) :is(.tab_link_mehr, .tab_link_mehr a) {
	font-size: 0px;
	height: 100%;
}

@media (max-width: 575px) {
	#news .newscontent .tab_link > div:nth-child(2) :is(.tab_link_mehr, .tab_link_mehr a) {
		height: 60px;
		max-width: inherit;
	}
}

#news .newscontent .tab_link > div:nth-child(2) .tab_link_mehr a {
	display: block;
	position: relative;
	color: #ffffff;
	background-color: #2b4588;
	max-width: 100%;
	width: 100%;
}

#news .newscontent .tab_link > div:nth-child(2) .tab_link_mehr a:is(:hover, :focus) {
	background-color: #a60722;
}

#news .newscontent .tab_link > div:nth-child(2) .tab_link_mehr a::after {
	content: "\00BB";
	font-size: 60px;
	color: #ffffff;
	top: 50%;
	left: 50%;
	line-height: 38px;
	height: 50px;
	transform: translate(-50%, -50%);
	position: absolute;
	display: block;
	text-align: center;
	pointer-events: none;
}

/* #endregion ---------------------------------- news ------------------------------------------- */

/* ----------------------------------- tabHeadline with dekoration ------------------------------ */

.tabHeadline {
	position: relative;
}

:is(#tabs .tabHeadline:not(.no-decoration), #news .newstitle)::before,
:is(#tabs .tabHeadline:not(.no-decoration), #news .newstitle)::after {
	content: "";
	display: block;
	position: absolute;
	left: 50%;
	background: #0e4094;
	z-index: 2;
	transform: translate(-50%, 0);
}

#news .newstitle::before,
#news .newstitle::after {
	left: 30px !important;
}

@media (min-width: 1200px) {
	#news .newstitle::before,
	#news .newstitle::after {
		left: 11% !important;
	}
}

:is(#tabs .tabHeadline:not(.no-decoration), #news .newstitle)::before {
	width: 3px;
	height: 65px;
	bottom: -80px;
}

:is(#tabs .tabHeadline:not(.no-decoration), #news .newstitle)::after {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	bottom: -90px;
}

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

#tabs {
	padding: clamp(40px, 5vw, 80px) 0;
}

#tabs > .row {
	row-gap: 30px;
	max-width: 1308px;
	width: 100%;
}

#tabs .tabHeadline {
	margin-bottom: 60px;
	flex-grow: 0;
}

@media (min-width: 1200px) {
	#tabs > .row > .col-xs-12 {
		padding: 0;
		flex: 0 0 33.33%;
		min-width: calc(33.33% - 65px);
		max-width: calc(33.33% - 65px);
	}

	#tabs > .row > .col-xs-12 + .col-xs-12 {
		margin-left: 97px;
	}
}

#tabs .tabContent {
	padding: 55px 20px 25px 20px;
	background-color: #ffffff;
  box-shadow: 0px 9px 21px 0px rgba(0, 0, 0, 0.08);
	flex-grow: 1;
	position: relative;
}

@media (min-width: 992px) {
	#tabs .tabContent {
		padding-left: 30px;
		padding-right: 30px;
	}
}

#tabs .iframetab .tabContent {
	padding: 0;
}

#tabs .tab .template-page a {
	font-style: italic;
}

#tabs .iframetab :is(iframe, .iframe-wrapper-manual-enabling) {
	display: block;
	min-width: 100% !important;
	width: 100% !important;
	height: 100% !important;
}

@media (min-width: 768px) {
	#tabs .iframetab .row,
	#tabs .iframetab .row > div {
		position: static;
	}

	#tabs .iframetab :is(iframe, .iframe-wrapper-manual-enabling) {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
	}
}

#tabs #events .tab_link_entry + .tab_link_entry {
	margin-top: 5px;
}

#tabs #events .tab_link_mandat a {
	color: #444444;
}

#tabs #events .tab_link_title a {
	color: #444444;
	font-weight: 700;
}

#tabs #events .tab_link_mehr {
	font-size: 0;
}

#tabs #events .tab_link_mehr a {
	position: absolute;
	color: #ffffff;
	background-color: #2b4588;
	bottom: -25px;
	right: 15px;
	padding: 12px 25px;
	transition: all 250ms linear;
	font-size: 1rem;
	text-decoration: none;
}

#tabs #events .tab_preview_picture {
   display: none;
}

#tabs #events .tab_link_mehr a:is(:hover, :focus) {
	background-color: #b50623;
}

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

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

footer {
	background: url(../img/deko-fz.png) #2b4588;
   background-repeat: no-repeat;
   background-position: bottom center;
	padding: 30px 0;
	color: #ffffff;
	position: relative;
}

@media (max-width: 767px) {
	footer > .row > * + * {
		margin-top: 20px;
		padding-top: 20px;
		border-top: 1px solid rgba(0, 0, 0, 0.2);
	}
}

#innerfooter ul {
	padding: 0;
}

#innerfooter a {
	color: #fff;
	text-decoration: none;
	display: inline-block;
	font-weight: 400;
   font-size: 1rem;
}

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

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

	#innerfooter li + li::before {
		content: "•";
		margin: 0 clamp(15px, 2vw, 25px);
		color: #fff;
	}
}

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

#vernetzt {
	gap: 18px;
	text-align: left;
	font-size: 0.9375rem;
	color: #fff;
	line-height: 1.3;
	font-weight: 400;
	text-decoration: none;
}

#vernetzt strong {
	color: #fcf9e5;
	font-weight: 600;
}

#vernetzt span span {
	display: block;
}
