@import url("https://fonts.verwaltungsportal.de/import/?family=Montserrat:400,500,600,700,400i,500i,600i,700i");
html {
  max-width: 1930px;
  margin-left: auto;
  margin-right: auto;
  background: #c7e4f1;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  scrollbar-color: #007db5 #ffffff;
  scrollbar-width: thin;
}

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

a {
  color: #225e80;
}

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

b,
strong {
  font-weight: 700;
}

/* #region ----------------------------------- topbar ------------------------------------------- */

#topbar {
  color: #ffffff;
  background: #225e80;
}

:is(#style, #search) h2 {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 10px 0 0;
  width: auto;
  line-height: inherit;
}
#topbar a {
  color: #ffffff;
  text-decoration: underline;
}

#social {
  text-align: right;
  padding-top: 8px;
  padding-bottom: 3px;
}
/* #endregion -------------------------------- topbar ------------------------------------------- */

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

#logo {
  display: inline-block;
  background-color: #fff;
  padding: 20px 15px;
  border-radius: 0px 0px 40px 40px;
  box-shadow: 0px 0px 20px 0px rgba(11, 31, 42, 0.1);
}

#logo img {
  display: block;
}

@media (min-width: 992px) {
  #logo {
    transition: top 500ms linear, max-width 500ms linear;
    position: absolute;
    z-index: 20;
    top: -82px;
  }
  .is-sticky #logo {
    max-width: 145px;
    top: -52px;
  }
}

@media (max-width: 991px) {
  #logo img {
    max-width: 100px;
    width: 100%;
  }
  #logo {
    margin-top: -38px;
    margin-bottom: -40px;
  }
}

/* #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: #225e80;
    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: 64px;
    right: 15px;
    z-index: 101;
  }

  .is-sticky .navbar-header {
    top: 15px;
  }

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

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

/* menu desktop */

@media (min-width: 992px) {
  .sticky-wrapper {
    top: 0;
    left: 0;
    right: 0;
  }
  .is-sticky #menu {
    left: auto !important;
    background: #fff;
    box-shadow: 0 20px 40px 0 rgba(82, 71, 47, 0.2);
  }

  nav.horizontally {
    background: rgba(255, 255, 255, 0.94);
    padding: 15px 0px 10px 0px;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.1);
    transition: padding 200ms linear;
  }

  .is-sticky nav.horizontally {
    padding: 10px 0;
  }

  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, :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: #225e80;
  font-weight: 700;
  text-align: left;
  padding: 12px 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 li[class*="toplevel"] + li {
    border-top: 1px solid rgba(46, 60, 72, 0.2);
  }
}

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

  nav.horizontally li[class*="toplevel"] + li {
    margin-left: 15px;
  }
}

/* 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: #225e80;
  background-image: url(../img/navi-aktiv-maske.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

@media (max-width: 991px) {
  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) {
    background-position: 190px;
  }
}
/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  background-color: #ffffff;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

@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 {
    left: 50%;
    transform: translate(-50%);
    margin-top: 42px;
  }

  .is-sticky nav.horizontally [class*="toplevel"] > ul {
    margin-top: 38px;
  }

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

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

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

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

/* secondlevel + thirdlevel */

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

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

  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: #dee7ec;
  color: #225e80;
}

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

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

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

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

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

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

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

.slider-mask {
  display: none;
}

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

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

/* #region -------------------------------------- offer ----------------------------------------- */

#offer {
  position: relative;
  z-index: 1;
}

#offer-tab {
  position: relative;
  padding: clamp(40px, 8vw, 80px) 30px clamp(50px, 8vw, 90px) 30px;
  background: #ffffff url("../img/tab-Logo-maske.png") top left no-repeat;
  margin-top: clamp(15px, 8vw, 50px);
  border-radius: 0px 0px 45px 45px;
  box-shadow: 0px 0px 20px 10px rgba(11, 31, 42, 0.2);
}
@media (max-width: 1199px) {
  #offer-tab {
    background: #ffffff url("../img/tab-Logo-maske-durchsichtig.png") top left no-repeat;
  }
}

