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

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

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

a {
  color: #2356a7;
}

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

b,
strong {
  font-weight: 700;
}

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

/* ----------------------------------------------- search ----------------------------------------------- */
#topbar {
  padding: 0;
}

#search {
  background: #e7e7e7;
  display: inline-flex;
  width: 100%;
  box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2), 0 0 10px 0 rgba(0, 0, 0, 0.1);
  margin-right: -15px;
}

@media (min-width: 992px) {
  #search {
    max-width: 215px;
  }
  #topbar > .row::after {
    content: "";
    position: absolute;
    background: #32663a;
    width: 100%;
    max-width: 360px;
    height: 41px;
    top: 0px;
    z-index: 0;
    pointer-events: none;
    right: -361px;
    display: block;
  }
}

#search_input {
  color: #252525;
  font-size: 0.875rem;
  font-style: normal;
  background: transparent;
  padding: 10px 14px;
  border: 0;
  width: 100%;
}

#search_submit {
  min-width: 48px;
  flex-shrink: 0;
  background: url("../img/icon-lupe.png") center top 5px no-repeat;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0;
  border-left: 2px solid #c8c8c8;
}

#search_submit:is(:hover, :focus) {
  background-color: rgba(56, 120, 104, 0.5);
}

#search_input::placeholder {
  color: #252525 !important;
  opacity: 1 !important;
  font-style: italic !important;
}

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

#logo {
  display: inline-block;
}

#logo img {
  display: block;
}

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

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

/* burgermenu for tablet */

@media (max-width: 991px) {
  nav.horizontally {
    min-height: 80px;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #32663a;
  }

  #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: #32663a;
    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;
  }

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

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

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
    padding: 0px 0 5px 0;
    background: #ffffff;
    border-bottom: 1px solid transparent;
    transition: border 300ms ease-in-out, padding 300ms ease-in-out;
  }

  .is-sticky nav.horizontally {
    padding: 20px 0;
    border-bottom-color: #32663a;
  }

  nav.horizontally .navbar-nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    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.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: #252525;
  font-weight: 400;
  text-align: left;
  padding: 12px 15px;
  position: relative;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
}

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

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

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

/* 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: #fff;
  background-color: #32663a;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  background-color: #ffffff;
  box-shadow: 5px 5px 20px 0px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 5px 5px 20px 0px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 5px 5px 20px 0px rgba(0, 0, 0, 0.1);
}

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

  nav.horizontally [class*="secondlevel"] > ul {
    padding: 15px 0 15px 15px;
  }
}

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

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

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

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

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

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

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

/* secondlevel + thirdlevel */

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

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

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

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

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

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

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

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

.slider-mask {
  display: block;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 57%);
}
/* ------------------------------------------------ content ----------------------------------------------- */

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


#tabs {
  padding: 45px 0;
}

#tabs > .row > div+div {
  border-left: 1px solid #32663a;
}

#tabs li {
  margin-left: 15px;
}



/* ------------------------------------------------ @1tab ----------------------------------------------- */

#tab1 {
    padding: 0 0 60px 0;
}

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

    #tab1>.row>*:not(:first-child)+* {
        margin-top: 30px;
    }
}

@media (max-width: 575px) {
    #tab1>.row>*+* {
        margin-top: 30px;
    }
}

#tab1 .tab {
    padding: 20px;
    font-size: 1rem;
    min-height: 100%;
    background-color: #ffffff;
    box-shadow: 0px 10px 51px 0px rgba(43, 43, 43, 0.1);
    -webkit-box-shadow: 0px 10px 51px 0px rgba(43, 43, 43, 0.1);
    -moz-box-shadow: 0px 10px 51px 0px rgba(43, 43, 43, 0.1);
}

#tab1 .tab :is(h1, h2, h3, h4, h5, h6) {
    font-size: 1.25rem;
    font-weight: 600;
    color: #32663a;
}

#tab1 .tab a:not(.has-image):not([rel]):not(.has-image) {
    text-decoration: none;
    display: inline-block;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 7px 14px;
    margin-top: 15px;
    background-color: #32663a;
    transition: background 300ms linear;
    position: relative;
}

#tab1 .tab a:not(.has-image):not([rel]):not(.has-image)::after {
  content: '\2192';
  display: inline-block;
  position: relative;
  padding-left: 10px;
  transition: all 300ms linear;
}

#tab1 .tab a:not(.has-image):not([rel]):not(.has-image):hover,
#tab1 .tab a:not(.has-image):not([rel]):not(.has-image):focus {
    background: #2356a7;
}

#tab1 .tab a:not(.has-image):not([rel]):not(.has-image):hover::after,
#tab1 .tab a:not(.has-image):not([rel]):not(.has-image):focus::after {
    padding-left: 15px;
}
/* #region -------------------------------------- events ---------------------------------------- */

