@import url("https://fonts.verwaltungsportal.de/import/?family=Source+Sans+3:400,600,400i,600i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Playfair+Display:600,600i");

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

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

a {
	color: #d13400;
}

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

b,
strong {
	font-weight: 600;
}

#overflow {
	overflow: hidden;
	position: relative;
}

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

#logo {
	display: inline-block;
	padding-block: 15px;
}

#logo img {
	display: block;
}

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

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

/* burgermenu for tablet */

@media (max-width: 991px) {
	nav.horizontally {
		background: #fff;
		padding: 15px 0;
	}

	#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: #d13400;
		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: 5px;
	}

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

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally {
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		right: 0;
		top: 0;
		max-width: 1930px;
		width: 100%;
		z-index: 101;
		background: #fff;
		transition:
			150ms linear background,
			150ms linear box-shadow;
	}

	.is-sticky nav.horizontally {
		background: #fff;
		box-shadow: 0 7px 12px 0 rgba(0, 0, 0, 0.08);
	}

	nav.horizontally .navbar-nav {
		display: flex;
		justify-content: space-between;
		position: relative;
		flex-wrap: wrap;
		padding-left: 30px;
	}

	nav.horizontally .navbar-nav > li {
		flex-grow: 1;
	}

	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: #303030;
	padding: 10px 35px;
	font-size: 1.125rem;
	font-weight: 600;
	position: relative;
	line-height: 1.2;
	text-decoration: none;
	font-family: "Playfair Display", serif;
}

@media (max-width: 991px) {
	nav.horizontally a[class*="toplevel"] {
		margin-bottom: 2px;
	}
}

@media (min-width: 992px) {
	nav.horizontally a[class*="toplevel"] {
		padding: 15px 7px;
		display: flex;
		align-content: center;
		align-items: center;
		justify-content: center;
		height: 100%;
		min-height: 110px;
	text-align: center;
	}
}

@media (min-width: 1200px) {
	nav.horizontally a[class*="toplevel"] {
		font-size: 1.25rem;
	}
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	background-color: #ffffff;
}

@media (max-width: 991px) {
	nav.horizontally [class*="secondlevel"] > ul {
		margin: 10px;
	}
}

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

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

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

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

	nav.horizontally :is([class*="toplevel"], [class*="secondlevel"]) > ul::before {
		background: #d13400;
	}

	nav.horizontally [class*="toplevel"] > ul::before {
		left: 45px;
		top: -10px;
		width: 20px;
		height: 20px;
		transform: rotate(45deg);
	}

	nav.horizontally [class*="secondlevel"] > ul::before {
		left: -10px;
		top: 10px;
		width: 20px;
		height: 20px;
		transform: rotate(45deg);
	}

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	background-color: transparent;
	color: #303030;
	font-weight: 400;
	padding: 10px 35px;
	position: relative;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
		text-align: left;
}

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

@media (min-width: 1200px) {
	nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
		font-size: 1.125rem;
	}
}

/* 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-color: #0875E2;
   color: #fff;
}

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

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

#slider {
	max-height: clamp(300px, 45vw, 450px);
	overflow: hidden;
}

@media (min-width: 768px) {
	body.index #headerpic .nivo-controlNav {
		bottom: 25px;
		left: 55%;
		width: 45%;
		pointer-events: none;
	}

	body.index #headerpic .nivo-controlNav :is(a, button) {
		pointer-events: auto;
	}

	body.index #headerpic a.nivo-prevNav {
		left: 58%;
	}

	body.index #headerpic .nivo-directionNav a {
		top: auto;
		bottom: 30px;
	}

	body.index #slider {
		max-height: clamp(450px, 74vw, 700px);
	}
}

@media (min-width: 992px) {
	body.index #headerpic .nivo-controlNav {
		left: 50%;
		width: 50%;
	}

	body.index #headerpic a.nivo-prevNav {
		left: calc(50% + 65px);
	}

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

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

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

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

.slider-mask {
	display: none;
}

@media (min-width: 992px) {
	.slider-mask {
		display: block;
		background: url(../img/halbton.png);
		background-repeat: repeat-y;
		background-position: top left;
	}

	#bannerTabs {
		position: absolute;
		width: 100%;
		pointer-events: none;
		bottom: 50px;
		z-index: 20;
	}
	#bannerTabs .tab {
		pointer-events: all;
	}

	#bannerTabs .tabHeadline {
		background: rgba(255, 255, 255, 0.9);
		padding: 10px 30px;
		margin-bottom: 15px;
		width: fit-content;
	}
}

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

/* #endregion --------------------------------- banner ------------------------------------------ */

/* ------------------------------------------- buttonStyle ------------------------------------------ */

.buttonStyle a {
	display: inline-block;
	background: #0875E2;
	color: #fff !important;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 10px 35px 10px 25px;
	position: relative;
	text-decoration: none;
	margin-top: 15px;
	margin-right: 15px;
}

.buttonStyle a::after {
	content: "";
	position: absolute;
	background: url(../img/pfeil.png);
	width: 12px;
	height: 12px;
	top: 50%;
	transform: translateY(-50%);
	right: 15px;
	filter: invert(1) brightness(2);
	transition:
		background-color 300ms linear,
		filter 300ms linear,
		color 300ms linear;
}

.buttonStyle a:is(:hover, :focus) {
	background: rgba(255, 255, 255, 0.9);
	color: #303030 !important;
	text-decoration: none;
}

