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

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

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

a {
  color: #ab3d1d;
}

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

b,
strong {
  font-weight: 600;
}

/* ----------------------------------------------- @3tp topbar ----------------------------------------------- */

#tp3 {
  color: #ffffff;
  padding-top: 10px;
  padding-bottom: 10px;
  background: #ab3d1d;
}

@media (max-width: 991px) {
  #tp3>.row>*+* {
    margin-top: 10px;
  }
}

@media (max-width: 575px) {
  #tp3>.row>*>*+* {
    margin-top: 10px;
  }
}

@media (min-width: 992px) {
  #tp3 {
    padding-top: 0;
    padding-bottom: 0;
  }
}

#tp3 span {
  color: #ffffff;
  font-size: 0.875rem;
  padding-right: 10px;
}

/* ------------------------------------------------ name ---------------------------------------------- */

#name {
  color: #ffffff;
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
}

#name a {
  color: #ffffff;
}

@media (max-width: 767px) {
  #name {
    font-size: 0.75rem;
  }
}

/* ------------------------------------------------ contrast_style ---------------------------------------------- */

#contrast_style button {
  color: #000000;
  padding: 0;
  font-size: 0;
  border: unset !important;
  display: inline-block;
  text-align: center;
  width: 29px;
  height: 29px;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.9);
  transition: background 300ms linear;
  position: relative;
  z-index: 1;
}

#contrast_style button:hover,
#contrast_style button:focus {
  background: #f4c392;
}

#contrast_style *+* {
  margin-left: 3px;
}

/* ------------------------------------------------ styler ---------------------------------------------- */

@media (min-width: 992px) {
  #style {
    margin-left: 30px;
  }
}

#style button {
  padding: 0;
  border: none;
  color: #444444;
  display: inline-block;
  min-width: 29px;
  min-height: 29px;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  position: relative;
  line-height: 1;
  transition: color 300ms linear, background 300ms linear;
}

#style button+button {
  margin-left: 3px;
}

#style button:hover,
#style button:focus {
  background: #f4c392;
}

/* ----------------------------------------------- search ----------------------------------------------- */

form[id^="search"] {
  min-height: 35px;
  display: block;
  position: relative;
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 575px) {
  form[id^="search"] {
    display: inline-block;
  }
}

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

form [id^="search_input"] {
  font-size: 0.875rem;
  color: #444444;
  font-style: normal;
  background: transparent;
  padding: 0;
  border: 0;
  padding-left: 14px;
  padding-right: 54px;
  min-height: 35px;
  width: 100%;
  display: block;
}

form [id^="search_submit"] {
  width: 40px;
  background: url('../img/lupe-icon.png') center no-repeat;
  padding: 0;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: 0;
  font-size: 0;
  border-left: 1px solid #fcd29f;
  transition: background 200ms linear, top 200ms linear, bottom 200ms linear;
}

.contrast_dark form [id^="search_submit"] {
  background-color: #ffffff;
}

form [id^="search_submit"]:hover,
form [id^="search_submit"]:focus {
  top: 0;
  bottom: 0;
  background-color: #f4c392;
}

[id^="search_input"]::-ms-input-placeholder {
  color: #444444 !important;
}

[id^="search_input"]::-webkit-input-placeholder {
  color: #444444 !important;
}

[id^="search_input"]::-moz-placeholder {
  opacity: 1;
}

[id^="search_input"]:-moz-placeholder {
  opacity: 1;
}

/* für :focus-visible -> setzt die Umrandung -3px weiter hinein */
form[id^="search"],
form [id^="search_input"],
form [id^="search_submit"] {
  outline-offset: -3px;
}

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

#logo {
  display: inline-block;
  position: relative;
  z-index: 51;
}

#logo img {
  display: block;
  transition: max-height 300ms linear;
  max-height: 150px;
}

@media (max-width: 991px) {
  #logo {
    margin-bottom: -60px;
    margin-top: 10px;
  }

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

@media (min-width: 992px) {
  #logo {
    position: absolute;
    top: 32px;
    left: 15px;
  }

  #logo img {
    max-height: 250px;
  }

  .is-sticky #logo img {
    max-height: 50px;
  }
}

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

nav.horizontally {
  background: #fff;
}

/* burgermenu for tablet */

