@import url("https://fonts.verwaltungsportal.de/import/?family=Nunito:300,300i,400,400i,600,600i,700,700i%7CCairo:400,700");

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

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

a {
	color: #597e52;
}

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

#content a,
b,
strong {
	font-weight: 700;
}

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

#logo {
	display: inline-block;
	position: relative;
	z-index: 51;
	background: #ffffec;
	box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.25);
	border-right: 6px solid #c6a969;
	border-bottom: 6px solid #c6a969;
	padding: 45px 10px 20px 10px;
}

#logo img {
	display: block;
	transition: max-height 300ms linear;
	max-height: 150px;
}

@media (max-width: 991px) {
	#logo {
		margin-bottom: -60px;
	}

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

@media (min-width: 992px) {
	#logo {
		position: absolute;
		top: clamp(-20px, -1.5vw, -10px);
		left: 15px;
	}

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

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

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

nav.horizontally {
	background: #ffffec;
	transition: padding 300ms;
	box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.25);
}
.is-sticky .horizontally {
	padding-block: clamp(5px, 1vw, 10px);
}

/* burgermenu for tablet */

@media (max-width: 991px) {
	.dropdown-toggle-button-wrapper .dropdown-toggle-button,
	.dropdown-toggle-button-wrapper2 .dropdown-toggle-button {
		background: #ffffec;
	}
	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: #ffffec;
		box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
	}

	#burgerButton::before,
	#burgerButton::after,
	#burgerButtonInner {
		background-color: #597e52;
		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: #ffffec;
		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: 4px;
	}

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

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally {
		padding-block: clamp(10px, 1.5vw, 20px);
	}
	nav.horizontally > .row > * {
		display: grid;
		gap: 30px;
		transition: gap 300ms;
	}

	.is-sticky .horizontally > .row > * {
		gap: 15px;
	}
	nav.horizontally .navbar-nav {
		display: flex;
		justify-content: space-between;
		align-items: center !important;
		transition: margin 300ms linear;
		gap: 15px;
		flex-wrap: wrap;
	}
	.is-sticky nav.horizontally {
		left: unset !important;
	}

	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.open > ul {
		pointer-events: none !important;
		opacity: 0 !important;
		visibility: hidden;
	}

	nav.horizontally .navbar-nav li:is(: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) > ul {
		z-index: 1003;
	}
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
	color: #597e52;
	font-weight: 600;
	text-align: center;
	padding: 10px 35px;
	position: relative;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
}

nav.horizontally li[class*="toplevel"]:last-child > a {
	background: #597e52;
	padding-left: 14px;
	padding-right: 14px;
	outline: 2px solid #c6a969;
	color: #fff;
}

@media (max-width: 991px) {
	nav.horizontally li[class*="toplevel"] {
		border-bottom: 1px solid rgba(255, 255, 255, 0.4);
	}
}

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

nav.horizontally a[class*="toplevel"]::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	background: #597e52;
	width: 0;
	transition: width 300ms linear;
}

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

nav.horizontally li[class*="toplevel"]:last-child :is(:hover, :focus-within) > a,
nav.horizontally li[class*="toplevel"]:last-child > a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"]:last-child .open > a,
nav.horizontally li[class*="toplevel"]:last-child .open > a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"]:last-child [class*="_over"] > a,
nav.horizontally li[class*="toplevel"]:last-child [class*="_over"] > a:is(:hover, :focus) {
	background: #c6a969;
	color: #333333;
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
	padding: 10px;
	background-color: #597e52;
}

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

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

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

	nav.horizontally :is([class*="toplevel"], [class*="secondlevel"]) > ul::before {
		content: "";
		position: absolute;
		display: block;
	}

	nav.horizontally [class*="toplevel"] > ul::before {
		height: 14px;
		left: 0;
		right: 0;
		top: -14px;
	}

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
	color: #ffffff;
	text-align: center;
	padding: 10px 40px 10px 20px;
	font-weight: 400;
	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;
	}

	nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
		content: "\00BB";
		position: absolute;
		right: 20px;
		top: 50%;
		margin-top: -12px;
		font-size: 24px;
		line-height: 1;
	}
}

