@import url("https://fonts.verwaltungsportal.de/import/?family=Catamaran:400,400i,500,500i,600,600i%7COswald:500,500i,700,700i");

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

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

a {
  color: #807914;
}

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

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

b,
strong {
  font-weight: 600;
}

@media (min-width: 1200px) {
  .row {
    max-width: 1440px;
    width: 100%;
  }
}

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

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

.contactTab + .contactTab {
  margin-top: 15px;
}

.contactTab {
  font-size: 1rem;
  padding-left: 40px;
  position: relative;
}
.contactTab a {
  text-decoration: underline;
}
.contactTab a:is(:hover, :focus) {
  text-decoration: none;
}
.contactTab::before {
  content: "";
  display: block;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #807914;
  position: absolute;
  left: 15px;
  top: 50%;
  margin-top: -12px;
  background: url("../img/mail-icon.png") center no-repeat;
}

.contactTab.tab2::before {
  background-image: url("../img/address-icon.png");
}

@media (min-width: 992px) {
  .contactTab {
    padding-left: 55px;
  }

  .contactTab.tab2 {
    padding-left: 0;
    padding-right: 55px;
  }

  .contactTab::before {
    left: 0;
  }

  .contactTab.tab2::before {
    left: auto;
    right: 0;
  }
}

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

#topbar {
  padding: 13px 0;
  border-top: clamp(8px, 2vw, 24px) solid #807914;
}

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

#logo {
  display: inline-block;
}

#logo img {
  display: block;
  max-width: 279px;
  padding: 35px;
}

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

/* #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: #807914;
    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: 8px;
  }

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

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
    transition: all 0.2s 0s linear;
  }

  .is-sticky nav.horizontally {
    background: #ffffff;
    box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.15);
  }

  nav.horizontally .navbar-nav {
    padding: 18px 30px 20px 30px;
    background: #ffffff;
    position: relative;
    z-index: 60;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  }
  .is-sticky nav.horizontally .navbar-nav {
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0);
  }

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

@media (min-width: 1200px) {
  nav.horizontally .navbar-nav {
    padding-left: 30px;
    padding-right: 30px;
  }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
  color: #181818;
  font-weight: 500;
  text-align: left;
  padding: 10px 15px;
  position: relative;
  font-size: 1.375rem;
  line-height: 1.2;
  text-decoration: none;
  font-family: "Oswald", sans-serif;
}

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

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

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

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

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

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

/* secondlevel + thirdlevel dropdown-box */

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

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

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

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

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

  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 {
    margin-top: -18px;
    margin-left: 15px;
  }

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  color: #181818;
  font-weight: 400;
  text-align: left;
  padding: 7px 15px;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  position: relative;
}

@media (max-width: 991px) {
  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;
  }
}

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

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  position: absolute;
  left: 0;
  top: 13px;
  background: #807914;
  opacity: 0;
  transition: opacity 300ms linear;
}

@media (min-width: 992px) {
  nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
    left: 15px;
  }
}

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

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

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

/* ------------------------------------------ optionsbar ---------------------------------------- */

#optionsBar {
  background: #807914;
  padding: 15px 30px;
  max-width: 1010px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  #optionsBar {
    padding: 25px 40px 23px 40px;
    position: relative;
    z-index: 60;
    margin-top: -30px;
  }
}

/* --------------------------------------------- styler ----------------------------------------- */

#contrast_style + #style {
  margin-left: 40px;
}

#style,
#contrast_style {
  column-gap: 10px;
}

:is(#style, #contrast_style) button {
  font-size: 20px;
  padding: 2px 0 0 0;
  border: none;
  color: #181818;
  display: inline-block;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  font-weight: 500;
  text-align: center;
  background: #ffffff;
  position: relative;
  line-height: 1;
}

#contrast_style button {
  padding-top: 4px;
}

#style button:is(:hover, :focus) {
  color: #807914;
}

#contrast_style button:is(:hover, :focus) {
  background-color: #f0eeda;
}

@media (max-width: 991px) {
  #contrast_style {
    margin-bottom: 30px;
  }
}
/* --------------------------------------------- search ----------------------------------------- */

#search {
  background: #807914;
  display: inline-flex;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

#search_input {
  color: #ffffff;
  font-size: 1rem;
  font-style: normal;
  background: transparent;
  padding: 5px 14px;
  border: 0;
  width: 100%;
  border-radius: 30px;
}

#search_submit {
  min-width: 38px;
  border: none;
  background: #ffffff url("../img/lupe-icon.png") center no-repeat;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  margin: -1px -1px 0 0;
  font-size: 0;
}

