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

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

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

a {
  color: #2373b8;
}

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

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

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

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

#logo {
  display: flex;
  align-items: center;
  align-content: center;
  gap: 20px;
  text-decoration: none;
}

#logo .logoImg img {
  display: block;
}

@media (max-width: 991px) {
  #logo .logoImg img {
    max-width: 210px;
    width: 100%;
  }

  #logo .logoTxt {
    margin-bottom: 30px;
  }
}

#logo .logoTxt {
  line-height: 1.2;
  font-size: clamp(2.1875rem, 3vw, 2.5rem);
  color: #343f6c;
  font-weight: 700;
  hyphens: auto;
}

#logo .logoTxt :is(b, strong) {
  color: #343f6c;
  font-weight: 700;
  font-size: clamp(2.1875rem, 3vw, 2.5rem);
}

/* #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: #343f6c;
    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: #4370a8;
    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: #343f6c;
  }

  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: 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.open > ul {
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden;
  }

  nav.horizontally .navbar-nav li:is(: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) > ul {
    z-index: 1003;
  }
}

/* toplevel */
nav.horizontally > .row {
  width: 100%;
  max-width: 1570px;
}
nav.horizontally a[class*="toplevel"] {
  color: #ffffff;
  font-weight: 400;
  text-align: left;
  padding: 10px 15px 15px 15px;
  text-transform: uppercase;
  position: relative;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
}

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

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

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

nav.horizontally a[class*="toplevel"]::before {
  content: "";
  width: 20px;
  height: 9px;
  display: block;
  position: absolute;
  left: 30px;
  bottom: 0;
  border-top-left-radius: 90px;
  border-top-right-radius: 90px;
  background-color: #ffffff;
  opacity: 0;
  transition: opacity 300ms linear;
}

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

/* 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: #ffffff;
  background-color: #262f52;
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  background-color: #f4f4f4;
  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-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    left: 50%;
    transform: translate(-50%, 0);
  }

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

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

  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: #262f52;
  color: #fff;
}

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

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

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

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

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

#bannerOverlay {
  margin: 0;
  color: #343f6c;
  padding: 15px 0;
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  line-height: 1.3;
  border-bottom: 2px solid #343f6c;
  font-weight: 400;
}

@media (min-width: 768px) {
  #bannerOverlay {
    color: #fff;
    padding: 20px 40px 20px clamp(250px, 21vw, 372px);
    background-color: rgba(52, 63, 108, 0.9);
    position: absolute;
    left: 0;
    bottom: 50px;
    z-index: 53;
    border: none;
    font-size: clamp(2.5rem, 3vw, 3rem);
    font-weight: 400;
  }

  #bannerOverlay .row {
    display: block;
  }
}

@media (min-width: 992px) {
  #bannerOverlay {
    bottom: 60px;
  }
}

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

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

/* ----------------------------------------------- @10ev events -------------------------------------------- */

#ev10 {
  padding-top: clamp(30px, 4vw, 60px);
}

#ev10 .tab {
    margin-left: auto;
    margin-right: auto;
    margin-top: 32px;
    position: relative;
    background: #ffffff;
    font-size: 0.9375rem;
    color: #444444;
    border-top: 4px solid #343f6c;
    box-shadow: 0px 8px 15px 0px rgba(0, 0, 0, 0.14);
}

#ev10 .tab::before {
    content: "";
    display: block;
    width: 60px;
    height: 60px;
    position: absolute;
    top: -32px;
    left: 50%;
    margin-left: -30px;
    border-radius: 50%;
    background: url("../img/icon-veranstaltungen.png") center no-repeat, #ffffff;
    -webkit-box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.15);
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.15);
}

#ev10 .tabSpecial {
    padding: 45px 20px 20px 20px;
}

#ev10 .tabSpecial .tabHeadline {
    text-align: center;
    font-size: clamp(1.4375rem, 4vw, 1.875rem);
    margin: 0;
}

#ev10 #clr-events-hide {
    margin-top: 25px;
    padding-left: 20px;
    padding-right: 20px;
}

#ev10 .tab .eventclndr-tab {
    margin-bottom: 0;
}

#ev10 .tab .tab_link_mandat a {
    color: #444444;
}

#ev10 .tab #clr-events-hide>p:nth-child(1) {
    display: none !important;
}

#ev10 .tab .tab_spacer {
    height: 15px;
}

#ev10 .tab .tab_link_mehr {
    color: transparent;
    font-size: 0;
    padding-bottom: 20px;
    padding-right: 20px;
}

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

#nw1 > .row {
  border-top: solid 2px #d5d5d5;
}

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

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

#nw1 .tabHeadline {
  color: #343f6c;
  font-weight: 700;
  hyphens: auto;
  font-size: clamp(2.5rem, 3vw, 2.8125rem);
  text-align: center;
  margin-top: 50px;
  margin-bottom: 40px;
}

