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

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

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

a {
	color: #8d000b;
}

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

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

b,
strong {
	font-weight: 600;
}

/* ------------------------------------------- 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;
	}

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

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

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

nav.horizontally {
	background: #ffffff;
}

/* 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: #8d000b;
		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) {
	#sticky-wrapper {
		position: absolute;
		width: 100%;
      left: 0;
	}
	nav.horizontally {
		background: rgba(255, 255, 255, 0.9);
		filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.2));
	}
	nav.horizontally .navbar-nav {
		margin: 35px 0;
		display: flex;
		justify-content: space-between;
		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: 0;
	}

	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: 55px 0 55px 30px;
	}
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
	color: #3b3b3b;
	font-weight: 400;
	text-align: center;
	padding: 10px 35px;
	position: relative;
	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: clamp(10px, 2vw, 20px);
	}

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

	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 #000000;
		border-bottom: 2px solid #000000;
		transform: rotate(-45deg);
		transition: border 300ms linear;
	}
}

nav.horizontally a[class*="toplevel"]::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	background: #000000;
	width: 0;
	transition: width 300ms linear;
}

@media (min-width: 992px) {
	nav.horizontally a[class*="toplevel"]::before {
		bottom: auto;
		top: 0;
	}
}

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

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: rgba(0, 0, 0, 0.85);
}

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

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

	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: 14px;
		left: 0;
		right: 0;
		top: -14px;
	}

	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: #ffffff;
	text-align: center;
	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"]) {
		text-align: left;
	}

	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: #7bcdc7;
	color: #000000;
}

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

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

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

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

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

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

.slider-mask {
	display: block;
	background: url("../img/banner-welle.png") right bottom / 100% auto no-repeat;
}

#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 ------------------------------------------ */

/* ---------------------------------------- tab with border ------------------------------------- */

#slogan,
#teaser {
	pointer-events: auto;
	background: rgba(255, 255, 255, 0.9);
	padding: clamp(30px, 4vw, 60px);
	position: relative;
}

.sloganHeadline,
.teaserHeadline {
	margin: 0 0 14px 0;
}

.sloganHeadline {
	text-transform: uppercase;
}

:is(#slogan, #teaser)::before {
	content: "";
	position: absolute;
	display: block;
	top: 20px;
	right: 20px;
	bottom: 20px;
	left: 20px;
	border: 2px solid rgba(0, 0, 0, 0.45);
	pointer-events: none;
}

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

.button-style a {
	color: #000000;
	text-transform: uppercase;
	font-weight: 500;
	display: inline-block;
	text-align: center;
	font-size: 0.9375rem;
	text-decoration: none;
	min-width: 110px;
	padding: 4px clamp(10px, 2vw, 20px);
	margin-top: 22px;
	border: 2px solid transparent;
	transition: background-color 300ms linear, color 300ms linear, border 100ms linear;
}

#bannerOverlay .button-style a {
	border-color: #000000;
}

#bannerOverlay .button-style a:is(:hover, :focus) {
	background: #7bcdc7;
}

#footer .button-style a {
	color: #8d000b;
	background: #ffffff;
	text-decoration: none;
}

#footer .button-style a:is(:hover, :focus) {
	background: #7bcdc7;
	border-color: #000;
}

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

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

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

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

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

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

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

/* ----------------------------------------------- @1nw news -------------------------------------------- */

#nw1 {
	padding-top: 30px;
	padding-bottom: 90px;
	background: linear-gradient(0deg, rgba(227, 227, 227, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

.nwHeadline a {
	color: #000;
	text-transform: uppercase;
}

.nwHeadline a::after {
	content: " ..";
}

#nw1 hr {
	background: #000000;
	opacity: 0.25;
	border: none;
	height: 1px;
	margin-top: 0;
	margin-bottom: 70px;
}

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

#nw1 .tabHeadline {
	color: #ffffff;
	font-weight: 600;
	hyphens: auto;
	font-size: clamp(1.75rem, 2vw, 2rem);
}