#search_submit:is(:hover, :focus) {
  background-color: #f0eeda;
}

#search_input::placeholder {
  color: #ffffff !important;
  opacity: 1 !important;
  font-style: normal !important;
}

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

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

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

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

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

  #headerpic .nivo-controlNav {
    bottom: 35px;
  }
}

#headerpic {
  padding: 0;
  position: relative;
  min-height: 100px;
}

@media (min-width: 992px) {
  #headerpic {
    margin-top: -45px;
  }
}

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

.slider-mask {
  display: none;
}

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

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

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

main {
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto, cover;
  background-attachment: scroll, fixed;
}

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

/* #region ------------------------------------- tabs ------------------------------------------- */

#contentBox,
#tabs .tab {
  background: #ffffff;
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.06);
}

#contentBox,
#tabs {
  padding: 20px;
  padding-bottom: 40px;
}
#tabs {
  padding-top: 55px;
  hyphens: auto;
}

@media (min-width: 992px) {
  #contentBox {
    padding: 25px 30px 30px 30px;
  }

  #tabs .tab {
    padding: 25px 20px 30px 20px;
  }
}

@media (min-width: 1200px) {
  #tabs .tab {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 991px) {
  #tabs .tab {
    padding: 30px;
  }
}
#tabs .tab + .tab {
  margin-top: 30px;
}

#contentBox {
  height: 100%;
  min-height: 100%;
}

#tabs .tab {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

#tabs .tabHeadline {
  font-size: 1.5625rem;
}

.tab_link_title {
  font-weight: 600 !important;
  margin-bottom: 6px;
  line-height: 1.2;
}
.tab_link_title .no-headline-styles a {
  font-weight: 600 !important;
}
.tab_link_title a {
  text-decoration: none !important;
}
.tab_link_title a:is(:hover, :focus) {
  text-decoration: underline !important;
}

.tab_link_entry {
  border-bottom: none !important;
}

.tab_link_entry + .tab_link_entry,
#clr-events-hide .tab_link_title {
  margin-top: 15px;
}
#clr-events-hide .tab_link_title a {
  font-weight: 600;
}

.tab_link_mandat a {
  display: none;
}

.tab_link_mehr {
  padding: 15px 0 0 0;
  text-align: right;
  font-size: 0;
}

.tab_link_mehr a {
  color: #807914;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
}
.tab_link_mehr a:is(:hover, :focus) {
  text-decoration: none;
}

.tab_link_mehr a::after {
  content: " \203A";
}

.tab_preview_picture,
.tab_link_entry > div:nth-last-child(2),
.tab_spacer {
  display: none;
}

/* #endregion ---------------------------------- tabs ------------------------------------------- */

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

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

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

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

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

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

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

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

/* ---------------------------------------------- map ------------------------------------------- */

#map {
  margin-bottom: -45px;
}

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

#map .template-page {
  background: #ffffff;
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.06);
}

#map iframe {
  display: block;
}

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

footer {
  background-color: #807914;
  padding: 95px 0 36px 0;
  color: #ffffff;
  font-size: 1rem;
}

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

#innerfooter ul {
  padding: 0;
}

#innerfooter a {
  color: #ffffff;
}

@media (min-width: 576px) {
  #innerfooter li {
    display: inline-block;
  }

  #innerfooter li + li::before {
    content: "•";
    margin: 0 clamp(15px, 1vw, 20px);
    color: #ffffff;
  }
}

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

#vernetzt {
  gap: 23px;
  text-align: right;
  font-size: 0.9375rem;
  color: #ffffff;
  line-height: 1.2;
  text-decoration: none;
}

#vernetzt span span {
  display: block;
}

/* ------------------------------------------ Kontrast ------------------------------------------ */

.contrast_dark #optionsBar,
.contrast_dark #tabs .tab,
.contrast_dark :is(#style, #contrast_style) button {
  border: solid 1px #fff !important;
}

.contrast_dark #burgerButton::before,
.contrast_dark #burgerButton::after,
.contrast_dark #burgerButtonInner {
  background-color: #fff !important;
}

.contrast_light #burgerButton::before,
.contrast_light #burgerButton::after,
.contrast_light #burgerButtonInner {
  background-color: #000 !important;
}
.contrast_dark .dropdown-toggle-button {
  background-color: #000 !important;
}

.contrast_light #optionsBar,
.contrast_light #tabs .tab,
.contrast_light :is(#style, #contrast_style) button {
  border: solid 1px #000 !important;
}

.contrast_dark #search_input {
  color: #fff !important;
}
.contrast_light #search_input {
  color: #000 !important;
}