#offer-tab::before {
  content: "";
  display: block;
  position: absolute;
  top: clamp(15px, 2vw, 30px);
  right: clamp(15px, 2vw, 30px);
  bottom: clamp(15px, 2vw, 30px);
  left: clamp(15px, 2vw, 30px);
  border: 4px solid #bfdeed;
  pointer-events: none;
  transition: all 300ms linear;
  border-radius: 0px 0px 40px 40px;
}

#offer-tab:is(:hover, :focus-within)::before {
  opacity: 1;
  top: -30px;
  right: -30px;
  bottom: -30px;
  left: -30px;
}

#offer-tab {
  color: #2c2c2c;
  font-size: 1.125;
}
#offer-tab :is(h1, h2, h3, h4, h5, h6, a) {
  color: #225e80;
}
#offer-tab h2 {
  font-size: clamp(28px, 3vw, 2.5rem);
  font-weight: 700;
}

#offer-tab a {
  color: #225e80;
  font-weight: 700;
  background-color: #dee7ec;
  padding: 10px 20px;
  border-radius: 2px;
  font-size: 1rem;
}

#offer-tab a:is(:hover, :focus) {
  color: #ffffff;
  font-weight: 700;
  background-color: #225e80;
  padding: 10px 20px;
  text-decoration: none;
}

/* #endregion ----------------------------------- offer ----------------------------------------- */
/* -------------------------------------- h1 - h6, newslink ------------------------------------- */

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

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

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

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

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

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

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

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

footer {
  color: #ffffff;
  font-size: 1rem;
}

footer a,
footer a:is(:hover, :focus) {
  color: #ffffff;
}

footer :is(h1, h2, h3, h4, h5, h6, .footerHeadline) {
  color: #ffffff;
  font-size: 1.5rem;
  margin: 0;
}

#footer {
  padding: 60px 0;
  background: #225e80;
}
@media (max-width: 991px) {
  #footer {
    padding: 100px 0 35px 0;
    margin-top: -90px;
  }
}

@media (min-width: 992px) {
  #footer {
    padding: 100px 0 35px 0;
    margin-top: -114px;
  }
}

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

:is(.footerTab, .socialTab) a {
  text-decoration: underline;
}

.footerTab :is(iframe, .iframe-wrapper-manual-enabling) {
  min-width: 100% !important;
  width: 100% !important;
  display: block;
}

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

@media (min-width: 992px) {
  #innerfooter ul {
    margin-bottom: -10px;
  }
  #innerfooter {
    border-left: 1px solid #ffffff;
  }
}

#innerfooter a {
  font-size: 1.125rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  line-height: 2;
}

#innerfooter li::before {
  color: #ffffff;
  position: relative;
  bottom: 2px;
  margin-right: 4px;
}

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

/* ------------------------------------------- scroll top --------------------------------------- */

#scroll-top {
  display: inline-block;
  color: #225e80;
  background-color: #dee7ec;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 2px;
  padding: 7px 42px 7px 18px;
  opacity: 1 !important;
  text-decoration: none;
  position: relative;
  border: 2px transparent solid;
}

#scroll-top:is(:hover, :focus) {
  background-color: #225e80;
  color: #ffffff;
  border: 2px #dee7ec solid;
}

#scroll-top::after {
  content: "";
  background: url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%23225e80"><path d="m280-400 200-200 200 200H280Z"/></svg>') center no-repeat;
  width: 12px;
  height: 7px;
  position: absolute;
  right: 18px;
  top: 0;
  bottom: 0;
  margin: auto;
}
#scroll-top:is(:hover, :focus)::after {
  background: url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%23ffffff"><path d="m280-400 200-200 200 200H280Z"/></svg>') center no-repeat;
}

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

@media (max-width: 767px) {
  .last-one {
    flex-direction: column;
  }
}

#vernetzt {
  gap: 18px;
  text-align: right;
  font-size: 0.938rem;
  color: #ffffff;
  line-height: 1.3;
  font-weight: 400;
  text-decoration: none;
  margin-top: 53px;
}

#vernetzt span span {
  display: block;
}

#vernetzt b:is(:hover, :focus) {
  text-decoration: underline;
}
