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

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

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

a {
	color: #b2302e;
}

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

:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 2px;
}

b,
strong {
	font-weight: 700;
}

.rowGap {
	row-gap: 30px;
}

.rowGapBig {
	row-gap: 60px;
}

/* LOGO MIT 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: #191919;
	font-size: 1.125rem;
	align-content: center;
	line-height: 1.1;
}

.logoText :is(b, strong) {
	display: block;
	font-size: 1.5625rem;
}

.logoText br {
	display: none;
}

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

.logo img {
	display: block;
	max-width: 30vw;
}

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

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

nav.horizontally {
	background: #97b5ac;
	padding-block: 10px;
}

/* burgermenu for tablet */

@media (max-width: 991px) {
	nav.horizontally {
		padding: 15px 0;
		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: #4e6e66;
		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: #97b5ac;
		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 .navbar-nav {
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
		align-items: center !important;
		transition: margin 300ms linear;
	}

	.is-sticky nav.horizontally {
		left: unset !important;
	}

	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: #191919;
	font-weight: 700;
	padding: 10px 35px;
	position: relative;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
}

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

@media (min-width: 992px) {
	nav.horizontally li[class*="toplevel"] + li {
		margin-left: clamp(10px, 2vw, 20px);
	}

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

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

@media (min-width: 992px) {
	nav.horizontally a[class*="toplevel"][data-toggle="dropdown"]::after {
		content: "";
		position: absolute;
		display: block;
		right: 2px;
		top: 50%;
		margin-top: -7px;
		width: 8px;
		height: 8px;
		border-radius: 1px;
		display: inline-block;
		border-left: 2px solid #191919;
		border-bottom: 2px solid #191919;
		transform: rotate(-45deg);
		transition: border 300ms linear;
	}
}

nav.horizontally a[class*="toplevel"]::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	background: #191919;
	width: 0;
	transition: width 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: #191919;
}

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: #97b5ac;
}

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

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

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

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

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

	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: #191919;
	padding: 10px 40px 10px 20px;
	font-weight: 400;
	position: relative;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
}

@media (min-width: 992px) {
	nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
		content: "\00BB";
		position: absolute;
		right: 20px;
		top: 50%;
		margin-top: -12px;
		font-size: 24px;
		line-height: 1;
	}
}

/* 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: rgba(255, 255, 255, 0.7);
	color: #191919;
}

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

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

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

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

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

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

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

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

.slider-mask {
	display: none;
}

@media (min-width: 992px) {
	.slider-mask {
		display: block;
		background:
			url(../img/viereck-muster-links.png) bottom left no-repeat,
			url(../img/viereck-muster-rechts.png) bottom right no-repeat;
	}
}

/* scroll to content button */

#scroll2Content {
	position: absolute;
	z-index: 20;
	display: block;
	width: 50px;
	height: 50px;
	bottom: -27px;
	left: calc(50% - 25px);
	background: #ffffff;
	border-radius: 6px;
	transform: rotate(45deg);
}

#scroll2Content::after {
	content: "";
	display: block;
	position: absolute;
	top: 10px;
	right: 10px;
	bottom: 10px;
	left: 10px;
	transform: rotate(-45deg);
	background: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48'%3E%3Cpath d='M24 39.4q-.25 0-.525-.1t-.525-.35l-13.9-13.9Q8.6 24.6 8.6 24q0-.6.45-1.05.45-.45 1.05-.45.6 0 1.05.45L22.5 34.3V9.5q0-.65.425-1.075Q23.35 8 24 8q.65 0 1.075.425.425.425.425 1.075v24.8l11.35-11.35q.45-.45 1.05-.45.6 0 1.05.45.45.45.45 1.05 0 .6-.45 1.05l-13.9 13.9q-.25.25-.5.35-.25.1-.55.1Z' fill='%234e6e66'/%3E%3C/svg%3E") center -2px / 34px auto;
	transition: background-position 300ms linear;
}

#scroll2Content:is(:hover, :focus)::after {
	background-position-y: 32px;
}

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

#content {
	text-align: left;
	padding-block: clamp(45px, 4vw, 60px);
}

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

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

:is(h1, h2, h3, h4, h5, h6) :is(i, em) {
	color: #191919;
	font-style: normal;
	font-weight: 400;
}

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

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

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

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

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

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

/* ----------------------------------------------- news ----------------------------------------- */

#newEvents {
	background: #f3f3f3;
	padding-block: clamp(45px, 4vw, 60px);
}

@media (min-width: 992px) {
	#newEvents {
		background:
			url(../img/deko-dreiecke-unten.png) no-repeat bottom left,
			url(../img/deko-dreiecke-oben.png) no-repeat top right,
			#f3f3f3;
		padding-block: clamp(45px, 4vw, 60px);
	}
}

#newEvents .tabContent {
	margin-bottom: 60px;
}

#newEvents .buttonStyle {
	margin-top: 50px;
}

#newEvents .buttonStyle a {
	background: #b2302e url(../img/icon-pfeil.png) no-repeat center right 10px;
	color: #fff;
	font-size: 0.875rem;
	padding: 10px 20px;
	padding-right: 40px;
	text-decoration: none;
	transition: none;
}

#newEvents .buttonStyle a.contrast_dark_font {
   color: #fff !important;
}

#newEvents .buttonStyle a:is(:hover, :focus) {
	background: #97b5ac url(../img/icon-pfeil-hover.png) no-repeat center right 10px;
	color: #191919;
}

