@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: #f0f0f0;
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
	scrollbar-color: #a40707 #ffffff;
	scrollbar-width: thin;
}

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

a {
	color: #a40707;
}

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

/* #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: #a40707;
		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 {
		background: #fff;
		box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
	}

	nav.horizontally .navbar-nav {
		display: flex;
		justify-content: space-between;
		position: relative;
		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: #757575;
	text-align: left;
	padding: 10px 35px;
	font-size: 1rem;
	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;
		align-content: center;
		align-items: center;
		justify-content: center;
		height: 100%;
		min-height: 90px;
	}
}

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

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

/* 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: #757575;
	font-weight: 400;
	text-align: left;
	padding: 10px 35px;
	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;
		padding: 7px 20px;
		text-transform: uppercase;
	}
}

@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: #a40707;
	background-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, 600px);
	}
}

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

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

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

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

#slogan {
	font-size: clamp(1.5rem, 2vw, 1.875rem);
}

#slogan :is(b, strong) {
	font-size: clamp(2rem, 3vw, 2.5rem);
	text-transform: uppercase;
}

@media (min-width: 768px) {
	#bannerOverlay {
		position: absolute;
		z-index: 52;
		left: 0;
		bottom: -30px;
		right: 0;
		pointer-events: none;
		font-size: 1.125rem;
		line-height: 1.1;
      background: linear-gradient(90deg,rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
	}

	#slogan {
		position: relative;
		padding: clamp(30px, 4vw, 45px) clamp(50px, 8vw, 100px) clamp(30px, 4vw, 55px) 0;
		pointer-events: auto;
		color: #fff;
	}

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

	#slogan::after {
		transform: skewX(-8deg);
		top: 0;
		left: -20vw;
		right: 0;
		z-index: -1;
		background: #a40707;
	}

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

#bannerOverlay a {
	color: #fff;
	text-decoration: none;
}

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

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

#tabs {
	padding: clamp(50px, 8vw, 100px) 0 50px 0;
	background: #f0f0f0 linear-gradient(to top, rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0) 15px);
}

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

#tabs .tab {
	padding: 30px clamp(15px, 3vw, 50px) clamp(30px, 6vw, 70px) clamp(15px, 3vw, 50px);
	background: #ffffff;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
	height: 100%;
	min-height: 100%;
}

@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: 135px;
	background-position: top center;
	background-repeat: no-repeat;
}

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

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

#tabs > .row > div .tabHeadline::after {
	border-bottom: 4px solid #a40707;
}

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

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

#tabs .tab .tab_link_entry {
	border: none !important;
}

#tabs .tab .tab_link_title a {
	color: #757575;
	font-weight: 600;
}

#tabs .tab .tab_link_mandat a {
	color: #757575;
}

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

@media (max-width: 991px) {
	#tabs .tab .tab_link_mehr {
		text-align: center !important;
	}
}

#tabs .tab .tab_link_mehr a {
	font-size: 0;
	display: inline-block;
	background: #f0f0f0;
	padding: 8px 20px;
	font-size: 1rem;
	color: #303030;
	font-weight: 600;
}

#tabs .tab .tab_link_mehr a:is(:hover, :focus) {
	background: #a40707;
	color: #fff;
	text-decoration: none;
}

/* #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: #303030;
	font-weight: 600;
	line-height: 1.2;
	font-family: "Source Sans 3", 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.5625rem);
}

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

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

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

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

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

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

@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: #a40707;
		background-position: center;
		background-size: cover;
		background-repeat: no-repeat;
	}

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

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

#breaker :is(h1, h2, h3, h4, h5, h6) {
	color: #ffffff;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	text-transform: uppercase;
}

#breaker :is(h1, h2, h3, h4, h5, h6) :is(i, em) {
	display: block;
	font-size: clamp(1.5rem, 4vw, 1.875rem);
	font-style: normal;
}

#breakerSlogan a {
	color: #ffffff;
}

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

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

#searchbar {
	background: #f0f0f0;
	color: #303030;
	padding: 20px 0;
	margin-top: 50px;
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
}

#searchbar .template-page {
	font-size: clamp(1.5rem, 3vw, 2.5rem);
	color: #a40707;
}

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

#search {
	background: #a40707;
	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: rgba(0, 0, 0, 0.2) 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(0, 0, 0, 0);
}

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

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

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

#footer {
	color: #ffffff;
	background-color: #000;
	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.4;
	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) {
	background: rgba(255, 255, 255, 0.05);
}

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