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

html {
  max-width: 1930px;
  margin-left: auto;
  margin-right: auto;
  background: rgb(241, 245, 248);
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  scrollbar-color: #cb5865 #ffffff;
  scrollbar-width: thin;
}

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

a {
  color: #ba3021;
}

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

#content a,
#tabs a {
  font-style: italic;
}

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

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

#logo {
  display: inline-block;
  margin: 37px 0 19px 0;
}

#logo img {
  display: block;
}

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

@media (min-width: 992px) {
  #logo-klein {
    color: #2d2d2d;
    opacity: 0;
    transition: opacity 2s ease;
  }

  .is-sticky #logo-klein {
    opacity: 1;
  }
}

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

nav.horizontally {
  border-bottom: 7px solid #ecebeb;
  background-color: #fff;
}

.is-sticky nav.horizontally {
  background-color: #fff;
}

/* 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 !important;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
  }

  #burgerButton::before,
  #burgerButton::after,
  #burgerButtonInner {
    background-color: #cb5865;
    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: 15px;
    right: 15px;
    z-index: 101;
  }

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

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

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally .navbar-nav {
    display: flex;
    justify-content: space-between;
    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 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: #2f333f;
  font-weight: 600;
  text-align: left;
  padding: 12px 15px 16px 15px;
  position: relative;
  font-size: 1.1875rem;
  line-height: 1.2;
  text-decoration: none;
  font-family: "Jost", sans-serif;
}

nav.horizontally a[class*="toplevel"]::before {
  content: "";
  width: 0;
  height: 7px;
  display: block;
  position: absolute;
  left: 0;
  transform: translateX(-50%);
  bottom: 0px;
  background-color: #cb5865;
  opacity: 0;
  transition: opacity 300ms linear, width 300ms linear;
}

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

  nav.horizontally a[class*="toplevel"]::before {
    content: "";
    width: 0;
    height: 7px;
    display: block;
    position: absolute;
    right: 0;
    transform: translateX(-50%);
    bottom: 23px;
    background-color: #cb5865;
    opacity: 0;
    transition: opacity 300ms linear, width 300ms linear;
  }

  nav.horizontally [class*="toplevel"]:nth-child(2)>a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 26px;
    top: 0px;
    background: url(../img/icon-ueber-uns.png);
    background-repeat: no-repeat;
    margin: 0 auto;
    transform: translate(40%, 0);
    transition: 300ms linear background;
  }

  nav.horizontally [class*="toplevel"]:nth-child(3)>a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 28px;
    top: 0px;
    background: url(../img/icon-leistungen.png);
    background-repeat: no-repeat;
    margin: 0 auto;
    transform: translate(40%, 0);
  }

  nav.horizontally [class*="toplevel"]:nth-child(4)>a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 28px;
    top: 0px;
    background: url(../img/icon-kalender.png);
    background-repeat: no-repeat;
    margin: 0 auto;
    transform: translate(40%, 0);
  }

  nav.horizontally [class*="toplevel"]:nth-child(5)>a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 24px;
    top: 0px;
    background: url(../img/icon-aktuelles.png);
    background-repeat: no-repeat;
    margin: 0 auto;
    transform: translate(40%, 0);
  }

  nav.horizontally [class*="toplevel"]:nth-child(6)>a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 21px;
    top: 0px;
    background: url(../img/icon-paragraph.png);
    background-repeat: no-repeat;
    margin: 0 auto;
    transform: translate(40%, 0);
  }
}

@media (max-width: 991px) {
  nav.horizontally a[class*="toplevel"].dropdown-toggle {
    padding-right: 35px;
  }
}

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

  .navbar-default .navbar-nav>li>a::after {
    bottom: -5px;
  }
}

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

nav.horizontally li[class*="toplevel"]:nth-child(2):is(:hover, :focus-within)>a::after,
nav.horizontally li[class*="toplevel"]:nth-child(2)>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"]:nth-child(2).open>a::after,
nav.horizontally li[class*="toplevel"]:nth-child(2).open>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"]:nth-child(2)[class*="_over"]>a::after,
nav.horizontally li[class*="toplevel"]:nth-child(2)[class*="_over"]>a:is(:hover, :focus)::after {
  background: url(../img/icon-ueber-uns-rot.png);
  background-repeat: no-repeat;
}

nav.horizontally li[class*="toplevel"]:nth-child(3):is(:hover, :focus-within)>a::after,
nav.horizontally li[class*="toplevel"]:nth-child(3)>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"]:nth-child(3).open>a::after,
nav.horizontally li[class*="toplevel"]:nth-child(3).open>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"]:nth-child(3)[class*="_over"]>a::after,
nav.horizontally li[class*="toplevel"]:nth-child(3)[class*="_over"]>a:is(:hover, :focus)::after {
  background: url(../img/icon-leistungen-rot.png);
  background-repeat: no-repeat;
}

nav.horizontally li[class*="toplevel"]:nth-child(4):is(:hover, :focus-within)>a::after,
nav.horizontally li[class*="toplevel"]:nth-child(4)>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"]:nth-child(4).open>a::after,
nav.horizontally li[class*="toplevel"]:nth-child(4).open>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"]:nth-child(4)[class*="_over"]>a::after,
nav.horizontally li[class*="toplevel"]:nth-child(4)[class*="_over"]>a:is(:hover, :focus)::after {
  background: url(../img/icon-kalender-rot.png);
  background-repeat: no-repeat;
}

nav.horizontally li[class*="toplevel"]:nth-child(5):is(:hover, :focus-within)>a::after,
nav.horizontally li[class*="toplevel"]:nth-child(5)>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"]:nth-child(5).open>a::after,
nav.horizontally li[class*="toplevel"]:nth-child(5).open>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"]:nth-child(5)[class*="_over"]>a::after,
nav.horizontally li[class*="toplevel"]:nth-child(5)[class*="_over"]>a:is(:hover, :focus)::after {
  background: url(../img/icon-aktuelles-rot.png);
  background-repeat: no-repeat;
}

nav.horizontally li[class*="toplevel"]:nth-child(6):is(:hover, :focus-within)>a::after,
nav.horizontally li[class*="toplevel"]:nth-child(6)>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"]:nth-child(6).open>a::after,
nav.horizontally li[class*="toplevel"]:nth-child(6).open>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"]:nth-child(6)[class*="_over"]>a::after,
nav.horizontally li[class*="toplevel"]:nth-child(6)[class*="_over"]>a:is(:hover, :focus)::after {
  background: url(../img/icon-paragraph-rot.png);
  background-repeat: no-repeat;
}

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;
  width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.95);
}

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

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  background-color: transparent;
  color: #282828;
  font-weight: 400;
  text-align: left;
  padding: 8px 30px;
  position: relative;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])+li:not(:nth-child(2)) {
  border-top: 2px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
  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) {
  color: #980101;
  background-color: #ecebeb;
}

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

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

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

@media (min-width: 992px) {
  #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;
}

/* ------------------------------------------ tab buttons --------------------------------------- */