@media (max-width: 991px) {
  nav.horizontally {
    position: static !important;
    height: 130px;
  }

  #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: #223381;
    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: #fff;
    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: 4px;
  }

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

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally .navbar-nav {
    margin: 35px 0;
    display: flex;
    justify-content: flex-end;
    align-items: center !important;
    transition: margin 300ms linear;
    flex-wrap: wrap;
  }

  .is-sticky nav.horizontally .navbar-nav {
    margin-top: 30px;
    margin-bottom: 30px;
  }

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

@media (min-width: 1200px) {
  nav.horizontally .navbar-nav {
    margin: 55px 0 55px 0px;
  }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
  color: #444444;
  font-weight: 500;
  text-align: left;
  padding: 10px 35px;
  position: relative;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  font-family: "Work Sans", sans-serif;
}

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

@media (min-width: 992px) {
  nav.horizontally li[class*="toplevel"]+li {
    margin-left: clamp(10px, 2vw, 20px);
  }

  nav.horizontally a[class*="toplevel"] {
    padding: 8px 0;
    text-align: center;
  }
}

nav.horizontally a[class*="toplevel"]::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 6px;
  background: #223381;
  width: 0;
  transition: width 300ms linear;
  border-radius: 20px;
}

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

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  padding: 10px;
  background-color: #ab3d1d;
}

nav.horizontally [class*="secondlevel"] ul {
  background-color: #c74813;
}

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

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

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  color: #ffffff;
  text-align: center;
  padding: 10px 40px 10px 20px;
  font-weight: 500;
  position: relative;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  font-family: "Open Sans", sans-serif;
  text-align: left;
}

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

  nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
    content: "\00BB";
    position: absolute;
    right: 20px;
    top: 50%;
    margin-top: -12px;
    font-size: 24px;
    line-height: 1;
  }
}

/* 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: #fcd29f;
  color: #223381;
}

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

/* #region ------------------------------------ banner ------------------------------------------ */

#slider {
  max-height: clamp(300px, 46vw, 450px);
  overflow: hidden;
  position: relative;
}

@media (min-width: 992px) {
  body.index #slider {
    max-height: clamp(450px, 78vw, 660px);
  }
}

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

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

.slider-mask {
  display: block;
  background: url("../img/banner-welle-banner.png") right bottom / 100% auto no-repeat;
}

@media (min-width: 1200px) {
  #headerpic .nivo-controlNav {
    bottom: 15px;
  }
}

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

/* ---------------------------------------- tab with border ------------------------------------- */

#teaser {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.9);
  padding: clamp(30px, 4vw, 45px) clamp(30px, 4vw, 60px);
  position: relative;
}

.teaserHeadline {
  margin: 0 0 14px 0;
}

#teaser::before {
  content: "";
  position: absolute;
  display: block;
  top: 20px;
  right: 20px;
  bottom: 20px;
  left: 20px;
  border: 2px solid #ab3d1d;
  pointer-events: none;
}

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

.button-style a {
  color: #fff !important;
  font-family: "Work Sans", serif;
  font-weight: 500;
  display: inline-block;
  text-align: center;
  font-size: 1rem;
  text-decoration: none;
  min-width: 110px;
  padding: 4px clamp(10px, 2vw, 20px);
  margin-top: 22px;
  transition: background-color 300ms linear, color 300ms linear, border 100ms linear;
  background-color: #223381;
  text-decoration: none !important;
}

.button-style a:is(:hover, :focus) {
  color: #ffffff;
  background: #ab3d1d;
  text-decoration: none !important;
}

.button-style a+a {
  margin-left: 20px;
}

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

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

/* -------------------------------------------- breaker ----------------------------------------- */

#breaker {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 178px 0;
  position: relative;
  margin-top: -90px;
  z-index: 0;
}

#breaker::before {
  top: 0;
  display: block;
  background: url("../img/banner-welle-footer.png") right top / 100% auto no-repeat;
  content: "";
  position: absolute;
  z-index: 1;
  margin: 0 auto;
  display: block;
  pointer-events: none;
  width: 100%;
  height: 179px;
}

/* ----------------------------------------------- @1nw news -------------------------------------------- */

#nw1 {
  padding-top: 30px;
  padding-bottom: 30px;
  z-index: 1;
  position: relative;
}

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

#nw1 .tab {
  color: #444444;
  padding: 30px;
  overflow: hidden;
  border-radius: 3px;
  background: #fcd29f;
  margin-bottom: 30px;
}

#nw1 .tab a {
  color: #444444;
  text-decoration: underline;
}

