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

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

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

a {
  color: #24536d;
}

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

#content a {
  text-decoration: underline;
}
#contnt a:is(:hover, :focus) {
  text-decoration: none;
}

b,
strong {
  font-weight: 400;
}

a:focus-visible,
button:focus-visible,
form:focus-visible,
input:focus-visible {
  outline: 3px solid #ff0000 !important;
}

#overflow {
  overflow: clip;
  position: relative;
}
/* -------------------------------------------- logo -------------------------------------------- */

#logo {
  display: inline-block;
  border: solid 4px #fff;
}
@media (min-width: 992px) {
  #logo {
    display: inline-block;
    border: solid 4px #fff;
    box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.15);
    top: -45px;
    transition: all 300ms linear;
    max-width: 210px;
  }
  .is-sticky #logo {
    max-width: 43%;
  }
}

#logo img {
  display: block;
  transition: all 300ms linear;
}

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

@media (min-width: 992px) {
  #logo {
    position: absolute;
  }
}

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

nav.horizontally {
  padding-top: clamp(05px, 2vw, 19px);
  padding-bottom: clamp(05px, 2vw, 19px);
}

/* burgermenu for tablet */

@media (max-width: 991px) {
  nav.horizontally {
    padding: 12px 0;
    background-color: #24536d;
  }
  #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: #24536d;
    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: #24536d;
    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: 5px;
  }
}

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
    position: relative;
    z-index: 100;
    background: #24536d;
    border-top: solid 5px #fff;
  }

  nav.horizontally .navbar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  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:focus-within, :hover) > 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:is(:hover, :focus-within) > ul {
    z-index: 1003;
  }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
  color: #ffffff;
  font-weight: 400;
  text-align: left;
  padding: 12px 35px;
  font-family: "Montserrat", sans-serif;
  border: 2px solid transparent;
  border-radius: 15px;
  border-bottom-left-radius: 0px;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.2;
  text-decoration: none;
  transition: border 300ms linear;
}

@media (min-width: 992px) {
  nav.horizontally a[class*="toplevel"] {
    padding: 8px 15px 10px 15px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  nav.horizontally li[class*="toplevel"] + li {
    margin-left: 5px;
  }
}
@media (max-width: 991px) {
  nav.horizontally a[class*="toplevel"] {
    padding-left: 20px;
  }
  nav.horizontally a[class*="toplevel"] {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
  }
}

@media (min-width: 1200px) {
    nav.horizontally > .row{
max-width: 1400px;
    width: 100%;
  }
}
/* 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: #fff;
  border-color: #fff;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  padding: 18px;
  border-radius: 4px;
  background-color: #ffffff;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  border-top-left-radius: 0px;
}

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

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

  nav.horizontally [class*="toplevel"] 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::before {
    width: 32px;
    top: 0;
    bottom: 0;
    left: -32px;
  }
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  color: #272727;
  font-weight: 400;
  text-align: left;
  padding: 8px 6px;
  background-color: #ffffff;
  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"]) {
    padding-left: 30px;
  }

  nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
  }
}

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

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

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

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

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

  #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;
  background: url("../img/slider-mask.png") center bottom -1px / 100% auto no-repeat;
}

@media (min-width: 992px) {
  .theme-nivo .nivo-controlNav {
    text-align: center;
    position: absolute;
    bottom: unset;
    top: 10px;
    z-index: 50;
    margin: 0;
    padding: 0;
    width: 100%;
  }
}
/* ------------------------------------------------ content ----------------------------------------------- */

#content {
  text-align: left;
  position: relative;
  hyphens: auto;
  z-index: 6;
}

#contentBereich {
  background-color: #ffffff;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  position: relative;
  box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.1);
  margin-top: -90px;
  padding: 40px 60px 60px 60px;
  margin-bottom: 60px;
}

