@import url("https://fonts.verwaltungsportal.de/import/?family=Work+Sans:400,400i,500,500i%7COswald:400,700");

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

body {
	font-family: "Work Sans", sans-serif;
	font-weight: 400;
	color: #252525;
	background: #ffffff;
	font-size: clamp(1rem, 2vw, 1.125rem);
	/* 1rem = 16px */
	line-height: 1.5;
	box-shadow: 0 0 100px 0 rgba(0, 0, 0, 0.1);
}

a,
a:is(:hover, :focus) {
	color: #5c4900;
}

a:is(:hover, :focus),
:is(main, #header-text, #footer .template-page) a {
	text-decoration: underline;
}

:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 2px;
}

b,
strong,
:is(main, #header-text) a {
	font-weight: 500;
}

#overflow {
	overflow: clip;
}

html[style*="font-size"]:not([style*="font-size: 100%"]) {
	hyphens: auto;
}

.rowGap {
	row-gap: 30px;
}

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

#logo {
	display: inline-block;
	background: #ffffff;
	padding: 4px;
	box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
}

#logo img {
	display: block;
}

@media (max-width: 575px) {
	#logo {
		margin-top: 15px;
	}

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

	#logo .row {
		margin-left: -15px;
		margin-right: -15px;
	}
}

@media (min-width: 576px) {
	#logo {
		position: absolute;
		left: 15px;
		top: -80px;
		max-width: 170px;
		display: flex;
		align-content: end;
		align-items: end;
		justify-content: center;
		transition: bottom 200ms linear;
		width: 100%;
	}

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

@media (min-width: 992px) {
	#logo {
		top: -71px;
		bottom: 0;
	}

	.is-sticky #logo {
		bottom: -20px;
	}

	#logo img {
		bottom: 0;
		transition: max-height 200ms linear;
	}

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

	#logo-col {
		position: static;
	}
}

/* ---------------------------------------------- topbar ---------------------------------------- */

#topbar {
	padding: 15px 0;
	font-size: 1rem;
	line-height: 1;
}

#topbar > .row {
	row-gap: 15px;
}

#topbar .tab {
	font-size: clamp(1rem, 1vw, 1.125rem);
}

/* search */

#search {
	background: #ffffff;
	position: relative;
	color: #333333;
}

@media (min-width: 992px) {
	#search {
		padding: 4px 0;
	}
}

#search label {
	font-weight: 700;
	padding-right: 10px;
}

#search_input {
	color: inherit;
	font-style: normal;
	border: 0;
	padding: 7px 36px 7px 10px;
}

@media (max-width: 991px) {
	#search_input {
		padding-top: 13px;
		padding-bottom: 13px;
	}
}

#search_submit {
	width: 36px;
	background: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48'%3E%3Cpath d='M38.7 40.85 26.65 28.8q-1.5 1.3-3.5 2.025-2 .725-4.25.725-5.4 0-9.15-3.75T6 18.75q0-5.3 3.75-9.05 3.75-3.75 9.1-3.75 5.3 0 9.025 3.75 3.725 3.75 3.725 9.05 0 2.15-.7 4.15-.7 2-2.1 3.75L40.95 38.7q.45.4.45 1.025 0 .625-.5 1.125-.45.45-1.1.45-.65 0-1.1-.45Zm-19.85-12.3q4.05 0 6.9-2.875Q28.6 22.8 28.6 18.75t-2.85-6.925Q22.9 8.95 18.85 8.95q-4.1 0-6.975 2.875T9 18.75q0 4.05 2.875 6.925t6.975 2.875Z' fill='%23897129'/%3E%3C/svg%3E") center / 28px auto no-repeat;
	padding: 0;
	cursor: pointer;
	border: none;
	position: absolute;
	top: 4px;
	right: 0;
	bottom: 4px;
	font-size: 0;
	transition: background-color 300ms linear;
}

:is(#search_submit, #search_input):is(:hover, :focus) {
	background-color: #f3f1e9;
}

#search_input::placeholder {
	color: #333333 !important;
	opacity: 1 !important;
	font-style: italic !important;
}

