@import url("https://fonts.verwaltungsportal.de/import/?family=Source+Sans+3:300,400,500,600,700,300i,400i,500i,600i,700i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Khand:300,400,500,600,700,300i,400i,500i,600i,700i");

html {
  max-width: 1930px;
  margin-left: auto;
  margin-right: auto;
  background: #f5f3df;
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
  scrollbar-color: #533f04 #ffffff;
  scrollbar-width: thin;
}

body {
  font-family: "Source Sans 3", sans-serif;
  color: #666666;
  background: #ffffff;
  font-size: clamp(1rem, 2vw, 1.1875rem);
  /* 1rem = 16px */
  line-height: 1.5;
}

@media (min-width: 1200px) {
  body {
    background: #ffffff url("../img/deko-silouettelinks-oben.png") top 80px left -100px / 380px auto no-repeat;
    background-position-y: top 292px !important;
    background-position-x: left 52px !important;
  }
}

@media (min-width: 1200px) {
  body {
    background-position: top left;
    background-size: auto;
  }
}

a {
  color: #974c03;
}

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

b,
strong {
  font-weight: 600;
}

#overflow {
  overflow: clip;
  position: relative;
}

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

@media (max-width: 767px) {
  header {
    padding-top: 20px;
  }
}

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

#logo {
  display: inline-block;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  #logo {
    margin: 20px 0;
    margin-left: 35px;
  }
}

#logo img {
  display: block;
}

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

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

#slider {
  height: clamp(300px, 50vw, 600px) !important;
}

#headerpic .slider-wrapper,
#headerpic::after {
  margin-left: -15px;
  margin-right: -15px;
}

@media (min-width: 768px) {
  #headerpic .slider-wrapper,
  #headerpic::after {
    margin-left: 0;
    margin-right: calc(-50vw + 369px);
  }
}

@media (min-width: 992px) {
  #headerpic .slider-wrapper,
  #headerpic::after {
    margin-right: calc(-50vw + 481px);
  }
}

@media (min-width: 1200px) {
  #headerpic .slider-wrapper,
  #headerpic::after {
    margin-right: calc((clamp(1200px, 100vw, 1930px) - 1166px) / -2);
  }
}

.slider-wrapper,
.nivo-main-image,
#slider > a > div {
  height: 100% !important;
}

.slider-mask {
  display: none;
}

#headerpic::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 15px;
  bottom: -20px;
  height: 110px;
  z-index: 12;
  background: url("../img/banner-overlay.svg") bottom right no-repeat;
  pointer-events: none;
}

@media (min-width: 992px) {
  #headerpic::after {
    height: 210px;
    bottom: -6%;
  }
}

@media (min-width: 1200px) {
  #headerpic::after {
    bottom: calc(clamp(2%, 2.5vw, 5%) * -1);
  }
}

@media (max-width: 991px) {
  .bg-slider :is(div:not(.slick-slide), .nivo-imageLink) {
      background-size: auto !important;
      height: 100% !important;
    }
}

/* banner dots */

@media (max-width: 991px) {
  #headerpic .nivo-controlNav {
    top: 20px;
    bottom: unset;
  }
}

@media (min-width: 992px) {
  #headerpic .nivo-controlNav {
    bottom: 1.5% !important;
    right: 210px;
    display: flex;
    justify-content: end;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0;
    min-height: 40px;
  }

  #headerpic .nivo-controlNav > ul > li {
    height: 16px;
    width: 16px;
  }

  #headerpic .nivo-controlNav :is(button:not(#nivo-crtlbtn), a) {
    background: transparent;
    border: 1px solid #533f04;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    position: relative;
    padding: 0;
  }

  #headerpic .nivo-controlNav :is(button:not(#nivo-crtlbtn), a)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: 0;
    margin-top: 0;
    display: block;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #533f04;
    transition: width 200ms linear, height 200ms linear, margin 200ms linear;
  }

  #headerpic .nivo-controlNav li:is(.slick-active, :hover, :focus) button:not(#nivo-crtlbtn)::after,
  #headerpic .nivo-controlNav a:is(.active, :hover, :focus)::after {
    margin-top: -4px;
    margin-left: -4px;
    width: 8px;
    height: 8px;
  }

  #headerpic .nivo-controlNav :is(li + li, a + a) {
    margin-left: 10px;
  }
}
@media (min-width: 1200px) {
  #headerpic .nivo-controlNav {
    display: flex;
    justify-content: end;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0;
    min-height: 40px;
    bottom: 8.5% !important;
    right: 210px;
  }
}
/* banner arrows */