#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: 230px 30px 30px 30px;
  background: #ffffff;
  box-shadow: 0px 8px 15px 0px rgba(0, 0, 0, 0.14);
  -webkit-box-shadow: 0px 8px 15px 0px rgba(0, 0, 0, 0.14);
  -moz-box-shadow: 0px 8px 15px 0px rgba(0, 0, 0, 0.14);
}

#nw1 .vorschau {
  opacity: 1;
  color: #444444;
  font-size: 1.125rem;
}

#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: 222px;
  overflow: hidden;
  border-radius: 3px 3px 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 {
  font-weight: 400;
  color: #444444;
  font-size: 1.125rem;
}

#nw1 .tab_link_title a,
#ev10 .tab .tab_link_title a {
  display: block;
  font-weight: 700;
  font-size: 1.125rem;
  color: #343f6c;
  line-height: 1.2;
  margin-bottom: 8px;
}

#nw1 .tab_link_entries + div,
#nw1 .tab_link_entries .tab_spacer {
  display: none;
}

#nw1 .tab_link_mehr {
  font-size: 0;
  text-align: left !important;
  margin-top: 30px;
}

#nw1 .tab_link_mehr a {
  font-size: 1rem;
  color: #fff;
  background-color: #343f6c;
  border-radius: 20px;
  padding: 10px 24px;
  font-weight: 400;
  text-align: left;
}

#nw1 .tab_link_mehr a:is(:hover, :focus) {
  color: #fff;
  background-color: #343f6c;
  text-decoration: none;
}

#nw1 .tab_link_mehr_unten {
  margin-top: 30px;
  text-align: center;
}
#nw1 .tab_link_mehr_unten a,
#ev10 .tab .tab_link_mehr a {
  font-size: 1rem;
  color: #fff;
  background-color: #343f6c;
  border-radius: 20px;
  padding: 10px 32px;
  font-weight: 400;
}

#nw1 .tab_link_mehr_unten a:is(:hover, :focus),
#ev10 .tab .tab_link_mehr a:is(:hover, :focus) {
  color: #fff;
  background-color: #343f6c;
  text-decoration: none;
}
/* ------------------------------------------- @1nw buttonStyle ------------------------------------------- */

#nw1 .buttonStyle a {
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  font-weight: 400;
  color: #ffffff;
  border-radius: 20px;
  padding: 10px 24px;
  background: #343f6c;
  transition: background 300ms linear, color 300ms linear;
}

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

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

.buttonStyle a {
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  font-weight: 400;
  color: #ffffff;
  border-radius: 22px;
  padding: 10px 31px;
  background: #343f6c;
  transition: background 300ms linear, color 300ms linear;
}

.buttonStyle a:hover,
.buttonStyle a:focus {
  color: #ffffff;
  background: #343f6c;
}
/* -------------------------------------- h1 - h6, newslink ------------------------------------- */

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

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

h2,
.h2,
.legacy_h2 {
  font-size: clamp(2.8125rem, 3vw, 3.125rem);
}

h3,
.h3,
.legacy_h3 {
  font-size: clamp(2.5rem, 3vw, 2.8125rem);
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
  font-size: clamp(2.1875rem, 3vw, 2.5rem);
}

h5,
.h5,
.legacy_h5 {
  font-size: clamp(1.875rem, 3vw, 2.1875rem);
}

h6,
.h6,
.legacy_h6 {
  font-size: clamp(1.5625rem, 3vw, 1.875rem);
}

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

footer {
  color: #ffffff;
  background: #343f6c;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.3;
}

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

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

#footer {
  padding: 30px 0px;
}

@media (min-width: 992px) {
  #footer {
    padding: 65px 0;
    border-bottom: 2px solid #fff;
  }
}

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

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

@media (max-width: 767px) {
  #innerfooter {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
  }
}

#innerfooter ul {
  padding: 0;
}

#innerfooter li {
  display: inline-block;
}

#innerfooter a {
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  padding: 17px 40px;
}

#innerfooter a:hover,
#innerfooter a:focus {
  color: #ffffff;
  text-decoration: underline;
  background-color: #262f52;
}

#innerfooter li + li::before {
  content: "•";
  margin: 0 0px;
}

@media (min-width: 992px) {
  #innerfooter li + li::before {
    margin: 0 0px;
  }
}

@media (max-width: 767px) {
  #innerfooter li {
    display: block;
    text-align: center;
    padding: 5px;
    margin: 0;
  }

  #innerfooter li + li::before {
    display: none;
  }
}

#besucherWrapper {
  color: #ffffff;
  padding: 17px;
  font-size: 1rem;
  background-color: #262f52;
}

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

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

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

#vernetzt span span {
  display: block;
}

#vernetzt strong,
#vernetzt b {
  font-weight: 700;
}

/* ------------------------------------------- footer2 ------------------------------------------ */

#footer2 {
  background: #343f6c;
}
