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

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

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

a {
  color: #2c1990;
}

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

b,
strong {
  font-weight: 700;
}

#content a {
  text-decoration: underline;
}

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

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

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

/* #region --------------------------------------- logo ----------------------------------------- */

#logo {
  display: inline-block;
  background-color: #fff;
  transition: all 300ms linear;
  max-width: 100%;
}

.is-sticky #logo {
  margin-top: 5px;
  max-width: 60%;
}

#logo img {
  display: block;
  padding: 13px 0;
}

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

  #logo .row {
    margin-left: -15px;
    margin-right: -15px;
  }
}

/* #endregion ----------------------------------- logo ------------------------------------------ */

/* #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: #ca241c;
    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 {
    padding: 20px 10px;
  }

  .navbar-collapse {
    width: calc(100% - 90px);
    max-width: 300px;
    top: 0;
    background: #fff0d2;
    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: 8px;
    right: 0;
  }

  .dropdown-toggle-button-wrapper2 {
    top: 6px;
    right: 0;
  }
}

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
    transition: background 300ms linear;
  }

  .is-sticky nav.horizontally {
    left: auto !important;
    background: #fff0d2;
    border-bottom: #ffb21c solid 1px;
  }

  nav.horizontally .navbar-nav {
    padding: 35px 0 20px 0;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px 0;
  }

  .is-sticky nav.horizontally .navbar-nav {
    padding: 15px 0;
    border-top-color: transparent;
  }

  nav.horizontally li[class*="toplevel"] {
    flex-grow: 1;
  }

  nav.horizontally [class*="toplevel"]>ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
  }

  nav.horizontally [class*="secondlevel"]>ul {
    position: absolute;
    left: 100%;
    top: 0;
  }

  nav.horizontally .navbar-nav li {
    position: relative;
  }

  nav.horizontally .navbar-nav li :is([class*="toplevel"] > ul, [class*="secondlevel"] > ul) {
    display: block !important;
    pointer-events: none;
    opacity: 0;
    transition: opacity 300ms linear;
  }

  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: #262626;
  font-weight: 700;
  text-align: left;
  padding: 14px 5px;
  position: relative;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: border 300ms linear;
}

@media (max-width: 991px) {
  nav.horizontally li[class*="toplevel"]+li {
    margin-top: 2px;
  }

  nav.horizontally a[class*="toplevel"] {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
  }

  nav.horizontally a[class*="toplevel"] {
    color: #262626;
  }

  nav.horizontally a[class*="toplevel"].dropdown-toggle {
    padding-right: 35px;
  }
}

@media (min-width: 992px) {
  .is-sticky nav.horizontally a[class*="toplevel"] {
    color: #262626;
  }

  nav.horizontally a[class*="toplevel"] {
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
  }
}

nav.horizontally a[class*="toplevel"]::after {
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -10px;
  height: 5px;
  width: 0;
  background: #ffb21c;
  transform: translateX(-50%);
  transition: width 300ms linear;
}

@media (max-width: 991px) {
  nav.horizontally a[class*="toplevel"]::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 0px;
    height: 5px;
    width: 0;
    background: #ffb21c;
    transform: translateX(-50%);
    transition: width 300ms linear;
  }
}

/* toplevel-over */

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a::after,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"].open>a::after,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus)::after,
nav.horizontally li[class*="toplevel"][class*="_over"]>a::after,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus)::after {
  width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 20px 30px 0 rgba(0, 0, 0, 0.2);
}

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

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

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

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):not(:nth-child(2)) {
  border-top: 1px solid #9db5e0;
}

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

@media (max-width: 991px) {
  nav.horizontally a[class*="secondlevel"].dropdown-toggle2 {
    padding-right: 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;
  }
}

/* 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: #2c1990;
}

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

/* #region ------------------------------------- resp-gaps -------------------------------------- */

#topbar .row {
  row-gap: 25px;
}

:is(#headerpic)>.row {
  row-gap: 40px;
}

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

/* #endregion ---------------------------------- resp-gaps -------------------------------------- */

/* #region -------------------------------------- header ---------------------------------------- */

#headerpic {
  background: #010101;
  position: relative;
  min-height: 450px;
}

#headerpic>*:not(.slider-wrapper):not(.sticky-wrapper):not(nav.horizontally) {
  position: relative;
  z-index: 10;
}

/* header text */

#header-text {
  font-weight: 400;
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  line-height: 1.4;
  padding: clamp(60px, 12vw, 203px) 0 clamp(80px, 20vw, 274px) 0;
}

.theme-default .nivo-controlNav a,
#header-text,
#header-text :is(h1, h2, h3, h4, h5, h6) {
  color: #262626;
  text-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* banner */

#slider {
  position: relative;
  height: 100%;
}

