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

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

body {
  font-family: "Fira Sans", sans-serif;
  font-weight: 400;
  color: #252525;
  background: #ffffff;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.5;
}

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

a {
  color: #45786c;
}

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

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

@media (min-width: 992px) {
  body {
    padding-left: clamp(25px, 4vw, 45px);
    padding-right: clamp(25px, 4vw, 45px);
  }
}

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

#logo {
  display: flex;
  align-items: center;
  align-content: center;
  gap: 20px;
  text-decoration: none;
}

#logo .logo {
  position: absolute;
  top: -76px;
}

#logo .logoImg img {
  display: block;
}

@media (max-width: 991px) {
  #logo .logoImg img {
    max-width: 210px;
    width: 100%;
  }
  #logo .logo {
    position: relative;
    top: 0;
    padding: 20px 0;
  }
}

/* #region ---------------------------------- navigation ---------------------------------------- */
.is-sticky nav.horizontally {
  border-bottom: 1px solid #45786c;
  background-color: #fff;
}

/* 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: #45786c;
    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 #45786c;
    background-color: #fff;
  }

  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;
    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, :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: #252525;
  font-weight: 400;
  text-align: left;
  padding: 10px 15px;
  text-transform: uppercase;
  font-size: 1rem;
  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 li[class*="toplevel"] + li {
    margin-left: 25px;
  }

  nav.horizontally a[class*="toplevel"] {
    padding: 37px 14px;
  }
}

/* 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: #013124;
  background-color: #b2d8ce;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  background-color: #b2d8ce;
}

@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: 10px;
    left: 0;
    transform: translate(0%, 0);
  }

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  color: #252525;
  font-weight: 400;
  text-align: left;
  padding: 8px 25px 8px 38px;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  position: relative;
}

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

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
  content: "\00BB";
  position: absolute;
  top: 7px;
  left: 25px;
  margin-right: 4px;
}

/* 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: #ffffff;
  color: #252525;
}

/* #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: #252525;
  font-weight: normal;
  font-variant: small-caps;
  padding: 15px;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  box-shadow: 0 2px 0 0 rgba(69, 120, 108, 0.8);
  line-height: 1.2;
  font-family: "Fira Sans", sans-serif;
}

#slogan :is(h1, h2, h3) {
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 20px;
  color: #252525;
  font-weight: 500;
  letter-spacing: 4px;
  font-family: "Fira Sans", sans-serif;
}

@media (max-width: 1199px) {
  #bannerOverlay {
    background: rgba(178, 216, 206, 0.8);
  }
}

@media (min-width: 1200px) {
  #slogan {
    background: rgba(178, 216, 206, 0.8);
    padding: 20px 25px;
    border-radius: 30px 2px 2px 2px;
    box-shadow: 8px 8px 0 0 #45786c;
    display: inline-block;
    pointer-events: auto;
  }

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

@media (min-width: 1200px) {
  #slogan {
    padding: 28px 20px 20px 30px;
    border-top-left-radius: 50px;
    margin-left: -15px;
    padding-right: 78px;
  }
}

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

/* ----------------------------------------- scroll bottom -------------------------------------- */

#scrollBottom {
  border-bottom: 1px solid #eeeeee;
  padding: clamp(10px, 2vw, 24px) 0;
}

#scrollBottom a {
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 40px;
  margin: 0 auto;
}

#scrollBottom a::after {
  content: "";
  width: 0;
  height: 0;
  display: block;
  border-style: solid;
  border-width: 8px 8px 0 8px;
  border-color: #45786c transparent transparent transparent;
  transition: border 300ms linear;
}

#scrollBottom a:is(:hover, :focus)::after {
  border-color: #252525 transparent transparent transparent;
}

/* ------------------------------------------- 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: #45786c;
  font-weight: 400;
  line-height: 1.2;
  font-family: "Fira Sans", sans-serif;
}

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

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

/* ------------------------------------------------ @21tab ----------------------------------------------- */

#tabs21 {
  padding: 30px 0;
}

@media (max-width: 991px) {
  #tabs21 > .row > *:not(:first-child, :nth-child(2)) + * {
    margin-top: 30px;
  }
}