@media (min-width: 992px) {
  #headerpic .nivo-directionNav {
    position: absolute;
    z-index: 60;
    right: 60px;
    bottom: 0.5% !important;
    text-align: right;
    height: auto;
  }
}
@media (min-width: 1200px) {
  #headerpic .nivo-directionNav {
    position: absolute;
    z-index: 60;
    right: 60px;
    bottom: 7.5% !important;
    text-align: right;
    height: auto;
  }
}
#headerpic .nivo-directionNav a {
  background: #533f04;
  width: 40px;
  height: 40px;
  display: inline-block;
  text-indent: 0;
  font-size: 0;
}

@media (min-width: 992px) {
  #headerpic .nivo-directionNav a {
    position: relative;
    left: unset;
    right: unset;
    top: unset;
    opacity: 1;
    transition: background 200ms linear;
  }
}

#headerpic .nivo-directionNav a:is(:hover, :focus) {
  background: rgba(83, 63, 4, 0.7);
}

#headerpic .nivo-directionNav a::after {
  content: "\2039";
  font-size: 2.5rem;
  position: absolute;
  left: 12px;
  line-height: 1;
  top: 2px;
  font-family: "Khand", sans-serif;
  color: #fff;
}

#headerpic .nivo-directionNav a.nivo-nextNav::after {
  transform: scaleX(-1);
}

#headerpic .nivo-directionNav a + a {
  margin-left: 30px;
}

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

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

/* burgermenu for tablet */

#burgerButton {
  font-size: 0;
  border: none !important;
  display: block;
  height: 50px;
  width: 28px;
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  position: relative;
  background-color: #f2edbc;
}

#burgerButton::before,
#burgerButton::after,
#burgerButtonInner {
  display: block;
  background-color: #533f04;
  border-radius: 2px;
  position: absolute;
  width: 28px;
  height: 3px;
  left: 0;
  transition: transform 200ms linear, opacity 200ms linear;
}

#burgerButtonInner {
  top: 16px;
}

#burgerButton::before {
  top: 24px;
  content: "";
}

#burgerButton::after {
  top: 32px;
  content: "";
}

@media (max-width: 991px) {
  .dropdown-toggle-button-wrapper,
  .dropdown-toggle-button-wrapper2 {
    right: 4px;
    top: 6px;
  }

  #burgerButton {
    width: 48px;
    padding: 6px 8px;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
  }

  #burgerButton::before,
  #burgerButton::after,
  #burgerButtonInner {
    left: 10px;
  }

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

  .navbar-nav {
    margin: 20px 10px;
  }

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

/* menu desktop */

@media (min-width: 992px) {
  #burgerButton {
    pointer-events: none;
  }

  nav.navbar {
    padding: 12px 20px 35px 20px;
    min-height: 430px;
    background-color: #f2edbc;
    border-radius: 3px;
    box-shadow: 0 35px 40px -40px rgba(0, 0, 0, 0.16);
  }

  #nav-position {
    position: relative;
    z-index: 100;
  }

  #nav-position::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: rgba(227, 230, 202, 0.5);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 300ms linear;
  }

  #nav-position:is(:hover, :focus-within)::before {
    opacity: 1;
  }

  nav.navbar .navbar-header {
    margin-bottom: 8px;
  }

  nav.navbar .navbar-header p strong {
    font-family: "Source Sans 3", sans-serif;
    margin: 0 0 0 18px;
    font-size: 1.5rem;
    color: #e7e2b4;
    background: #533f04;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    font-weight: 700;
    text-transform: uppercase;
  }

  nav.navbar .navbar-header p b {
    margin-right: 13px;
  }

  nav.navbar .navbar-nav li[class*="toplevel"] > ul {
    pointer-events: none;
    position: absolute;
    left: 100%;
    top: 0 !important;
    column-count: 2;
    column-gap: 30px;
    min-height: 100%;
    z-index: 1000;
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms linear;
  }

  nav.navbar .navbar-nav > li:is(.open, :hover) > ul,
  nav.navbar .navbar-nav > li.open:focus-within > ul {
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible;
    top: 100%;
  }

  nav.navbar .navbar-nav > li.open > ul {
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden;
  }

  nav.navbar .navbar-nav > li:is(:hover, :focus) > ul {
    z-index: 1003;
  }

  nav.navbar .navbar-nav li[class*="toplevel"] > ul > li:not(:is([class$="_start"], [class$="_end"])) {
    page-break-inside: avoid;
    break-inside: avoid-column;
    display: table;
    width: 100%;
  }

  nav.navbar [class*="secondlevel"] > ul {
    display: block !important;
  }
}

