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

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

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

a {
  color: #5d2c00;
}

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

b,
strong {
  font-weight: 600;
}

.overflow {
  overflow: clip;
  position: relative;
}
/* --------------------------------------------- contact ---------------------------------------- */

.contact {
  font-size: 0.875rem;
  color: #191919;
  padding: 17px 0;
  border-bottom: 1px solid #5c550e;
  font-weight: 400;
}

@media (min-width: 992px) {
  .contact p {
    display: inline-block;
  }

  .contact p + p {
    margin-left: 7px;
  }
}

.contact .template-page {
  opacity: 0.8;
}

.contact strong {
  font-weight: 400;
}

.contact a {
  color: #5d2c00;
  text-decoration: underline;
}

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

#logo {
  display: inline-block;
}

#logo img {
  display: block;
}

@media (max-width: 991px) {
  #logo {
    margin-left: -15px;
  }

  #logo img {
    max-width: 95px;
    width: 100%;
  }
}

@media (min-width: 992px) {
  nav.horizontally > .row > * {
    position: static;
  }
  #logo {
    position: absolute;
    top: 0;
    left: 15px;
  }

  #logo img {
    transition: max-height 200ms linear;
  }

  .is-sticky #logo img {
    max-height: 193px;
  }
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
  nav.horizontally {
    position: static !important;
    background-color: #5c550e;
  }

  #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: #5c550e;
    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 {
    border-left: 10px solid #5c550e;
    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: 9px;
  }

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

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
    border-bottom: 1px solid transparent;
    transition: border 1000ms linear, background 1000ms;
  }

  #sticky-wrapper {
    position: absolute;
    top: 0;
    width: 100%;
    left: 0;
    z-index: 101;
  }

  nav.horizontally {
    background: rgba(255, 255, 255, 0.84);
  }

  .is-sticky nav.horizontally {
    border-color: #5c550e;
    background-color: #fff;
  }

  nav.horizontally .navbar-nav {
    padding: 33px 0 27px 0;
    display: flex;
    justify-content: space-between;
    transition: padding 200ms linear;
    flex-wrap: wrap;
    margin-left: 50px;
  }

  .is-sticky nav.horizontally .navbar-nav {
    padding: 17px 0;
  }

  nav.horizontally .navbar-nav > li {
    flex-grow: 1;
  }

  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: #191919;
  font-weight: 600;
  text-align: left;
  padding: 14px 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(46, 60, 72, 0.2);
  }

  nav.horizontally li[class*="toplevel"] + li {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
  }

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

@media (min-width: 992px) {
  nav.horizontally a[class*="toplevel"] {
    padding: 14px 10px;
    display: flex;
    text-align: center;
    align-content: center;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: 24px;
  }
}

/* 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) {
  background-color: #5c550e;
  color: #fff;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0px 5px 0 rgba(0, 0, 0, 0.15);
}

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

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

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  color: #191919;
  font-weight: 300;
  text-align: left;
  padding: 10px 20px;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
}

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

@media (min-width: 992px) {
  nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]) + li:not(:nth-child(2)) {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
  }
}

/* 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: rgba(92, 85, 14, 0.95);
  color: #ffffff;
}

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

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

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

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

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

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

@media (min-width: 768px) {
  #bannerOverlay {
    position: absolute;
    right: 0;
    bottom: 20px;
    left: 0;
    z-index: 53;
    pointer-events: none;
  }
}

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

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

.slider-mask {
  display: none;
}

/* #region --------------------------------- scroll bottom -------------------------------------- */

#scrollBottom a {
  position: relative;
  font-size: 0;
  display: block;
  width: 50px;
  height: 50px;
  margin: clamp(50px, 7vw, 70px) auto 10px auto;
  text-align: center;
  background-color: rgba(92, 85, 14, 0.5);
  border: 2px solid #fff;
  pointer-events: auto;
  animation: bounceAni 2s infinite 2s;
  transition: all 0.2s ease-in;
}

#scrollBottom a:is(:hover, :focus) {
  background-color: #5c550e;
  animation-play-state: paused;
}

#scrollBottom a::after,
#scrollBottom a::before {
  position: absolute;
  content: "";
}

#scrollBottom a::after {
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  display: inline-block;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(calc(-50% + 6px), calc(-50% - 2px));
  transition: border 300ms linear;
}

#scrollBottom a::before {
  left: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  width: 2px;
  height: 15px;
  background-color: #fff;
}

@keyframes bounceAni {
  0%,
  100%,
  20%,
  50%,
  80% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* #endregion ------------------------------ scroll bottom -------------------------------------- */

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

#content {
  text-align: left;
  padding-bottom: 30px;
  padding-top: 30px;
}

@media (min-width: 992px) {
  #content {
    padding-bottom: 60px;
    padding-top: 30px;
  }
}

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

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