/* -------------------------------------------- navigation -------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
	.sticky-wrapper {
		height: auto !important;
	}

	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: #000000;
		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 {
		padding: 20px 10px;
	}

	.navbar-collapse {
		width: calc(100% - 90px);
		max-width: 300px;
		top: 0;
		background: #000000;
		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: 11px;
	}

	.dropdown-toggle-button-wrapper2 {
		top: 1px;
		right: -10px;
	}
}

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally {
		position: relative;
		z-index: 10;
		transition:
			background 300ms linear,
			padding 300ms linear;
	}

	.is-sticky nav.horizontally {
		background: #000000;
		border-bottom: 1px solid #ffffff;
	}

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

	.is-sticky nav.horizontally .navbar-nav {
		padding-top: 20px;
	}

	.is-sticky .navbar-nav {
		margin-bottom: -1px;
	}

	nav.horizontally .navbar-nav::after {
		content: "";
		display: block;
		position: absolute;
		left: 0;
		bottom: 0;
		right: clamp(-275px, -15vw, -15px);
		height: 1px;
		background: #ffffff;
	}

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

@media (min-width: 992px) and (max-width: 1200px) {
	nav.horizontally .navbar-nav {
		padding-left: 30px;
	}
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
	font-family: "Oswald", sans-serif;
	color: #ffffff;
	font-weight: 700;
	text-align: left;
	padding: 14px 15px;
	position: relative;
	font-size: 1.25rem;
	text-transform: uppercase;
	line-height: 1.2;
	text-decoration: none;
	transition: border 300ms linear;
   hyphens: auto;
}

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

	nav.horizontally a[class*="toplevel"].dropdown-toggle {
		padding-right: 35px;
	}
}

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

	nav.horizontally a[class*="toplevel"] {
		padding: 18px 6px;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		height: 100%;
		font-size: 1.5rem;
	}
}

nav.horizontally a[class*="toplevel"]::after {
	content: "";
	display: block;
	position: absolute;
	z-index: 1;
	left: 50%;
	bottom: 0;
	height: 4px;
	width: 0;
	background: #f5d345;
	transform: translateX(-50%);
	transition: width 300ms linear;
}

/* toplevel-over */

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within) > a::after,
nav.horizontally li[class*="toplevel"] > a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"].open > a::after,
nav.horizontally li[class*="toplevel"].open > a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"][class*="_over"] > a::after,
nav.horizontally li[class*="toplevel"][class*="_over"] > a:is(:hover, :focus)::after {
	width: 100%;
}

@media (min-width: 992px) {
	nav.horizontally li[class*="toplevel"]:hover > a.dropdown-toggle::before,
	nav.horizontally li[class*="toplevel"].open > a.dropdown-toggle::before,
	nav.horizontally li[class*="toplevel"].open > a.dropdown-toggle:is(:hover, :focus)::before {
		opacity: 1;
	}
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	background-color: #ffffff;
	box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
}

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

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

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

	nav.horizontally [class*="toplevel"] > ul::before {
		content: "";
		position: absolute;
		display: block;
		top: -10px;
		height: 10px;
		left: 0;
		right: 0;
	}

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

	nav.horizontally [class*="secondlevel"] > ul::before {
		content: "";
		position: absolute;
		display: block;
		width: 20px;
		top: 0;
		bottom: 0;
		left: -20px;
	}
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #252525;
	font-weight: 400;
	text-align: left;
	padding: 8px 25px;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
   hyphens: auto;
}

@media (max-width: 991px) {
	nav.horizontally a[class*="secondlevel"].dropdown-toggle2 {
		padding-right: 35px;
	}
}

/* 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: #897129;
	color: #ffffff;
}

/* --------------------------------------- max-width + resp-gaps -------------------------------- */

#news .tab_link_entries,
#footer > .row {
	row-gap: 30px;
}

/* ---------------------------------------------- header ---------------------------------------- */

#headerpic {
	background: #000000;
	position: relative;
}

/* header text */

#header-text {
	line-height: 1.4;
	position: relative;
	z-index: 10;
	padding: 60px 0 clamp(60px, 8vw, 112px) 0;
}

