@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=Cinzel:300,400,500,600,700,300i,400i,500i,600i,700i");

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

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

a {
  color: #a4282b;
}

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

b,
strong {
  font-weight: 600;
}

/* ----------------------------------------------- @tp2 topbar ----------------------------------------------- */

#tp2 {
  background-color: #f1f3dc;
  border-bottom: solid 1px #f9b83c;
}

#tp2 div.col-xs-12 {
  padding: 0px;
}

#tp2 .optionsbar {
  margin-left: auto;
  min-height: 36px;
}

@media (max-width: 991px) {
  #tp2 .optionsbar {
    margin-right: auto;
    margin-left: unset !important;
  }
}

:is(#contrast_style) h2 {
  color: #333333;
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0 4px 0 0;
  width: auto;
  line-height: inherit;
  font-family: "Source Sans 3", sans-serif;
}

:is(#contrast_style2) h2 {
  color: #333333;
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0 4px 0 0;
  width: auto;
  line-height: inherit;
  font-family: "Source Sans 3", sans-serif;
}

:is(#style) h2 {
  color: #333333;
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0 2px 0 0;
  width: auto;
  line-height: inherit;
  font-family: "Source Sans 3", sans-serif;
}

/* -------------------------------------------- contrast_style -------------------------------------------- */

#contrast_style {
  padding-left: 25px;
  padding-right: 24px;
}

#contrast_style button {
  display: inline-block;
  color: #000000;
  position: relative;
  z-index: 1;
  padding: 0;
  font-size: 0;
  width: 21px;
  height: 21px;
  font-weight: 400;
  border-radius: 50%;
  text-align: center;
  background: #ffffff;
  border: 0px solid rgba(0, 0, 0, 0.6);
  transition: background 300ms linear;
}

#contrast_style *+* {
  margin-left: 10px;
}

#contrast_style button:hover,
#contrast_style button:focus {
  background-color: rgba(255, 255, 255, 0.8);
}

#contrast_style2 {
  padding-left: 25px;
  padding-right: 17px;
}

#contrast_style2 button {
  display: inline-block;
  color: #000000;
  position: relative;
  z-index: 1;
  padding: 0;
  font-size: 0;
  width: 21px;
  height: 21px;
  font-weight: 400;
  border-radius: 50%;
  text-align: center;
  background: #ffffff;
  border: 0px solid rgba(0, 0, 0, 0.6);
  transition: background 300ms linear;
}

#contrast_style2 *+* {
  margin-left: 10px;
}

#contrast_style2 button:hover,
#contrast_style2 button:focus {
  background-color: rgba(255, 255, 255, 0.8);
}

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

@media (min-width: 992px) {
  #style {
    padding-left: 5px;
    padding-right: 5px;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
  }

  #style button {
    font-size: 1.25rem;
    background: transparent;
    padding: 0;
    border: none;
    color: #333333;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    position: relative;
    min-width: 25px;
    min-height: 20px;
    line-height: 1;
    margin: 0 5px;
    -webkit-transition: color 150ms linear;
    -moz-transition: color 150ms linear;
    -ms-transition: color 150ms linear;
    -o-transition: color 150ms linear;
    transition: color 150ms linear;
  }

  #style button+button::before {
    content: "";
    position: absolute;
    pointer-events: none;
    display: inline-block;
    left: -5px;
    top: 0;
    bottom: 0;
    width: 1px;
    height: 100%;
    background: #333333;
  }

  #style button:hover {
    color: #16724a;
    text-decoration: underline;
  }

  #style button:focus-visible {
    outline: 2px auto;
  }
}

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

.logo {
  display: inline-block;
}

.logo img {
  display: block;
}

@media (min-width: 992px) {
  .logo {
    display: inline-block;
    position: absolute;
    z-index: 102;
    top: -168px;
    transition: top 300ms linear;
  }

  .logo img {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    max-width: 100%;
    transition: max-width 300ms linear;
    box-shadow: 0px 2px 20px 0px rgba(29, 20, 6, 0.2);
    -webkit-box-shadow: 0px 2px 20px 0px rgba(29, 20, 6, 0.2);
    -moz-box-shadow: 0px 2px 20px 0px rgba(29, 20, 6, 0.2);
  }

  .is-sticky .logo {
    top: 0;
  }

  .is-sticky .logo img {
    display: block;
    max-width: 150px;
  }
}

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

  .logo {
    position: relative;
  }
}

/* #region ----------------------------------- search ------------------------------------------- */

#search {
  background: #ebedc0;
  position: relative;
  border-radius: 30px;
  width: 100%;
  margin: 55px 0 40px 0;
}

@media (max-width: 991px) {
  #search {
    background: #f1f3dc;
  }
}

@media (min-width: 992px) {
  #search {
    min-width: 240px;
    max-width: 380px;
    width: auto;
  }
}

