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

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

body {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  color: #212121;
  background: #ffffff;
  font-size: clamp(1rem, 2vw, 1.125rem);
  /* 1rem = 16px */
  line-height: 1.5;
}

a {
  color: #2a7b7e;
}

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

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

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

#logo {
  display: inline-block;
}

#logo img {
  display: block;
}

@media (max-width: 991px) {
  #logo img {
    max-width: calc(100vw - 120px);
    width: 100%;
  }
}

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

nav.horizontally {
  padding: 14px 0;
  background: #ffffff;
  border-bottom: 4px solid #2a7b7e;
}

/* burgermenu for tablet */

@media (max-width: 991px) {
  nav.horizontally {
    position: static !important;
  }

  #burgerButton {
    font-size: 0;
    display: block;
    height: 50px;
    width: 60px;
    border-radius: 2px;
    padding: 6px 8px;
    cursor: pointer;
    background: #ffffff;
    border: none !important;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
  }

  #burgerButton::before,
  #burgerButton::after,
  #burgerButtonInner {
    background-color: #2a7b7e;
    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: 7px;
  }

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

/* menu desktop */

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

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

@media (min-width: 1200px) {
  nav.horizontally .navbar-nav {
    padding-left: 30px;
  }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
  color: #212121;
  font-weight: 400;
  text-align: left;
  padding: 12px 15px;
  position: relative;
  font-size: 1.25rem;
  line-height: 1.2;
  text-decoration: none;
  font-family: "Merriweather", sans-serif;
}

@media (max-width: 991px) {
  nav.horizontally li[class*="toplevel"] {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav.horizontally a[class*="toplevel"].dropdown-toggle {
    padding-right: 35px;
  }
}

@media (min-width: 992px) {
  nav.horizontally li[class*="toplevel"] + li {
    margin-left: 20px;
  }

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

nav.horizontally a[class*="toplevel"]::before {
  content: "";
  width: 0;
  height: 2px;
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: #2a7b7e;
  transition: width 300ms linear;
}

@media (min-width: 992px) {
  nav.horizontally a[class*="toplevel"]::before {
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
  }
}

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

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

/* secondlevel + thirdlevel dropdown-box */

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

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

@media (min-width: 992px) {
  nav.horizontally [class*="toplevel"] ul {
    padding: 4px 0;
  }

  nav.horizontally [class*="toplevel"] > ul {
    left: -15px;
    margin-top: 40px;
  }

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

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

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

/* secondlevel + thirdlevel */

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

@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: #2a7b7e;
  color: #fff;
}

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

/* -------------------------------------------- banner ------------------------------------------ */

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

@media (min-width: 992px) {
  body.index #slider {
    max-height: clamp(450px, 62vw, 730px);
  }

  #headerpic a.nivo-prevNav {
    left: 65px;
  }

  #headerpic a.nivo-nextNav {
    right: 65px;
  }
}

#headerpic {
  padding: 0;
  position: relative;
  background: #212020;
}

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

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

.slider-mask {
  display: block;
  background: linear-gradient(90deg, rgba(33, 32, 32, 0.9) 0%, rgba(33, 32, 32, 0) 100%);
}

/* -------------------------------------------- bannerOverlay ------------------------------------------ */

@media (max-width: 991px) {
  #bannerOverlay {
    padding: 30px 0;
    background: #2a7b7e;
  }
}

#bannerOverlay .tab {
  pointer-events: all;
  font-family: "Merriweather", sans-serif;
  font-weight: 700;
  color: #f0f0f0;
  line-height: 1;
  font-size: clamp(3.75rem, 6vw, 7.063rem);
  font-style: italic;
  margin-top: 48px !important;
}

#bannerOverlay .tab :is(h1, h2, h3, h4, h5, h6, a) {
  color: #f0f0f0;
}

@media (min-width: 992px) {
  #bannerOverlay {
    position: absolute;
    pointer-events: none;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    z-index: 12;
  }
}

/* -------------------------------------------- scrollBox ------------------------------------------ */

@media (min-width: 992px) {
  #scrollBox {
    position: absolute;
    pointer-events: none;
    left: 0;
    right: 0;
    bottom: 135px;
    z-index: 12;
    text-align: center;
  }

  #scrollBottomBtn {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    pointer-events: all;
  }

  #scrollBottomBtn:hover,
  #scrollBottomBtn:focus {
    color: #fbf0df;
  }

  #scrollBottomBtn::after {
    content: "";
    position: absolute;
    bottom: -70px;
    left: 0;
    right: 0;
    margin: auto;
    width: 44px;
    height: 44px;
    border-radius: 100%;
    background: url("../img/pfeil.png") center no-repeat, #2a7b7e;
    transition: background 300ms linear;
  }

  #scrollBottomBtn:hover::after,
  #scrollBottomBtn:focus::after {
    background: url("../img/pfeil-dunkel.png") center no-repeat, #dfebec;
  }
}

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

