@import url("https://fonts.verwaltungsportal.de/import/?family=Roboto:300,500,300i,500i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Unna:300,500,300i,500i,700,700i");

html {
  max-width: 1930px;
  margin-left: auto;
  margin-right: auto;
  background: rgb(218, 226, 251);
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  scrollbar-color: #5c6d9d #ffffff;
  scrollbar-width: thin;
}

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

a {
  color: #5c6d9d;
}

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

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

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

#logo {
  display: inline-block;
}

#logo img {
  display: block;
}

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

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

/* burgermenu for tablet */

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

  #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: #5c6d9d;
    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 15px;
  }

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

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

@media (min-width: 768px) and (max-width: 991px) {
  #burgerButton {
    margin-right: 60px;
  }
}

/* menu desktop */

#menu {
  padding: 9px 0;
}

@media (min-width: 992px) {
  #menu {
    background: #ffffff;
    padding: 12px 20px;
    transition: box-shadow 300ms linear;
    border-radius: 10px;
  }

  .is-sticky #menu {
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
  }

  nav.horizontally,
  .sticky-wrapper {
    position: absolute;
    z-index: 56;
    left: 0;
    right: 0;
  }

  header> :is(nav.horizontally, .sticky-wrapper) {
    top: 35px;
  }

  nav.horizontally .navbar-nav {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 15px;
  }

  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: #5c6d9d;
  font-weight: 400;
  text-align: left;
  padding: 10px 35px;
  font-family: "Unna", sans-serif;
  font-size: 1.25rem;
  line-height: 1.2;
  text-decoration: none;
}

nav.horizontally a[class*="toplevel"]::before {
  content: "";
  position: absolute;
  background: url(../img/icon-note-toplevel.png) no-repeat;
  width: 13px;
  height: 16px;
  margin-left: 105%;
  pointer-events: none;
  display: inline-block;
  opacity: 0;
  margin-top: -5px;
}

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

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

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

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 {
  background-color: #ffffff;
  border-left: 4px solid #5c6d9d;
  box-shadow: 3px 3px 10px 0px rgba(0, 0, 0, 0.15);
  -webkit-box-shadow: 3px 3px 10px 0px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 3px 3px 10px 0px rgba(0, 0, 0, 0.15);
  border-radius: 0 10px 10px 0px;
}

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

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

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

  nav.horizontally :is([class*="toplevel"], [class*="secondlevel"])>ul::before {
    content: "";
    position: absolute;
    display: block;
  }

  nav.horizontally [class*="toplevel"]>ul::before {
    height: 30px;
    left: 0;
    right: 0;
    top: -30px;
  }

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

  nav.horizontally [class*="secondlevel"]>ul::before {
    width: 30px;
    top: 0;
    bottom: 0;
    left: -30px;
  }
}

/* secondlevel + thirdlevel */

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

@media (min-width: 992px) {
  nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    text-align: left;
    padding: 7px 20px;
  }
}

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

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

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

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

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

@media (min-width: 768px) {
  .index #headerpic .nivo-controlNav {
    bottom: 130px !important;
  }

  .nivo-controlNav {
    bottom: 60px !important;
  }
}

@media (min-width: 992px) {
  #slider {
    min-height: 200px;
  }

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

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

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

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

.slider-mask {
  display: block;
}

.slider-mask::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  pointer-events: none;
  background: url("../img/welle-1.png") right bottom no-repeat;
  background-size: contain, cover;
  z-index: 50;
}

/* --------------------------------------------- tabs ------------------------------------------- */

#tabs {
  margin-top: 15px;
  row-gap: 15px;
}

@media (min-width: 768px) {
  #tabs {
    margin-top: -120px;
    position: relative;
    z-index: 55;
  }
}

#headerpic .tab {
  font-size: 1rem;
  background: #5c6d9d;
  min-height: 100%;
  position: relative;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 40px) clamp(20px, 3vw, 20px);
  color: #ffffff;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  line-height: 1.3;
}

#headerpic .tabHeadline {
  margin: 0 0 5px 0;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 3.125rem);
  text-transform: none;
  word-wrap: break-word;
}

