@import url("https://fonts.verwaltungsportal.de/import/?family=Raleway:400,400i,700,700i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Amatic+SC:700");

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

body {
   font-family: "Raleway", sans-serif;
   color: #595a5c;
   background: #fdf3e7;
   font-size: clamp(1rem, 2vw, 1.125rem);
   /* 1rem = 16px */
   line-height: 1.5;
}

a {
   color: #a3572e;
}

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

#content a {
   text-decoration: underline;
}

b,
strong {
   font-weight: 700;
}

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

header {
   background: url(../img/watercolor-header-links.png) top left no-repeat, url(../img/watercolor-header-rechts.png) top right no-repeat;
}

.logo {
   display: flex;
   flex-wrap: wrap;
   gap: 15px 15px;
   text-decoration: none !important;
   padding: 15px 0 25px 0;
}
@media (min-width: 576px) {
   .logo {
      justify-content: center;
   }
}

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

.logo .cleaner {
   display: none;
}

.logoText {
   color: #595a5c;
   font-size: clamp(1.25rem, 1.6vw, 1.5625rem);
   align-content: center;
   line-height: 1.1;
}

.logoText :is(b, strong) {
   display: block;
   font-family: "Amatic SC", sans-serif;
   font-weight: 700;
   color: #3e5653;
   font-size: clamp(2.5rem, 4vw, 3.75rem);
}

.logoText br {
   display: none;
}

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

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

/* -------------------------------------------- @nav1 Navigation ------------------------------------------- */

/* --------------------------------------- navigation --------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
   #menu {
      position: static !important;
      background-color: #ffffff;
      -webkit-box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
      box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
   }

   #burgerButton {
      font-size: 0;
      border: none !important;
      position: relative;
      z-index: 1002;
      display: block;
      width: 46px;
      height: 40px;
      border-radius: 2px;
      cursor: pointer;
      background-color: #ffffff;
      padding: 3px;
   }

   #burgerButton:before,
   #burgerButton:after,
   #burgerButtonInner {
      background-color: #a3572e;
      color: #ffffff;
      border-radius: 2px;
      position: absolute;
      width: 40px;
      height: 3px;
      left: 2px;
      -webkit-transition: transform 200ms linear, opacity 200ms linear;
      -moz-transition: transform 200ms linear, opacity 200ms linear;
      -ms-transition: transform 200ms linear, opacity 200ms linear;
      -o-transition: transform 200ms linear, opacity 200ms linear;
      transition: transform 200ms linear, opacity 200ms linear;
   }

   #burgerButton[aria-expanded="true"] #burgerButtonInner {
      -webkit-transform: rotate(-45deg) translate(-6px, 6px);
      transform: rotate(-45deg) translate(-6px, 6px);
   }

   #burgerButton[aria-expanded="true"]:before {
      opacity: 0;
   }

   #burgerButton[aria-expanded="true"]:after {
      -webkit-transform: rotate(45deg) translate(-4px, -6px);
      transform: rotate(45deg) translate(-4px, -6px);
   }

   #burgerButtonInner {
      top: 10px;
   }

   #burgerButton:before {
      top: 18px;
   }

   #burgerButton:after {
      top: 26px;
   }

   #burgerButton:before,
   #burgerButton:after {
      content: "";
      display: block;
   }

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

   .navbar-collapse {
      top: 0;
      background: #ffffff;
      position: fixed;
      left: -100%;
      bottom: 0;
      z-index: 100;
      height: auto !important;
      -webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
      box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
      opacity: 0;
      pointer-events: none;
      overflow-y: auto;
      -webkit-transition: left 300ms linear, opacity 300ms linear;
      -moz-transition: left 300ms linear, opacity 300ms linear;
      -ms-transition: left 300ms linear, opacity 300ms linear;
      -o-transition: left 300ms linear, opacity 300ms linear;
      transition: left 300ms linear, opacity 300ms linear;
   }

   .navbar-collapse.collapse.in {
      left: 0;
      opacity: 1;
      pointer-events: auto;
   }

   .navbar-header {
      height: 50px;
      width: 60px;
      border-radius: 2px;
      padding: 6px 8px;
      background-color: #ffffff;
      position: fixed;
      top: 15px;
      right: 15px;
      z-index: 101;
      -webkit-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
      box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
   }

   .navbar-collapse.in:after {
      content: "";
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: -1;
      display: block;
      width: 90px;
      background-color: rgba(0, 0, 0, 0.5);
   }
}

@media (min-width: 575px) and (max-width: 991px) {
   .navbar-collapse {
      width: 60%;
   }

   .navbar-collapse.collapse.in:after {
      width: 40%;
   }
}

/* menu desktop */