/* 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: #c6a969;
	color: #333333;
}

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

@media (min-width: 992px) {
	#style span {
		display: inline-block;
		margin-right: 10px;
		font-size: 1rem;
		color: #597e52;
	}
	#style button {
		border: none;
		color: #fff;
		display: inline-block;
		width: 38px;
		height: 38px;
		border-radius: 50%;
		font-weight: 400;
		text-align: center;
		background-color: #597e52;
		position: relative;
		line-height: 1;
		font-size: 18px;
	}
	#style button + button {
		margin-left: 8px;
	}
	#style button:hover {
		background: #c6a969;
		color: #333333;
	}
	#style button:focus-visible {
		outline: 2px auto;
	}
}

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

#slider {
	padding: 0;
	position: relative;
	max-height: clamp(300px, 46vw, 500px);
}

@media (min-width: 992px) {
	body.index :is(#slider) {
		max-height: clamp(440px, 68vw, 725px);
	}

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

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

#headerpic {
	position: relative;
}

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

.slider-mask {
	display: block;
	background: url("../img/banner-bogen.png") center bottom / 100% auto no-repeat;
}

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

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

#content {
	text-align: left;
	padding-bottom: clamp(30px, 4vw, 70px);
	padding-top: 30px;
}

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

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

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

h2,
.h2,
.legacy_h2 {
	font-size: clamp(1.875rem, 4.5vw, 2.1875rem);
}

h3,
.h3,
.legacy_h3 {
	font-size: 1.875rem;
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
	font-size: 1.75rem;
}

h5,
.h5,
.legacy_h5 {
	font-size: 1.625rem;
}

h6,
.h6,
.legacy_h6 {
	font-size: 1.5rem;
}

/* ------------------------------------------------ @20tab ----------------------------------------------- */

#tab20 {
	padding: 70px 0;
}

#tab20 .tabSpecialHeadline {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: clamp(20px, 4vw, 40px);
}

#tab20 .tabSpecialHeadline .tabHeadline {
	font-size: clamp(1.65rem, 3vw, 2.5rem);
	margin-bottom: 6px;
}

@media (max-width: 767px) {
	.tab20IMGBox > * + * {
		border-top: 2px solid #ffffec;
	}
}

@media (min-width: 768px) {
	.tab20IMGBox > *:nth-child(1) {
		padding-right: 0;
	}

	.tab20IMGBox > *:nth-child(2) {
		padding-right: 0;
		padding-left: 0;
		border-left: 2px solid #ffffec;
		border-right: 2px solid #ffffec;
	}

	.tab20IMGBox > *:nth-child(3) {
		padding-left: 0;
	}
}

#tab20 .tab20IMG {
	line-height: 0;
	font-size: 0;
}

#tab20 .tab20IMG img {
	display: block;
	width: 100%;
	min-height: 370px;
	object-fit: cover;
	object-position: center;
}

#tab20 > .row:not(.tabSpecialHeadline) + .row {
	margin-top: 30px;
}

@media (max-width: 767px) {
	#tab20 > .row:not(.tabSpecialHeadline, .tab20IMGBox) > * + * {
		margin-top: 20px;
	}
}

#tab20 .tab20MiniHeadline {
	font-weight: 400;
	margin: 0;
	color: #333333;
	font-size: 1.125rem;
}

#tab20 .tab20Button a:not(.has-image):not([rel]) {
	display: inline-block;
	background: #597e52;
	padding-left: 14px;
	padding-right: 14px;
	outline: 2px solid #c6a969;
	color: #fff;
	padding-block: 5px;
}

#tab20 .tab20Button a:not(.has-image):not([rel]):is(:hover, :focus) {
	background: #c6a969;
	color: #333333;
	text-decoration: none;
}

#tab20 .tab20Button a:not(.has-image):not([rel])::after {
	content: " \00BB";
}

/* -------------------------------------------- Breaker ------------------------------------------ */

#breaker {
	background-position: center;
	background-size: cover;
	background-attachment: fixed;
	position: relative;
	height: clamp(200px, 21vw, 330px);
}