@media (min-width: 576px) {
	#header-text {
		padding-top: clamp(110px, 15vw, 300px);
		padding-bottom: clamp(110px, 8vw, 145px);
	}
}

#header-text,
#header-text :is(h1, h2, h3, h4, h5, h6, a) {
	color: #ffffff;
}

#header-text :is(h1, h2, h3, h4, h5, h6) {
	font-weight: 700;
	font-size: clamp(2.25rem, 5vw, 4.5rem);
	margin: 0;
}

body:not(.index) #header-text p {
	display: none;
}

/* ---------------------------------------------- banner ---------------------------------------- */

#slider {
	height: 100%;
	overflow: hidden;
}

@media (max-width: 1199px) {
	#headerpic :is(a.nivo-prevNav, a.nivo-nextNav) {
		display: none;
	}
}

@media (min-width: 992px) {
	body:not(.index) #headerpic {
		min-height: 700px;
	}

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

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

#headerpic .nivo-main-image {
	min-height: 100% !important;
}

#headerpic .nivo-controlNav {
	bottom: 8px;
}

#headerpic .slider-mask {
	display: block;
	background: rgba(0, 0, 0, 0.4);
}

.slider-wrapper {
	position: absolute !important;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

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

#content-area {
	position: relative;
	text-align: left;
	padding: clamp(40px, 5vw, 90px) 0 clamp(40px, 6vw, 100px) 0;
}

/* ----------------------------------------- teams + sponsors ----------------------------------- */

#teams-bg {
	position: relative;
}

@media (min-width: 992px) {
	#teams > .row {
		position: relative;
	}
}

#teams {
	position: relative;
	z-index: 9;
	padding: 0 0 clamp(40px, 10vw, 110px) 0;
	font-size: 1.0625rem;
}

:is(#teams) :is(.teams-headline) {
	color: #897129;
	font-weight: 400;
}

#teams .teams-headline {
	margin-bottom: clamp(20px, 5vw, 35px);
	font-weight: 400;
}

#teams :is(h1, h2:not(.teams-headline), h3, h4, h5, h6) {
	font-size: clamp(1.5625rem, 7vw, 1.875rem);
	margin-bottom: 4px;
	text-transform: uppercase;
	font-weight: 400;
}

#teams img {
	margin-bottom: 15px;
}

#teams a::after {
	content: "\00BB";
	display: inline-block;
	margin-left: 5px;
}

/* ----------------------------------------------- news ----------------------------------------- */

#news {
	padding: clamp(40px, 7vw, 110px) 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-color: #252525;
}

#news,
#news :is(h1, h2, h3, h4, h5, h6, a:not(.more-link)) {
	color: #ffffff;
}

#news .news-headline {
	position: relative;
}

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

.button-design a:not(.has-image) {
	display: inline-block;
	line-height: 1.2;
	color: #ffffff;
	font-size: 1rem;
	font-weight: 400;
	background: #897129;
	padding: 14px 60px 14px 20px;
	position: relative;
	text-decoration: none !important;
	transition:
		transform 200ms linear,
		filter 200ms linear;
	margin-top: 20px;
}

@media (min-width: 992px) {
	.button-design a:not(.has-image) {
		font-size: 1.125rem;
	}
}

.button-design a:not(.has-image):is(:hover, :focus) {
	z-index: 1;
	transform: scale(1.1);
	filter: drop-shadow(0 15px 10px rgba(0, 0, 0, 0.15));
}

.button-design a:not(.has-image)::after {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 40px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11px' height='12px'%3E%3Cpath d='M0.942,11.636 L5.320,6.488 L5.320,5.256 L0.942,0.108 L0.942,3.540 L3.230,5.850 L0.942,8.204 L0.942,11.636 ZM5.694,11.636 L10.072,6.488 L10.072,5.256 L5.694,0.108 L5.694,3.540 L7.982,5.850 L5.694,8.204 L5.694,11.636 Z' fill='%231a1a1a'/%3E%3C/svg%3E") center / 12px auto no-repeat;
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
	color: #897129;
	font-weight: 400;
	line-height: 1.12;
	font-family: "Oswald", sans-serif;
	margin-bottom: 15px;
}

