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

html {
  max-width: 1930px;
  margin-left: auto;
  margin-right: auto;
  background: #f8f8ed;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  scrollbar-color: #4b563e #ffffff;
  scrollbar-width: thin;
}

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

a {
  color: #4b563e;
}

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

main a,
b,
strong {
  font-weight: 500;
}

:is(main, footer) a {
  text-decoration: underline;
}

#overflow {
  overflow: clip;
}

hr {
  height: 2px;
  opacity: 0.2;
  background: #dfdfb7;
}

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

@media (min-width: 1200px) {
  nav.horizontally > .row,
  #headerBereich > .row,
  #service > .row {
    max-width: 1440px !important;
    width: 100%;
  }
}

/* #region --------------------------------------- logo ----------------------------------------- */

#logo {
  display: inline-block;
  background: #ffffff;
  padding: 0px 0 clamp(10px, 2vw, 20px) 0;
  border-radius: 0 0 105px 105px;
}

#logo img {
  display: block;
}

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

  #logo .row {
    margin-left: -15px;
    margin-right: -15px;
  }
  #logo {
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  }
}

@media (min-width: 992px) {
  #logo {
    transition:
      margin 300ms linear,
      padding 300ms linear;
  }

  .is-sticky #logo {
    margin-bottom: -100px;
    padding-top: 0px;
    padding-bottom: 13px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  }

  #logo img {
    max-width: 208px;
    transition: all 300ms linear;
  }

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

/* #endregion ----------------------------------- logo ------------------------------------------ */

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

/* burgermenu for tablet */

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

  #burgerButton {
    font-size: 0;
    border: none !important;
    display: block;
    height: 50px;
    width: 60px;
    border-radius: 6px;
    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: #4b563e;
    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 {
    padding: 20px 10px;
  }

  .navbar-collapse {
    width: calc(100% - 90px);
    max-width: 300px;
    top: 0;
    background: #dfdfb7;
    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: 30px;
    right: 15px;
    z-index: 101;
    transition: top 300ms linear;
  }

  .is-sticky .navbar-header {
    top: 15px;
  }

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

  .dropdown-toggle-button-wrapper2 {
    top: 8px;
    right: 0;
  }
}

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
    transition:
      background 300ms linear,
      box-shadow 300ms linear;
  }

  .is-sticky nav.horizontally {
    background: #dfdfb7;
    box-shadow: 0 20px 40px 0 rgba(82, 71, 47, 0.2);
  }

  nav.horizontally .navbar-nav {
    margin: 0px 0 74px 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    transition: margin 300ms linear;
    flex-wrap: wrap;
  }

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

  nav.horizontally li[class*="toplevel"] {
    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: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;
  }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
  color: #0b0800;
  font-weight: 300;
  text-align: left;
  padding: 14px 15px;
  position: relative;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 20px;
}

@media (max-width: 991px) {
  nav.horizontally li[class*="toplevel"] + li {
    margin-top: 2px;
  }

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

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

  nav.horizontally a[class*="toplevel"] {
    padding: 12px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
  }
  nav.horizontally a[class*="toplevel"] {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
  }
}

nav.horizontally a[class*="toplevel"]::after,
nav.horizontally a[class*="toplevel"].dropdown-toggle::before {
  content: "";
  display: block;
  position: absolute;
}

nav.horizontally a[class*="toplevel"]::after {
  z-index: -1;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: #4b563e;
  transition: width 300ms linear;
  border-radius: 20px;
}

/* 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: #ffffff;
  background: #4b563e;
}

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

@media (min-width: 992px) {
  nav.horizontally li[class*="toplevel"]:hover > a.dropdown-toggle::before,
  nav.horizontally li[class*="toplevel"].open > a.dropdown-toggle::before,
  nav.horizontally li[class*="toplevel"].open > a.dropdown-toggle:is(:hover, :focus)::before {
    opacity: 1;
  }
}

/* secondlevel + thirdlevel dropdown-box */

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

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

  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;
  }
  nav.horizontally [class*="toplevel"] > ul::before {
    content: "";
    position: absolute;
    display: block;
    height: 20px;
    left: 0;
    right: 0;
    top: -20px;
  }
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  color: #ffffff;
  font-weight: 300;
  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:is([class*="secondlevel"], [class*="thirdlevel"]) {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
  }
  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: #89725d;
  color: #ffffff;
}
/* #endregion -------------------------------- navigation --------------------------------------- */

/* #region ------------------------------------- resp-gaps -------------------------------------- */

:is(#headerpic, #footer) .row {
  row-gap: 30px;
}

#footer-2 > .row {
  row-gap: 20px;
}

@media (max-width: 767px) {
  #footer > .row {
    row-gap: 50px;
  }
}
/* #endregion ---------------------------------- resp-gaps -------------------------------------- */

