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

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

body {
  font-family: "Jost", sans-serif;
  color: #444444;
  background: #ffffff;
  font-size: 1rem;
  /* 1rem = 16px */
  line-height: 1.5;
  isolation: isolate;
}

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

a {
  color: #7a0333;
}

a:hover,
a:focus {
  color: #7a0333;
  text-decoration: underline;
}

.linkUnderline a:not(.has-image, .shareButtonLink) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration 300ms;
}

.linkUnderline a:not(.has-image, .shareButtonLink):is(:hover, :focus) {
  text-decoration-color: transparent;
}

b,
strong {
  font-weight: 600;
}

.row,
.compact,
._op-container .container {
  max-width: 1600px;
  width: 100%;
}

#over {
  overflow: hidden;
  position: relative;
}

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

.hrLayStyle {
  margin-top: 10px;
}

#logo {
  display: inline-block;
}

#logo img {
  display: block;
}

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

@media (min-width: 991px) {
  #logo {
    position: absolute;
    top: 0px;
    right: 15px;
    max-width: 100%;
    transition: max-width 200ms linear;
  }

  .is-sticky #logo {
    max-width: 200px;
  }
}

@media (min-width: 992px) {
  #logo {
    background-color: #99c1da;

    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.08);
    border-bottom-left-radius: 69px;
    border-bottom-right-radius: 69px;
    padding: 24px 37px;
    padding: 15px 25px;
  }
}

/* -------------------------------------------- @nav1 Navigation ------------------------------------------- */

/* --------------------------------------- navigation --------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
  #menu {
    padding: 10px 0;
    position: static !important;
    background-color: #ffffff;
    box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.15);
  }

  #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: #0869a1;
    border-radius: 2px;
    position: absolute;
    width: 40px;
    height: 3px;
    left: 10px;
    transition:
      transform 200ms linear,
      opacity 200ms linear;
  }

  .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 {
    background-color: #fff !important;
  }

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

  #burgerButton:after {
    top: 32px;
  }

  #burgerButton:before,
  #burgerButton:after {
    content: "";
    display: block;
  }

  .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.collapse.in {
    left: 0;
    opacity: 1;
    pointer-events: auto;
  }

  .navbar-header {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 101;
  }

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

  .dropdown-toggle-button-wrapper {
    top: 7px;
  }

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

/* menu desktop */

@media (min-width: 992px) {
  #menu {
    background-color: #ffffff;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
  }

  .is-sticky #menu {
    left: auto !important;
  }

  #menu > .row {
    width: 100%;
    max-width: 1600px;
  }

  nav.horizontally .navbar-nav {
    display: flex;
    justify-content: flex-end;
    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 {
    position: absolute;
    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: #fff;
  font-weight: 500;
  text-align: left;
  padding: 15px 35px 15px 15px;
  position: relative;
  font-size: 1.375rem;
  line-height: 1.2;
  text-decoration: none;
  background-color: #0869a1;
  border: 2px solid #0869a1;
}

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

@media (min-width: 992px) {
  nav.horizontally a[class*="toplevel"] {
    text-align: center;
    padding: 15px 15px;
  }

  .navbar-default .navbar-nav>li+li {
        margin-left: 10px;
  }
}

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

/* -------------------------------------- secondlevel + thirdlevel dropdown-box -------------------------------------- */

nav.horizontally [class*="toplevel"] ul,
nav.horizontally [class*="secondlevel"] > ul {
  background: #fff;
  box-shadow: 0px 0px 30.08px 1.92px rgba(0, 0, 0, 0.09);
}

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

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

  nav.horizontally [class*="toplevel"] > ul {
    left: 50%;
    transform: translate(-50%, 0);
  }

  nav.horizontally [class*="toplevel"] > ul::after {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    top: -20px;
    margin-left: -20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 20px 0 20px;
    border-color: #0869a1 transparent transparent transparent;
    transition: top 150ms linear;
  }

  nav.horizontally li[class*="toplevel"]:hover > ul::after {
    top: 0;
  }

  nav.horizontally [class*="secondlevel"] > ul {
    margin-top: -30px;
    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: #0869a1;
  font-weight: 400;
  text-align: left;
  padding: 8px 25px;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
}

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

/* ------------------------------------------ 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: #0869a1;
  color: #fff;
}

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

@media (min-width: 992px) {
  #headerpic a.nivo-prevNav {
    left: 65px;
  }

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

#headerpic {
  margin: 0 auto;
  position: relative;
}

#headerBox {
  background: #e8f2f8 url(../img/welle-header.png) no-repeat;
  background-position: bottom center;
  background-size: contain;
  width: 100%;
  isolation: isolate;
}

#slider {
  overflow: hidden;
  position: relative;
  height: 31.3vw;
}

body:not(.index) #slider {
  height: 23.5vw;
}

@media (min-width: 992px) {
  #headerpic a.nivo-prevNav {
    left: 65px;
  }

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

@media (max-width: 991px) {
  #slider-onebanner,
  #slider .nivo-box > div,
  #slider .nivo-slice > div,
  #slider .nivo-main-image,
  #slider div[style*="background-size"] {
    background-attachment: unset !important;
    background-size: 100% auto !important;
  }
}

.slider-mask {
  display: none;
}

/* -------------------------------------------- 3nw news--------------------------------------------- */

#zitat {
  padding-block: 60px;
  font-size: 1.875rem;
  color: #444444;
  padding-top: 130px;
}

