@import url("https://fonts.verwaltungsportal.de/import/?family=Inter:400,400i,600,600i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Rubik:500");
@import url("https://fonts.verwaltungsportal.de/import/?family=Cookie:400");
@import url("https://fonts.verwaltungsportal.de/import/?family=Alkatra:700");
@import url("https://fonts.verwaltungsportal.de/import/?family=Charm:400,700");

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

body {
   font-family: "Inter", sans-serif;
   font-weight: 400;
   color: #3a3838;
   background: #ffffff;
   font-size: 1rem;
   /* 1rem = 16px */
   line-height: 1.5;
}

@media (min-width: 768px) {
   body {
      font-size: 1.125rem;
   }
}

a {
   color: #a24715;
}

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

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

#topbar {
   padding: 25px 0;
   border-bottom: 1px solid #eeeeee;
}

/* LOGO MIT TEXT -------------------------------------------------------- */

.logo {
   text-decoration: none !important;
}

.logo .cleaner {
   display: none;
}

.logoText {
   align-content: center;
   line-height: 1;
   font-weight: 400;
   font-family: "Charm", serif;
   font-size: clamp(3rem, 6vw, 5.3125rem);
   color: #0b7693;
}

.logoText a {
   color: #0b7693 !important;
   text-decoration: none;
}

.logoText :is(b, strong) {
   display: block;
   color: #0b7693;
   font-weight: 700;
   font-size: clamp(1.25rem, 2.5vw, 2.1875rem);
   margin-left: 3.6458vw;
}

.logoText br {
   display: none;
}

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

.logo img {
   max-width: 50vw;
}

/* LOGO MIT TEXT -------------------------------------------------------- */
/* #region ---------------------------------- navigation ---------------------------------------- */

/* 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: #56663d;
      color: #fff;
      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: 5px;
   }

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

/* menu desktop */

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

   .is-sticky nav.horizontally {
      border-bottom: 1px solid #eeeeee;
   }

   nav.horizontally .navbar-nav>li {
      display: inline-block;
   }

   nav.horizontally .dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      z-index: 1000;
   }

   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 {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
   }

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

   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: #3a3838;
   font-weight: 600;
   text-align: left;
   padding: 10px 15px;
   font-size: clamp(1.125rem, 1.5vw, 1.5rem);
   line-height: 1.2;
   text-decoration: none;
}

nav.horizontally a[class*="toplevel"]::before {
   content: '';
   position: absolute;
   top: -2px;
   height: 3px;
   background: #0b7693;
   width: 0;
   left: 50%;
   transform: translateX(-50%);
   transition: width 200ms;
}

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

@media (min-width: 992px) {

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

/* toplevel-over */

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

/* secondlevel + thirdlevel dropdown-box */

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

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

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

   nav.horizontally [class*="toplevel"]>ul {
      margin-top: 15px;
      left: 50%;
      transform: translate(-50%, 0);
   }

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
   color: #3a3838;
   font-weight: 400;
   text-align: left;
   padding: 8px 25px 8px 38px;
   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;
   }
}

/* 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: #56663d;
   color: #fff;
}

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

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

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

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

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

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

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

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

   body.index #slider {
      max-height: clamp(300px, 62vw, 675px);
   }
}

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

.slider-mask {
   display: none;
}

#slogan {
   color: #3a3838;
   font-weight: normal;
   padding: 15px;
   font-size: clamp(1.25rem, 2vw, 1.5rem);
   line-height: 1;
   width: 100%;
}

#slogan h2 {
   color: #3a3838;
   font-weight: 600;
   font-family: "Inter", sans-serif;
   font-size: clamp(1.5rem, 3vw, 2.5rem);
}

#slogan .btgrid>.row>.col {
   color: #56663d;
}

#slogan .btgrid>.row>.col:last-of-type {
   color: #a24715;
}

@media (max-width: 767px) {
   #bannerOverlay {
      border-bottom: 3px solid #0b7693;
      padding: 30px 0;
   }
}

@media (min-width: 768px) {
   #slogan {
      background: rgba(255, 255, 255, 0.8);
      border-top: 5px solid #0b7693;
      padding: 20px 25px;
      display: inline-block;
      pointer-events: auto;
      box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
   }

   #bannerOverlay {
      position: absolute;
      right: 0;
      bottom: 50px;
      left: 0;
      z-index: 53;
      pointer-events: none;
   }
}

@media (min-width: 992px) {
   #slogan {
      padding: 35px;
   }
}

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


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

#content {
   text-align: left;
   padding-bottom: clamp(30px, 6vw, 80px);
   padding-top: clamp(30px, 4vw, 50px);
}

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

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

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

h2,
.h2,
.legacy_h2 {
   font-size: 1.6875rem;
}

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

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

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

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

@media (min-width: 768px) {
   #footer>.row>div:not(:last-child) {
      padding-top: 10px;
      padding-bottom: 10px;
      border-left: 1px solid rgba(0, 0, 0, 0.1);
   }
}

#footer {
   padding: 30px 0;
   border-top: 3px solid #0b7693;
   color: #3a3838;
   font-size: 1rem;
   background: #e9eae0;
}

#footer .footerContactTab a {
   position: relative;
   text-decoration: underline;
}

#footer a:is([href*="mailto:"], a[href*="tel:"]) {
   position: relative;
   display: inline-block;
   padding-left: 30px;
   margin-top: 5px;
   text-decoration: underline;
}

#footer a:is([href*="mailto:"], a[href*="tel:"])::before {
   content: "";
   display: block;
   position: absolute;
   height: 22px;
   width: 22px;
   background: url("../img/icon-mail.png") center no-repeat, #56663d;
   top: 50%;
   left: 0;
   border-radius: 50%;
   transform: translateY(-50%);
}

#footer a[href*="tel:"]::before {
   background: url("../img/icon-telefon.png") center no-repeat, #56663d !important;
}

#innerfooter ul {
   padding: 0;
}

#innerfooter a {
   color: #3a3838;
   text-decoration: none;
   display: inline-block;
}

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

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

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

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

#vernetzt span span {
   display: block;
}

#vernetzt b {
   color: #a24715;
   font-weight: 400;
}

/* ------------------------------------------ scroll top ---------------------------------------- */

#scrollTop {
   font-size: 0;
   background-color: #56663d;
   color: #ffffff;
   border-radius: 50%;
   width: 30px;
   height: 30px;
   display: block !important;
   position: relative;
   margin: 0 0 0 auto;
}

#scrollTop:is(:hover, :focus) {
   background-color: #a24715;
}

#scrollTop::after {
   content: "";
   width: 0;
   height: 0;
   position: absolute;
   left: 9px;
   top: 12px;
   border-style: solid;
   border-width: 0 6px 6px 6px;
   border-color: transparent transparent #ffffff transparent;
   transform: none;
}