/* #region -------------------------------------- header ---------------------------------------- */

header {
  background: url("../img/header-welle.png") center top / 100% auto no-repeat;
}

#headerBereich {
  margin-top: -22px;
}

/* header text */

#header-text {
  padding-top: clamp(30px, 8vw, 45px);
  padding-bottom: clamp(5px, 5vw, 65px);
  font-size: 1rem;
  font-weight: 300;
  hyphens: auto;
  padding-right: 30px;
}

#header-text :is(b, strong) {
  font-size: clamp(1.125rem, 6vw, 1.5rem);
  font-weight: 500;
}

body:not(.index) #header-text p {
  display: none;
}

#header-text .tabHeadline {
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: #4b563e;
  margin-bottom: 20px;
}
/* #endregion ----------------------------------- header ---------------------------------------- */

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

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

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

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

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

#headerpic {
  padding: 0;
  position: relative;
  top: -20px;
}

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

.slider-mask {
  display: none;
}

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

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

#content-area {
  text-align: left;
  padding: clamp(40px, 7vw, 100px) 0 clamp(40px, 10vw, 90px) 0;
}

/* #region -------------------------------------- service --------------------------------------- */

#service {
  position: relative;
  z-index: 1;
  padding-bottom: 20px;
  font-size: 1rem;
}

#service .service-headline :is(h1, h2, h3, h4, h5, h6) {
  color: #2a401f;
}

@media (max-width: 767px) {
  .service-content {
    margin-top: 60px;
  }
}

@media (min-width: 992px) {
  .service-content {
    padding-bottom: clamp(40px, 10vw, 90px);
  }
}
#service .serviceInhalt :is(h1, h2, h3, h4, h5, h6) {
  font-family: "Poppins", sans-serif;
  color: #0b0800;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
}


#service ul {
    list-style: none;
}

#service ul li {
    position: relative;
    padding: 6px 0 6px 38px;
    background: transparent;
    font-size: 1.125rem;
}

#service ul li::before {
    content: "";
    display: block;
    background: url('../img/icon-check.png') center no-repeat;
    width: 28px;
    height: 21px;
    position: absolute;
    left: 0;
    top: 6px;
}

/* #endregion ----------------------------------- service --------------------------------------- */

/* #region -------------------------------- service + news banner ------------------------------- */

:is(#service) .banner {
  position: relative;
  z-index: 1;
  min-height: 400px;
  max-height: 700px;
  height: 100%;
}
@media (max-width: 991px) {
  :is(#service) .banner {
    margin-bottom: 100px;
  }
}
@media (max-width: 767px) {
  :is(#service) .banner {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  #service .banner {
    margin-right: 40px;
  }
}

:is(#service) .banner::after,
:is(#service) .banner::before {
  content: "";
  display: block;
  position: absolute;
}

#service .banner::after {
  left: 30px;
  right: -30px;
}

#news .banner::after {
  left: -30px;
  right: 30px;
}

#service .banner,
#service .banner img,
#service .banner::after,
#service .banner::before {
  border-radius: 160px;
}

:is(#service) .banner:hover::before {
  opacity: 0;
  top: 50%;
  left: 50%;
  right: 50%;
  bottom: 50%;
}

:is(#service) .banner img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
@media (min-width: 992px) {
  :is(#service) .banner img {
    padding-right: 60px !important;
  }
}

/* #endregion ----------------------------- service + news banner ------------------------------- */

/* #region -------------------------------------- offer ----------------------------------------- */

#offer {
  position: relative;
  z-index: 1;
  background: url("../img/footer-welle.png") center bottom 30px / 100% auto no-repeat;
}

#offer-tab {
  position: relative;
  padding: clamp(40px, 8vw, 80px) 30px clamp(50px, 8vw, 90px) 30px;
  background: #0b0800;
  margin-top: clamp(15px, 8vw, 50px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 100px;
  font-size: 1.125rem;
}

#offer-tab:is(:hover, :focus-within)::before {
  opacity: 1;
  top: -30px;
  right: -30px;
  bottom: -30px;
  left: -30px;
}

#offer-tab,
#offer-tab :is(h1, h2, h3, h4, h5, h6, a) {
  color: #ffffff;
}

#offer-tab .tabHeadline {
  font-family: "Dancing Script", cursive;
  font-size: clamp(1.875rem, 4vw, 3.25rem);
  color: #fff;
}

/* #endregion ----------------------------------- offer ----------------------------------------- */

/* #region --------------------------------------- buttons -------------------------------------- */

.button-design a:not(.has-image) {
  display: inline-block;
  line-height: 1.2;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  background: #89725d;
  padding: 15px clamp(10px, 3vw, 22px);
  position: relative;
  z-index: 1;
  text-decoration: none;
  overflow: hidden;
  border-radius: 20px;
}
.button-design a + a {
  margin-left: 20px;
}

