@import url("https://fonts.verwaltungsportal.de/import/?family=Noto+Sans:300,400,500,300i,400i,500i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Cinzel:500");
@import url("https://fonts.verwaltungsportal.de/import/?family=Square+Peg:400");
@import url("https://fonts.verwaltungsportal.de/import/?family=Dosis:500");

html {
   scroll-behavior: smooth;
   scroll-padding-top: 100px;
   scrollbar-color: #4A7360 #ffffff;
}

body {
   font-family: "Noto Sans", sans-serif;
   font-weight: 300;
   color: #404040;
   background-color: #beddc8;
   font-size: clamp(1rem, 2vw, 1.125rem);
   /* 1rem = 16px */
   line-height: 1.5;
   background-attachment: fixed;
   background-size: cover;
}

@media (min-width: 768px) {
   html {
      position: relative;
   }
}

a {
   color: #4A7360;
}

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

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

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

#topbar {
   color: #303030;
   margin-bottom: 10px;
}

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

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

.logo {
   display: flex;
   align-content: center;
   align-items: center;
   flex-wrap: wrap;
   gap: 15px 15px;
   padding: 45px 0 35px 0;
   text-decoration: none !important;
}

.logoImg {
   position: absolute;
   top: -20px;
   left: -30px;
}

@media (max-width: 991px) {
   .logoImg {
      left: -15px;
   }
}

@media (max-width: 767px) {
   .logoImg {
      left: -10px;
   }
}

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

.logo .cleaner {
   display: none;
}

.logoText {
   color: #303030;
   font-size: clamp(1.5rem, 3vw, 3rem);
   line-height: 1;
   font-family: "Square Peg", cursive;
   font-weight: 500;
   text-align: center;
}

@media (min-width: 576px) {
   .logoText {
      flex-grow: 1;
      text-align: left;
   }
}

@media (max-width: 991px) {
   .logoText {
      padding-left: clamp(40px, 30vw, 480px);
   }
}

@media (max-width: 575px) {
   .logoText {
      padding-left: clamp(10px, 10vw, 480px);
      padding-top: 20px;
      text-align: left;
   }
}


@media (max-width: 767px) {
   .logo {
      padding: 70px 0 30px 0;
   }
}

@media (max-width: 991px) {
   .logo {
      text-align: right;
   }
}

@media (min-width: 992px) {
   .logoText {
      flex-grow: 1;
      text-align: left;
      padding-left: clamp(200px, 40vw, 490px);
   }
}

@media (max-width: 575px) {
   .logo {
      padding: 45px 0 20px 0;
   }
}

.logoText :is(b, strong) {
   display: block;
   font-size: clamp(1.3rem, 3vw, 3.125rem);
   font-family: "Cinzel", serif;
   font-weight: 500;
   text-transform: uppercase;
}

.logoText br {
   display: none;
}

.logo img {
   display: block;
   max-width: 30vw;
}

@media (max-width: 767px) {
   .logoImg img {
      max-width: 100%;
   }
}

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

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

.navbar-nav {
   background-color: #c3d9ce;
   box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
   border-radius: 5px;
}

/* burgermenu for tablet */

@media (max-width: 991px) {
   #burgerButton {
      font-size: 0;
      border: none !important;
      display: block;
      height: 50px;
      width: 60px;
      border-radius: 5px;
      padding: 6px 8px;
      cursor: pointer;
      background-color: #c3d9ce;
      box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
   }

   #burgerButton::before,
   #burgerButton::after,
   #burgerButtonInner {
      background-color: #303030;
      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;
      width: 100% !important;
   }

   .navbar-collapse {
      width: calc(100% - 90px);
      max-width: 300px;
      top: 0;
      background: #c3d9ce;
      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 .navbar-nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      z-index: 60;
      position: relative;
   }

   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: #303030;
   font-weight: 500;
   text-align: left;
   padding: 10px 15px;
   font-size: 1.125rem;
   line-height: 1.2;
   text-decoration: none;
   font-family: "Dosis", sans-serif;
}

nav.horizontally .navbar-nav>li:first-of-type a {
   border-top-left-radius: 5px;
   border-bottom-left-radius: 5px;
}