#search_input {
  color: #6e6e6e;
  font-size: 1rem;
  font-weight: 300;
  font-style: normal;
  background: transparent;
  border: 0;
  width: 100%;
  border-radius: 30px;
  padding: 7px 14px;
  line-height: 1;
}

#search_submit {
  border: 5px solid #f9faf1;
  background: #f9b83c url("../img/lupe-icon.png") center / 14px 14px no-repeat;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  margin: -5px -5px -5px 0;
  font-size: 0;
  aspect-ratio: 1/1;
  min-width: 48px;
  flex-shrink: 0;
  transition: transform 150ms linear;
}

@media (min-width: 768px) {
  #search_submit:is(:hover, :focus) {
    transform: scale(1.2);
  }
}

#search input::placeholder {
  color: #6e6e6e !important;
  opacity: 1 !important;
  font-style: normal !important;
}

/* #endregion -------------------------------- search ------------------------------------------- */

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

/* burgermenu for tablet */

@media (max-width: 991px) {
  #menu-wrapper {
    margin-top: 70px;
  }

  #burgerButton {
    font-size: 0;
    border: none !important;
    display: block;
    height: 40px;
    width: 46px;
    border-radius: 2px;
    padding: 3px;
    cursor: pointer;
    background-color: #ffffff;
    position: absolute;
    z-index: 1002;
    right: 12px;
    top: 50%;
    margin-top: -20px;
  }

  #burgerButton::before,
  #burgerButton::after,
  #burgerButtonInner {
    background-color: #f9b83c;
    border-radius: 2px;
    position: absolute;
    width: 40px;
    height: 3px;
    left: 2px;
    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: 11px;
  }

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

  #burgerButton::after {
    top: 27px;
    content: "";
    display: block;
  }

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

  .navbar-collapse {
    width: calc(100% - 90px);
    max-width: 300px;
    top: 70px;
    background: #ebedc0;
    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 {
    height: 80px;
    line-height: 1;
    padding: 10px 15px;
    background-color: #f1f3dc;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 101;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    border-bottom: solid 1px #f9b83c;
  }

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

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

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
    position: relative;
  }

  .sticky-wrapper,
  #menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
  }

  #menu {
    background-color: #ebedc0;
  }

  .sticky-wrapper #menu {
    top: 0;
  }

  .is-sticky #menu {
    left: unset !important;
    right: unset !important;
  }

  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.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 .navbar-nav a[class*="toplevel"] {
  color: #3d3d3d;
  font-weight: 400;
  text-align: left;
  padding: 10px 35px 15px 10px;
  position: relative;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
}

nav.horizontally .navbar-nav li[class*="toplevel"]+li {
  border-top: 1px solid #ffffff;
}

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

  nav.horizontally .navbar-nav a[class*="toplevel"] {
    padding: 18px 4px;
    text-align: center;
  }
}

nav.horizontally .navbar-nav a[class*="toplevel"]::before {
  content: "";
  width: 0;
  height: 4px;
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  transition: width 300ms linear, background-color 300ms linear;
}

/* toplevel-over */

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

nav.horizontally .navbar-nav li[class*="toplevel"]:is(:hover, :focus-within)>a::before,
nav.horizontally .navbar-nav li[class*="toplevel"]>a:is(:hover, :focus)::before,
nav.horizontally .navbar-nav li[class*="toplevel"].open>a::before,
nav.horizontally .navbar-nav li[class*="toplevel"].open>a:is(:hover, :focus)::before,
nav.horizontally .navbar-nav li[class*="toplevel"][class*="_over"]>a::before,
nav.horizontally .navbar-nav li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus)::before {
  width: 100%;
  background-color: #f9b83c;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  background-color: #f1f3dc;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
}

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

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

  nav.horizontally [class*="toplevel"]>ul {
    margin-top: 6px;
    left: 0;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
  }

  nav.horizontally [class*="secondlevel"]>ul {
    margin-left: 6px;
    margin-top: -30px;
    border-radius: 4px;
  }

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

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

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

/* secondlevel + thirdlevel */

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

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

/* secondlevel + thirdlevel over */

nav.horizontally li[class*="secondlevel"]:is(:hover, :focus-within)>a,
nav.horizontally li[class*="secondlevel"]>a:is(:hover, :focus),
nav.horizontally li[class*="secondlevel"].open>a,
nav.horizontally li[class*="secondlevel"].open>a:is(:hover, :focus),
nav.horizontally li[class*="secondlevel"][class*="_over"]>a,
nav.horizontally li[class*="secondlevel"][class*="_over"]>a:is(:hover, :focus) {
  background: #f1f1c0;
  color: #16724a;
}