@media (min-width: 992px) {
   .is-sticky nav.horizontally {
      background: #fdf3e7;
      box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
   }
   nav.horizontally .navbar-nav {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-pack: end !important;
      -ms-flex-pack: end !important;
      justify-content: flex-end !important;
      -webkit-box-align: center !important;
      -ms-flex-align: center !important;
      align-items: center !important;
      flex-wrap: wrap;
   }

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

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

   nav.horizontally .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
      position: absolute;
      left: 100%;
      top: 0;
   }

   nav.horizontally .navbar-nav > li,
   nav.horizontally .navbar-nav > li > .dropdown-menu > li {
      position: relative;
   }

   .navbar-default .navbar-nav li[class*="toplevel"] > ul,
   .navbar-default .navbar-nav li[class*="secondlevel"] > ul {
      display: block !important;
      pointer-events: none;
      opacity: 0;
      -webkit-transition: opacity 300ms linear;
      -moz-transition: opacity 300ms linear;
      -ms-transition: opacity 300ms linear;
      -o-transition: opacity 300ms linear;
      transition: opacity 300ms linear;
   }

   .navbar-default .open > .dropdown-menu,
   .navbar-default .navbar-nav li[class*="toplevel"]:hover > ul,
   .navbar-default .navbar-nav li[class*="secondlevel"]:hover > ul,
   .navbar-default .navbar-nav li[class*="secondlevel"] > ul[style*="block"] {
      pointer-events: auto !important;
      opacity: 1 !important;
   }

   .navbar-default .navbar-nav li[class*="toplevel"]:focus-within > ul,
   .navbar-default .navbar-nav li[class*="secondlevel"]:focus-within > ul {
      pointer-events: auto !important;
      opacity: 1 !important;
   }

   .navbar-default .nav .open > .dropdown-menu {
      pointer-events: none !important;
      opacity: 0 !important;
   }

   .navbar-default .navbar-nav li[class*="toplevel"]:hover > ul,
   .navbar-default .navbar-nav li[class*="secondlevel"]:hover > u {
      z-index: 1003;
   }
}

/* ---------------------------------------------- toplevel ---------------------------------------------- */

.navbar-default .navbar-nav > li > a {
   color: #595a5c;
   text-align: left;
   padding: 15px 35px 15px 15px;
   position: relative;
   font-size: clamp(1.5625rem, 3vw, 2.125rem);
   line-height: 1.2;
   text-decoration: none;
   font-family: "Amatic SC", sans-serif;
   font-weight: 700;
}

@media (max-width: 991px) {
   .navbar-default .navbar-nav > li {
      border-bottom: 1px solid rgba(68, 68, 68, 0.2);
   }
}

@media (min-width: 992px) {
   .navbar-default .navbar-nav > li > a {
      padding: 15px 5px 16px 5px;
      display: flex;
      align-content: center;
      align-items: center;
      justify-content: center;
      text-align: center;
      height: 100%;
   }
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) and (min-width: 992px) {
   .navbar-default .navbar-nav > li > a {
      display: block;
   }
}

.navbar-default .navbar-nav > li > a::after {
   content: "";
   position: absolute;
   display: block;
   width: 0;
   bottom: 0;
   height: 6px;
   left: 50%;
   -moz-transform: translateX(-50%);
   -webkit-transform: translateX(-50%);
   -o-transform: translateX(-50%);
   -ms-transform: translateX(-50%);
   transform: translateX(-50%);
   background: #a3572e;
   -webkit-transition: width 300ms linear;
   -moz-transition: width 300ms linear;
   -ms-transition: width 300ms linear;
   -o-transition: width 300ms linear;
   transition: width 300ms linear;
}

@media (min-width: 992px) {
   .navbar-default .navbar-nav > li > a::after {
      top: 0;
      bottom: auto;
   }
}

/* -------------------------------------------- toplevel-over ------------------------------------------- */

.navbar-nav > li:hover > a,
.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus,
.navbar-nav > li.open > a,
.navbar-nav > li.open > a:hover,
.navbar-nav > li.open > a:focus,
.navbar-nav > li[class$="_over"] > a,
.navbar-nav > li[class$="_over"] > a:hover,
.navbar-nav > li[class$="_over"] > a:focus {
   color: #3e5653;
}

.navbar-nav > li:focus-within > a {
   color: #3e5653;
}

.navbar-nav > li:hover > a::after,
.navbar-nav > li > a:hover::after,
.navbar-nav > li > a:focus::after,
.navbar-nav > li.open > a::after,
.navbar-nav > li.open > a:hover::after,
.navbar-nav > li.open > a:focus::after,
.navbar-nav > li[class$="_over"] > a::after,
.navbar-nav > li[class$="_over"] > a:hover::after,
.navbar-nav > li[class$="_over"] > a:focus::after {
   width: 100%;
}

