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

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

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

a {
	color: #481260;
}

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

b,
strong {
	font-weight: 600;
}

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

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

#logo {
	display: inline-block;
}

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

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

	#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: #481260;
		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);
		padding: 10px;
	}

	.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) {
	.sticky-wrapper {
		position: absolute;
		left: 0;
		right: 0;
		top: 0;
	}

	nav.horizontally {
		position: absolute;
		top: 0;
		max-width: 1930px;
		width: 100%;
		z-index: 101;
		background: rgba(255, 255, 255, 0.8);
		transition:
			150ms linear background,
			150ms linear box-shadow;
		padding: 25px 0;
	}

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

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

/* toplevel */

nav.horizontally a[class*="toplevel"] {
	color: #191919;
	text-align: left;
	padding: 10px 35px 10px 15px;
	font-size: 1.25rem;
	font-weight: 600;
	position: relative;
	line-height: 1.2;
	text-decoration: none;
	font-family: "Spectral", serif;
	border-radius: 10px;
}

@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;
		text-align: center;
		justify-content: center;
	}
}

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

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

/* secondlevel + thirdlevel dropdown-box */

.navbar-default .navbar-nav > li > .dropdown-menu {
	background:
		url("../img/icon-ziege-subnav.png") top right no-repeat,
		rgba(72, 18, 96, 0.9);
	border-radius: 10px;
}

.navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
	background:
		url("../img/icon-ziege-subnav.png") top right no-repeat,
		rgba(255, 255, 255, 0.9);
	border-radius: 10px;
}

@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: -26px;
		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 [class*="toplevel"] > ul::before {
		background-color: rgba(72, 18, 96, 0.9);
	}

	nav.horizontally [class*="secondlevel"] > ul::before {
		background-color: rgba(255, 255, 255, 0.9);
	}

	nav.horizontally [class*="toplevel"] > ul::before {
		left: 50px;
		top: -14px;
		width: 30px;
		height: 15px;
		clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
	}

	nav.horizontally [class*="secondlevel"] > ul::before {
		left: -14px;
		top: 6px;
		width: 15px;
		height: 30px;
		clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
	}

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

nav.horizontally a[class*="thirdlevel"] {
	color: #191919;
}

@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[class*="secondlevel"]:is(:hover, :focus-within) > a,
nav.horizontally li[class*="secondlevel"] > a:is(:hover, :focus),
nav.horizontally li[class*="secondlevel"].open > a,
nav.horizontally li[class*="secondlevel"].open > a:is(:hover, :focus),
nav.horizontally li[class*="secondlevel"][class*="_over"] > a,
nav.horizontally li[class*="secondlevel"][class*="_over"] > a:is(:hover, :focus) {
	color: #191919;
	background-color: #fff;
}

nav.horizontally li[class*="thirdlevel"]:is(:hover, :focus-within) > a,
nav.horizontally li[class*="thirdlevel"] > a:is(:hover, :focus),
nav.horizontally li[class*="thirdlevel"].open > a,
nav.horizontally li[class*="thirdlevel"].open > a:is(:hover, :focus),
nav.horizontally li[class*="thirdlevel"][class*="_over"] > a,
nav.horizontally li[class*="thirdlevel"][class*="_over"] > a:is(:hover, :focus) {
	color: #ffffff;
	background-color: #481260;
}

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

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

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

@media (min-width: 768px) {
	body.index #slider {
		max-height: clamp(450px, 74vw, 740px);
	}
}

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

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

.slider-mask {
	display: none;
}

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

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

#tabs {
	padding: clamp(30px, 6vw, 70px) 0;
	background:
		url("../img/icon-ziege-kacheln.png") center left 3% no-repeat,
		#f0f0f0;
}

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

#tabs .tab {
	padding: 40px clamp(15px, 3vw, 25px) 30px clamp(15px, 3vw, 25px);
	background: #481260;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
	height: 100%;
	min-height: 100%;
	border-radius: 15px;
	color: #fff;
	hyphens: auto;
	background-size: cover;
	background-position: center;
}

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

#tabs .tabHeadline {
	font-size: clamp(1.5rem, 7vw, 1.8125rem);
	margin-bottom: clamp(10px, 4vw, 40px);
	position: relative;
	color: #fff;
}

#tabs .tab.tab2 {
	font-size: 1rem;
}

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

#tabs .tab.tab2 .tab_link_mehr {
	font-size: 0;
	text-align: right !important;
}

#tabs .tab.tab2 .tab_link_mehr a,
#tabs .tab:not(.tab2) a {
	background-color: #fff;
	border-radius: 5px;
	padding: 4px 35px 5px 15px;
	color: #191919;
	font-weight: 600;
	font-size: 1.125rem;
	display: inline-block;
	position: relative;
	transition: transform 300ms;
	margin-bottom: 15px;
}

@media (max-width: 991px) {
	#tabs .tab:not(.tab2) a {
		width: 100%;
		max-width: 300px;
	}
}

#tabs .tab.tab2 .tab_link_mehr a:hover,
#tabs .tab:not(.tab2) a:hover {
	color: #481260;
	transform: scale(1.05);
}

#tabs .tab.tab2 .tab_link_mehr a::after,
#tabs .tab:not(.tab2) a::after {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 5px;
	height: 25px;
	width: 25px;
	background: url("../img/arrow-icon.png") no-repeat;
}

/* #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: #481260;
	font-weight: 600;
	line-height: 1.2;
	font-family: "Spectral", serif;
}

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

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;
	margin-bottom: 85px;
	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: #481260 url("../img/pflanzen-hintergrund.jpg") center / cover no-repeat;
		border-radius: 15px;
	}
}

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

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

	#breakerSlogan::after {
		top: 0;
		left: 0;
		right: -20vw;
		z-index: -1;
		background-color: #481260;
		background-position: center;
		background-size: cover;
		background-repeat: no-repeat;
		border-radius: 15px 0 0 15px;
	}
}

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

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

#breakerSlogan a {
	background-color: #fff;
	border-radius: 5px;
	padding: 4px 35px 5px 15px;
	color: #191919;
	font-weight: 600;
	font-size: 1.125rem;
	display: inline-block;
	position: relative;
	transition: transform 300ms;
}

#breakerSlogan a:hover {
	color: #481260;
	transform: scale(1.05);
}

#breakerSlogan a::after {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 5px;
	height: 25px;
	width: 25px;
	background: url("../img/arrow-icon.png") no-repeat;
}

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

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

#footer {
	color: #ffffff;
	background-color: #481260;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding-bottom: 15px;
}

#footer .tab2 {
	font-size: 0.875rem;
}

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

	#footer .tab2 {
		padding-top: 40px;
	}
}

@media (min-width: 1200px) {
	#footer .tab2 .col-md-3 {
		flex: 0 0 34%;
		max-width: 34%;
	}

	#footer .tab2 .col-md-9 {
		flex: 0 0 66%;
		max-width: 66%;
	}
}

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

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

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

#footer .footerHeadline {
	color: #ffffff;
	font-size: clamp(1.5625rem, 3vw, 2.5rem);
	margin-bottom: 14px;
}

#innerfooter ul {
	padding: 0;
}

#innerfooter a {
	color: #ffffff;
	text-decoration: none;
	position: relative;
	display: inline-block;
	font-weight: 400;
	font-size: 1rem;
	padding: 10px;
	border-radius: 10px;
}

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

	#innerfooter li + li {
		margin-left: 10px;
	}
}

#innerfooter a:is(:hover, :focus) {
	background: rgba(255, 255, 255, 1);
	color: #481260;
}

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