/* toplevel */

nav.navbar a[class*="toplevel"] {
  color: #666666;
  font-weight: 400;
  text-align: left;
  padding: 10px 35px 10px 10px;
  position: relative;
  z-index: 0;
  font-size: 1.25rem;
  background: #f3f3f3;
  border-radius: 3px;
  line-height: 1.2;
  text-decoration: none;
}

nav.navbar a[class*="toplevel"]::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to left, #e7e2b4, #e1c981);
  border-radius: 3px;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms linear;
}

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

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

  nav.navbar a[class*="toplevel"].dropdown-toggle::before {
    content: "\00BB";
    position: absolute;
    right: 20px;
    top: 23px;
    line-height: 0;
    font-family: "Khand", sans-serif;
  }
}

nav.navbar li[class*="toplevel"] + li {
  margin-top: 2px;
}

/* toplevel-over */

nav.navbar li[class*="toplevel"]:is(:hover, :focus-within) > a,
nav.navbar li[class*="toplevel"] > a:is(:hover, :focus),
nav.navbar li[class*="toplevel"].open > a,
nav.navbar li[class*="toplevel"].open > a:is(:hover, :focus),
nav.navbar li[class*="toplevel"][class*="_over"] > a,
nav.navbar li[class*="toplevel"][class*="_over"] > a:is(:hover, :focus) {
  color: #533f04;
  background: #e7e2b4;
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.navbar [class*="toplevel"] > ul {
  padding: 10px;
  background: #f2edbc;
  border-radius: 3px;
}

@media (min-width: 992px) {
  nav.navbar [class*="toplevel"] > ul {
    padding: 20px;
    width: 660px;
    margin-left: 20px;
  }

  nav.navbar [class*="toplevel"] > ul > li {
    margin-bottom: 2px;
  }

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

@media (min-width: 1200px) {
  nav.navbar [class*="toplevel"] > ul {
    width: 780px;
  }
}

nav.navbar [class*="secondlevel"] > ul {
  margin: 0;
  padding: 4px 0;
}

/* secondlevel + thirdlevel */

nav.navbar a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  color: #666666;
  font-weight: normal;
  text-align: left;
  position: relative;
  line-height: 1.2;
  text-decoration: none;
}

nav.navbar a[class*="secondlevel"] {
  padding: 10px 35px 10px 10px;
  font-size: 1.25rem;
  background: #ffffff;
  border-radius: 3px;
}

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

nav.navbar a[class*="thirdlevel"] {
  padding: 6px 15px 6px 38px;
  font-size: 1.125rem;
}

nav.navbar a[class*="thirdlevel"]::before {
  content: "\00BB";
  display: block;
  position: absolute;
  top: 15px;
  line-height: 0;
  left: 25px;
}

/* secondlevel + thirdlevel over */

nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within) > a,
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"]) > a:is(:hover, :focus),
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"]).open > a,
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"]).open > a:is(:hover, :focus),
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"] > a,
nav.navbar li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"] > a:is(:hover, :focus) {
  color: #533f04;
}

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

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

#content {
  text-align: left;
}

@media (min-width: 1200px) {
  #content {
    padding-left: 30px;
  }
}

#content {
  margin-bottom: 40px;
}

main {
  padding-top: clamp(30px, 5vw, 70px);
}

main > .row {
  row-gap: 40px;
}

@media (min-width: 992px) {
  #bg-left {
    z-index: 60;
    margin-top: -320px;
    padding-right: 30px;
  }
}

@media (min-width: 1200px) {
  #bg-left {
    margin-top: -445px;
  }
}

.shadow {
  box-shadow: 0 35px 40px -40px rgba(0, 0, 0, 0.16);
}

#kalender .shadow {
  box-shadow: 0 40px 40px -40px rgba(0, 0, 0, 0.45);
}

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

/* #region ----------------------------------- kalender ----------------------------------------- */

#kalender {
  padding: clamp(100px, 15vw, 180px) 0 clamp(90px, 15vw, 170px);
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