nav.horizontally li[class*="thirdlevel"]:is(:hover, :focus-within)>a,
nav.horizontally li[class*="thirdlevel"]>a:is(:hover, :focus),
nav.horizontally li[class*="thirdlevel"].open>a,
nav.horizontally li[class*="thirdlevel"].open>a:is(:hover, :focus),
nav.horizontally li[class*="thirdlevel"][class*="_over"]>a,
nav.horizontally li[class*="thirdlevel"][class*="_over"]>a:is(:hover, :focus) {
  background: #f1f1c0;
  color: #16724a;
}

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

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

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

@media (min-width: 992px) {
  body.index #slider {
    max-height: clamp(450px, 64vw, 716px);
  }

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

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

  #headerpic .nivo-controlNav {
    width: calc(100% - 200px);
    left: 100px;
  }
}

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

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

.slider-mask {
  display: block;
  background: url("../img/banner-bogen.png") center bottom / 100% auto no-repeat;
}

@media (min-width: 768px) {
  #headerpic .nivo-directionNav a {
    top: auto;
    bottom: 12px;
  }
}

@media (min-width: 1200px) {
  #headerpic .nivo-directionNav a {
    bottom: 50%;
  }

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

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

/* ------------------------------------------- contentBox ------------------------------------------ */

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

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

/* ------------------------------------------- tabsRight ------------------------------------------ */

@media (min-width: 992px) {
  #tabsRight {
    margin-top: -180px;
    z-index: 12;
    position: relative;
  }
}

#tabsRight .tab {
  color: #191919;
  font-size: 1rem;
  hyphens: auto;
  padding: 35px 25px;
  border-radius: 20px 20px 0 0;
  background: #ebedc0;
}

#tabsRight .tab .tabHeadline {
  font-size: 1.75rem;
  hyphens: auto;
  font-variant: small-caps;
}

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

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

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

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

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

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

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

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

/* #region ----------------------------------- breaker ------------------------------------------- */

#breaker {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 208px 0;
  position: relative;
  background-color: rgba(0, 0, 0, 0.08);
}

#breaker::before {
  content: "";
  position: absolute;
  background: url(../img/tab-bogen.png) top -1px center / 100% auto no-repeat;
  z-index: 0;
  pointer-events: none;
  left: 0;
  right: 0;
  display: block;
  z-index: 1;
  top: 0;
  bottom: 0;
}

/* #region ----------------------------------- contactRow --------------------------------------- */

#contactRow {
  padding-bottom: clamp(30px, 7vw, 60px);
  padding-top: clamp(30px, 7vw, 55px);
}

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

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

#contactRow .tabHeadline {
  color: #16724a;
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 1.875rem);
  margin-bottom: -20px;
}

.contactElement {
  padding-left: 35px;
  font-size: 1rem;
  margin-top: 25px;
  min-height: 29px;
  line-height: 1.7;
}

.contactElement a {
  text-decoration: underline;
  color: #333333;
}

.location {
  background: url("../img/icon-standort.png") no-repeat left 0px center / 24px auto;
}

.phone {
  background: url("../img/icon-telefon.png") no-repeat left 0px center / 24px auto;
}

.mail {
  background: url("../img/icon-mail.png") no-repeat left 0px center / 24px auto;
}

.iframeTab {
  min-height: 230px;
  margin-top: 20px;
}

.iframeTab .template-page :is(.row, .row > *) {
  position: static !important;
}

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

@media (min-width: 768px) {
  .iframeTab :is(.iframe-wrapper-manual-enabling, iframe) {
    position: absolute;
    top: 0;
    right: 15px;
    bottom: 0;
    left: 15px;
    height: 100% !important;
    width: calc(100% - 30px) !important;
    min-width: calc(100% - 30px) !important;
  }
}

/* #endregion -------------------------------- contactRow --------------------------------------- */

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

#footerNav {
  background: #ebedc0;
  padding: 20px 0;
}

@media (max-width: 767px) {
  #footerNav>.row>*+* {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
}

#innerfooter ul {
  padding: 0;
  font-size: 1rem;
}

#innerfooter li {
  display: inline-block;
}

#innerfooter li+li {
  margin-left: 20px;
}

#innerfooter a {
  color: #333333;
  text-decoration: none;
  display: inline-block;
  font-weight: 400;
}

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

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

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

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

#vernetzt :is(b, strong) {
  font-weight: 600;
}

#vernetzt span span {
  display: block;
}

.contrast_light_font #search {
  background-color: #fff !important;
}

.contrast_light_font .dropdown-toggle-button {
  background: rgba(0, 0, 0, 0.98) !important;
}

.contrast_dark_font #search {
  background-color: #000 !important;
  color: #fff !important;
}

.contrast_dark_font #search input::placeholder {
  color: #fff !important;
}

@media (max-width: 991px) {
  .contrast_light_font #burgerButton[aria-expanded="true"] #burgerButtonInner {
    background: #fff !important;
  }

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

  .contrast_dark_font #burgerButton[aria-expanded="true"] #burgerButtonInner {
    background: #000 !important;
  }

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