.buttonStyle a:not(:is([href*="mailto"], [href*="tel"])),
#tabs a:not(:is([href*="mailto"], [href*="tel"])) {
  color: #233261;
  background: #ffffff;
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 4px;
  border: solid 1px #282828;
  padding: 7px 18px;
  text-decoration: none;
  display: inline-block;
  font-family: "Open Sans", sans-serif;
  font-style: normal;
}

#tabs a:not(:is([href*="mailto"], [href*="tel"])) {
  padding: 7px 26px;
}

.buttonStyle a:not(:is([href*="mailto"], [href*="tel"])):is(:hover, :focus),
#tabs a:not(:is([href*="mailto"], [href*="tel"])):is(:hover, :focus) {
  background: #ecebeb;
  color: #980101;
}

/* #region ------------------------------------- teaser ----------------------------------------- */

#teaser {
  background: #ecebeb;
  color: #282828;
}

#teaser a:is([href*="mailto"], [href*="tel"]) {
  color: inherit;
  text-decoration: underline;
}

#teaser .tabHeadline {
  color: #282828;
  font-size: 1.625rem;
  font-weight: 500;
  margin-bottom: 15px;
}

#teaser>.row>* {
  padding: 25px 15px;
}

#teaser>.row>*:nth-child(2) {
  background: #cb5865;
}