@media (min-width: 1200px) {
  #content > .row::before {
    content: "";
    position: absolute;
    background: url(../img/anker.png) no-repeat;
    width: 137px;
    height: 146px;
    bottom: -10px;
    pointer-events: none;
    left: -65px;
    display: block;
  }
  #content > .row::after {
    content: "";
    position: absolute;
    background: url(../img/moewen.png) no-repeat;
    width: 175px;
    height: 128px;
    z-index: 13;
    pointer-events: none;
    right: -95px;
    display: block;
    top: 0;
  }
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
  color: #24536d;
  font-weight: normal;
  line-height: 1.2;
  font-family: "Caveat", cursive;
}

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

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

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

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
  font-size: clamp(1.5rem, 4vw, 2.1875rem);
}

h5,
.h5,
.legacy_h5 {
  font-size: clamp(1.375rem, 3.5vw, 1.875rem);
}

h6,
.h6,
.legacy_h6 {
  font-size: clamp(1.25rem, 3vw, 1.5625rem);
}

/* ----------------------------------------------- footer ----------------------------------------------- */
#kontaktBereich {
  padding: 20px 0 60px 0;
  background: #e9f3f4;
  position: relative;
  hyphens: auto;
}

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

#kontaktBereich::after {
  content: "";
  position: absolute;
  background: url(../img/welle.png) no-repeat;
  width: 100%;
  height: 174px;
  top: -170px;

  pointer-events: none;
  left: 0;
  display: block;
}

#footer .footerContactTab a {
  position: relative;
}

.footerContactTab .tabHeadline {
  font-weight: 400;
  font-size: clamp(1.875rem, 5vw, 2.25rem);
}

.footerContactTab :is(b, strong) {
  font-weight: 600;
}

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

.footerContactTab 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,
    #24536d;
  top: 50%;
  left: 0;
  border-radius: 50%;
  transform: translateY(-50%);
}

.footerContactTab a:is([href*="mailto:"]) {
  text-decoration: underline;
}
.footerContactTab a:is([href*="mailto:"]):is(:hover, :focus) {
  text-decoration: none;
}

.footerContactTab a[href*="tel:"] {
  color: #272727;
}

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

.map :is(iframe, .iframe-wrapper-manual-enabling) {
  min-width: 100% !important;
  width: 100% !important;
  display: block;
  border-radius: 15px;
}

.map {
  border-radius: 15px;
  border: solid 2px #cdd7d7;
}

.footerButtons a {
  border: solid 2px #99b3c0;
  border-radius: 15px;
  border-top-left-radius: 0px;
  padding: 8px 15px 10px 15px;
  color: #000000;
  font-size: 1.125rem;
  background-color: transparent;
  transition: all 300ms linear;
  display: block;
  text-align: center;
}

.footerButtons {
  padding-right: 30px;
}
.footerButtons a + a {
  margin-top: 20px;
}

.footerButtons a:is(:hover, :focus) {
  background-color: #a4cecd;
  border-color: #24526c;
  text-decoration: none;
  border-radius: 15px;
  border-bottom-right-radius: 0px;
}
/* ----------------------------------------------- @5f footer ----------------------------------------------- */

#f5 {
  padding-top: 18px;
  padding-bottom: 18px;
  background-color: #24536d;
  hyphens: auto;
}

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

@media (max-width: 767px) {
  #innerfooter {
    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: 12px;
  text-align: right;
  font-size: 0.875rem;
  color: #ffffff;
  line-height: 1.3;
  text-decoration: none;
}

#vernetzt span span {
  display: block;
}

/* --------------------------------------------- Kontrast -------------------------------------------- */

.contrast_dark_font #burgerButton::before,
.contrast_dark_font #burgerButton::after,
.contrast_dark_font #burgerButtonInner,
.contrast_light_font .dropdown-toggle-button {
  background-color: #000 !important;
}
.contrast_light_font #burgerButton::before,
.contrast_light_font #burgerButton::after,
.contrast_light_font #burgerButtonInner {
  background-color: #fff !important;
}

.contrast_light_font #f5 {
  border-top: solid 1px #fff;
}

.contrast_dark_font #f5 {
  border-top: solid 1px #000;
}
