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

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

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

a {
  color: #de176a;
  font-style: italic;
}

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

b,
strong {
  font-weight: 700;
}

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

/* ------------------------------------------ topbar -------------------------------------------- */

#topbar {
  padding: clamp(20px, 4vw, 20px) 0;
}

@media (min-width: 992px) {
  #topbar>.row>*:last-child {
    margin-top: -10px;
  }
}

#logo {
  display: inline-block;
}

#logo img {
  display: block;
}

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

/* #region ----------------------------------- search ------------------------------------------- */

form[id^="search"] {
  background: rgba(201, 201, 201, 0.2);
  display: inline-flex;
  border-radius: 30px;
  margin: 15px 15px 0 15px;
}

@media (min-width: 992px) {
  form[id^="search"] {
    min-width: 220px;
    margin: 0 30px 0 0;
  }
}

form [id^="search_input"] {
  color: #404040;
  font-size: 1rem;
  font-style: italic !important;
  background: transparent;
  border: 0;
  width: 100%;
  border-radius: 30px;
  padding: 6px 14px;
}

form [id^="search_submit"] {
  border: 5px solid #de176a;
  background: #de176a url("../img/lupe-icon.png") center / 14px auto no-repeat;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  margin: -5px -5px -5px 0;
  font-size: 0;
  aspect-ratio: 1/1;
  min-width: 48px;
  flex-shrink: 0;
  transition: transform 150ms linear;
}

@media (min-width: 992px) {
  form [id^="search_submit"] {
    border-color: #ffffff;
  }
}

form [id^="search_submit"]:is(:hover, :focus) {
  transform: scale(1.2);
}

form [id^="search_input"]::placeholder {
  color: #404040 !important;
  opacity: 1 !important;
  font-style: italic !important;
}

.spendenButton a {
  font-style: normal !important;
  font-weight: 700;
  color: #fff;
  text-decoration: none !important;
}

.spendenButton {
  background-color: #de176a;
  padding: 10px;
  border-radius: 10px;
  transition: transform 150ms linear;
}

.spendenButton:is(:hover, :focus) {
  transform: scale(1.2);
  text-decoration: none !important;
}

@media (max-width: 991px) {
  .spendenButton a {
    color: #de176a;
  }

  .spendenButton {
    background-color: #fff;
    margin-top: 30px;
  }

  form [id^="search_submit"] {
    border: 5px solid #fff;
    background: #de176a url("../img/lupe-icon.png") center / 14px auto no-repeat;
  }

  form [id^="search_input"] {
    background: #fff;
  }

  form[id^="search"] {
    background: rgba(255, 255, 255, 1);
  }
}

/* #endregion -------------------------------- search ------------------------------------------- */

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

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
    background-color: #de176a;
  }

  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: 115%;
    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: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 10px 15px 15px 15px;
  position: relative;
  font-size: 1.25rem;
  line-height: 1.2;
  text-decoration: none;
  font-style: normal !important;
}

nav.horizontally [class*="toplevel"]>ul::before {
  content: "";
  position: absolute;
  display: block;
  height: 30px;
  top: -30px;
  bottom: 0;
  left: 0;
  right: 0;
}

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

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

/* 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: #404040;
  background-color: #95c11f;
}

/* secondlevel + thirdlevel dropdown-box */

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

@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-radius: 8px;
    left: 50%;
    transform: translate(-50%, 0);
  }

  nav.horizontally [class*="secondlevel"]>ul {
    margin-top: -18px;
    border-radius: 8px;
    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: #747373;
  font-weight: 400;
  text-align: center;
  padding: 8px 25px;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
  font-style: normal !important;
}

@media (max-width: 991px) {
  nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    text-align: left;
    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: #95c11f;
  color: #404040;
}

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

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

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

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

  #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: block;
  background: url("../img/welle-banner.png") right bottom -1px / 100% auto no-repeat;
}

.theme-nivo .nivo-controlNav {
  bottom: 85px !important;
}

@media (max-width: 1199px) {
  .theme-nivo .nivo-controlNav {
    bottom: 50px !important;
  }
}

@media (max-width: 991px) {
  .theme-nivo .nivo-controlNav {
    bottom: 50px !important;
  }
}

@media (max-width: 575px) {
  .theme-nivo .nivo-controlNav {
    bottom: 20px !important;
  }
}

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

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

@media (min-width: 1200px) {
  #content>.row::before {
    content: "";
    position: absolute;
    background: url(../img/grafik-zusammenhalt.png) no-repeat;
    width: 312px;
    height: 196px;
    bottom: -60px;
    z-index: 0;
    pointer-events: none;
    right: -364px;
    display: block;
  }
}

#tickerWrapper {
  color: #de176a;
  font-style: italic;
  font-size: 1.125rem;
  border-bottom: rgba(64, 64, 64, 0.1) solid 2px;
  padding: 30px 0;
}

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

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

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

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

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

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

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

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

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

#f5 {
  background-color: #de176a;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 1rem;
}

#f5>.row {
  row-gap: 20px;
}

#innerfooter ul {
  padding: 0;
}

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

#innerfooter li {
  display: block;
}

#innerfooter a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  font-style: normal !important;
}

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

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

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

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

#vernetzt {
  gap: 18px;
  text-align: right;
  font-size: 0.875rem;
  color: #ffffff;
  line-height: 1.3;
  font-weight: 400;
  text-decoration: none;
  font-style: normal !important;
}

#vernetzt strong {
  font-weight: 400;
  font-style: italic;
}

#vernetzt span span {
  display: block;
}