#kalender::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(3.5deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, #fff 50.5%) center top / 100% 130px no-repeat, linear-gradient(-176.2deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, #fff 50.5%) center bottom / 100% 130px no-repeat;
}
#kalender .tabCalendar {
  background: #ffffff;
  border-radius: 3px;
  padding: 15px;
  position: relative;
  z-index: 2;
}

@media (max-width: 767px) {
  #kalender .tabCalendar {
    padding-bottom: 30px;
  }
}

#kalender .tabCalendar > .row,
#kalender .tabCalendar > .row > div {
  position: static;
}

#clr-events-hide,
#clr-events-hide + div {
  display: none;
}

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

#kalender .tabHeadline {
  margin: 10px 0 15px 0;
}

.tab_link_title a {
  color: #533f04;
  font-weight: 600;
  font-size: 1.1875rem;
}

.tab_link_mandat a {
  color: #666666;
  font-weight: 400;
}

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

.tab_link_mehr a {
  padding-top: 35px;
  padding-left: 40px;
  text-align: left;
  display: block;
  color: #ffffff;
  font-weight: 600;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.1875rem;
  width: 99px;
  height: 89px;
  clip-path: polygon(100% 0, 0 56%, 77% 100%);
  background: #533f04;
  position: absolute;
  right: -14px;
  bottom: -60px;
  text-decoration: none;
}

@media (min-width: 768px) {
  .tab_link_mehr a {
    right: -35px;
    bottom: 15px;
  }
}

.tab_link_mehr a:is(:hover, :focus) {
  background: #e1c981;
  color: #533f04;
}

#kalender .tab_link_entries {
  padding-left: 70px;
  min-height: 50px;
  background: url("../img/icon-veranstaltungen.png") center left no-repeat;
}

@media (min-width: 992px) {
  #kalender .tab_link_entries {
    padding-right: 55px;
  }
}

#kalender .tab_link_entries > div:last-child .tab_spacer {
  height: 0;
}

/* #endregion -------------------------------- kalender ----------------------------------------- */

/* ---------------------------------------------- tab ------------------------------------------- */

@media (min-width: 992px) {
  #nav-position + .tab {
    margin-top: 60px;
  }
}

.tabHeadline {
  margin: 0;
  font-weight: 600;
  color: #533f04;
  font-size: 1.5rem;
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
  color: #533f04;
  font-weight: 600;
  line-height: 1.2;
  font-family: "Source Sans 3", sans-serif;
}

h1,
.h1,
.legacy_h1 {
  font-size: clamp(1.375rem, 4vw, 2.625rem);
}

h2,
#content .legacy_h2,
.legacy_h2,
.h2 {
  font-size: clamp(1.875rem, 3.5vw, 2rem);
}

h3,
#content .legacy_h3,
.legacy_h3,
.h3 {
  font-size: clamp(1.75rem, 3vw, 1.875rem);
}

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

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

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

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

@media (min-width: 992px) {
  footer {
    font-size: 1.0625rem;
  }
}

#footer {
  padding: 40px 0;
}

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

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

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

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

#innerfooter a {
  font-size: 1rem;
  font-family: "Source Sans 3", sans-serif;
  color: #666666;
}

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

/* ---------------------------------------------- contact --------------------------------------- */

#contact {
  padding-bottom: clamp(40px, 4vw, 60px);
}

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

#contact .footerTab a {
  color: #974c03;
  text-decoration: underline;
}

@media (min-width: 992px) {
  #contact .footerTab,
  #contact #innerfooter {
    border-right: solid 1px #e5e5e5;
  }
}

#contact .tabHeadline {
  font-size: 1.875rem;
  font-weight: 600;
  margin-bottom: 15px;
}
/* --------------------------------------------- vernetzt -------------------------------------------- */
#contact #vernetzt {
  display: flex;
  font-size: 1rem;
  color: #666666 !important;
  line-height: 1;
  text-decoration: none;
  gap: 10px;
}

#vernetzt span {
  display: block;
}

#vernetzt strong {
  color: #533f04;
  font-weight: 600;
}

#vernetzt img {
  margin-bottom: 8px;
}

@media (min-width: 1200px) {
  #contact > .row::before {
    content: "";
    position: absolute;
    background: url(../img/deko-silouettel-rechts-unten.png) no-repeat;
    width: 306px;
    height: 332px;
    bottom: -40px;
    z-index: 0;
    pointer-events: none;
    right: -133px;
    display: block;
  }
}
