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

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

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

a {
  color: #fff;
  font-weight: 700;
}

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

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

b,
strong {
  font-weight: 700;
}

#overflow {
  overflow: clip;
  position: relative;
}

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

#logo {
  display: inline-block;
}

#logo img {
  display: block;
  background-color: #fff;
  padding: 5px;
  border-radius: 50%;
}

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

@media (min-width: 992px) {
  #logo {
    z-index: 12;
    margin-top: -13px;
  }
  #logo img {
    position: absolute;
  }
  .tabLogoName.nameRechts {
    padding-left: 180px;
  }
  .tabLogoName.nameLinks {
    padding-right: 12px;
  }
  #logoBereich {
    padding-right: 65px;
  }
}

#logoBereich {
  background-color: #fff;
  padding: 19px 0;
  padding-right: 55px;
}

.tabLogoName {
  font-weight: 400;
  color: #064d59;
  font-size: clamp(1.25rem, 4vw, 2rem);
  hyphens: auto;
  line-height: 1;
}

@media (max-width: 991px) {
  #logoBereich > .row {
    row-gap: 30px;
  }

  #logoBereich {
    padding: 5px 0;
  }
}
/* #region ---------------------------------- navigation ---------------------------------------- */

/* 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: #064d59;
    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: #064d59;
    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: 4px;
  }
  .dropdown-toggle-button {
    background-color: #064d59;
  }
}

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
    background-color: #064d59;
    padding: 3px 0;
  }

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

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

  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 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 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: 10px 15px 15px 15px;
  position: relative;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
}

@media (max-width: 991px) {
  nav.horizontally a[class*="toplevel"].dropdown-toggle {
    padding-right: 35px;
  }
  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: 992px) {
  nav.horizontally li[class*="toplevel"] + li {
    margin-left: 20px;
  }

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

nav.horizontally a[class*="toplevel"]::before {
  content: "";
  width: 20px;
  height: 9px;
  display: block;
  position: absolute;
  left: 30px;
  bottom: 0px;
  border-top-left-radius: 90px;
  border-top-right-radius: 90px;
  background-color: #ffffff;
  opacity: 0;
  transition: opacity 300ms linear;
}

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

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

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;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

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

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

  nav.horizontally [class*="toplevel"] > ul {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    left: 50%;
    transform: translate(-50%, 0);
    margin-top: -3px;
  }

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

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

/* secondlevel + thirdlevel */

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

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

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

  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: #064d59;
  color: #fff;
}

/* #endregion ------------------------------- navigation ---------------------------------------- */
/* #endregion ------------------------------- language ---------------------------------------- */
@media (min-width: 992px) {
  .language {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
.language img {
  transition: all 300ms linear;
}
.language img:is(:hover, :focus) {
  transform: scale(1.2);
}

.language .activeLang img {
  border: solid 4px #fff;
  border-radius: 9px;
}
/* -------------------------------------------- banner ------------------------------------------ */

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

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

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

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

#content {
  text-align: left;
  padding-bottom: 30px;
  padding-top: 30px;
}

@media (min-width: 992px) {
  #content {
    padding-bottom: 60px;
    padding-top: 60px;
  }
}

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

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

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

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

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

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

h5,
.h5,
.legacy_h5 {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
}

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

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

#footer {
  background-color: #064d59;
  padding: clamp(20px, 4vw, 37px) 0;
  color: #ffffff;
  hyphens: auto;
}

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

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

@media (min-width: 992px) {
  #footer {
    font-size: 1rem;
  }
}

#footer a:not(#vernetzt) {
  color: #fff;
  text-decoration: underline;
  font-weight: 400;
}

#footer .footerKontakt {
  line-height: 1.3;
}

#footer a:not(#vernetzt):is(:hover, :focus) {
  text-decoration: none;
}

#footer .tabHeadline {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 15px;
}

#innerfooter {
  background-color: #fff;
  padding-top: 13px;
  padding-bottom: 13px;
  font-size: 1rem;
}

#innerfooter ul {
  padding: 0;
}

#innerfooter li {
  display: block;
}

#innerfooter a {
  color: #064d59;
  text-decoration: none;
  font-weight: 400;
}

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

@media (min-width: 576px) {
  #innerfooter li + li::before {
    content: "•";
    margin: 0 clamp(15px, 2vw, 25px);
    color: #064d59;
  }

  #innerfooter li {
    display: inline-block;
  }
}

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

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

#vernetzt {
  gap: 10px;
  text-align: right;
  font-size: 0.875rem;
  color: #ffffff;
  line-height: 1.4;
  font-weight: 400;
  text-decoration: none;
}
@media (min-width: 992px) {
  #vernetzt {
    padding-top: 40px;
  }
}

#vernetzt span span {
  display: block;
}

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

.contrast_light_font nav.horizontally {
  border-bottom: solid 1px #fff;
}

.contrast_light_font #footer,
.contrast_light_font #innerfooter {
  border-top: solid 1px #fff;
}

.contrast_dark_font #footer,
.contrast_dark_font #innerfooter {
  border-top: solid 1px #000;
}

.contrast_dark_font nav.horizontally {
  border-bottom: solid 1px #000;
}