.navbar-nav > li:focus-within > a::after {
   width: 100%;
}

/* -------------------------------------- secondlevel + thirdlevel dropdown-box -------------------------------------- */

.navbar-default .navbar-nav > li > .dropdown-menu,
.navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
   background: #a3572e;
}

@media (max-width: 991px) {
   .navbar-default .navbar-nav > li > .dropdown-menu {
      padding: 10px;
   }
   .navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
      margin: 10px;
   }
}

@media (min-width: 992px) {
   .navbar-default .navbar-nav > li > .dropdown-menu,
   .navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
      padding-top: 30px;
      padding-bottom: 30px;
   }

   .navbar-default .navbar-nav > li > .dropdown-menu {
      left: 50%;
      -moz-transform: translate(-50%, 0);
      -webkit-transform: translate(-50%, 0);
      -o-transform: translate(-50%, 0);
      -ms-transform: translate(-50%, 0);
      transform: translate(-50%, 0);
   }

   .navbar-default .navbar-nav > li > .dropdown-menu::after {
      content: "";
      display: block;
      position: absolute;
      left: 50%;
      top: -20px;
      margin-left: -20px;
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 20px 20px 0 20px;
      border-color: #fdf3e7 transparent transparent transparent;
      -webkit-transition: top 150ms linear;
      -moz-transition: top 150ms linear;
      -ms-transition: top 150ms linear;
      -o-transition: top 150ms linear;
      transition: top 150ms linear;
   }

   .navbar-default .navbar-nav > li:hover > .dropdown-menu::after {
      top: 0;
   }

   .navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu {
      margin-top: -30px;
      margin-left: 10px;
   }

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

/* --------------------------------------------- secondlevel + thirdlevel -------------------------------------------- */

.navbar-default .navbar-nav > li > .dropdown-menu > li > a,
.navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a {
   color: #ffffff;
   font-weight: 400;
   text-align: left;
   padding: 8px 25px;
   font-size: 1rem;
   line-height: 1.2;
   text-decoration: none;
}

@media (min-width: 992px) {
   .navbar-default .navbar-nav > li > .dropdown-menu > li > a,
   .navbar-default .navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a {
      text-align: center;
      padding: 13px 25px;
   }
}

/* ------------------------------------------ secondlevel + thirdlevel over ------------------------------------------ */

.navbar-nav > li > .dropdown-menu > li:hover > a,
.navbar-nav > li > .dropdown-menu > li > a:hover,
.navbar-nav > li > .dropdown-menu > li > a:focus,
.navbar-nav > li > .dropdown-menu > li.open > a,
.navbar-nav > li > .dropdown-menu > li.open > a:hover,
.navbar-nav > li > .dropdown-menu > li.open > a:focus,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a:hover,
.navbar-nav > li > .dropdown-menu > li[class$="_over"] > a:focus,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a:hover,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li > a:focus,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li.open > a,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li.open > a:hover,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li.open > a:focus,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li[class$="_over"] > a,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li[class$="_over"] > a:hover,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li[class$="_over"] > a:focus {
   background: #3e5653;
}

.navbar-nav > li > .dropdown-menu > li:focus-within > a,
.navbar-nav > li > .dropdown-menu > li > .dropdown-menu > li:focus-within > a {
   background: #3e5653;
}
/* #region ------------------------------------ banner ------------------------------------------ */

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

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

@media (min-width: 992px) {
   #headerpic a.nivo-prevNav {
      left: 65px;
   }

   #headerpic a.nivo-nextNav {
      right: 65px;
   }
}
#headerpic .nivo-controlNav {
   bottom: 4vw;
}

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

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

.slider-mask {
   display: block;
   background: url("../img/welle-banner-oben.png") center top / 100% auto no-repeat, url("../img/welle-banner-unten.png") center bottom / 100% auto no-repeat;
}

#bannerTab {
   font-size: clamp(2.5rem, 4.5vw, 4.5rem);
   line-height: 1.2;
   font-family: "Amatic SC", sans-serif;
   font-weight: 700;
   padding: 40px 0;
   text-align: center;
}

