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

html {
   scroll-behavior: smooth;
   scroll-padding-top: 100px;
   scrollbar-color: #00773f #ffffff;
   position: relative;
}
@media (min-width: 992px) {
   html::after {
      content: "";
      position: absolute;
      background-image: url(../img/hirsch-schmuckelement.png);
      width: 16.3542vw;
      height: 21.1458vw;
      max-width: 314px;
      max-height: 406px;
      background-size: contain;
      background-position: bottom right;
      background-repeat: no-repeat;
      bottom: 0;
      right: 0;
      z-index: -1;
   }
}

body {
   font-family: "Roboto", sans-serif;
   font-weight: 300;
   color: #404040;
   background: #f4f8f8;
   font-size: clamp(1rem, 2vw, 1.375rem);
   /* 1rem = 16px */
   line-height: 1.5;
   background-attachment: fixed;
   background-size: cover;
   background-position: center !important;
}

a {
   color: #00773f;
}

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

#content a,
b,
strong {
   font-weight: 400;
}

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

#topbar {
   color: #454c4c;
}

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

@media (max-width: 991px) {
   #topbar > div.row:nth-child(1) {
      margin-top: 10px;
   }
}

.booking {
   position: relative;
   padding: 6px 10px 6px 40px;
   color: #fff;
   font-size: 1.125rem;
   font-weight: 500;
   background-color: #00773f;
}

.booking a {
   color: #fff;
}

.booking::before {
   content: '';
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 5px;
    width: 21px;
    height: 23px;
    background: url('../img/icon-kalender.png') no-repeat; 
}

@media (max-width: 991px) {
   .booking{
      margin-top: 10px;
   }
}
/* #region ------------------------------------ phone + mail -------------------------------------------- */

#mail,
#phone {
   color: #454c4c;
   display: inline-block;
   font-weight: 400;
   margin-top: 15px;
   line-height: 1;
   position: relative;
   min-height: 18px;
   font-size: 1rem;
}

@media (min-width: 992px) {
   #mail,
   #phone {
      margin-top: 0;
      display: inline-flex;
      align-items: center;
   }

   #mail {
      margin-left: 30px;
   }
}

#mail {
   padding-left: 28px;
   background: url("../img/icon-mail.png") center left no-repeat;
}

#phone {
   padding-left: 25px;
   background: url("../img/icon-telefon.png") center left no-repeat;
}

#kontakt {
   font-style: normal;
   font-size: 1.125rem;
}

#mail a,
#phone a {
   color: #00773f;
}

/* #endregion --------------------------------- phone + mail -------------------------------------------- */

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

@media (min-width: 992px) {
   #style {
      margin-right: -10px;
   }

   #style button {
      color: #404040;
      font-weight: 400;
      background: transparent;
      border: none;
      padding: 0 10px;
      line-height: 1;
      font-size: 1.125rem;
      position: relative;
   }

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

   #style button + button::after {
      content: "";
      position: absolute;
      top: 15px;
      bottom: 15px;
      left: 0;
      width: 1px;
      background: #404040;
   }
}

.language {
   margin: 5px 20px;
   display: inline-block;
}

.language a {
   text-decoration: none;
}

.language img:is(:hover, :focus) {
   outline: 3px solid #00773f;
   border-radius: 2px;
}
/* LOGO MIT TEXT -------------------------------------------------------- */

.logo {
   display: flex;
   flex-wrap: wrap;
   gap: 15px 15px;
   text-decoration: none !important;
}

.logo .template-page {
   width: auto;
}

.logo .cleaner {
   display: none;
}

.logoText {
   color: #404040;
   font-size: clamp(1.25rem, 1.5vw, 1.5rem);
   align-content: center;
   line-height: 1.1;
   font-family: "Roboto", sans-serif;
   font-weight: 300;
}

.logoText :is(b, strong) {
   display: block;
   font-size: clamp(1.5625rem, 2.5vw, 2.3rem);
   color: #00773f;
   font-weight: 400;
   font-family: "Arial ", sans-serif;
}

.logoText br {
   display: none;
}

@media (max-width: 575px) {
   .logoText {
      hyphens: auto;
   }
}

.logo img {
   display: block;
   max-width: 30vw;
}
/* LOGO MIT TEXT -------------------------------------------------------- */
/* #region ------------------------------------- navigation --------------------------------------------- */

.navbar-nav {
   background-color: #d8eb9c;
}

/* burgermenu for tablet */

