@import url("https://fonts.verwaltungsportal.de/import/?family=Roboto:400,400i,700,700i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Roboto+Slab:500,500i");

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

body {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  color: #333333;
  background: #f5f5f5;
  font-size: clamp(1rem, 2vw, 1.25rem);
  /* 1rem = 16px */
  line-height: 1.5;
}

a {
  color: #cb2523;
}

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

.linkUnderline a:not(.has-image, .shareButtonLink) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration 300ms;
}

.linkUnderline a:not(.has-image, .shareButtonLink):is(:hover, :focus) {
  text-decoration-color: transparent;
}

:not(.cc_banner-wrapper, [id^="search_input"], [id^="search_submit"]):focus-visible,
#vernetzt:focus-visible span {
  background-color: #fff !important;
  color: #cb2523 !important;
  z-index: 100;
  text-decoration: none;
  outline: 2px solid #cb2523;
}

:is([id^="search_input"], [id^="search_submit"]):focus-visible {
  outline: 2px solid #000;
}

b,
strong {
  font-weight: 700;
}

.rowGap {
  row-gap: 30px;
}

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

#topbar {
  font-size: 0.9375rem;
  padding-top: 20px;
}

@media (min-width: 992px) {
  #topbar {
    padding: 18px 0 14px 0;
  }
}

#topbar a {
  color: #333333;
  text-decoration: none;
}

#topbar :is(a, button):is(:hover, :focus) {
  color: #cb2523;
}

#topbar.innerfooter ul {
  padding: 0;
}

@media (min-width: 992px) {
  #topbar.innerfooter li {
    display: inline-block;
  }

  #topbar.innerfooter li + li {
    margin-left: 20px;
  }
}

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

#logo {
  display: inline-block;
}

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


#logo img {
  display: block;
  transition:
    max-height 150ms linear,
    margin 150ms linear;
    width: 313px;
    height: 92px;
}

.contrast_light_font #logo img {
  background: #fff !important;
}

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

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

nav.horizontally {
  background: #ffffff;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.08);
  padding-bottom: clamp(15px, 4vw, 30px);
  position: relative;
}

/* burgermenu for tablet */

@media (max-width: 991px) {
  nav.horizontally {
    padding: 10px 0;
  }

  #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: #cb2523;
    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: 10px;
  }

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

/* menu desktop */

@media (min-width: 992px) {
	nav.horizontally {
		padding-bottom: 0px;
	}
  nav.horizontally :is(.navbar, #myNavbar) {
    height: 100% !important;
  }
  nav.horizontally .dropdown-menu {
    min-width: 300px;
  }
  nav.horizontally {
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.08);
    -webkit-box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.08);
  }

  #navAside {
    gap: 15px 30px;
  }

  nav.horizontally .navbar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 24px 0;
    transition: margin 200ms;
    flex-shrink: 1;
    flex-grow: 1;
	  transition: all 300ms linear;
  }

  #socialMedia {
    flex-shrink: 1;
  margin-left: 76px;
  }

  #socialMedia img {
    vertical-align: middle;
    max-width: 26px;
  }


  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: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 .navbar-nav a[class*="toplevel"] {
  color: #0e2949;
  font-weight: 500;
  text-align: left;
  padding: 10px 15px 15px 15px;
  position: relative;
  font-family: "Roboto Slab", sans-serif;
  font-size:  1.25rem;
  line-height: 1.2;
  text-decoration: none;
}

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

  nav.horizontally .navbar-nav a[class*="toplevel"] {
    hyphens: auto;
  }
}

@media (min-width: 992px) {
  nav.horizontally .navbar-nav a[class*="toplevel"] {
    padding: 14px 8px;
  }
}

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

/* toplevel-over */

nav.horizontally .navbar-nav li[class*="toplevel"]:is(:hover, :focus-within) > a,
nav.horizontally .navbar-nav li[class*="toplevel"] > a:is(:hover, :focus),
nav.horizontally .navbar-nav li[class*="toplevel"].open > a,
nav.horizontally .navbar-nav li[class*="toplevel"].open > a:is(:hover, :focus),
nav.horizontally .navbar-nav li[class*="toplevel"][class*="_over"] > a,
nav.horizontally .navbar-nav li[class*="toplevel"][class*="_over"] > a:is(:hover, :focus) {
  color: #0e2949;
}

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

/* secondlevel + thirdlevel dropdown-box */

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

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

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

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

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

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

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

  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: #333333;
  font-weight: 400;
  text-align: left;
  padding: 6px 25px;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
}

@media (max-width: 991px) {
  nav.horizontally a[class*="secondlevel"].dropdown-toggle2 {
    padding-right: 35px;
  }
  nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    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) {
  background: #fff;
  color: #cb2523;
}

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

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

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

@media (min-width: 768px) {
  #headerpic .nivo-directionNav a {
    top: auto;
    bottom: 16px;
  }

  #headerpic .nivo-controlNav {
    width: calc(100% - 100px);
    left: 50px;
    bottom: 10px;
  }
}

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

#headerpic {
  padding: 0;
  position: relative;
  background: #0f0f0f;
  color: #ffffff;
}

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

.slider-mask {
  display: none;
}

#slogan {
  pointer-events: auto;
}

.sloganHeadline {
  font-weight: 700;
  margin: 0 0 14px 0;
  line-height: 1.1;
  pointer-events: auto;
  font-size: clamp(2rem, 7vw, 4.0625rem);
  color: #ffffff;
}

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

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