@media (max-width: 575px) {
  #tabs21 > .row > *:not(:first-child) + * {
    margin-top: 30px;
  }
}

#tabs21 .tabHeadline {
  font-weight: 400;
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  color: #45786c;
  margin-bottom: clamp(15px, 3vw, 40px);
}

#tabs21 .tabWrapper {
  padding: 10px 10px 10px 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #b2d8ce;
  position: relative;
}

#tabs21 .tab {
  font-size: 0.9375rem;
  color: #252525;
  min-height: 100%;
  padding: 50px 20px;
  background: #ffffff;
}

#tabs21 .tab1 {
  border-top-left-radius: 60px;
}

#tabs21 .tab4 {
  border-bottom-right-radius: 60px;
}

#tabs21 .tab :is(h1, h2, h3, h4, h5, h6) {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 10px;
  color: #252525;
}

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

#tabs21 .tab a::after {
  content: "mehr erfahren";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" height="80px" viewBox="0 -960 960 960" width="80px" fill="%23ffffff"><path d="M440-280h80v-160h160v-80H520v-160h-80v160H280v80h160v160Zm40 200q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>') center top calc(50% - 20px) no-repeat, linear-gradient(to bottom, rgba(69, 120, 108, 0.89), rgba(69, 120, 108, 0.89) 200px);
  z-index: 1;
  color: #ffffff;
  text-align: center;
  font-size: 1.25rem;
  padding-top: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  opacity: 0;
  text-decoration: none;
  transition: opacity 200ms linear;
}

#tabs21 .tab a:is(:hover, :focus)::after {
  opacity: 1;
}

#tabs21 .buttonTab a {
  display: inline-block;
  background: #45786c;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.875rem;
  border-radius: 10px;
  padding: 8px 25px;
  text-decoration: none;
  margin-top: 30px;
}

#tabs21 .buttonTab a:is(:hover, :focus) {
  background-color: #b2d8ce;
  color: #252525;
}

@media (min-width: 992px) {
  #tabs21 .buttonTab {
    text-align: end;
  }
}

/* -------------------------------------------- teaser ------------------------------------------ */

#teaser {
  padding: clamp(50px, 10vw, 100px) 0;
  background-color: #b2d8ce;
  color: #252525;
  font-weight: 400;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-size: 1.25rem;
}

#teaser .tabHeadline {
  font-weight: 400;
  font-variant: small-caps;
  margin: 0 0 30px 0;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #252525;
  letter-spacing: 4px;
}

#teaser a {
  display: inline-block;
  background: #45786c;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.875rem;
  border-radius: 10px;
  padding: 8px 25px;
  text-decoration: none;
}

#teaser a:is(:hover, :focus) {
  background: #fff;
  color: #252525;
}

/* --------------------------------------------- maps ------------------------------------------- */

#maps {
  margin-top: clamp(30px, 4vw, 45px);
  margin-bottom: -1px;
}

#maps .row,
#maps .row > div {
  margin: 0;
  padding: 0;
}

#maps iframe,
#maps .iframe-wrapper-manual-enabling {
  display: block;
  width: 100%;
}

#maps .iframe-wrapper-manual-enabling {
  min-width: 100% !important;
}

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

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

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

#footer {
  padding: 30px 0;
  border-top: 3px solid #45786c;
  color: #252525;
  font-size: 1rem;
}

#footer .footerContactTab a {
  position: relative;
}

#footer .footerContactTab .tabHeadline {
  font-variant: small-caps;
  font-size: 1.5rem;
  color: #252525;
  font-weight: 400;
}

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

#footer a:is([href*="tel:"]) {
  color: #252525;
  text-decoration: none;
}

#footer a:is([href*="mailto:"]) {
  color: #45786c;
  text-decoration: underline;
}

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

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

#innerfooter ul {
  padding: 0;
}

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

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

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

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

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

#vernetzt span span {
  display: block;
}

#vernetzt strong {
  color: #45786c;
}

@media (max-width: 991px) {
  #vernetzt {
    margin-top: 20px;
    padding-top: 20px;
  }
}

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

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

#scroll-top:is(:hover, :focus) {
  background-color: #252525;
}

#scroll-top::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;
}