#events {
  padding: 55px 0;
  background-size: cover;
  background-repeat: no-repeat;
}

#events .tab,
#events .tab :is(h1, h2, h3, h4, h5, h6) {
  color: #ffffff;
}

#events .tab :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 400;
  margin-bottom: 0;
  font-size: clamp(1.6875rem, 4vw, 2.1875rem);
  color: #fff;
}

#events .tab_link {
  margin: 30px 0 0px 0;
}

#events .tab_link_entries {
  display: grid;
  gap: 85px 30px;
  counter-reset: section;
}

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

@media (min-width: 576px) and (max-width: 767px) {
  #events .tab_link_entry:nth-child(3) {
    grid-column: 1/3;
  }
}

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

#events .tab_link_entry {
  font-size: 1rem;
  position: relative;
  background: #ffffff;
  padding: 200px 30px 30px 30px;
  box-shadow: 0 0 20px 10px rgba(37, 37, 37, 0.1);
  border: none !important;
  z-index: 1;
  color: #252525;
}

#events .tab_link_title a {
  line-height: 1.2;
  font-weight: 700;
  font-size: 1.375rem;
  display: block;
  margin-bottom: 20px;
  color: #32663a;
  font-family: "Lora", serif;
}

#events .tab_link_entry::before,
#events .tab_link_entry .tab_preview_picture {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  overflow: hidden;
}

#events .tab_link_entry::before {
  content: "";
  background: center / cover no-repeat;
}

#events .tab_preview_picture img {
  margin: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#events .tab_link_date {
  font-weight: 400;
  position: absolute;
  left: 0;
  top: 20px;
  z-index: 1;
  display: inline-block;
  padding: 8px 15px;
  min-width: 170px;
  background: #ffffff;
  text-align: center;
  color: #252525;
  font-weight: 1rem;
}

#events .vorschau {
  opacity: 1 !important;
}

#events .tab_link_entries :is(.tab_spacer, .tab_link_mehr) {
  display: none;
}

@media (max-width: 767px) {
  #events .greenButton a {
    margin-top: 15px;
  }
}

/* ------------------------------------------ greenButton --------------------------------------- */

.greenButton a {
  background-color: #32663a;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  position: relative;
  padding: 13px 50px 12px 20px;
  display: inline-block;
  line-height: 1.2;
}

.greenButton a::after {
  content: "\2192";
  right: 20px;
  top: calc(50% - 7px);
  transition: all 200ms linear;
  position: absolute;
  line-height: 1;
}

.greenButton a:is(:hover, :focus) {
  background-color: #2356a7;
}
.greenButton a:is(:hover, :focus)::after {
  right: 15px;
}

/* #endregion ----------------------------------- events ---------------------------------------- */
/* -------------------------------------- h1 - h6, newslink ------------------------------------- */

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
  color: #32663a;
  font-weight: 700;
  line-height: 1.2;
  font-family: "Lora", 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);
}

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

#footer {
  color: #fff;
  padding-top: 30px;
  padding-bottom: 30px;
  background-color: #32663a;
}

@media (min-width: 768px) and (max-width: 991px) {
  #footer > .row > * + * {
    margin-top: 30px;
  }
}

@media (max-width: 767px) {
  #footer .row > .col-xs-12:not(:first-child)::before {
    background: #fff;
    content: " ";
    display: block;
    height: 1px;
    margin: 25px 0;
    opacity: 0.2;
    width: 100%;
  }

  #footer .row > .col-xs-12.hidden-xs ~ .col-xs-12::before,
  #footer .row > .col-xs-12.hidden-sm ~ .col-xs-12::before {
    display: none;
  }
}

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

#vernetzt {
  gap: 12px;
  text-align: right;
  font-size: 0.875rem;
  color: #fff;
  line-height: 1.3;
  text-decoration: none;
}
#vernetzt :is(b, strong) {
  color: #ece17e;
}

#vernetzt span span {
  display: block;
}

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

#innerfooter {
  font-size: 1rem;
  color: #ffffff;
  padding-top: 22px;
  padding-bottom: 22px;
  background-color: #32663a;
  border-top: solid 2px #fff;
}

#innerfooter ul {
  padding: 0 !important;
}

#innerfooter li {
  display: inline-block;
}

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

#innerfooter a:hover,
#innerfooter a:focus {
  color: #ece17e;
  text-decoration: underline;
}

#innerfooter li + li::before {
  content: "•";
  margin: 0 10px;
}

@media (min-width: 992px) {
  #innerfooter li + li::before {
    margin: 0 15px;
  }
}

@media (max-width: 767px) {
  #innerfooter li {
    display: block;
    text-align: center;
    padding: 5px;
    margin: 0;
  }

  #innerfooter li + li::before {
    display: none;
  }
}