#nw1 .tabHeadline {
  color: #223381;
  font-weight: 700;
  hyphens: auto;
  font-size: clamp(1.75rem, 2vw, 2rem);
}

#nw1 .tab,
#nw1 .tab_link,
#nw1 .tab_link>div {
  height: 100%;
  min-height: 100%;
}

#nw1 .tab_link_entries {
  display: grid;
  gap: 30px;
}

@media (min-width: 576px) {
  #nw1 .tab_link_entries {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  #nw1 .tab_link_entries {
    grid-template-columns: repeat(1, 1fr);
  }
}

#nw1 .tab_link_entry {
  font-size: 1rem;
  position: relative;
  width: 100%;
  border-radius: 3px;
  padding: 30px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

#nw1 .vorschau {
  opacity: 1;
}

#nw1 .tab_preview_picture,
#nw1 .tab_preview_picture img {
  display: none;
}

#nw1 .tab_link_title a {
  display: block;
  font-weight: 600;
  font-size: 1.125rem;
  color: #223381;
  line-height: 1.2;
  margin-bottom: 8px;
  font-family: "Work Sans", sans-serif;
}

#nw1 .tab_link_entries+div,
#nw1 .tab_link_entries .tab_spacer,
#nw1 .tab_link_entry>div:nth-last-child(2) {
  display: none;
}

/* ------------------------------------------- @1nw buttonStyle ------------------------------------------- */

#nw1 .buttonStyle a {
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  color: #223381;
  padding: 5px 12px;
  border-radius: 3px;
  border: 2px solid #223381;
  background: #fff;
  transition: background 300ms linear, color 300ms linear;
  font-family: "Work Sans", sans-serif;
}

@media (min-width: 768px) {
  #nw1 .buttonStyle a+a {
    margin-left: 12px;
  }
}

#nw1 .buttonStyle a:hover,
#nw1 .buttonStyle a:focus {
  color: #ffffff;
  background: #004261;
}

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

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

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

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

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

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

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

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

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

#footer {
  background: #fcd29f;
  padding: 40px 0;
  color: #444444;
  font-size: 1rem;
}

@media (min-width: 1200px) {
  #footer>.row::before {
    content: "";
    position: absolute;
    background: url(../img/freisteller-maedchen.png) no-repeat;
    width: 283px;
    height: 468px;
    bottom: -5px;
    z-index: 0;
    pointer-events: none;
    right: -280px;
    display: block;
  }
}

@media (max-width: 991px) {
  :is(#footer, #innerfooter)>.row>.col-xs-12+* {
    border-top: 1px solid rgba(34, 51, 129, 0.2);
    margin-top: 20px;
    padding-top: 20px;
  }
}

@media (min-width: 768px) {
  #innerfooter>.row>.col-xs-12+ :nth-child(2) {
    border: none;
    margin-top: 0;
    padding-top: 0;
  }
}

#footer a {
  color: #223381;
  text-decoration: underline;
}

.footerHeadline {
  margin: 0 0 10px 0;
  text-transform: uppercase;
  font-size: 1.5625rem;
  color: #223381;
}

/* ------------------------------------------ innerfooter --------------------------------------- */

#innerfooter {
  color: #ffffff;
  background-color: #ab3d1d;
  padding: 20px 0;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
}

#innerfooter ul {
  padding: 0;
}

#innerfooter li {
  display: inline-block;
}

.innerfooter a {
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  padding: 10px 12px;
}

.innerfooter a:is(:hover, :focus) {
  color: #223381;
  background: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
}

.innerfooter li+li {
  margin-left: 10px;
}

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

#scroll-top {
  font-size: 0;
  width: 33px;
  height: 33px;
  display: block;
  position: relative;
  margin: 0 auto;
  background: #ffffff;
}

@media (min-width: 768px) {
  #scroll-top {
    margin-right: 0;
  }
}

@media (min-width: 992px) {
  #scroll-top {
    margin: 0;
  }
}

#scroll-top::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 3px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-top: 10px;
  display: inline-block;
  border-right: 3px solid #ab3d1d;
  border-top: 3px solid #ab3d1d;
  transform: rotate(-45deg);
  transition: border 300ms linear;
}

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

#vernetzt {
  gap: 14px;
  text-align: right;
  color: #ffffff;
  line-height: 1.3;
  font-weight: 400;
  text-decoration: none;
  font-size: 0.8125rem;
}

#vernetzt span span {
  display: block;
}