#zitat :is(b, strong) {
  color: #203864;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.125rem;
}

@media (min-width: 992px) {
  #zitat::after {
    content: "";
    position: absolute;
    background: url(../img/deko-zitat-v2.png);
    width: 708px;
    height: 323px;
    left: 50%;
    top: 57%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
  }
}

#logoText {
  text-align: center;
  font-size: clamp(1.875rem, 3vw, 2.8125rem);
  font-style: italic;
  font-weight: 700;
  color: #203864;
  line-height: 1.1;
  margin-top: 30px;
}
/* ------------------------------------------------ content ----------------------------------------------- */

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

#tickerWrapper {
  margin-top: 30px;
}

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

.h4link a:link,
.h4link a:hover,
.h4link a:focus,
.h4link a:visited,
H6,
H5,
H4,
H3,
H2,
H1 {
  color: #0869a1;
  font-weight: 700;
  font-style: italic;
  line-height: 1.2;
  font-family: "Jost", sans-serif;
}

h1,
.h1,
.legacy_h1 {
  font-size: 2.3rem;
}

#content h1 {
  font-style: italic;
}

@media (min-width: 768px) {
  h1,
  .h1,
  .legacy_h1 {
    font-size: 2.8125rem;
  }
}

h2,
.h2,
.legacy_h2 {
  font-size: 1.6rem;
}

@media (min-width: 768px) {
  h2,
  .h2,
  .legacy_h2 {
    font-size: 1.7rem;
  }
}

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

h4,
.h4,
.h4link a:link,
.h4link a:hover,
.h4link a:focus,
.h4link a:visited,
.legacy_h4 {
  font-size: 1.5rem;
}

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

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

#zitatlinks,
#zitatmandate {
  border: 1px solid #2e3c48;
}

.buttonStyle a {
  background: #0869a1;
  color: #fff;
  display: inline-block;
  font-weight: 1.0625rem;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 20px;
  text-decoration: none !important;
  transition: background, color, 300ms !important;
  margin-top: 30px;
}

.buttonStyle a:is(:hover, :focus) {
  background: #fff;
  color: #0869a1;
}

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

#footerTop {
  font-size: 1rem;
}

footer .iframeTab iframe,
footer .iframeTab .iframe-wrapper-manual-enabling {
  width: 100% !important;
  min-height: 240px;
  height: 240px !important;
  min-width: 100% !important;
}

footer {
  background-color: #e8f2f8;
  padding-top: 130px;
  padding-bottom: 30px;
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

footer::before {
  content: "";
  background: url(../img/footer-mask.png) no-repeat top center / 100% auto;
  width: 100%;
  height: 126px;
  pointer-events: none;
  position: absolute;
  top: -1px;
  left: 0px;
}

#footerBottom hr {
  background: #203864;
  height: 1px;
  border: none;
  opacity: 1;
}

footer :is(h1, h2, h3, h4, h5, h6) {
  text-transform: uppercase;
  font-style: italic;
  font-size: 1.5625rem;
}

@media (max-width: 767px) {
  footer .row > .col-xs-12:not(:first-child)::before {
    background: #000000;
    content: " ";
    height: 1px;
    width: 100%;
    display: block;
    margin: 25px 0;
    opacity: 0.2;
  }
}

#innerfooter ul {
  padding: 0;
}

#innerfooter li {
  display: inline-block;
}

#innerfooter a {
  color: #444444;
  text-decoration: none;
  display: inline-block;
  font-weight: 400;
  font-size: 1rem;
}

#innerfooter a:hover,
#innerfooter a:focus {
  text-decoration: underline;
  color: #7a0333;
}

#innerfooter li + li::before {
  content: "•";
  margin: 0 15px;
  color: #444444;
}

@media (min-width: 1200px) {
  #innerfooter li + li::before {
    margin: 0 25px;
  }
}