nav.horizontally .navbar-nav>li:last-of-type a {
   border-top-right-radius: 5px;
   border-bottom-right-radius: 5px;
}

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

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

   nav.horizontally a[class*="toplevel"]::before {
      content: "";
      position: absolute;
      top: 50%;
      transform: translate(calc(-100% - 5px), -50%);
      background: url(../img/aktiv-logo.png);
      width: 19px;
      height: 18px;
      pointer-events: none;
      opacity: 0;
      transition: opacity 300ms;
   }
}

/* 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: #404040;
   background-color: rgba(255, 255, 255, 0.75);
}

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 {
   opacity: 1;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
   padding: 12px 0;
   background-color: rgba(255, 255, 255, 0.9);
   border: 1px solid hwb(147 76% 15% / 0.6);
   border-radius: 5px;
}

@media (max-width: 991px) {
   nav.horizontally [class*="toplevel"] ul {
      margin: 10px;
      background-color: rgba(255, 255, 255, 0.5);
   }
}

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

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

   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::before {
      width: 15px;
      top: 0;
      bottom: 0;
      left: -15px;
   }
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
   color: #1d1d1d;
   font-weight: 500;
   font-family: "Dosis", sans-serif;
   text-align: left;
   padding: 4px 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;
   top: 50%;
   transform: translate(5px, -50%);
   background: url(../img/aktiv-logo.png);
   width: 19px;
   height: 18px;
   pointer-events: none;
   opacity: 0;
   transition: opacity 300ms;
   left: 0;
}

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

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(300px, 44vw, 460px);
   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%;
   background-color: #1d1d1d;
   min-width: calc(100% + clamp(30px, 6vw, 60px));
   margin-left: clamp(-30px, -3vw, -15px);
}

#headerpic .theme-nivo .nivo-controlNav .slick-dots li,
#headerpic .nivo-directionNav a,
#headerpic a.nivo-control,
#headerpic a.nivo-control.active {
   color: #ffffff !important;
}

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

.slider-mask {
   display: block;
   background: linear-gradient(to top, rgba(0, 0, 0, 0.6)0, rgba(0, 0, 0, 0.4)15%, rgba(0, 0, 0, 0)38%);
}

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

/* #region ------------------------------------ phone + mail -------------------------------------------- */

@media (max-width: 991px) {
   #bannerOverlay {
      padding: 20px 0;
      color: #404040;
      background: #c3d9ce;
   }
}

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

   #mail,
   #phone {
      pointer-events: all;
   }
}

#mail,
#phone {
   color: #ffffff;
   display: inline-block;
   font-weight: 500;
   line-height: 1;
   position: relative;
   min-height: 18px;
   font-size: 1rem;
   font-family: 'Dosis', sans-serif;
}

#mail a,
#phone a {
   color: #ffffff;
}

@media (max-width: 991px) {
   #mail, #phone,
   #mail a,
   #phone a {
      color: #404040;
   }
}

@media (min-width: 992px) {

   #mail,
   #phone {
      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;
}

@media (max-width: 991px) {

   #mail,
   #phone {
      background-position: center left 10px;
      background-size: 12px auto;
   }
}

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

/* #region ---------------------------------------- tabs ------------------------------------------------ */

#tabs {
   padding-bottom: clamp(30px, 2vw, 35px);
}

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

#tabs .tab {
   padding: 30px;
   font-size: 1.125rem;
   background: #ffffff;
   box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
   position: relative;
   display: flex;
   align-content: center;
   align-items: center;
   gap: 30px;
   overflow: hidden;
   transition: background 300ms linear;
}

@media (max-width: 767px) {
   #tabs .tab {
      flex-direction: column;
   }
}

#tabs .tab:is(:hover, :focus-within) {
   background: #c3d9ce;
}

#tabs .tab::before {
   content: '';
   position: absolute;
   pointer-events: none;
   top: 15px;
   left: 15px;
   right: 15px;
   bottom: 15px;
   border: 4px solid rgba(74, 115, 96, 0.2);
   transition: border 300ms linear;
}

#tabs .tab:is(:hover, :focus)::before {
   border-color: #ffffff;
}

#tabs :is(.tab, .tab3) :is(.row, .row>*) {
   position: static;
}

#tabs :is(.tab, .tab3) a::after {
   content: "";
   display: block;
   position: absolute;
   top: 0;
   right: 0;
   bottom: 0;
   left: 0;
}