h1,
.h1,
.legacy_h1,
.news-headline {
	font-size: clamp(2.25rem, 6vw, 3.125rem);
	margin-bottom: clamp(15px, 4vw, 40px);
}

.news-headline {
	margin-bottom: 15px;
}

h2,
.h2,
.legacy_h2 {
	font-size: clamp(2.0625rem, 5.5vw, 2.8125rem);
}

h3,
.h3,
.legacy_h3 {
	font-size: clamp(1.875rem, 5vw, 2.5rem);
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
	font-size: clamp(1.6875rem, 4.5vw, 2.1875rem);
}

h5,
.h5,
.legacy_h5 {
	font-size: clamp(1.5625rem, 4vw, 1.875rem);
}

h6,
.h6,
.legacy_h6 {
	font-size: clamp(1.4375rem, 3.5vw, 1.5625rem);
}

/* ----------------------------------------------- footer --------------------------------------- */

footer {
	font-size: 1rem;
}

#footer {
	padding: clamp(40px, 8vw, 80px) 0 clamp(40px, 8vw, 70px) 0;
	background: #ffffff;
}

#footer,
#footer :is(h1, h2, h3, h4, h5, h6, a) {
	color: #252525;
}

#footer :is(h1, h2, h3, h4, h5, h6) {
	font-size: 1.625rem;
	margin-bottom: 2px;
	font-weight: 700;
}

@media (min-width: 1200px) {
	#footer {
		background:
			url("../img/wasserzeichen-logo.png") center right clamp(100px, 26vw, 440px) no-repeat,
			#fff;
	}
}

#innerfooter {
	padding: 20px 0;
	border-top: 4px solid #c6a741;
	background: #000000;
}

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

#innerfooter ul {
	padding: 0;
}

@media (min-width: 576px) {
	#innerfooter li + li {
		margin-left: 30px;
	}

	#innerfooter li {
		display: inline-block;
	}
}

#innerfooter li a {
	color: #ffffff;
}

@media (max-width: 575px) {
	#innerfooter li a {
		padding: 4px;
		display: inline-block;
	}
}

#footer #social-media img + img,
#footer a.has-image + a.has-image {
	margin-left: 10px;
}

#footer #social-media + #vernetzt {
	margin-top: 20px;
}

/* vernetzt */

#vernetzt-helper {
	margin-top: 30px;
}

/*  scroll top  */

#scroll-top {
	font-size: 0;
	width: 36px;
	height: 36px;
	display: block;
	position: relative;
	margin: 0 auto;
	background: #897129;
}

#scroll-top:is(:hover, :focus) {
	background: #c6a741;
}

#scroll-top::after {
	content: "";
	position: absolute;
	left: 11px;
	top: 4px;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	margin-top: 10px;
	display: inline-block;
	border-right: 3px solid #ffffff;
	border-top: 3px solid #ffffff;
	transform: rotate(-45deg);
	transition: border 300ms linear;
}

/* --------------------------------------------- kontraste -------------------------------------------- */

.contrast_dark_font #headerpic,
.contrast_dark_font .slider-wrapper,
.contrast_dark_font .slider-wrapper *,
.contrast_dark_font #header-text,
.contrast_light_font #headerpic,
.contrast_light_font .slider-wrapper,
.contrast_light_font .slider-wrapper *,
.contrast_light_font #header-text {
	background-color: transparent !important;
}

.contrast_light_font nav.horizontally,
.contrast_light_font #header-text > *,
.contrast_light_font #sticky-wrapper,
.contrast_light_font .dropdown-toggle-button,
.contrast_dark_font #burgerButton::before,
.contrast_dark_font #burgerButton::after,
.contrast_dark_font #burgerButtonInner {
	background-color: #000 !important;
}

.contrast_dark_font #news {
	background: #fff !important;
}

.contrast_dark_font nav.horizontally,
.contrast_dark_font #header-text > *,
.contrast_dark_font #sticky-wrapper,
.contrast_light_font #logo,
.contrast_light_font #logo img,
.contrast_light_font #social-media img,
.contrast_light_font #burgerButton::before,
.contrast_light_font #burgerButton::after,
.contrast_light_font #burgerButtonInner {
	background-color: #fff !important;
}