#tabs {
  padding: clamp(40px, 4vw, 65px) 0;
  background: #dfebec;
}

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

#tabs img {
  padding: 14px;
  border: 1px solid #2f2724;
  display: block;
  width: 100% !important;
  height: auto !important;
  transition: border 300ms linear;
}

@media (min-width: 992px) {
  #tabs .tab:is(:hover, :focus-within) img {
    border-color: transparent;
  }
}

#tabs :is(h1, h2, h3, h4, h5, h6) {
  margin-bottom: 8px;
  font-size: 1.5625rem;
  transition: color 300ms linear;
}

@media (min-width: 992px) {
  #tabs .tab:is(:not(:hover, :focus-within)) :is(h1, h2, h3, h4, h5, h6) {
    color: #226567;
  }
}

#tabs .tab {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  height: 100%;
  min-height: 100%;
  position: relative;
  z-index: 0;
  font-size: 1rem;
  bottom: 0;
  backface-visibility: hidden;
  transition: transform 300ms linear, bottom 300ms linear;
}

@media (min-width: 992px) {
  #tabs .tab:is(:hover, :focus-within) {
    transform: scale(1.15);
    z-index: 1;
    bottom: 10px;
  }

  #tabs .tab::after {
    content: "";
    display: block;
    position: absolute;
    top: -5px;
    right: -5px;
    bottom: -22px;
    left: -5px;
    background: #ffffff;
    opacity: 0;
    z-index: -1;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
    transition: opacity 300ms linear;
  }

  #tabs .tab:is(:hover, :focus-within)::after {
    opacity: 1;
  }
}

#tabs .tab a {
  text-transform: uppercase;
  color: #2f2724;
  font-size: 1rem;
  position: relative;
  padding: 8px 10px;
  display: inline-block;
  margin-top: 15px;
  text-decoration: none;
}

#tabs .tab a::after {
  content: "";
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid #2f2724;
  border-top: transparent;
  pointer-events: none;
  transition: top 300ms linear, border 300ms linear;
}

#tabs .tab a:is(:hover, :focus)::after {
  top: 0;
  border: 1px solid #2a7b7e;
}

#tabs .tab a:is(:hover, :focus) {
  color: #2a7b7e;
}

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

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

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

/* --------------------------------------------- slogan ----------------------------------------- */

#slogan {
  color: #f0f0f0;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  padding: clamp(50px, 9vw, 105px) 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-color: #2a160b;
}

#slogan :is(h1, h2, h3, h4, h5, h6) {
  font-size: clamp(1.75rem, 3vw, 3rem);
  color: #f0f0f0;
}

#slogan a {
  text-decoration: none;
  text-transform: uppercase;
  display: inline-block;
  color: #fafafa;
  font-size: 1rem;
  padding: 10px 25px;
  border: 1px solid #fafafa;
}

#slogan a:is(:hover, :focus) {
  background: #fafafa;
  color: #2a7b7e;
}

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

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

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

h2,
.h2,
.legacy_h2 {
  font-size: clamp(1.75rem, 2vw, 2.1875rem);
}

h3,
.h3,
.legacy_h3 {
  font-size: clamp(1.625rem, 2vw, 1.875rem);
}

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

/* --------------------------------------------- contactFooter ---------------------------------------- */

#contactFooter {
  color: #212121;
  font-size: 1rem;
  padding: clamp(30px, 4vw, 60px) 0 clamp(30px, 4vw, 45px) 0;
  background: #dfebec;
}

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

#contactFooter .tabHeadline {
  font-size: 1.438rem;
  color: #226567;
  font-style: italic;
}

#contactFooter .footerTab a {
  color: #226567;
}
#contactFooter .footerTab a:is(:hover, :focus) {
  color: #226567;
  text-decoration: underline;
}

/* --------------------------------------------- innerfooter ----------------------------------------- */

#innerfooter ul {
  padding: 0;
  line-height: 2;
}

#innerfooter li {
  display: block;
}

#innerfooter a {
  color: #212121;
  text-decoration: none;
  padding-left: 20px;
  text-transform: uppercase;
  position: relative;
}

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

#innerfooter a::before {
  content: "-";
  position: absolute;
  pointer-events: none;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  line-height: 1.2;
}

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

#vernetzt {
  gap: 12px;
  text-align: right;
  color: #212121;
  line-height: 1.3;
  font-weight: 400;
  font-size: 0.9375rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: end;
  align-content: end;
}
@media (max-width: 768px) {
  #vernetzt {
    text-align: left;
    justify-content: left;
    align-items: baseline;
    align-content: baseline;
  }
}

#vernetzt span span {
  display: block;
}

#vernetzt b {
  font-weight: 400;
  color: #226567;
}
#vernetzt b:is(:hover, :focus) {
  font-weight: 400;
  color: #226567;
  text-decoration: underline;
}
