@import url("https://fonts.verwaltungsportal.de/import/?family=IBM+Plex+Sans:400,400i,600,600i%7CMerriweather:700");

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

body {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  color: #6e6e6e;
  background: #ffffff;
  font-size: clamp(1rem, 2vw, 1.25rem);
  /* 1rem = 16px */
  line-height: 1.5;
}

a {
  color: #567c4b;
}

#content a {
  text-decoration: underline;
}

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

b,
strong {
  font-weight: 600;
}

#overflow {
  overflow: hidden;
}

/* ------------------------------------------ topbar -------------------------------------------- */

#topbar {
  padding: 53px 0 30px 0;
  background: #fbf6f0;
}

#topbar>.row {
  row-gap: 26px;
}

#logo {
  display: inline-block;
  position: absolute;
  z-index: 140;
  top: -40px;
}

#logo img {
  display: block;
}

.logoText {
  position: absolute;
  margin-left: 120px;
  margin-top: -30px;
}

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

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

  .logoText {
    position: relative;
    margin-top: -90px;
  }
}

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

/* burgermenu for tablet */

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

  #burgerButton::before,
  #burgerButton::after,
  #burgerButtonInner {
    background-color: #1d3557;
    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: #ffffff;
    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;
  }

  .navbar-toggle[aria-expanded="true"]::before {
    opacity: 1;
    width: 90px;
  }

  .dropdown-toggle-button-wrapper {
    top: 5px;
  }

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

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
    padding: 34px 0;
    background: #ffffff;
    transition: all 0.2s 0s ease;
  }

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

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

  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, :hover)>ul,
  nav.horizontally .navbar-nav li.open:focus-within>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.open>ul {
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden;
  }

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

/* toplevel */

nav.horizontally a[class*="toplevel"] {
  color: #6e6e6e;
  font-weight: 400;
  text-align: left;
  padding: 12px 15px;
  position: relative;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

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

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

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

  nav.horizontally a[class*="toplevel"] {
    padding: 7px 0;
    font-size: 1.0625rem;
    text-align: center;
  }
}

@media (min-width: 1200px) {
  nav.horizontally a[class*="toplevel"] {
    font-size: 1.125rem;
  }
}

nav.horizontally a[class*="toplevel"]::before {
  content: "";
  width: 0;
  height: 2px;
  display: block;
  position: absolute;
  left: 50%;
  bottom: 0;
  background: #567c4b;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 300ms linear, width 300ms linear;
}

/* toplevel-over */

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 {
  opacity: 1;
  width: 100%;
}

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: #567c4b;
}

/* secondlevel + thirdlevel dropdown-box */

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

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

  nav.horizontally [class*="secondlevel"]>ul {
    margin-top: -18px;
    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: #696969;
  font-weight: 400;
  text-align: left;
  padding: 9px 20px;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
}

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

  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: #ffffff;
  color: #567c4b;
}

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

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

header {
  position: relative;
}

@media (min-width: 992px) {
  header {
    padding-bottom: 30px;
  }
}

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

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

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

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

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

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

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

.bannerText {
  background-color: #fff;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
  -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
  padding: 80px;
  z-index: 12;
  font-size: 1rem;
  margin-left: 0px;
}

@media (min-width: 768px) {
  .bannerText {
    margin-left: -75px;
  }
}

.tabHeadlineSlogan :is(h1, h2, h3, h4, h5, h6) {
  font-size: clamp(1.125rem, 2vw, 1.5rem) !important;
  font-weight: 700;
  line-height: 1.4;
  font-family: "Merriweather", sans-serif;
}

@media (min-width: 1200px) {
  .bannerText::after {
    content: "WILLKOMMEN  ―";
    bottom: 230px;
    color: #567c4b;
    font-weight: 300;
    font-size: 14px;
    line-height: 0;
    transform: rotate(90deg);
    position: absolute;
    right: -230px;
    width: clamp(30px, 27vw, 298px);
  }
}

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

.slider-mask {
  display: none;
}

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

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

body:not(.index) main {
  background: linear-gradient(to bottom, #f8f2ef, #f8f2ef 30px, rgba(255, 255, 255, 0) 30px);
}

#content {
  text-align: left;
  padding-bottom: clamp(40px, 5vw, 80px);
  padding-top: clamp(40px, 4vw, 60px);
}

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

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

.headline-large-margin :is(h1, h2, h3, h4, h5, h6) {
  margin-bottom: clamp(10px, 3vw, 20px);
}