.button-style a {
  font-family: "Roboto Slab", sans-serif;
  font-weight: 500;
  margin-top: 20px;
  display: inline-block;
  transition: border-color 200ms linear;
  backface-visibility: hidden;
  padding: 12px clamp(15px, 4vw, 60px);
  color: #0e2949;
  border: 2px solid #cb2523;
  background: #fff;
  font-size: 1.375rem;
  text-shadow: none;
  text-decoration: none;
  border-radius: 60px;
  hyphens: auto;
}

.button-style a:is(:hover, :focus) {
  border-color: #0e2949;
}

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

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

#tabs {
  background: #fff;
  padding-top: 20px;
  padding-top: clamp(60px, 7vw, 110px);
  position: relative;
}
#tabs::after {
  content: "";
  position: absolute;
  top: clamp(15px, 4vw, 40px);
  border-bottom: 2px dashed #0e2949;
  width: 100%;
  height: 0;
}

#tabs .tab {
  padding: 50px 20px;
  background: #ffffff url(../img/wasserzeichen-logo.png);
  background-repeat: no-repeat;
  background-position: top 10px right 20px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.05);
  position: relative;
  height: 100%;
  font-size: 0.9375rem;
  border-radius: 10px;
}

#tabs .tabHeadline {
  margin: 0 0 30px 0;
  font-size: 1.5rem;
}

@media (min-width: 992px) {
  #tabs .tabHeadline {
    padding-right: 150px;
  }
}

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

#nw1 {
  padding-top: 30px;
  padding-bottom: 30px;
}

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

#nw1 .tab {
  color: #333333;
  padding: 30px;
  overflow: hidden;
  border-radius: 18px;
  background-color: #fff;
}

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

#nw1 .tabHeadline {
  color: #0e2949;
  font-weight: 500;
  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(3, 1fr);
  }
}

#nw1 .tab_link_entry {
  font-size: 1rem;
  position: relative;
  width: 100%;
  border-radius: 3px;
  padding: 160px 30px 30px 30px;
  background: #ffffff;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.08);
  -webkit-box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.08);
  -moz-box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.08);
  border-radius: 18px;
}

#nw1 .vorschau {
  opacity: 1;
}

#nw1 .tab_preview_picture {
  background: #ffffff;
}

#nw1 .tab_link_entry::before,
#nw1 .tab_link_entry .tab_preview_picture {
  position: absolute;
  display: block;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 120px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

#nw1 .tab_link_entry::before {
  content: "";
  background:
    center / cover no-repeat,
    #666666;
}

#nw1 .tab_preview_picture img {
  position: absolute;
  margin: 0 !important;
  left: 50%;
  top: 50%;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  max-width: 350px;
  width: auto;
  height: auto;
  -ms-interpolation-mode: bicubic;
  transform: translateX(-50%) translateY(-50%);
}

#nw1 .tab_date {
  display: inline-block;
  position: absolute;
  z-index: 1;
  left: -1px;
  top: 105px;
  font-weight: 600;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 6px 20px;
  background: #cb2523;
  border-radius: 0 3px 3px 0;
}

#nw1 .tab_link_title a {
  display: block;
  font-weight: 500;
  font-size: 1rem;
  color: #333333;
  line-height: 1.2;
  margin-bottom: 8px;
  font-family: "Roboto Slab", 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: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  padding: 7px 15px;
  border-radius: 3px;
  border: 1px solid #ffffff;
  background: #cb2523;
  transition:
    background 300ms linear,
    color 300ms linear;
  border-radius: 18px;
}

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

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

/* ------------------------------------------- content ------------------------------------------ */
#mainBereich {
  background-color: #fff;
  max-width: 1330px;
  left: 0;
  right: 0;
  margin: auto;
}
#content {
  text-align: left;
  padding-bottom: clamp(40px, 6vw, 80px);
 padding-top: 25px;
}

#breaker {
  background-color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 50px 0;
  font-size: 1.125rem;
}

#breaker a {
  width: 100%;
  margin: 0;
}

#breaker a:has(img) {
  margin-bottom: 40px;
  min-width: 150px;
  min-height: 150px;
  border-radius: 100%;
  background: #cb2523;
  padding: 30px;
  text-align: center;
  vertical-align: middle;
  align-content: center;
  transition:
    background 300ms,
    border-color 300ms;
  width: fit-content;
}

#breaker a:has(img):is(:hover, :focus) {
  background: #0e2949;
}

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

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

h1,
.h1,
.legacy_h1 {
  font-size: 2.1875rem;
}

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

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

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

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

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

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

footer {
  background-color: #0e2949;
  padding: 30px 0;
  font-size: 1.125rem;
  color: #fff;
}

footer :is(h1, h2, h3, h4, h5, h6, a) {
  color: #ffffff;
}

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

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

footer .tabHeadline {
  margin: 0 0 4px 0;
  font-size: 1.375rem;
}

#innerfooter ul {
  padding: 0;
}

#innerfooter a {
  color: inherit;
  font-weight: 400;
  text-decoration: none;
}

@media (min-width: 576px) {
  #innerfooter ul {
    display: grid;
    column-gap: 15px;
  }
}

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

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

#vernetzt {
  display: inline-block;
  font-size: 0.875rem;
  color: #fff;
  line-height: 1.3;
  text-decoration: none;
}

#vernetzt img {
  margin-bottom: 6px;
}

#vernetzt span {
  display: block;
}