#tabs .tabTxt {
   padding: 0 0 15px 0;
}

#tabs .tabImg {
   line-height: 0;
   font-size: 0;
}

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

   #tabs .tabImg img {
      max-width: 325px;
   }
}

#tabs .tab3 {
   color: #404040;
   padding: 15px 35px;
   border-radius: 5px;
   background: #c3d9cd;
   box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
   position: relative;
   transition: background 300ms linear;
}

#tabs .tab3:is(:hover, :focus-within) {
   background: #acbfb5;
}

#tabs .tab3 a {
   color: #4a7360;
   text-transform: uppercase;
}

#tabs .tab3 :is(h1, h2, h3, h4, h5, h6) {
   color: #303030;
   text-transform: uppercase;
}

#tabs :is(.tab3, .tab) :is(h1, h2, h3, h4, h5, h6) {
   font-size: 1.625rem;
   transition: color 300ms linear;
}

#tabs :is(.tab3, .tab):is(:hover, :focus-within) :is(h1, h2, h3, h4, h5, h6) {
   color: inherit;
}

#tabs .tab :is(a :is(strong, b), :is(strong, b) a):not(.has-image) {
   margin-top: 15px;
   border-radius: 4px;
   display: inline-block;
   line-height: 1;
   font-size: 1rem;
   font-weight: 500;
   color: #404040;
   padding: 12px 15px;
   text-decoration: none;
   background: #b7cebf;
   transition: background 300ms, color, 300ms;
}

#tabs .tab :is(a :is(strong, b), :is(strong, b) a):not(.has-image):is(:hover, :focus) {
   background: #8ea696;
}

#tabs .tab a.has-image {
   display: inline-block;
}

/* #endregion ------------------------------------- tabs ------------------------------------------------ */

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

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

@media (min-width: 768px) {
   #content.md-gutter {
      margin-left: -15px;
      margin-right: -15px;
   }
}

@media (min-width: 992px) {
   #contentCol {
      padding: clamp(20px, 3vw, 30px) clamp(25px, 4vw, 45px) 0 clamp(20px, 4vw, 45px);
   }
}

@media (min-width: 1200px) {
   body:not(.noListStyle) main ul:not([class*="menue"]):not([class*="slick-dots"]):not(.rsbtn_toollist) li:not(.gallery-list-item):not(.album-list-item):not(.entry)::before {
      top: 24px;
   }
}

.compact {
   padding: 15px;
   background-color: #ffffff;
   box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
   position: relative;
   z-index: 5;
   overflow: clip;
   border-radius: 5px;
}

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

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

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

h1,
.h1,
.legacy_h1 {
   font-size: clamp(2rem, 4vw, 2.25rem);
   margin-bottom: clamp(20px, 3vw, 30px);
}

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

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

footer {
   position: relative;
   margin-top: 10px;
   overflow: hidden;
   border-radius: 5px;
   padding: 40px 15px;
   background: #f8f9f9 url('../img/logo-wasserzeichem.png') top left no-repeat;
   box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
   footer {
      padding: 60px 30px;
   }
}

footer>.row {
   row-gap: 30px;
}

footer .tab a {
   color: #4a7360;
}

footer .tabHeadline {
   font-size: 1.625rem;
   color: #303030;
   margin-bottom: 25px;
}

#innerfooter ul {
   padding: 0;
}

#innerfooter a {
   color: #404040;
   display: inline-block;
   font-weight: 400;
   font-size: 1.125rem;
   position: relative;
   text-decoration: none;
}

#innerfooter a::before {
   content: "";
   position: absolute;
   top: 50%;
   transform: translate(calc(-100% - 5px), -50%);
   background: url(../img/aktiv-logo.png);
   width: 19px;
   height: 18px;
   pointer-events: none;
   opacity: 0;
   transition: opacity 300ms;
}

#innerfooter a:is(:hover, :focus)::before {
   opacity: 1;
}

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

#vernetzt {
   display: flex;
   gap: 12px;
   text-align: right;
   font-size: 0.875rem;
   color: #404040;
   line-height: 1.3;
   text-decoration: none;
}

#vernetzt span span {
   display: block;
}

#vernetzt b {
   font-weight: 500;
}