:is(h1, h2, h3, h4, h5, h6) :is(i, em) {
  font-style: normal;
  font-family: "IBM Plex Sans", sans-serif;
  color: #1d3557;
  font-size: 1.125rem;
  font-weight: 400;
  display: block;
  margin: 6px 0 8px 0;
}

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

h2,
.h2,
.legacy_h2 {
  font-size: 1.6875rem;
}

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

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

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

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

/* ----------------------------------------------- @19ev events -------------------------------------------- */

#ev19 {
  position: relative;
  padding-top: 65px;
  padding-bottom: 75px;
}

@media (max-width: 767px) {
  #ev19 {
    padding-top: 40px;
    padding-bottom: 130px;
  }
}

#ev19>.row {
  z-index: 1;
}

@media (min-width: 1200px) {
  #ev19>.row::after {
    content: "― Veranstaltungen";
    text-transform: uppercase;
    top: 45px;
    color: #567c4b;
    font-weight: 300;
    font-size: 14px;
    line-height: 0;
    transform: rotate(-90deg);
    position: absolute;
    left: -170px;
    width: clamp(30px, 27vw, 298px);
  }
}

#eventsBox::before {
  content: '';
  position: absolute;
  left: -70px;
  top: -92px;
  width: 115px;
  height: 153px;
  background-repeat: no-repeat;
  z-index: -1;
}

#ev19 .ev19Box,
#eventsBox {
  position: relative;
}

#eventsHeadline {
  position: relative;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: #1d3557;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px 0;
  font-family: "Merriweather", sans-serif;
}

#EventsDekoHeadline {
  position: relative;
  text-transform: uppercase;
  color: #1d3557;
  font-weight: 700;
  line-height: 1.2;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0 0 15px 0;
  z-index: -1;
  font-family: "Merriweather", sans-serif;
}

#eventsBox {
  padding: 80px 70px 25px 100px;
  background-color: #ffffff;
  box-shadow: 0px 5px 9px 0px rgba(0, 0, 0, 0.14);
  margin-top: -5px;
}

@media (max-width: 991px) {
  #eventsBox {
    padding: 30px 30px 35px 30px;
    margin-top: -2px;
  }
}

#eventsKalender #clr-events-hide,
#eventsKalender .tab_link_mehr {
  display: none;
  height: 0;
}

#eventsKalender .eventclndr-tab {
  margin-bottom: 0;
  margin-top: 16px;
}

@media (max-width: 767px) {
  #eventsKalender .eventclndr-tab {
    margin-top: 0;
    margin-bottom: 15px;
  }
}

#eventsList {
  position: relative;
  color: #444444;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

#eventsList .tab_spacer {
  height: 0;
  display: none;
}

#eventsList .tab_link_entries {
  display: grid;
  gap: clamp(20px, 2vw, 30px);
}

#eventsList .tab_link_title a {
  color: #444444;
  font-weight: 600;
}

#eventsList .tab_link_mandat a {
  color: #444444;
}

#eventsList .tab_link_mehr {
  font-size: 0;
  position: relative;
  text-align: left !important;
}

#eventsList .tab_link_mehr a {
  margin-top: 20px;
  text-decoration: none;
  display: inline-block;
  position: relative;
  font-size: 1rem;
  color: #ffffff;
  padding: 8px 20px;
  background-color: #1d3557;
}

#eventsList .tab_link_mehr a:hover,
#eventsList .tab_link_mehr a:focus {
  background-color: #567c4b;
}

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

footer {
  background: #1d3557;
  padding: clamp(40px, 6vw, 80px) 0;
  color: #ffffff;
}

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

@media (min-width: 992px) {
  footer {
    background: #1d3557 url("../img/wellen-footer.png") bottom left -350px no-repeat;
  }
}

@media (min-width: 1200px) {
  footer {
    background-position: bottom left;
  }
}

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

.footerHeadline {
  color: #ffffff;
  font-size: 1.375rem;
  margin: 0;
}

.footerTab a {
  color: #ffffff;
  text-decoration: underline;
}

#innerfooter {
  padding-bottom: 20px;
  margin-bottom: 20px;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

@media (min-width: 992px) {
  #innerfooter {
    margin-left: 27%;
  }
}

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

#innerfooter a {
  color: #ffffff;
}

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

#vernetzt {
  gap: 12px;
  text-align: right;
  font-size: 0.875rem;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 auto;
  font-weight: 300;
  text-decoration: none;
}

#vernetzt span span {
  display: block;
}