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

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

body {
  font-family: "Merriweather", sans-serif;
  font-weight: 400;
  color: #444444;
  background: #ffffff;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.5;
}

a {
  color: #694833;
}

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

b,
strong {
  font-weight: 700;
}

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

#logo {
  display: inline-block;
}

#logo img {
  display: block;
}

@media (max-width: 991px) {
  #logo img {
    max-width: 120px;
    width: 100%;
  }
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
  nav.horizontally {
    background: #dfc6ad;
    padding: 10px 0;
  }

  #burgerButton {
    font-size: 0;
    display: block;
    height: 50px;
    width: 60px;
    border-radius: 2px;
    padding: 6px 8px;
    cursor: pointer;
    border: none;
    background-color: #ffffff;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
  }

  #burgerButton::before,
  #burgerButton::after,
  #burgerButtonInner {
    background-color: #694833;
    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: #dfc6ad;
    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) {
  .sticky-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
  }

  nav.horizontally {
    padding: 30px 0 15px 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    right: 0;
    top: 0;
    max-width: 1930px;
    width: 100%;
    z-index: 101;
    transition: 300ms linear all;
  }

  .is-sticky nav.horizontally {
    background: #dfc6ad;
    padding: 10px 0 10px 0;
  }

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

  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: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: #694833;
  font-weight: 400;
  text-align: left;
  padding: 10px 35px;
  position: relative;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
  font-family: "Merriweather", serif;
}

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

  nav.horizontally li[class*="toplevel"]+li {
    margin-left: 20px;
  }
}

nav.horizontally a[class*="toplevel"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 3px;
  background-color: #694833;
  transform: translate(-50%, 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: #694833;
}

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

/* secondlevel + thirdlevel dropdown-box */

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

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

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

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  background-color: #ffffff;
  color: #444444;
  font-weight: 400;
  text-align: left;
  padding: 6px 35px;
  position: relative;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  font-family: "Merriweather", serif;
}

@media (min-width: 992px) {
  nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    padding: 6px 25px 6px 55px;
  }

  nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
    content: "";
    position: absolute;
    left: 10%;
    top: 10px;
    width: 24px;
    height: 10px;
    background: url(../img/aktiv-blaetter.png);
    transform: translate(-50%, 0);
    transition: width 300ms linear;
    opacity: 0;
  }
}

/* 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) {
  color: #fff;
  background-color: #694833;
}

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus)::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus)::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a::after,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus)::after {
  opacity: 1;
}

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

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

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

#slider>* {
  height: 100% !important;
}

#slider,
#slider .slick-track,
#slider .slick-list.draggable,
#slider .slick-slide>div,
#slider .slick-slide>div>img {
  height: 100% !important;
  object-fit: cover;
}

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

  #headerpic .slider-wrapper {
    height: auto;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 40.4%;
  }
}

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

.slider-mask {
  display: none;
}

@media (min-width: 991px) {
  .slider-mask {
    display: block;
  }
}

#bannerOverlay {
  background: #fdf2e6;
  color: #694833;
  padding-top: clamp(30px, 18vw, 280px);
  padding-bottom: clamp(30px, 20vw, 300px);
  font-weight: 400;
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  font-family: "Merriweather", serif;
}

@media (min-width: 992px) {
  #bannerOverlay>.row>* {
    z-index: 10;
  }

  #bannerOverlay,
  #headerpic {
    max-height: 850px;
  }

  #headerpic a:is(.nivo-prevNav, .nivo-nextNav) {
    right: 100px;
    left: auto;
    top: 45%;
  }

  #headerpic a.nivo-nextNav {
    margin-top: 50px;
  }

  #headerpic .nivo-controlNav {
    text-align: right;
    padding-right: 100px;
    font-size: 0;
    bottom: 20px;
  }
}

#bannerOverlay .tabHeadline {
  margin: 0;
  color: #694833;
  font-family: "League Spartan", sans-serif;
  font-weight: 700;
  margin-bottom: 50px;
  padding-right: 60px;
  font-size: clamp(1.875rem, 4vw, 3.125rem);
}

#bannerOverlay img {
  vertical-align: middle;
}

@media (max-width: 991px) {
  #bannerOverlay {
  padding-top: clamp(30px, 8vw, 80px);
  padding-bottom: clamp(30px, 8vw, 80px);
}

}

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

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

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

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

#instagram {
  background: #dfc6ad;
  padding: clamp(30px, 4vw, 60px) 0 40px 0;
}

#instagram,
#instagram * {
  color: #694833;
}

#instagram img {
  vertical-align: bottom;
}

#karte {
  overflow: hidden;
  padding-top: clamp(30px, 4vw, 60px);
}

#karte .template-page .row,
#karte .template-page .row [class^="col"] {
    margin: 0;
    padding: 0;
}


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

#tab20 {
  color: #404040;
  font-size: 1.125rem;
  padding: 70px 0;
  background: #ffffff;
}

#tab20 .tabSpecialHeadline {
  font-size: 1.125rem;
  color: #444444;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 20px;
  font-family: "Merriweather", serif;
}

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

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

@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 #ffffff;
    border-right: 2px solid #ffffff;
  }

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

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

#tab20 .tab20IMG img {
  display: block;
  width: 100%;
  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: #404040;
  font-size: 1.125rem;
  font-family: "Merriweather", serif;
}

#tab20 .tab20Button a:not(.has-image):not([rel]) {
  position: relative;
  text-decoration: none;
  display: inline-block;
  padding: 8px 32px;
  border-radius: 23px;
  font-size: 1.125rem;
  color: #694833;
  background: transparent;
  border: 1px solid #694833;
  font-family: "Merriweather", serif;
  background-color: #fdf2e6;
}

#tab20 .tab20Button a:not(.has-image):not([rel]):is(:hover, :focus) {
  background-color: #694833;
  color: #fff;
}

#tab20 .tab20Button a:not(.has-image):not([rel])::before {
  content: "";
  position: absolute;
  pointer-events: none;
  top: -1px;
  bottom: -1px;
  left: -1px;
  right: -1px;
  border: 1px solid transparent;
  border-radius: 23px;
}

#tab20 .tab20Button a:not(.has-image):not([rel]):hover::before,
#tab20 .tab20Button a:not(.has-image):not([rel]):focus::before {
  animation: border 300ms ease-in-out both;
}

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

/* ------------------------------------------------ @8tab ----------------------------------------------- */

