@import url("https://fonts.verwaltungsportal.de/import/?family=Roboto:400,400i,700,700i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Oswald:400,400i,700,700i");

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

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

a {
	color: #4e8031;
}

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

.rowGap {
	row-gap: 30px;
}

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

#topbar {
	padding-block: 20px;
	border-top: 15px solid #2b451a;
}

@media (min-width: 992px) {
	#topbar > .row {
		position: relative;
		z-index: 100;
	}

	#topbar > .row::before {
		content: "";
		position: absolute;
		top: -8px;
		left: -360px;
		background: url(../img/vereinsfahne-topbar.png);
		width: 193px;
		height: 194px;
		z-index: 99;
	}
	
	#topbar > .row::after {
		content: "";
		position: absolute;
		top: -15px;
		right: -360px;
		background: url(../img/Eichenlaub.png);
		width: 268px;
		height: 211px;
		z-index: 99;
	}
}

.logo {
	display: flex;
	flex-wrap: wrap;
	gap: 15px 15px;
	text-decoration: none !important;
}

.logo .template-page {
	width: auto;
	border-bottom: 1px solid rgba(60, 79, 54, 0.5);
	padding-bottom: 10px;
}

.logo .cleaner {
	display: none;
}

.logoText {
	color: #2b451a;
	font-size: clamp(1.25rem, 2vw, 1.875rem);
	align-content: center;
	line-height: 1.1;
	font-family: "Oswald", sans-serif;
	text-align: left;
	font-weight: 700;
}

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

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

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

/* #region -------------------------------------- topbarButtons ---------------------------------------- */

#topbarButtons a:has(img) {
	background: #4e8031;
	display: inline-block;
	line-height: 0;
	min-height: 45px;
	min-width: 45px;
	border-radius: 25px;
	text-align: center;
	align-content: center;
}

#topbarButtons a:has(img):is(:hover, :focus) {
	background: #2b451a;
}

/* #endregion ----------------------------------- topbarButtons ---------------------------------------- */

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

/* burgermenu for tablet */

@media (max-width: 991px) {
	#topArea {
      padding-bottom: 15px;
	}
	#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: #4e8031;
		border-radius: 2px;
		position: absolute;
		width: 40px;
		height: 3px;
		left: 10px;
		transition:
			transform 200ms linear,
			opacity 200ms linear;
	}

	.contrast_dark_font #burgerButton::before,
	.contrast_dark_font #burgerButton::after,
	.contrast_dark_font #burgerButtonInner {
		background-color: #000 !important;
	}
	.contrast_light_font #burgerButton::before,
	.contrast_light_font #burgerButton::after,
	.contrast_light_font #burgerButtonInner {
		background-color: #fff !important;
	}

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

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

/* menu desktop */

@media (min-width: 992px) {
	#topArea {
		box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
	}

	nav.horizontally .navbar-nav {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
		padding-block: 15px;
	}

	.is-sticky nav.horizontally {
		box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
		left: auto !important;
		background-color: #fff;
	}

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

/* toplevel */

nav.horizontally a[class*="toplevel"] {
	color: #4e8031;
	font-weight: 400;
	text-align: left;
	padding: 10px 15px 15px 15px;
	position: relative;
	font-size: clamp(1.125rem, 1.5vw, 1.375rem);
	line-height: 1.2;
	text-decoration: none;
	font-family: "Oswald", sans-serif;
	border-bottom: 1px solid transparent;
	transition:
		color 300ms,
		border-color 300ms;
}

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

@media (min-width: 992px) {
	nav.horizontally a[class*="toplevel"] {
		text-align: center;
		padding: 10px;
	}
}

/* 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: #2b451a;
	background-color: transparent;
	border-bottom-color: rgba(60, 79, 54, 0.5);
}

/* secondlevel + thirdlevel dropdown-box */

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

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

@media (min-width: 992px) {
	nav.horizontally [class*="toplevel"] > ul {
		left: 0;
		margin-top: 30px;
	}

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

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

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

/* secondlevel + thirdlevel */

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

@media (max-width: 991px) {
	nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
		text-align: left;
	}

	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: #2b451a;
	color: #fff;
}

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

#headerpic > .row {
	max-width: 1440px;
	width: 100%;
}

#slider {
	max-height: clamp(300px, 42vw, 400px);
	position: relative;
}

@media (min-width: 992px) {
	body.index #slider {
		max-height: clamp(400px, 62vw, 450px);
	}

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

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

	#headerpic > .row {
		position: relative;
	}
}

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

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

.slider-mask {
	display: none;
}

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

#content {
	text-align: left;
	padding-block: clamp(30px, 4vw, 60px);
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
	color: #4e8031;
	font-weight: 700;
	line-height: 1.2;
	font-family: "Oswald", sans-serif;
}

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

h2,
.h2,
.legacy_h2 {
	font-size: clamp(1.75rem, 5vw, 2.125rem);
}

h3,
.h3,
.legacy_h3 {
	font-size: clamp(1.625rem, 4.5vw, 2rem);
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
	font-size: clamp(1.5rem, 4vw, 1.875rem);
}