@media (min-width: 768px) {
  body.index #headerpic .nivo-controlNav {
    bottom: clamp(50px, 8vw, 110px);
  }
}

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

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

@media (max-width: 1199px) {
  #headerpic a:is(.nivo-prevNav, .nivo-nextNav) {
    top: auto;
    bottom: 8px;
    z-index: 51;
  }
}

.slider-wrapper {
  position: absolute !important;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.slider-mask {
  display: block;
  background: linear-gradient(180deg, #abeaff 14%, rgba(171, 234, 255, 0.01) 100%);
}

#headerpic .nivo-main-image {
  min-height: 100% !important;
}

/* #endregion ----------------------------------- header ---------------------------------------- */

/* #region --------------------------------------- zitat ----------------------------------------- */

#zitat {
  position: relative;
  z-index: 30;
  background: #fff0d2;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
  color: #262626;
  font-size: clamp(1.125rem, 4vw, 1.375rem);
  line-height: 1.3;
}

@media (max-width: 767px) {
  #zitat {
    padding-top: clamp(40px, 6vw, 80px);
  }
}

#zitat :is(h1, h2, h3, h4, h5, h6) {
  color: #262626;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

/* #endregion ------------------------------------ tabs ----------------------------------------- */

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

#content {
  text-align: left;
  padding: clamp(40px, 4vw, 60px) 0 clamp(40px, 8vw, 90px) 0;
}


/* ----------------------------------------------- @12nw news -------------------------------------------- */

#nw12 {
  margin: clamp(40px, 4vw, 60px) 0;
  color: #404040;
  font-size: 1rem;
  position: relative;
  padding: 0;
  background-color: #fff0d2;
  box-shadow: 0 0 5px rgba(43, 43, 43, 0.15);
}

#nw12 .tabHeadline {
  text-align: center;
  color: #404040;
  font-size: 1.5625rem;
  font-weight: 700;
  margin-bottom: 0;
  padding: 19px 25px;
  background: #ffb21c;
}

#nw12 .tabContent {
  padding: 30px 20px 45px 20px;
}

#nw12 .tab_link_title a {
  font-weight: 700;
  color: #262626;
}

#nw12 .tab_link_mandat a {
  color: #262626;
  font-weight: 400;
}

#nw12 .tab_date,
#nw12 .tab_link_date {
  color: #262626;
}

#nw12 .tab_link_mehr {
  font-size: 0;
  position: relative;
}

#nw12 .tab_link_mehr a {
  text-decoration: none;
  display: block;
  position: absolute;
  right: -20px;
  bottom: -45px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #262626;
  padding: 5px 15px;
  background: #ffb21c;
}

#nw12 .tab_link_mehr a:hover,
#nw12 .tab_link_mehr a:focus {
  color: #262626;
  background: #ffffff;
}

/* #region --------------------------------------- buttons -------------------------------------- */

.button-design a:not(.has-image):not([href*="mailto"]):not([href*="tel"]) {
  display: inline-block;
  line-height: 1.2;
  color: #262626 !important;
  font-size: 1rem;
  font-weight: 700;
  background: #ffb21c;
  padding: 10px 56px 11px 17px;
  position: relative;
  text-decoration: none !important;
  text-shadow: none !important;
}

.button-design.button-design-2 a:not(.has-image):not([href*="mailto"]):not([href*="tel"]) {
  color: #fff !important;
  background: #262626;
}

#header-text.button-design a:not(.has-image):not([href*="mailto"]):not([href*="tel"]) {
  margin-top: 15px;
  margin-right: 20px;
}

#footer .button-design a:not(.has-image):not([href*="mailto"]):not([href*="tel"]) {
  margin-top: 10px;
  padding: 11px 57px 12px 14px;
}

.button-design a:not(.has-image):not([href*="mailto"]):not([href*="tel"])::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  top: 1px;
  right: 16px;
  width: 26px;
  transition: 300ms background linear;
  background: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' height='48' width='48'%3E%3Cpath d='m28.15 35.25-1.65-1.6 8.6-8.6H8.6V22.8h26.5l-8.65-8.65 1.65-1.55 11.35 11.3Z' fill='%23262626'/%3E%3C/svg%3E") center left / 26px auto repeat-x;
}

.button-design a:not(.has-image):not([href*="mailto"]):not([href*="tel"]):is(:hover, :focus)::after {
  background-position-x: left 26px;
}

.button-design a:not(.has-image):not([href*="mailto"]):not([href*="tel"]):is(:hover, :focus) {
  background: #ffffff;
}

/* #endregion ------------------------------------ buttons -------------------------------------- */

/* #region ---------------------------------- h1 - h6, newslink --------------------------------- */

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
  color: #ca241c;
  font-weight: 700;
  line-height: 1.2;
  font-family: "Mulish", sans-serif;
  margin-bottom: 15px;
}