#tab8,
#sponsoren {
  padding-bottom: clamp(30px, 4vw, 60px);
}

#tab8 #tab8Box {
  padding: 30px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

@media (max-width: 575px) {
  #tab8 #tab8Box {
    padding: 20px;
  }
}

#tab8 #tab8Box::after {
  content: '';
  position: absolute;
  pointer-events: none;
  top: 0;
  bottom: 0;
  left: 0;
  width: 285px;
  height: 100%;
  background: #fdf2e6;
}

@media (max-width: 767px) {
  #tab8 #tab8Box::after {
    bottom: unset;
    right: 0;
    width: 100%;
    height: 33vw;
  }
}

#tab8 .tab {
  padding: 20px 0;
  hyphens: auto;
  font-size: clamp(1rem, 2vw, 1.125rem);
  position: relative;
  z-index: 1;
}

@media (max-width: 575px) {
  #tab8 .tab {
    padding-bottom: 0;
  }
}

@media (min-width: 768px) {
  #tab8 .tab {
    padding-left: clamp(30px, 4vw, 60px);
  }
}

#tab8 .tab :is(h1, h2, h3) {
  font-weight: 700;
  color: #694833;
  font-size: clamp(1.5625rem, 3vw, 2.5rem);
  line-height: 1.1;
}

#tab8 .tab :is(h4, h5, h6) {
  color: #694833;
}

#tabImg {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  #tabImg {
    max-width: 324px;
  }
}

#tab8 #tabImg .banner {
  height: 100%;
  line-height: 0;
}

#tab8 #tabImg .banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 992px) {
  #tab8 #tab8Box {
    padding: 40px 45px;
  }

  #tabImg {
    width: 100%;
    overflow: hidden;
    background-position: center;
  }

  #tabImg img {
    min-height: 360px;
    max-width: unset;
  }

  #tab8 .tab {
    max-width: 755px;
  }
}

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

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

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

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

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

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

footer {
  color: #444444;
  background: #dfc6ad;
  font-size: 1rem;
}

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

footer :is(h1, h2, h3, h4, h5, h6, .footerHeadline) {
  color: #694833;
  font-size: 1.25rem;
  margin: 0;
  margin-bottom: 30px;
}

#footer {
  padding: 30px 0 40px 0;
}

@media (min-width: 992px) {
  #footer {
    padding: 71px 0 45px 0;
  }
}

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

:is(.footerTab, .socialTab) a {
  text-decoration: underline;
}

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

#innerfooter ul {
  padding: 0;
  line-height: 1.7;
}

@media (min-width: 992px) {
  #innerfooter ul {
    margin-bottom: -10px;
  }
}

#innerfooter a {
  font-size: 1rem;
}

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

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

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

#vernetzt span span {
  display: block;
}

@media (min-width: 992px) {
  footer {
    background-image: linear-gradient(to right, transparent, transparent calc(50% + 155px), #fdf2e6 calc(50% + 155px));
  }
}