@import url("https://fonts.verwaltungsportal.de/import/?family=Poppins:300,400,500,600,700,300i,400i,500i,600i,700i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Cormorant+Garamond:300,400,500,600,700,300i,400i,500i,600i,700i");

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

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

a {
	color: #313e98;
}

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

#content a {
	color: #313e98;
	text-decoration: underline;
}

b,
strong {
	font-weight: 600;
}

a:focus-visible,
button:focus-visible,
form:focus-visible,
input:focus-visible {
	outline: 3px solid #7a1700 !important;
}


#overflow {
	overflow: clip;
	position: relative;
}
/* ------------------------------------------------- logo ------------------------------------------------ */

#logo {
	display: inline-block;
}

#logo img {
	display: block;
}

@media (min-width: 992px) {
	#logo {
		background: #fff;
		padding: 18px 8px;
		border-radius: 0 0 20px 20px;
		transition: scale 300ms;
      position: absolute;
      top: 0;
      left: 0;
      transform-origin: top center;
	}

	.is-sticky #logo {
      scale: .75;
	}
}

@media (max-width: 991px) {
	#logo img {
	max-width: 60px;
		padding: 5px 0;
	}
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
	.horizontally {
		position: relative !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: #313e98;
		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: #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) {
	nav.horizontally {
		background-color: #f3f1ea;
		transition: box-shadow 300ms linear;
	}

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

	#sticky-wrapper {
		height: 0 !important;
	}

	nav.horizontally .navbar-nav {
		display: flex;
		justify-content: space-between;
		align-items: center;
      padding-block: 25px;
	  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 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: #313e98;
	font-weight: 300;
	text-align: left;
	padding: 10px 15px 15px 15px;
	text-transform: uppercase;
	position: relative;
	font-size: 1.125rem;
	line-height: 1.2;
	text-decoration: none;
	border-radius: 8px;
	transition: all 300ms linear;
}

@media (max-width: 991px) {
	nav.horizontally a[class*="toplevel"].dropdown-toggle {
		padding-right: 35px;
	}
	nav.horizontally a[class*="toplevel"] {
  overflow-wrap: break-word;
  word-wrap: break-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
  padding: 10px 33px 15px 15px;
}
}

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

	nav.horizontally a[class*="toplevel"] {
		text-align: center;
		padding: 18px 0;
	}
}

/* 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) {
	background-color: #d6b685;
	background: linear-gradient(to right, #bea175 0%, #d6b685 20%, #d6b685 80%, #bea175 100%);
}

/* secondlevel + thirdlevel dropdown-box */

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

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

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

	nav.horizontally [class*="toplevel"] > ul {
		left: 50%;
		transform: translate(-50%, 0);
	}

	nav.horizontally [class*="secondlevel"] > ul {
		margin-top: -18px;
		border-radius: 4px;
		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: #313e98;
	font-weight: 300;
	text-align: left;
	padding: 8px 25px;
	font-size: 0.875rem;
	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;
	}
	nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])  {
  overflow-wrap: break-word;
  word-wrap: break-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}
}

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

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

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

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

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

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

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

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

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

.slider-mask {
	display: block;
	background: linear-gradient(to top, #f3f1ea 0%, rgba(255, 255, 255, 0) 70%);
}

@media (min-width: 992px) {
	#banneroverlay {
		position: absolute;
		bottom: 80px;
		width: 100%;
		z-index: 55;
	}
}

.slogan {
	font-size: clamp(1.875rem, 4vw, 3.4375rem);
	color: #252525;
	font-family: "Cormorant Garamond", serif;
	text-shadow: #ffffff 0px 2px 4px;
}

.slogan :is(b, strong) {
	font-size: clamp(2.5rem, 6vw, 5.625rem);
	color: #313e98;
	font-style: italic;
}

@media (max-width: 575px) {
.slogan {
	font-size: clamp(1.5625rem, 4vw, 1.875rem);
		
	}
	.slogan :is(b, strong) {
	font-size: clamp(2.1875rem, 6vw, 2.5rem);
}
}

.theme-nivo .nivo-controlNav {
	bottom: 30px;
}

/* scroll to content button */

#scroll2Content {
	position: absolute;
	z-index: 2;
	display: block;
	width: 50px;
	height: 50px;
	bottom: -27px;
	left: calc(50% - 25px);
	background: #f3f1ea;
	border-radius: 6px;
	transform: rotate(45deg);
}

#scroll2Content::after {
	content: "";
	display: block;
	position: absolute;
	top: 10px;
	right: 10px;
	bottom: 10px;
	left: 10px;
	transform: rotate(-45deg);
	background: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48'%3E%3Cpath d='M24 39.4q-.25 0-.525-.1t-.525-.35l-13.9-13.9Q8.6 24.6 8.6 24q0-.6.45-1.05.45-.45 1.05-.45.6 0 1.05.45L22.5 34.3V9.5q0-.65.425-1.075Q23.35 8 24 8q.65 0 1.075.425.425.425.425 1.075v24.8l11.35-11.35q.45-.45 1.05-.45.6 0 1.05.45.45.45.45 1.05 0 .6-.45 1.05l-13.9 13.9q-.25.25-.5.35-.25.1-.55.1Z' fill='%23313e98'/%3E%3C/svg%3E") center -2px / 34px auto;
	transition: background-position 300ms linear;
}

