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

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

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

a {
	color: #da121a;
}

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

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

/* 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: #0d0d0d;
	font-size: 1.25rem;
	align-content: center;
	line-height: 1.1;
}

.logoText :is(b, strong) {
	color: #da121a;
	font-size: 2.125rem;
	text-transform: uppercase;
}

body.index .logoText :is(b, strong) {
   font-size: 2.5rem;
}

.logoText :is(i, em) {
	font-style: normal;
	color: #da121a;
	font-size: 1.75rem;
}

.logoText :is(b, strong, i, em) {
	display: block;
}

.logoText br {
	display: none;
}

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

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

@media (min-width: 992px) {
   .logo img{
      margin-top: -55px;
      height: fit-content;
      
   }
}

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

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

/* burgermenu for tablet */

@media (max-width: 991px) {
	#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: #078930;
		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: #046723;
		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: #078930;
		transition:
			150ms linear background,
			150ms linear box-shadow;
	}

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

	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: #fff;
	text-align: left;
	padding: 10px 35px;
	font-size: 1.25rem;
	font-weight: 500;
	text-transform: uppercase;
	position: relative;
	line-height: 1.2;
	text-decoration: none;
}

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

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

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

/* 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: #ffffff;
	background: #da121a;
}

/* secondlevel + thirdlevel dropdown-box */

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

@media (max-width: 991px) {
	nav.horizontally [class*="toplevel"] 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: #fff;
	}

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

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

@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) {
	color: #ffffff;
	background-color: #da121a;
}

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

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

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

@media (min-width: 992px) {
	#headerpic .nivo-directionNav {
		left: 60%;
		position: relative;
		width: 40%;
	}
	#headerpic .nivo-directionNav a {
		top: auto;
		bottom: 30px;
	}

	body.index #slider {
		max-height: clamp(450px, 74vw, 650px);
	}
	#headerpic .nivo-controlNav :is(a, button) {
		pointer-events: auto;
	}

	#headerpic .nivo-controlNav {
		left: 60%;
		pointer-events: none;
		width: 40%;
		bottom: 25px;
	}

	#headerpic a.nivo-prevNav {
		left: calc(60% + 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;
}

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

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

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

@media (min-width: 992px) {
	#bannerOverlay {
		position: absolute;
		z-index: 52;
		left: 0;
		bottom: -30px;
		right: 0;
		pointer-events: none;
	}

	#slogan {
		position: relative;
		padding: 20px 30px 20px 0;
		pointer-events: auto;
	}

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

	#slogan::after {
		transform: skewX(-8deg);
		top: 0;
		left: -20vw;
		right: 0;
		z-index: -1;
		background: #fff;
		box-shadow: -10px 0px 20px 0px rgba(0, 0, 0, 0.1);
	}

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

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

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

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

@media (min-width: 992px) {
	#tabs {
		padding-bottom: 60px;
	}
}

#tabs .tab {
	padding: 30px clamp(30px, 7vw, 100px) clamp(30px, 6vw, 40px) clamp(30px, 7vw, 100px);
	background: #078930 url(../img/feuer-deko.png);
	background-repeat: no-repeat;
	background-position: bottom -170px right 5px;
	min-height: 100%;
	color: #fff;
}

#tabs .tab2 {
	background: #046723 url(../img/feuer-deko2.png);
	background-repeat: no-repeat;
	background-position: bottom -230px center;
}

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

#tabs .tabHeadline {
	font-size: 1.375rem;
	text-transform: uppercase;
	margin-bottom: clamp(10px, 4vw, 40px);
	position: relative;
	padding-top: 115px;
	background-position: top center;
	background-repeat: no-repeat;
	color: #fff;
}

#tabs .tabHeadline::after {
	content: "";
	display: block;
	width: 120px;
	position: absolute;
	top: 92px;
	left: calc(50% - 60px);
}

#tabs > .row > div:nth-child(1) .tabHeadline {
	background-image: url("../img/aktuelles-icon.png");
}

#tabs > .row > div:nth-child(1) .tabHeadline::after {
	border-bottom: 2px solid #fff;
}

#tabs > .row > div:nth-child(2) .tabHeadline {
	background-image: url("../img/alarm-icon.png");
}