h5,
.h5,
.legacy_h5 {
	font-size: clamp(1.375rem, 3.5vw, 1.75rem);
}

h6,
.h6,
.legacy_h6 {
	font-size: clamp(1.25rem, 3vw, 1.625rem);
}

/* ----------------------------------------------- Tabs -------------------------------------------- */

#tabs {
	margin-bottom: clamp(30px, 5vw, 80px);
}

#tabs .tab {
	background: #2b451a;
	color: #fff;
	padding: clamp(30px, 4vw, 50px) clamp(30px, 4vw, 40px);
	position: relative;
}

@media (min-width: 992px) {
	#tabs .tab::after {
		content: "";
		position: absolute;
		bottom: -60px;
		right: -110px;
		background: url(../img/logo-bildmarke.png);
		width: 165px;
		height: 183px;
	}
}

#tabs .tab .tabHeadline {
	margin-bottom: 30px;
	padding-right: 75px;
	position: relative;
}

#tabs .tab .tabHeadline::after {
	content: "";
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 0;
	width: 60px;
	height: 60px;
	background: #fff url(../img/phone-message.png);
	background-repeat: no-repeat;
	background-position: center;
	border-radius: 50%;
}

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

/* ----------------------------------------------- @3nw news -------------------------------------------- */

#nw3 {
	font-size: 1rem;
	display: grid;
	row-gap: 15px;
}

#nw3 .tabHeadline {
	margin-bottom: 15px;
}

#nw3 .tab_link_entry {
	position: relative;
	margin-left: 185px;
	min-height: 105px;
	padding: 20px;
	display: grid;
	background: #ffffff;
	border-bottom: none !important;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}

#nw3 .tab_link_entry:first-of-type::before {
	position: absolute;
	content: "";
	top: 0;
	right: 0;
	background: url(../img/zielscheibe.png);
	width: 90px;
	height: 91px;
	transform: translate(50%, -50%);
}

#nw3 .tab_link_entries {
	display: grid;
	gap: 15px;
}

@media (min-width: 992px) {
	#nw3 .tab_link_entry {
		padding: 25px;
	}

	#nw3 .tab_link_entries {
		gap: 25px;
	}
}

#nw3 .tab_link_title {
	order: 1;
}

#nw3 .vorschau {
	order: 2;
	opacity: 1;
}

#nw3 .tab_date {
	order: 3;
}

#nw3 .tab_link_mandat a {
	color: #272727;
}

#nw3 .tab_link_title a {
	display: block;
	color: #272727;
	font-weight: 700;
	margin-bottom: 2px;
}

#nw3 .tab_link_entry::after {
	content: "";
	background:
		center / cover no-repeat,
		#fff;
}

#nw3 .tab_preview_picture {
	background: #ffffff;
}

#nw3 .tab_link_entry::after,
#nw3 .tab_preview_picture {
	display: block;
	width: 170px;
	height: 100%;
	position: absolute;
	left: -185px;
	top: 0;
	overflow: hidden;
}

@media (max-width: 767px) {
	#nw3 .tab_link_entry {
		margin-left: 0px;
		padding-top: 185px !important;
	}

	#nw3 .tab_link_entry::after,
	#nw3 .tab_preview_picture {
		display: block;
		width: 100%;
		height: 170px;
		position: absolute;
		left: 0;
		top: 0;
		bottom: 0px;
		right: 0px;
		overflow: hidden;
	}
}

#nw3 .tab_preview_picture img {
	position: absolute;
	z-index: 2;
	height: 100%;
	width: 100%;
	object-fit: cover;
	object-position: center;
}

#nw3 .tab_spacer,
#nw3 .tab_link_entry > div:nth-last-child(2) {
	display: none;
}

/* ----------------------------------------- @3nw tab_link_mehr ---------------------------------------- */

#nw3 .tab_link_mehr {
	text-align: right;
	color: transparent;
	font-size: 0;
}

#nw3 .tab_link_mehr a {
	display: inline-block;
	text-decoration: none;
	position: relative;
	font-weight: 400;
	color: #ffffff;
	font-size: 1.125rem;
	padding: 8px 20px;
	background: #4e8031;
	transition: background 300ms linear;
}

#nw3 .tab_link_mehr a:hover,
#nw3 .tab_link_mehr a:focus {
	color: #ffffff;
	background: #2b451a;
}

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

#f5 {
	padding-top: 12px;
	padding-bottom: 12px;
	background-color: #2b451a;
}

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

@media (max-width: 767px) {
	#innerfooter {
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		padding-bottom: 15px;
		margin-bottom: 15px;
	}
}

#innerfooter ul {
	padding: 0;
}

#innerfooter li {
	display: inline-block;
}

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

#innerfooter a:hover,
#innerfooter a:focus {
	color: #ffffff;
	text-decoration: underline;
}

#innerfooter li + li::before {
	content: "•";
	margin: 0 12px;
	color: #fff;
}

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

@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;
	text-align: right;
	font-size: 0.9375rem;
	color: #ffffff;
	line-height: 1.3;
	text-decoration: none;
}