@media (min-width: 768px) {
   body.index .slider-mask {
      display: block;
      background: url("../img/welle-banner-oben.png") center top / 100% auto no-repeat, url("../img/welle-banner-unten.png") center bottom / 100% auto no-repeat, linear-gradient(0deg, rgba(55, 29, 2, 0.3) 0%, rgba(55, 29, 2, 0.8) 100%);
   }

   #bannerTab {
      position: absolute;
      width: 100%;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
      color: #ffffff;
      padding: 0;
      padding-bottom: 4vw;
      pointer-events: none;
   }

   #bannerTab a {
      color: #fff;
      text-decoration: underline;
   }

   #bannerTab .tabContent {
      pointer-events: auto;
   }

   #headerpic {
      background: #000;
   }

   #headerpic .slick-dots li {
      color: #ffffff !important;
   }

   body.index #headerpic .nivo-controlNav {
      bottom: 8.5vw;
   }
}

@media (min-width: 1920px) {
   body.index #headerpic .nivo-controlNav {
      bottom: 163px;
   }
   #bannerTab {
      padding-bottom: 76.8px;
   }
}

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

/* #region ------------------------------------- tab -------------------------------------------- */

#teaser > .row {
   row-gap: 15px;
}

@media (min-width: 768px) {
   #teaser {
      position: relative;
      z-index: 53;
      margin-top: -8vw;
   }
}

@media (min-width: 1920px) {
   #teaser {
      margin-top: -153.6px;
   }
}

.tab {
   background-color: #ffffff;
   position: relative;
   color: #595a5c;
   border-radius: 20px;
   box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
}

.tab a {
   border-radius: 100px;
   padding: 10px 15px;
   color: #3e5653;
   font-size: 0.875rem;
   font-weight: 700;
   display: inline-block;
   line-height: 1;
   background: #bed5d0;
   outline: 2px solid #3e5653;
   transition: background 300ms, color 300ms, outline 300ms;
   margin-top: 40px;
}

.tab a:is(:hover, :focus) {
   text-decoration: none;
   background: #fdf3e7;
   outline-color: #a3572e;
   color: #a3572e;
}

#teaser .tab {
   height: 100%;
   min-height: 100%;
   overflow: hidden;
}

#teaser .banner img {
   width: 100%;
   height: 215px;
   object-fit: cover;
}

#teaser .tab img {
   display: block;
}

#teaser .tabHeadline {
   margin: 0;
   color: #ffffff;
   margin-top: -25px;
   background: #3e5653;
   border-top-right-radius: 100px;
   border-bottom-right-radius: 100px;
   padding: 10px 55px 12px 55px;
   line-height: 1;
   font-size: clamp(1.5rem, 2.5vw, 2.125rem);
   display: inline-block;
   width: auto;
}

#teaser .tabContent {
   padding: 50px 30px 20px 30px;
}

#teaser hr {
   border-top: 1px solid #a3572e;
   margin-bottom: 0;
   margin-top: 15px;
   opacity: 1;
}

/* #endregion ------------------------------------- tab -------------------------------------------- */

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

main {
   background: url(../img/watercolor-conent-links.png) top 8vw left no-repeat, url(../img/watercolor-conent-rechts.png) bottom right no-repeat;
}

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

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

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

h1,
.h1,
.legacy_h1 {
   font-size: 3.75rem;
}

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

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

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
   font-size: 2.3rem;
}

h5,
.h5,
.legacy_h5 {
   font-size: 2.1rem;
}

h6,
.h6,
.legacy_h6 {
   font-size: 1.9rem;
}

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

footer {
   background-color: #a3572e;
   padding: 22px 0;
}
/* --------------------------------------------- innerfooter -------------------------------------------- */

@media (max-width: 991px) {
   #innerfooter,
   #vernetzt {
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      padding-bottom: 15px;
      margin-bottom: 15px;
   }
}

#innerfooter ul {
   padding: 0;
}

#innerfooter li {
   display: inline-block;
}

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

#innerfooter a:hover,
#innerfooter a:focus {
   color: #ffffff;
   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: 18px;
   text-align: left;
   font-size: 1rem;
   color: #fff;
   line-height: 1.3;
   text-decoration: none;
}

#vernetzt span span {
   display: block;
}

#vernetzt b {
   font-family: "Amatic SC", sans-serif;
   font-size: 1.25rem;
}

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

#scrollTop {
   color: #fff;
   margin: 30px auto 0 auto;
   width: 140px;
   font-size: 0.875rem;
   opacity: 1 !important;
   text-decoration: none;
}

@media (min-width: 576px) {
   #scrollTop {
      margin: 0;
      width: auto;
   }
}

#scrollTop span {
   font-size: 0;
   width: 35px;
   height: 35px;
   display: inline-block;
   position: relative;
   margin: 0 auto;
   margin-left: 15px;
   border: 2px solid #ffffff;
   transition: background-color 300ms linear, color 300ms linear;
   border-radius: 10px;
}

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

#scrollTop:is(:hover, :focus) span {
   background-color: rgba(0, 0, 0, 0.2);
}