#tabs > .row > div:nth-child(2) .tabHeadline::after {
	border-bottom: 2px solid #fff;
}

#tabs .tab_link_title a {
	color: #fff;
	font-size: 1.125rem;
}

#tabs .tab_link_mehr {
	display: none;
}

#tabs .tab_link_entry {
	border: none !important;
	margin-bottom: 20px;
}

#tabs .tab_spacer {
	display: none;
}

#tabs .template-page a,
.buttonStyle a {
	background: #da121a;
	color: #fff;
	border: 1px solid #fff;
	display: inline-block;
	padding: 10px 20px;
	font-size: 1.375rem;
	text-transform: uppercase;
	font-weight: 600;
	margin: 25px 10px;
	text-decoration: none;
}

#tabs .template-page a:is(:hover, :focus),
.buttonStyle a:is(:hover, :focus) {
	background: #0d0d0d;
}

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

/* ------------------------------------------- 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: #da121a;
	font-weight: 600;
	line-height: 1.2;
	font-family: "Source Sans 3", sans-serif;
}

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

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: #0d0d0d;
}

@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: #ffffff;
}

@media (min-width: 992px) {
	#breakerSlogan .template-page {
		padding-left: 70px;
	}
}

#breakerSlogan :is(b, strong) {
	font-size: clamp(1.75rem, 4.5vw, 2.5rem);
}

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

#breakerSlogan {
	padding: clamp(30px, 4vw, 45px) 0 clamp(30px, 4vw, 55px) clamp(50px, 8vw, 100px);
}

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

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

#breakerSlogan::after {
	top: 0;
	left: 0;
	right: 0;
	z-index: -1;
	background-color: #3d781f;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

@media (min-width: 992px) {
	#breakerSlogan::after {
		transform: skewX(8deg);
		right: -20vw;
	}
	#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 {
	color: #ffffff;
	text-transform: uppercase;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

#breakerSlogan a {
   background: #078930;
   border: 1px solid #fff;
   padding: 4px 20px;
}

#breakerSlogan a:is(:hover, :focus) {
   background: #da121a;
}

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

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

#searchbar {
	background: #fff;
	color: #0d0d0d;
	padding: 20px 0;
	box-shadow: -10px 0px 20px 0px rgba(0, 0, 0, 0.1);
}

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

#searchbar a {
	color: #305e19;
}

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

#search_input {
	color: #ffffff;
	font-size: 1rem;
	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: #0d0d0d;
}

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

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

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

#footer {
	color: #ffffff;
	background-color: #0d0d0d;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

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

#footer > .row:first-child {
	row-gap: 30px;
	padding: 50px 0;
}

#footer > .row:first-child a {
	color: #ffffff;
}

@media (max-width: 767px) {
	#footer > .row:last-child {
		padding: 20px 0 25px 0;
	}
}

#footer .footerHeadline {
	color: #ffffff;
	text-transform: uppercase;
	font-size: 1.5625rem;
	margin-bottom: 4px;
}

#footer hr {
	margin: 0 auto;
	max-width: 1170px;
	height: 2px;
	opacity: 0.2;
	background: #ffffff;
}

#innerfooter ul {
	padding: 0;
}

#innerfooter a {
	color: #ffffff;
	text-decoration: none;
	position: relative;
	display: inline-block;
	font-weight: 600;
	font-size: 1rem;
	text-transform: uppercase;
	padding: clamp(6px, 4vw, 36px) 10px;
}

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

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

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

#vernetzt {
	gap: 12px;
	text-align: right;
	font-size: 0.9375rem;
	color: #ffffff;
	line-height: 1.4;
	text-decoration: none;
}

@media (max-width: 767px) {
	#vernetzt {
		margin-top: 20px;
	}
}

#vernetzt span span {
	display: block;
}

#footerRight {
	display: flex;
	flex-wrap: wrap;
	gap: 30px 60px;
	align-content: space-between;
}

#scrollTopBtn {
	font-size: 1.375rem;
	text-transform: uppercase;
	font-weight: 600;
	border: 1px solid #fff;
	padding: 10px 30px;
	text-decoration: none;
}

#scrollTopBtn:is(:hover, :focus) {
	background: #da121a;
}