@media (max-width: 991px) {
   #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: #5f7a43;
      color: #ffffff;
      border-radius: 2px;
      position: absolute;
      width: 40px;
      height: 3px;
      left: 10px;
      transition: transform 200ms linear, opacity 200ms linear;
      display: block;
   }

   #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: 5px;
   }

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

   .navbar-nav {
      width: 100% !important;
    }
}

/* menu desktop */

@media (min-width: 992px) {
   nav.horizontally .navbar-nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
   }

   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;
      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: #36451c;
   font-weight: 400;
   text-align: left;
   padding: 10px 15px;
   font-size: 1.125rem;
   line-height: 1.2;
   text-decoration: none;
}

@media (max-width: 991px) {
   nav.horizontally a[class*="toplevel"].dropdown-toggle {
      padding-right: 35px;
   }
}

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

/* 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-color: #5f7a43;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
   padding: 25px 0;
   background-color: #ffffff;
   border: 1px solid rgba(0, 119, 64, 0.6);
}

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

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

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

   .navbar-default .navbar-nav > li > .dropdown-menu::before {
      content: "";
      position: absolute;
      display: block;
      height: 20px;
      left: 0;
      right: 0;
      top: -20px;
   }

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

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

/* secondlevel + thirdlevel */

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

@media (max-width: 991px) {
   nav.horizontally a[class*="secondlevel"].dropdown-toggle2 {
      padding-right: 35px;
   }
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
   content: "";
   position: absolute;
   left: 15px;
   top: 14px;
   display: block;
   width: 7px;
   height: 7px;
   background-color: #00773f;
   opacity: 0;
   transition: opacity 300ms linear;
}

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

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 --------------------------------------------- */

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

#slider,
.slider-wrapper {
   max-height: clamp(250px, 44vw, 380px);
   overflow: hidden;
   height: 100%;
}
.index #slider,
.index .slider-wrapper {
   max-height: clamp(300px, 44vw, 430px);
   overflow: hidden;
   height: 100%;
}

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

   #headerpic .nivo-controlNav {
      pointer-events: none;
   }

   #headerpic .nivo-controlNav a {
      pointer-events: auto;
   }
}

@media (min-width: 992px) {
   #headerpic .nivo-directionNav a {
      bottom: 18px;
   }
}

#headerpic {
   margin: 0 auto;
   overflow: hidden;
   position: relative;
   width: 100%;
}

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

.slider-mask {
   display: none;
}

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

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

main {
   text-align: left;
   padding-top: clamp(30px, 4vw, 40px);
   padding-bottom: clamp(30px, 7vw, 80px);
}

.compact {
   padding: 15px;
   background-color: #ffffff;
   box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
   .compact {
      padding: clamp(20px, 3vw, 25px) clamp(15px, 3vw, 30px) clamp(15px, 3vw, 30px) clamp(15px, 3vw, 30px);
      margin-top: clamp(30px, 4vw, 40px);
      margin-bottom: clamp(30px, 4vw, 40px);
   }
}

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

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

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

h2,
.h2,
.legacy_h2 {
   font-size: clamp(1.875rem, 3vw, 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.375rem;
}

main .tab {
   background: #f9f9f9;
   padding: 20px 30px;
   box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
   font-size: 16px;
}

main .tab .tabHeadline {
   font-size: clamp(1.125rem, 1.4vw, 1.375rem);
}

main .tab hr {
   background: #00773f;
   height: 2px;
   border: none;
   opacity: 1;
   margin: 10px 0 25px 0;
}

main .tab a {
   text-decoration: underline;
}

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

footer {
   background-color: #00773f;
   background-size: cover;
   background-repeat: no-repeat;
   background-position: center;
   color: #ffffff;
   padding: clamp(30px, 4vw, 55px) clamp(15px, 3vw, 30px);
}

#innerfooter ul {
   padding: 0;
}

@media (max-width: 575px) {
   #innerfooter ul {
      border-top: 1px solid rgba(0, 0, 0, 0.5);
      margin-top: 15px;
      padding-top: 15px;
   }
}

#innerfooter a {
   color: #ffffff;
   display: inline-block;
   font-weight: 400;
   font-size: 1.125rem;
}

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

#vernetzt {
   display: grid;
   gap: 12px;
   font-size: 0.875rem;
   color: #ffffff;
   line-height: 1.3;
   font-weight: 400;
   text-decoration: none;
}

#vernetzt b {
   font-weight: 500;
}

#vernetzt :is(span, img) {
   display: block;
}

@media (max-width: 575px) {
   #vernetzt img {
      margin: 0 auto;
   }
}