.button-design a:not(.has-image):is(:hover, :focus) {
  background: #4b563e;
}

.button-design a:not(.has-image)::after {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  left: 0;
  width: 0;
  top: 0;
  bottom: 0;
  background: #4b563e;
  transition: width 300ms linear;
}

.button-design a:not(.has-image):is(:hover, :focus)::after {
  width: 100%;
}

#header-text.button-design a:not(.has-image) {
  margin-top: clamp(1px, 2vw, 15px);
}

#offer-tab .button-design a:not(.has-image) {
  margin-top: 25px;
}

/* #endregion ------------------------------------ buttons -------------------------------------- */


/* #region ---------------------------------- Menübezogene Tabs --------------------------------- */
#menuTabs {
  padding: 20px 0 60px 0;
}

#menuTabs .tab {
  background-color: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  font-size: 1.125rem;
}

#menuTabs .tabHeadline {
  font-size: clamp(30px, 3vw, 40px);
}
/* #region ---------------------------------- h1 - h6, newslink --------------------------------- */

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
  color: #4b563e;
  font-weight: 700;
  line-height: 1.2;
  font-family: "Dancing Script", cursive;
  margin-bottom: 15px;
}

h1,
.h1,
.legacy_h1 {
  font-size: clamp(3.4375rem, 6vw, 3.75rem);
}

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

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

h3,
.h3,
.legacy_h3 {
  font-size: clamp(2.5rem, 6vw, 2.8125rem);
}

h4,
.h4,
.legacy_h4 {
  font-size: clamp(2.1875rem, 6vw, 2.5rem);
}

h5,
.h5,
.legacy_h5 {
  font-size: clamp(1.875rem, 6vw, 2.1875rem);
}

h6,
.h6,
.legacy_h6 {
  font-size: clamp(1.5625rem, 6vw, 1.875rem);
}

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

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

footer {
  background: #4b563e;
  padding-top: clamp(60px, 10vw, 130px);
  position: relative;
  color: #fff;
}
body.index footer {
  margin-top: -65px;
}
@media (max-width: 991px) {
  #footer {
    padding-top: 30px;
  }
}
footer :is(h1, h2, h3, h4, h5, h6, a) {
  color: #ffffff;
}

#footer {
  font-size: 1rem;
}

#footer hr {
  margin: clamp(10px, 6vw, 50px) 0 35px 0;
}
@media (max-width: 767px) {
  #footer hr {
    margin: 20px 0 35px 0;
  }
}
#footer .tabHeadline {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: clamp(15px, 2vw, 25px);
}
#footer a {
  color: #fff;
}
#footer a:is(:hover, :focus) {
  color: #fff;
}
#footer .kontaktTab a {
  text-decoration: underline;
}
#footer .kontaktTab a:is(:hover, :focus) {
  color: #fff;
  text-decoration: none;
}

#footer #innerfooter a {
  text-decoration: none;
}
#footer #innerfooter a:is(:hover, :focus) {
  text-decoration: underline;
}
#footer :is(iframe, .iframe-wrapper-manual-enabling) {
  min-width: 100% !important;
  width: 100% !important;
  display: block;
}
#footer .map iframe {
  border-radius: 40px;
}
#footer-2 {
  font-size: 0.875rem;
  padding-bottom: 30px;
}
@media (min-width: 1200px) {
  #footer-2 > .row::before {
    content: "";
    position: absolute;
    background: url(../img/deko-kuh.png) no-repeat;
    width: 357px;
    height: 329px;
    bottom: -25px;
    z-index: 0;
    pointer-events: none;
    left: -362px;
    display: block;
  }
}

#footer ul {
  padding: 0;
  line-height: 1.9;
  margin: -4px 0 0 0;
}

#scroll-top-btn {
  padding: 5px 30px 5px 0;
  background: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48'%3E%3Cpath d='M22.85 39.25V13.1l-12.5 12.5-1.6-1.6L24 8.75 39.25 24l-1.6 1.6-12.5-12.5v26.15Z' fill='%23fff'/%3E%3C/svg%3E") center right -3px / 26px auto no-repeat;
}

#scroll-top-btn:not(:hover):not(:focus) {
  text-decoration: none;
}
#scroll-top-btn:is(:hover, :Focus) {
    color:#fff;
}

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

/* #region -------------------------------------- vernetzt -------------------------------------- */

#vernetzt {
  gap: 15px;
  text-align: left;
  color: #ffffff;
  line-height: 1.5;
  text-decoration: none;
  font-weight: 300;
}

#vernetzt span {
  display: block;
}

/* #endregion -------------------------------- vernetzt ----------------------------------------- */