h1,
.h1,
.legacy_h1 {
  font-size: clamp(1.875rem, 5.5vw, 3.125rem);
}

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

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

/* ------------------------------------------------ tabs ----------------------------------------------- */

#tabs {
  padding: 50px 0px 60px 0px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #444444;
  font-size: 1rem;
}

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

#tabs .tab2::after {
  content: "";
  position: absolute;
  background: url(../img/logo-wasserzeichen.png) no-repeat;
  width: 134px;
  height: 147px;
  bottom: 0px;
  z-index: 0;
  pointer-events: none;
  right: 0;
  display: block;
}

#tabs .tab {
  background-color: #ffffff;
  min-height: 100%;
  border-top: solid 6px rgba(92, 85, 14, 0.6);
  border-bottom: solid 6px rgba(92, 85, 14, 0.6);
}

#tabs .tab1 {
  padding: 35px 60px 30px 60px;
}

#tabs .tab2 {
  padding: 35px 40px 0px 40px;
  margin-left: -44px;
}
#tabs .tab2 :is(b, strong) {
  font-weight: 600;
}
#tabs .tab2 a {
  color: #5d2c00 !important;
}
@media (max-width: 991px) {
  #tabs .tab2 {
    padding: 35px 40px 35px 40px;
    margin-left: 0;
    border-top: 1px solid #050504;
  }
}

#tabs .tabHeadline {
  font-size: clamp(1.25rem, 2vw, 1.5625rem);
  margin-bottom: 20px;
  font-weight: 700;
}

#tabs .tabContent {
  font-size: 1rem;
}

#tabs .tabContent b {
  font-size: 1.125rem;
  font-weight: 400;
}

#tabs .tabContent a {
  color: #272626;
  font-weight: 500;
  text-decoration: underline;
}

@media (max-width: 991px) {
  #tabs .iframetab {
    margin-bottom: 30px;
  }
}

@media (min-width: 992px) {
  #tabs .iframetab {
    padding-right: 0;
  }
}

#tabs .iframetab iframe,
#tabs .iframetab .iframe-wrapper-manual-enabling {
  min-width: 100% !important;
  width: 100% !important;
  display: block;
}

@media (min-width: 992px) {
  #tabs .tab2 {
    position: relative;
  }
  #tabs .tab2::before {
    content: "";
    position: absolute;
    background: #5c550e;
    width: 2px;
    bottom: 40px;
    top: 30px;
    z-index: 0;
    pointer-events: none;
    left: 0;
    display: block;
    opacity: 0.3;
  }
}

#newsletter label {
  font-size: 0rem;
  margin-bottom: 4px;
}
#newsletterInputs {
  height: 33px;
  background: #fff;
  display: inline-block;
  position: relative;
  margin-top: 30px;
}
#newsletter_input {
  color: #191919;
  font-size: 16px;
  font-style: normal;
  background: transparent;
  padding: 0;
  border: 0;
  line-height: 33px;
  padding-right: 10px;
  padding-left: 43px;
  height: 33px;
  width: 100%;
  position: relative;
}
#newsletterInputs::after {
  content: "\00BB";
  position: absolute;
  font-size: 1.8125rem;
  bottom: 0px;
  z-index: 0;
  pointer-events: none;
  right: 0;
  display: block;
  color: #5c550e;
}
#newsletter_submit {
  width: 35px;
  background: #fff url("../img/icon-mail.png") center no-repeat;
  padding: 0;
  cursor: pointer;
  line-height: 33px;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  font-size: 0;
  -webkit-transition: background-color 300ms linear;
  -moz-transition: background-color 300ms linear;
  -ms-transition: background-color 300ms linear;
  -o-transition: background-color 300ms linear;
  transition: background-color 300ms linear;
}
#newsletter_submit:hover {
  background-color: #d8e9d0;
}
#newsletter_input::-ms-input-placeholder {
  color: #191919 !important;
}
#newsletter_input::-webkit-input-placeholder {
  color: #191919 !important;
}
#newsletter_input::-moz-placeholder {
  opacity: 1;
}
#newsletter_input:-moz-placeholder {
  opacity: 1;
}
/* ----------------------------------------------- @5f footer ----------------------------------------------- */

#f5 {
  padding-top: 33px;
  padding-bottom: 33px;
  background-color: #d8e9d0;
}

#f5 > .row {
  row-gap: 30px;
}
/* --------------------------------------------- innerfooter -------------------------------------------- */

#innerfooter ul {
  padding: 0;
}

#innerfooter li {
  display: inline-block;
}

#innerfooter a {
  color: #191919;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
}

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

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

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

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

#vernetzt {
  gap: 12px;
  text-align: left;
  font-size: 1rem;
  color: #191919;
  line-height: 1.3;
  text-decoration: none;
}

#vernetzt span span {
  display: block;
}