.buttonStyle a:is(:hover, :focus)::after {
	filter: none;
}

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

#content {
	text-align: left;
	padding-top: clamp(40px, 6vw, 80px);
	padding-bottom: clamp(40px, 6vw, 80px);
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
	color: #303030;
	font-weight: 600;
	line-height: 1.2;
	font-family: "Playfair Display", 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.5625rem);
}

h6,
.h6,
.legacy_h6 {
	font-size: 22px;
}

/* #region ------------------------------------- breaker ---------------------------------------- */

#breaker {
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	padding-top: 160px;
	position: relative;
	background-color: rgba(0, 0, 0, 0.08);
}

#breaker > .row {
	max-width: 1600px;
	width: 100%;
}

@media (min-width: 992px) {
	#breaker {
		font-size: 1.125rem;
	}
}

#breaker::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	right: 0;
	height: 30px;
	display: block;
	background: #fff;
}

#breakerSlogan {
	position: relative;
	z-index: 1;
	padding: 30px 15px;
}

@media (max-width: 767px) {
	#breakerSlogan {
		background: #f0f0f0;
	}
}

@media (min-width: 768px) {
	#breakerSlogan {
		padding: clamp(30px, 4vw, 45px) 0 clamp(30px, 4vw, 55px) clamp(50px, 8vw, 100px);
	}

	#breakerSlogan::after,
	#breakerSlogan::before {
		content: "";
		position: absolute;
		bottom: 0;
	}

	#breakerSlogan::after {
		transform: skewX(8deg);
		top: 0;
		left: 0;
		right: -20vw;
		z-index: -1;
		background-color: #f0f0f0;
		background-position: center;
		background-size: cover;
		background-repeat: no-repeat;
	}

	#breakerSlogan::before {
		right: 0;
		left: -5px;
		height: 30px;
		background: #252525;
		z-index: -1;
		transform: skewX(60deg);
	}
}

@media (min-width: 1200px) {
	#breakerSlogan::after {
		right: calc((100vw - 1100px) / -2);
	}
}

#breaker .sloganHeadline {
	font-size: clamp(1.75rem, 4vw, 2.1875rem);
}

/* #endregion ---------------------------------- breaker ---------------------------------------- */

/* #region -------------------------------------- search ---------------------------------------- */

#searchbar {
	background: #fff;
	color: #303030;
	padding: 20px 0;
	box-shadow: 0 -7px 12px 0 rgba(0, 0, 0, 0.08);
}

#searchbar > .row {
	row-gap: 20px;
}

#searchbar a {
	color: #305e19;
}

#search {
	background: #f0f0f0;
	display: flex;
}

#search_input {
	color: #303030;
	font-size: 1.125rem;
	font-style: normal;
	background: transparent;
	font-weight: 400;
	border: 0;
	width: 100%;
	padding: 11px 15px;
}

@media (min-width: 768px) {
	#search_input {
		font-size: 1.125rem;
	}
}

#search_submit {
	width: 55px;
	flex-shrink: 0;
	font-size: 0;
	background: url("../img/lupe-icon.png") center no-repeat;
	padding: 0;
	cursor: pointer;
	border: none;
	transition: background-color 300ms linear;
}

#search_submit:is(:hover, :focus) {
	background-color: rgba(255, 255, 255, 0.1);
}

#search input::placeholder {
	color: #303030 !important;
	opacity: 1 !important;
	font-style: normal !important;
}

#searchbar .buttonStyle a {
	margin-top: 0px;
}

/* #endregion ----------------------------------- search ---------------------------------------- */

/* ----------------------------------------------- @5f footer ----------------------------------------------- */

#kontakt {
	background-position: center !important;
	background-size: cover !important;
	font-size: 1.125rem;
	background: #252525;
}

#kontakt .tab {
	position: relative;
	padding-block: 60px;
	isolation: isolate;
	color: #fff;
}

#kontakt .tab :is(h1, h2, h3, h4, h5, h6) {
	color: #fff;
}

#kontakt .template-page a {
	color: #fff;
	text-decoration: underline;
}

#kontakt .tab::after {
	content: "";
	position: absolute;
	inset: 0 0 0 -100vw;
	z-index: -1;
	background: rgba(0, 128, 255, 0.89);
}

#f5 {
	padding-block: 50px;
	background-color: #fff;
}

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

#innerfooter ul {
	padding: 0;
}

#innerfooter li {
	display: inline-block;
}

#innerfooter a {
	color: #303030;
	text-decoration: none;
	display: inline-block;
	font-size: 1rem;
	text-transform: uppercase;
}

#innerfooter a:hover,
#innerfooter a:focus {
	color: #d13400;
	text-decoration: none;
}

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

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

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

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

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

#vernetzt {
	gap: 12px;
	font-size: 0.9375rem;
	color: #ffffff;
	line-height: 1.3;
	text-decoration: none;
	margin-top: 50px;
}

#vernetzt span span {
	display: block;
}

#socialMedia a {
	aspect-ratio: 1;
	display: inline-block;
	background: transparent;
	padding: 10px;
	border-radius: 100%;
}

#socialMedia a:is(:hover, :focus) {
	background: #d13400;
}

#socialMedia a img {
	transition: filter 300ms;
}

#socialMedia a:has(img) {
   line-height: 0;
}

#socialMedia a:is(:hover, :focus) img {
	filter: invert(1);
}