#nw1 .tab_link,
#nw1 .tab_link > div {
	height: 100%;
	min-height: 100%;
}

#nw1 .tab_link_entries {
	display: grid;
	gap: 30px;
}

@media (max-width: 575px) {
	#nw1 .tab_link_entries {
	display: block;
}
}

@media (min-width: 576px) {
	#nw1 .tab_link_entries {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

#nw1 .tab_link_entry {
	font-size: 1rem;
	position: relative;
	width: 100%;
	padding: 280px 30px 30px 30px;
	background: #ffffff;
	box-shadow: 0px 2px 4.6px 0.4px rgba(0, 0, 0, 0.04);
}

@media (max-width: 575px) {
	#nw1 .tab_link_entry {
		hyphens: Auto;
    	-ms-hyphens: Auto;
    	-webkit-hyphens: None;
    	word-wrap: Break-Word; 
	}
}

#nw1 .vorschau {
	opacity: 1;
}

#nw1 .tab_preview_picture {
	background: #ffffff;
}

#nw1 .tab_link_entry::before,
#nw1 .tab_link_entry .tab_preview_picture {
	position: absolute;
	display: block;
	top: -1px;
	left: -1px;
	right: -1px;
	height: 250px;
	overflow: hidden;
}

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

#nw1 .tab_preview_picture img {
	position: absolute;
	margin: 0 !important;
	left: 50%;
	top: 50%;
	max-width: none;
	min-width: 100%;
	min-height: 100%;
	max-width: 350px;
	width: auto;
	height: auto;
	-ms-interpolation-mode: bicubic;
	transform: translateX(-50%) translateY(-50%);
}

#nw1 .tab_link_entry {
	display: flex;
	flex-direction: column;
}

#nw1 .tab_link_title {
	order: 1;
}

#nw1 .tab_date {
	color: #000;
	order: 2;
	margin-bottom: 15px;
}

#nw1 .vorschau {
	order: 3;
}

#nw1 .tab_link_mehr {
	order: 4;
	font-size: 0;
}

#nw1 .tab_link_mehr a {
	color: #000000;
	font-size: 1.125rem;
	font-weight: 500;
	text-transform: uppercase;
}

#nw1 .tab_link_mehr a::after {
	content: " ..";
}

#nw1 .tab_link_mehr a:is(:hover, :focus) {
	text-decoration: underline;
}

#nw1 .tab_link_title a {
	display: block;
	font-weight: 600;
	font-size: 1.25rem;
	color: #000;
	line-height: 1.2;
	margin-bottom: 8px;
	text-transform: uppercase;
}

#nw1 .tab_link_entries + div,
#nw1 .tab_link_entries .tab_spacer {
	display: none;
}

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

#footerTabs {
	background-position: center;
	background-size: cover;
}

#footerTabs > .row {
	gap: 30px 0;
}

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

#footerTabs .tab {
	background: rgba(255, 255, 255, 0.95);
	height: 100%;
	padding: 25px;
}

#footerTabs .tabHeadline {
	position: relative;
	padding-bottom: 18px;
	margin-bottom: 18px;
	font-size: 1.5625rem;
}

#footerTabs .tabHeadline::after {
	content: "";
	position: absolute;
	width: 180px;
	height: 3px;
	background: #000;
	bottom: 0;
	left: 0;
}

@media (min-width: 992px) {
	#footerTabs .paddBig {
		padding: 60px 90px;
	}
}

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

#innerfooter > .row {
	gap: 30px 0;
}

#innerfooter ul {
	padding: 0;
}

#innerfooter li {
	display: inline-block;
}

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

.innerfooter a:is(:hover, :focus) {
	color: #8d000b;
	background: rgba(255, 255, 255, 0.5);
	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;
}

#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 #8d000b;
	border-top: 3px solid #8d000b;
	transform: rotate(-45deg);
	transition: border 300ms linear;
}

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

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

#vernetzt span span {
	display: block;
}

#vernetzt b {
	color: #000000;
}