:is(#header-text, #service .background-tab, #quote) :is(h1, h2, h3, h4, h5, h6),
#about :is(h2, h3) {
  font-weight: 700;
}

#header-text :is(h1, h2, h3, h4, h5, h6) {
  font-size: clamp(2rem, 6vw, 2.5rem);
  margin-bottom: 10px;
}

#quote :is(h1, h2, h3, h4, h5, h6) {
  font-size: clamp(1.875rem, 6vw, 2.25rem);
}

h1,
.h1,
.legacy_h1,
#quote :is(h1, h2, h3, h4, h5, h6) {
  font-size: clamp(1.875rem, 6vw, 2.5rem);
}

h1,
.h1,
.legacy_h1 {
  margin-bottom: clamp(20px, 4vw, 38px);
}

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

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

h4,
.h4,
.legacy_h4 {
  font-size: 1.625rem;
}

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

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

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

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

#quote {
  background-color: #000000;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: clamp(60px, 10vw, 72px) 0;
  font-size: clamp(30px, 5vw, 2.25rem);
}

#quote,
#quote :is(h1, h2, h3, h4, h5, h6, a) {
  color: #ffffff;
  font-weight: 700;
}

footer {
  font-size: 1rem;
}

#footer {
  padding: clamp(40px, 8vw, 77px) 0;
  background: #ca241c;
}


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

#footer .footerTabHeadline {
  margin-bottom: 0;
  ;
}

#footer a:is([href*="mailto"]) {
  text-decoration: underline;
}

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

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

#map-tab {
  z-index: 1;
}

#map-tab :is(.iframe-wrapper-manual-enabling, iframe) {
  width: 100% !important;
  min-width: 100% !important;
}

@media (min-width: 768px) {
  #map-tab :is(.iframe-wrapper-manual-enabling, iframe) {
    position: absolute;
    top: clamp(-131px, -15vw, -60px);
    right: 0;
    bottom: calc(clamp(-77px, -8vw, -40px) - 97px);
    left: 0;
    display: block;
    height: calc(100% + clamp(40px, 15vw, 80px) + calc(clamp(40px, 8vw, 130px) + 93px)) !important;
    max-height: unset;
  }
}

@media (min-width: 992px) {
  #map-tab :is(.iframe-wrapper-manual-enabling, iframe) {
    right: calc((clamp(992px, 100vw, 1199px) - 992px) / -2);
    width: calc(100% + (clamp(992px, 100vw, 1199px) - 992px) / 2) !important;
  }
}

@media (min-width: 1200px) {
  #map-tab :is(.iframe-wrapper-manual-enabling, iframe) {
    right: calc((clamp(1200px, 100vw, 1930px) - 1190px) / -2);
    width: calc(100% + (clamp(1200px, 100vw, 1930px) - 1190px) / 2) !important;
  }
}

#map-tab .template-page :is(.row, .row > *) {
  position: static !important;
}

#innerfooter {
  font-size: 0.9375rem;
  padding: 15px 0;
}

#innerfooter>.row {
  row-gap: 15px;
}

#innerfooter ul {
  padding: 0;
}

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

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

#innerfooter li a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 575px) {
  #innerfooter li a {
    padding: 4px;
    display: inline-block;
  }
}

@media (min-width: 768px) and (max-width:991px) {
  #innerfooter li+li::before {
    content: none;
  }

  #innerfooter li {
    display: block;
  }

  #innerfooter li a {
    padding: 4px;
    display: inline-block;
  }
}

#innerfooter li a:is(:hover, :focus) {
  color: #2c1990;
}

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

/* #region -------------------------------------- vernetzt -------------------------------------- */

#vernetzt {
  gap: 12px;
  text-align: right;
  font-size: 14px;
  color: #404040;
  line-height: 1.3;
  text-decoration: none;
}

#vernetzt span span {
  display: block;
}

/* #endregion -------------------------------- vernetzt ----------------------------------------- */

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

.contrast_light_font #header-text.button-design a:not(.has-image):not([href*="mailto"]):not([href*="tel"]),
.contrast_light_font #footer .button-design a:not(.has-image):not([href*="mailto"]):not([href*="tel"]) {
  background-color: #fff !important;
}

.contrast_dark_font #header-text.button-design a:not(.has-image):not([href*="mailto"]):not([href*="tel"]),
.contrast_dark_font #footer .button-design a:not(.has-image):not([href*="mailto"]):not([href*="tel"]) {
  border: solid 1px #000 !important;
}

.contrast_dark_font #header-text {
  background-color: #fff !important;
}

.contrast_dark_font #quote>.row {
  background-color: #fff !important;
}

.contrast_light_font .dropdown-toggle-button {
  background-color: #000 !important;
}