#news .tab_link {
	margin-top: 30px;
}

#news .tab_link_entries {
	display: flex;
	gap: clamp(60px, 6vw, 90px);
	flex-direction: column;
}

#news .tab_link_entry {
	font-size: 1rem;
	position: relative;
	background: #ffffff;
	padding: 250px 30px 35px 30px;
	box-shadow: 0 0 20px 10px rgba(37, 37, 37, 0.1);
	border: none !important;
   align-content: center;
}

@media (min-width: 992px) {
	#news .tab_link_entry {
		padding-top: 35px;
		padding-left: 200px;
		margin-left: 100px;
		min-height: 180px;
	}
}

#news .tab_link_title a {
	line-height: 1.2;
	font-weight: 700;
	font-size: 1.25rem;
	display: block;
	margin-bottom: 20px;
	color: inherit;
}

#news .tab_link_entry::before,
#news .tab_link_entry .tab_preview_picture {
	position: absolute;
	display: block;
	left: 0;
	right: 0;
}

@media (min-width: 992px) {
	#news .tab_link_entry::before,
	#news .tab_link_entry .tab_preview_picture {
		left: -100px;
		height: 240px;
		overflow: hidden;
		width: 240px;
		clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
		top: 50%;
		transform: translateY(-50%);
	}
}
@media (max-width: 991px) {
	#news .tab_link_entry::before,
	#news .tab_link_entry .tab_preview_picture {
		left: 0;
		height: 180px;
		overflow: hidden;
		width: 100%;
		top: 0;
	}
}

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

#news .tab_preview_picture img {
	margin: 0 !important;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#news .tab_date {
	position: absolute;
	top: 105px;
	left: 50%;
	width: 120px;
	height: 120px;
	background: #97b5ac;
	color: #191919;
	display: inline-grid;
	justify-content: center;
	align-items: center;
	padding: 30px;
	word-break: break-word;
	text-align: center;
	font-size: clamp(18px, 2vw, 20px);
	font-weight: 700;
	z-index: 12;
	transform: translateX(-50%);
	outline: 2px solid #ffffff;
	outline-offset: 8px;
	clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

@media (min-width: 992px) {
	#news .tab_date {
		left: 70px;
		top: 50%;
		transform: translateY(-50%);
	}
}

#news .vorschau {
	opacity: 1 !important;
}

#news :is(.tab_link_mehr, .tab_link_mandat, .tab_spacer) {
	display: none;
	height: 0;
}

#events #eventsbox {
	background: #fff;
	box-shadow: 0px 10px 20px 0px rgba(37, 37, 37, 0.1);
	padding: 30px;
}

@media (min-width: 992px) {
	#eventsbox > .row > * + * {
		border-left: 1px solid #e5e5e5;
	}

	#eventsbox .tab_link_entries {
		padding-left: 5px;
		font-size: 1rem;
	}
}

#eventsbox .tab_link_entries .tab_link_entry {
	border-bottom: none !important;
}

#eventsbox .tab_link_entries .tab_link_entry + .tab_link_entry {
	border-top: 1px solid #e5e5e5;
	padding-top: 10px;
}

#events #clr-events-hide,
#events .tab_link_mehr {
	display: none;
}

#events .tab_link_title a {
	font-size: 1.125rem;
	color: #4e6e66;
	font-weight: 700;
}

#events .tab_link_mandat a {
	color: #191919;
}

#events .eventclndr-tab {
	margin: 0;
}

/* ----------------------------------------------- @13f footer ----------------------------------------------- */

/* ----------------------------------------------- contactFooter ----------------------------------------------- */

#contactFooter {
	font-size: 1rem;
	padding-block: clamp(45px, 4vw, 60px);
}

#contactFooter .tabHeadline {
	font-size: 1.375rem;
}

#contactFooter ul {
	margin: 10px 0;
	list-style: none;
	line-height: 1.8;
}

#contactFooter ul > li {
	position: relative;
	padding-left: 8px;
	min-height: 11px;
	transition: color 300ms linear;
}

#contactFooter ul > li + li {
	margin-top: 8px;
}

#contactFooter ul > li::before {
	content: "\203A";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	margin: auto;
	width: 13px;
	line-height: 1.7;
}

#contactFooter ul > li:hover,
#contactFooter ul > li:focus {
	color: #b2302e;
}

body:not(.noListStyle) #contactFooter ul {
	padding-left: 0px;
}

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

#footer {
	color: #191919;
	font-size: 0.9375rem;
	padding-block: 10px;
	background-color: #f3f3f3;
}

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

#innerfooter ul {
	padding: 0;
}

#innerfooter li {
	display: inline-block;
	color: #191919;
}

#innerfooter a {
	color: #191919;
	font-size: 0.9375rem;
	text-decoration: none;
}

#innerfooter a:hover,
#innerfooter a:focus {
	color: #b2302e;
	text-decoration: underline;
}

#innerfooter li + li::before {
	content: "•";
	margin: 0 15px;
}

@media (min-width: 1200px) {
	#innerfooter li + li::before {
		margin: 0 35px;
	}
}

@media (max-width: 767px) {
	#innerfooter li {
		display: block;
		text-align: center;
		padding: 5px;
		margin: 0;
	}

	#innerfooter li + li::before {
		display: none;
	}
}

html[style*="font-size"]:not([style*="font-size: 100%"]) {
	hyphens: auto;
}