#scroll2Content:is(:hover, :focus)::after {
	background-position-y: 32px;
}

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

#content {
	text-align: left;
	padding-bottom: 30px;
	padding-top: 30px;
}

@media (min-width: 992px) {
	#content {
		padding-bottom: 60px;
		padding-top: 60px;
	}
}

#content :is(h1,h2,h3,h4,h5,h6) {
	margin-bottom: 45px;
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
	color: #313e98;
	font-weight: 600;
	font-style: italic;
	line-height: 1.2;
	font-family: "Cormorant Garamond", serif;
}

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

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

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

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

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

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

/* ----------------------------------------------- @13ev events -------------------------------------------- */

#ev13 {
	padding-top: clamp(30px, 4vw, 55px);
	padding-bottom: clamp(30px, 5vw, 85px);
}

@media (min-width: 1200px) {
	#ev13 {
		background: url("../img/logo-wasserzeichen.png") bottom left calc(100% - 610px) no-repeat;
	}
}

#ev13 .tabHeadline {
	font-size: clamp(1.75rem, 3vw, 2.625rem);
	color: #313e98;
	font-weight: 600;
	margin: 0;
}

#ev13 .tab_link_mehr {
	color: transparent;
	font-size: 0;
}

#ev13 .tab_link_mehr a {
	color: #313e98;
	display: inline-block;
	font-size: clamp(1rem, 2vw, 1.3125rem);
	font-weight: 600;
	font-family: "Cormorant Garamond", serif;
	font-style: italic;
}

#ev13 > .row {
	row-gap: clamp(30px, 3vw, 45px);
}

#ev13 .tab_link_entries {
	display: grid;
	gap: 30px;
}

@media (min-width: 767px) {
	#ev13 .tab_link_entries {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	#ev13 .tab_link_entries {
		grid-template-columns: repeat(3, 1fr);
	}
}

#ev13 .tab_link_entry {
	width: 100%;
	padding: 35px 20px 40px 20px;
	display: grid;
	color: #252525;
	background-color: #d6b685;
	background: linear-gradient(to right, #bea175 0%, #d6b685 20%, #d6b685 80%, #bea175 100%);
	border-radius: 8px;
}

#ev13 .tab_link_title {
	order: 1;
}

#ev13 .tab_link_mandat {
	order: 2;
}

#ev13 .tab_link_date {
	order: 3;
}

#ev13 .tab_link_mandat a {
	color: #252525;
}

#ev13 .tab_link_title a {
	font-weight: 500;
	color: #313e98;
	font-size: 1.25rem;
}

#ev13 .tab_link .tab_link_mehr,
#ev13 .tab_spacer,
#ev13 .tab_preview_picture {
	display: none;
}

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

footer {
	background: #313e98 ;
	padding-top: clamp(60px, 10vw, 70px);
	position: relative;
	color: #fff;
}

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

#footer {
	font-size: 1rem;
	font-weight: 300;
	hyphens: auto;
}

#footer hr {
	margin: 30px 0;
	background-color: #fff;
	height: 3px;
	opacity: 0.2;
}

#footer :is(h1, h2, h3, h4, h5, h6) {
	font-size: 1.875rem;
	margin-bottom: clamp(15px, 2vw, 25px);
}

#footer a:is(:hover, :focus) {
	color: #fff;
}

#footer #innerfooter a {
	text-decoration: none;
}

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

#footer a:not([href*="mailto"]):is(:hover, :focus) {
	text-decoration: none;
}

#footer .footerKontakt a {
	font-weight: 500;
	text-decoration: underline;
}

#footer .footerKontakt a:is(:hover, :focus) {
	text-decoration: none;
}

@media (max-width: 767px) {
	#footer #innerfooter {
		border-bottom: solid 2px rgba(255, 255, 255, 0.2);
		padding-bottom: 30px;
	}

	#footer hr {
	margin: 30px 0 30px 0;
		background-color: #fff;
	}
	#footer .footerKontakt .btgrid .row-1 .content{
		margin: 30px 0;
	}
}

#footer-2 {
	font-size: 0.875rem;
	padding-bottom: 25px;
}

@media (min-width: 992px) {
	#footer-2 {
		background: url("../img/deko-haende.png") center top calc(50% - 15px) no-repeat;
	}
}

#footer ul {
	padding: 0;
	line-height: 1.9;
	margin: -4px 0 0 0;
}

#scroll-top-btn {
	padding: 5px 30px 5px 0;
	background: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48'%3E%3Cpath d='M22.85 39.25V13.1l-12.5 12.5-1.6-1.6L24 8.75 39.25 24l-1.6 1.6-12.5-12.5v26.15Z' fill='%23fff'/%3E%3C/svg%3E") center right -3px / 26px auto no-repeat;
}

#scroll-top-btn:is(:hover, :focus) {
	color: #fff;
}

#scroll-top-btn:not(:hover):not(:focus) {
	text-decoration: none;
	color: #fff;
}

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

/* #region -------------------------------------- vernetzt -------------------------------------- */

#vernetzt {
	gap: 15px;
	text-align: left;
	color: #fff;
	line-height: 1.5;
	text-decoration: none;
}

#vernetzt span {
	display: block;
}

/* #endregion -------------------------------- vernetzt ----------------------------------------- */