#headerpic .tab a {
  font-family: "Unna", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  padding-right: 15px;
  position: relative;
}

#headerpic .tab a::after,
#headerpic .tab a::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  border-radius: 1px;
}

#headerpic .tab a::after {
  margin-top: -5px;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: rotate(45deg);
}

#headerpic .tab a::before {
  margin-top: -2px;
  display: inline-block;
  height: 2px;
  background: #ffffff;
  width: 9px;
}

#headerpic .tab a+a {
  margin-left: 15px;
}

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

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

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

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

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

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

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

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

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

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

/* #region ----------------------------------- Parallax ------------------------------------------- */

#parallax {
  background-color: #122d42;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 400px;
  margin-top: 30px;
  position: relative;
}

#parallax::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  pointer-events: none;
  background: url("../img/welle-2.png") right top no-repeat;
  background-size: contain, cover;
  z-index: 50;
}

#parallax::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  pointer-events: none;
  background: url("../img/welle-3.png") right bottom no-repeat;
  background-size: contain, cover;
  z-index: 50;
}

/* -------------------------------------------- offer ------------------------------------------- */
#offer {
  position: relative;
  margin-bottom: 110px;
  font-size: 1rem;
  padding-top: 55px;
  padding-bottom: 55px;
}

@media (max-width: 991px) {
  #offer {
    margin-bottom: 80px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

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

#offer .firstHeadline {
  color: #5c6d9d;
  font-size: 1.875rem;
  margin-top: 15px;
}

#offer .tabHeadline {
  color: #5c6d9d;
}

#offer .tab {
  padding-top: 90px;
  position: relative;
}

#offer .tab::before {
  content: "";
  display: block;
  width: 68px;
  height: 62px;
  position: absolute;
  left: calc(50% - 34px);
  top: 10px;
  background: url("../img/icon-note-stats.png") center no-repeat;
}

#offer .tab2::before {
  background: url("../img/icon-note-stats.png") center no-repeat;
}

#offer .tab3::before {
  background: url("../img/icon-note-stats.png") center no-repeat;
}

#offer .tab4::before {
  background: url("../img/icon-note-stats.png") center no-repeat;
}

#offer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: -100px;
  left: 0;
  display: block;
  pointer-events: none;
  background: url("../img/welle-4-trenner.png") right bottom no-repeat;
  background-size: contain, cover;
  z-index: 50;
}

/* ----------------------------------------------- sponsorenTab ----------------------------------------------- */

#sponsorenTab {
  padding: 30px 0;
  background: #ffffff;
  line-height: 1;
}

.sponsoren {
  min-height: 90px;
}

@media (min-width: 767px) {
  .sponsoren img {
    border: none;
    max-width: none !important;
    height: auto;
  }
}

@media (min-width: 1200px) {
  #sponsorenTab {
    padding-left: 50px;
  }
}

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

footer {
  background-color: #5c6d9d;
  padding: clamp(20px, 3vw, 45px) 0px;
  color: #ffffff;
  font-size: 1rem;
  position: relative;
}

@media (max-width: 991px) {
  footer>.row>.col-xs-12+* {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    padding-top: 20px;
  }
}

footer a {
  color: #ffffff;
}

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

#innerfooter {
  line-height: 1.8;
}

#innerfooter ul {
  padding: 0;
}

#innerfooter a {
  text-decoration: none;
  display: inline-block;
  font-weight: 300;
}

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

#innerfooter a::before {
  content: "";
  position: absolute;
  background: url(../img/icon-note-fz.png) no-repeat;
  width: 13px;
  height: 16px;
  margin-left: -20px;
  pointer-events: none;
  display: inline-block;
  opacity: 0;
  margin-top: 5px;
}

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

footer .footerTab a {
  text-decoration: underline;
}

main {
  background: url("../img/welle-5.png") no-repeat bottom center / 100% auto;
}

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

#vernetzt {
  gap: 12px;
  text-align: right;
  font-size: 0.8125rem;
  color: #ffffff;
  line-height: 1.3;
  font-weight: 300;
  text-decoration: none;
}

#vernetzt span span {
  display: block;
}