#breaker::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url(../img/tab-bogen.png);
	background-position: top center;
	background-size: contain;
	background-repeat: no-repeat;
}

/* #region ----------------------------------- contactRow --------------------------------------- */

#contactRow {
	padding-block: clamp(30px, 7vw, 50px);
}

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

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

#contactRow .tabHeadline {
	margin: 0;
}

.contactElement {
	padding-left: 35px;
	font-size: 1rem;
	margin-top: 25px;
	min-height: 30px;
}

.contactElement a {
	text-decoration: underline;
}

.location {
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23447759" height="48" viewBox="0 -960 960 960" width="48"><path d="M480.089-490Q509-490 529.5-510.589q20.5-20.588 20.5-49.5Q550-589 529.411-609.5q-20.588-20.5-49.5-20.5Q451-630 430.5-609.411q-20.5 20.588-20.5 49.5Q410-531 430.589-510.5q20.588 20.5 49.5 20.5ZM480-159q133-121 196.5-219.5T740-552q0-117.79-75.292-192.895Q589.417-820 480-820t-184.708 75.105Q220-669.79 220-552q0 75 65 173.5T480-159Zm0 79Q319-217 239.5-334.5T160-552q0-150 96.5-239T480-880q127 0 223.5 89T800-552q0 100-79.5 217.5T480-80Zm0-480Z"/></svg>') no-repeat left -6px center / 35px auto;
}

.phone {
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23447759" height="48" viewBox="0 -960 960 960" width="48"><path d="M795-120q-116 0-236.5-56T335-335Q232-438 176-558.5T120-795q0-19.286 12.857-32.143T165-840h140q14 0 24 10t14 25l26.929 125.641Q372-665 369.5-653.5q-2.5 11.5-10.729 19.726L259-533q26 44 55 82t64 72q37 38 78 69.5t86 55.5l95-98q10-11 23.151-15T686-369l119 26q15 4 25 16.044T840-300v135q0 19.286-12.857 32.143T795-120ZM229-588l81-82-23-110H180q2 42 13.5 88.5T229-588Zm369 363q41 19 89 31t93 14v-107l-103-21-79 83ZM229-588Zm369 363Z"/></svg>') no-repeat left -4px center / 32px auto;
}

.mail {
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23447759" height="48" viewBox="0 -960 960 960" width="48"><path d="M120-160v-640l760 320-760 320Zm60-93 544-227-544-230v168l242 62-242 60v167Zm0 0v-457 457Z"/></svg>') no-repeat left -4px center / 32px auto;
}

.iframeTab {
	min-height: 230px;
}

.iframeTab .template-page :is(.row, .row > *) {
	position: static !important;
}

.iframeTab :is(.iframe-wrapper-manual-enabling, iframe) {
	width: 100% !important;
	min-width: 100% !important;
}

@media (min-width: 768px) {
	.iframeTab :is(.iframe-wrapper-manual-enabling, iframe) {
		position: absolute;
		top: 0;
		right: 15px;
		bottom: 0;
		left: 15px;
		height: 100% !important;
		width: calc(100% - 30px) !important;
		min-width: calc(100% - 30px) !important;
	}
}

/* #endregion -------------------------------- contactRow --------------------------------------- */

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

#footerNav {
	background: #597e52;
	border-top: 5px solid #c6a969;
	padding: 20px 0;
}

@media (max-width: 767px) {
	#footerNav > .row > * + * {
		margin-top: 20px;
		padding-top: 20px;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}
}

#innerfooter ul {
	padding: 0;
	font-size: 1rem;
}

#innerfooter li {
	display: inline-block;
}

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

#innerfooter a {
	color: #ffffff;
	text-decoration: none;
	display: inline-block;
	font-weight: 400;
}

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

/* #endregion -------------------------------- footer ------------------------------------------- */

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

#vernetzt {
	gap: 18px;
	text-align: right;
	font-size: 0.875rem;
	color: #ffffff;
	line-height: 1.3;
	font-weight: 400;
	text-decoration: none;
}

#vernetzt span span {
	display: block;
}