#teaser>.row>*:nth-child(3) {
  background: #87b682;
  color: #282828;
}

@media (min-width: 1200px) {
  #teaser>.row>*:nth-child(1) {
    background: url("../img/icon-leistungen_Kopie.png") top 50px left 50px no-repeat;
    padding: 50px 30px 40px 140px;
  }

  #teaser>.row>*:nth-child(2) {
    background: url("../img/icon-uhr.png") top 50px left 50px no-repeat #cb5865;
    padding: 50px 30px 40px 140px;
    color: #050505;
  }

  #teaser>.row>*:nth-child(3) {
    background: url("../img/icon-uhr.png") top 50px left 50px no-repeat #87b682;
    padding: 50px 30px 40px 140px;
  }
}

/* #endregion ---------------------------------- teaser ----------------------------------------- */

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

main {
  text-align: left;
  padding-top: clamp(30px, 5vw, 70px);
  padding-bottom: clamp(40px, 6vw, 90px);
}

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

#tabs {
  padding: 0 0 clamp(35px, 5vw, 75px) 0;
}

#tabs>.row {
  background: #cb5865;
  color: #282828;
  font-size: 1rem;
  max-width: 1170px;
  line-height: 1.8;
}

#tabs>.row>* {
  padding: 20px 15px;
}

@media (min-width: 1200px) {
  #tabs>.row>* {
    padding: 60px 45px;
  }
}

#tabs>.row>*:nth-child(2) {
  background: #7aae74;
}

#tabs :is(h1, h2, h3, h4, h5, h6) {
  color: #282828;
  font-size: 1.625rem;
  margin-bottom: 25px;
  font-weight: 500;
}

#tabs :is(h1, h2, h3, h4, h5, h6) :is(i, em) {
  color: #282828;
  font-size: 60%;
  text-transform: uppercase;
  margin-top: 5px;
  display: block;
  font-style: normal;
}

#tabs a:is([href*="mailto"], [href*="tel"]) {
  color: #282828 !important;
  text-decoration: underline;
}

#tabs .tab_link_title {
  font-weight: 600;
}

#tabs .tab_link_entries {
  margin-top: 30px;
}

#tabs .tab_spacer {
  height: 25px;
}

@media (min-width: 1200px) {
  #tabs>.row>*:nth-child(1) {
    background: url("../img/icon-location.png") top 50px left 50px no-repeat #cb5865;
    padding: 50px 30px 40px 100px;
    color: #050505;
  }

  #tabs>.row>*:nth-child(2) {
    background: url("../img/icon-location.png") top 50px left 50px no-repeat #7aae74;
    padding: 50px 30px 40px 100px;
  }
}

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

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

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

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

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

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

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

footer {
  padding: 32px 0;
  background: #ecebeb;
  color: #282828;
}

footer>.row {
  row-gap: 25px;
}

#innerfooter ul {
  padding: 0;
}

#innerfooter a {
  color: #282828;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9375rem;
  border-radius: 2px;
  padding: 2px 4px;
}

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

@media (min-width: 576px) {
  #innerfooter ul li {
    display: inline-block;
  }

  #innerfooter ul li+li::before {
    content: "•";
    margin: 0 clamp(10px, 2vw, 20px);
    color: #282828;
  }
}

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

#vernetzt {
  gap: 18px;
  text-align: right;
  font-size: 0.875rem;
  color: #3f4445;
  line-height: 1.4;
  font-weight: 400;
  text-decoration: none;
}

#vernetzt strong {
  color: #ba3021;
  font-weight: 600;
}

#vernetzt span span {
  display: block;
}