@import url("https://fonts.verwaltungsportal.de/import/?family=Nunito:300,400,500,600,700,300i,400i,500i,600i,700i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Shadows+Into+Light+Two:300,400,500,600,700,300i,400i,500i,600i,700i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Oswald:300,400,500,600,700,300i,400i,500i,600i,700i");

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

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

a {
  color: #1b449d;
}

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

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

@media (min-width: 1200px) {

  .row,
  #headerpic-overlay {
    width: 100%;
    max-width: 1600px;
  }

  #quick-access {
    max-width: 1300px;
  }
}

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

/* #region ----------------------------------- topbar ------------------------------------------- */

#topbar {
  font-size: 1rem;
  padding: 12px 0;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 101;
}

@media (max-width: 991px) {
  #topbar {
    position: static;
  }
}

#topbar .controls-col {
  column-gap: 30px;
}

#topbar .controls-col {
  transition: padding 200ms linear;
}

body:has(.is-sticky, #burgerButton[aria-expanded="true"]) #topbar .controls-col {
  padding-right: 130px;
}

/* style + contrast */

#style,
#contrast_style {
  column-gap: 10px;
}

:is(#style, #contrast_style) h2 {
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #333333;
  margin: 0 5px 0 0;
}

:is(#style, #contrast_style) button {
  width: 35px;
  height: 35px;
  padding: 0;
  border: 2px solid #333333;
  background: #ffffff;
  font-weight: 700;
  flex-shrink: 0;
  transition: border 300ms linear;
  position: relative;
  line-height: 1;
}

:is(#style, #contrast_style) button::after {
  content: "";
  display: block;
  position: absolute;
  top: 3px;
  right: 3px;
  bottom: 3px;
  left: 3px;
  border: 2px solid #a0a0a0;
}

:is(#style, #contrast_style) button:is(:hover, :focus) {
  border-color: #1b449d;
}

/* contrast */
@media (max-width: 991px) {
  #contrast_style {
    column-gap: 10px;
    max-width: 300px;
  }
}

@media (max-width: 575px) {
  #contrast_style {
    column-gap: 5px;
    max-width: 200px;
  }
}

#contrast_style button::after {
  background: linear-gradient(45deg, #333333, #333333 50%, #ffffff 50%);
}

#contrast_style button:nth-of-type(2)::after {
  transform: scale(-1);
}

#contrast_style button:nth-of-type(3)::after {
  background: #ea5b0c;
  border: none;
}

/* #endregion -------------------------------- topbar ------------------------------------------- */

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

#logo .logoImg img {
  display: block;
}

#logo .logoTxt {
  line-height: 1.1;
  font-size: clamp(1.5625rem, 5vw, 2.25rem);
  color: #fff;
  font-weight: 400;
  font-family: "Shadows Into Light Two", sans-serif;
}

#logo .logoTxt :is(b, strong) {
  color: #fff;
  display: block;
  font-weight: 400;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-family: "Shadows Into Light Two", sans-serif;
  text-transform: uppercase;
  margin-top: 5px;
}

@media (min-width: 1200px) {
  #logo {
    position: absolute;
    top: 0px;
    transition: top 300ms linear;
  }

  .is-sticky #logo {
    top: 10px;
  }

  #logo .logoImg img {
    max-width: 100%;
    transition: 300ms max-width linear;
    z-index: 1004;
    position: relative;
  }

  .is-sticky #logo .logoImg img {
    max-width: 60%;
  }

  #logo .logoTxt {
    top: -25px;
    position: relative;
    transition: 300ms linear top, 300ms linear left;
    left: 0px;
  }

  .is-sticky #logo .logoTxt {
    top: 0px;
    left: -60px;
  }
}

@media (max-width: 991px) {
  #logo {
    padding: 10px;
    position: static;
    gap: 0;
  }

  #logo .logoImg img {
    max-width: 50px;
    width: 100%;
  }

  #logo .logoTxt,
  #logo .logoTxt :is(b, strong) {
    color: #113686;
  }
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
  nav.horizontally {
    background-color: #fff;
    border-bottom: #113686 solid 2px;
  }

  #burgerButton {
    font-size: 0;
    display: block;
    height: 50px;
    width: 60px;
    border-radius: 2px;
    padding: 6px 8px;
    cursor: pointer;
    background: #ffffff;
    border: none !important;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
  }

  #burgerButton::before,
  #burgerButton::after,
  #burgerButtonInner {
    background-color: #1b449d;
    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: #1b449d;
    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: 6px;
  }

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

/* menu desktop */

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

  .is-sticky nav.horizontally {
    border-bottom: solid 2px #ffde00;
  }

  nav.horizontally .navbar-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  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 a[class*="toplevel"] {
  color: #ffffff;
  font-weight: 400;
  text-align: left;
  padding: 12px 15px;
  position: relative;
  font-size: 1.375rem;
  line-height: 1.2;
  text-decoration: none;
  font-family: "Nunito", sans-serif;
}

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

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

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

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

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

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

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

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

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

  nav.horizontally [class*="toplevel"]>ul {
    margin-top: 10px;
    left: 50%;
    transform: translate(-50%, 0);
  }

  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 {
    margin-top: -18px;
    margin-left: 50px;
  }

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  color: #333333;
  font-weight: 400;
  text-align: center;
  padding: 10px 15px;
  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;
  }
}

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

@media (min-width: 992px) {
  nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
    content: "\203A \203A";
    display: inline-block;
    position: relative;
    bottom: 2px;
    position: absolute;
    left: 0;
    top: 8px;
    opacity: 0;
    transition: opacity 300ms linear;
  }
}

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

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

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

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

#headerpic {
  padding: clamp(40px, 5vw, 85px) 0 clamp(40px, 5vw, 70px) 0;
  position: relative;
  background: url('../img/wellenhintergrund-bannerbereich.png') bottom -1px center / 100% auto no-repeat;
}

/* bannertab */

#headerpic .tab {
  color: #333333;
  font-size: clamp(1.25rem, 3vw, 1.5625rem);
}

#headerpic .tab :is(h1, h2, h3) {
  color: #1b449d;
  font-weight: 400;
  font-family: "Shadows Into Light Two", sans-serif;
  margin-top: 18px;
  font-size: clamp(1.875rem, 5vw, 4.5rem);
}

/* banner */

#slider {
  height: clamp(350px, 42vw, 430px);
  position: relative;
  box-shadow: 0px 17px 25px 0px rgba(0, 0, 0, 0.2);
}

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

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

.slider-wrapper {
  height: 100%;
  overflow: hidden;
}

.slider-mask {
  display: none;
}

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

/* #region --------------------------------- quick-access --------------------------------------- */

#quick-access {
  font-size: clamp(1rem, 1vw, 1.125rem);
  background: #ffde00;
}

@media (min-width: 1200px) {
  #quick-access {
    margin-top: 35px;
    border: 2px solid #113686;
  }
}

#quick-access * {
  color: #1b449d;
}

#quick-access .tab {
  padding: 30px 15px;
  position: relative;
  transition: background 200ms linear, margin 200ms linear, padding 200ms linear, height 200ms linear;
}

#quick-access .tab+.tab::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  transition: opacity 200ms linear, margin 200ms linear;
}

@media (min-width: 1200px) {
  #quick-access>.col-xl-2 {
    flex: 0 0 20% !important;
    max-width: 20% !important;
  }

  #quick-access .tab {
    padding: 75px clamp(15px, 1vw, 30px);
    height: 250px;
    /* overflow: scroll; */
  }

  #quick-access .tab+.tab::after {
    top: 45px;
    bottom: 45px;
    width: 1px;
    height: unset;
  }

  #quick-access .tab:is(:hover, :focus-within)::after,
  #quick-access .tab:is(:hover, :focus-within)+.tab::after {
    opacity: 0;
  }

  #quick-access .tab:is(:hover, :focus-within) {
    background: #ffde00;
    height: 360px;
    margin: -55px 0;
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

#quick-access .tab :is(.row, .row > *) {
  position: static;
}

@media (min-width: 1200px) {
  #quick-access .tab .template-page {
    max-height: 0;
    opacity: 0;
    transition: opacity 200ms linear;
  }

  #quick-access .tab:is(:hover, :focus-within) .template-page {
    opacity: 1;
  }
}

#quick-access .tab a {
  font-weight: 700;
  text-decoration: underline;
}

#quick-access .tab a::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

#quick-access .tab-heading {
  font-size: 1.375rem;
  padding-top: 75px;
  background: url("../img/quick-access/folder-icon.png") center top / 52px auto no-repeat;
  transition: padding 200ms linear, transform 200ms linear;
  font-family: "Nunito", sans-serif;
  hyphens: auto;
  font-weight: 700;
}

@media (min-width: 1200px) {
  #quick-access .tab-heading {
    margin: 0;
  }

  #quick-access .tab:is(:hover, :focus-within) .tab-heading {
    padding: 75px 15px 30px 15px;
    transform: scale(1.2);
  }
}

#quick-access .tab-2 .tab-heading {
  background-image: url("../img/quick-access/computer-worker.png");
}

#quick-access .tab-3 .tab-heading {
  background-image: url("../img/quick-access/calendar-icon-blau.png");
}

#quick-access .tab-4 .tab-heading {
  background-image: url("../img/quick-access/document-icon-blau.png");
}

#quick-access .tab-5 .tab-heading {
  background-image: url("../img/quick-access/paper-icon-blau.png");
}

#quick-access .tab-6 .tab-heading {
  background-image: url("../img/quick-access/calendar-day-icon-blau.png");
}

#quick-access .tab-7 .tab-heading {
  background-image: url("../img/quick-access/payment-icon.png");
}

/* #endregion ------------------------------ quick-access --------------------------------------- */

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

#content {
  text-align: left;
  padding: clamp(40px, 7vw, 90px) 0 clamp(40px, 5vw, 70px) 0;
}

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

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

:is(h1, h2) :is(i, em) {
  font-style: normal;
  color: #333333;
  font-size: 1.375rem;
  display: block;
  text-transform: uppercase;
  margin-bottom: 15px;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
}

footer :is(h1, h2) :is(i, em) {
  font-style: normal;
  color: #333333;
  font-size: 1.375rem;
  display: block;
  text-transform: uppercase;
  margin-bottom: 15px;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
}

#footer :is(h1, h2) :is(i, em) {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

h1,
.h1,
.legacy_h1,
#headerpic-overlay .tab-headline {
  font-size: clamp(2rem, 4vw, 2.8125rem);
}

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

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

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4,
#tabs .tab :is(h1, h2, h3, h4, h5, h6) {
  font-size: 1.625rem;
}

h5,
.h5,
.legacy_h5,
:is(#newsletter, #footer) :is(h1, h2, h3, h4, h5, h6) {
  font-size: 1.5rem;
}

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

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

/* #region --------------------------------- button-style --------------------------------------- */

#scroll-top-button {
  display: inline-block;
  background: #ffde00;
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  font-size: 1.125rem;
  padding: 11px 28px;
  border: 1px solid #333333;
  outline: 1px solid #333333;
  outline-offset: 10px;
  margin: 12px;
  transition: outline-color 200ms linear, outline-offset 200ms linear;
}

/* hover */

#scroll-top-button:is(:hover, :focus) {
  outline-color: #333333;
  outline-offset: 2px;
}

.button-style a:not([href^="mailto:"]):not(.has-image):not([rel]),
#nw23 .tab_link_mehr a {
  display: inline-block;
  background: #1b449d;
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  font-size: 1.125rem;
  padding: 11px 28px;
  outline-offset: 10px;
  margin: 12px;
  transition: outline-color 200ms linear, outline-offset 200ms linear;
}

/* hover */

.button-style a:not([href^="mailto:"]):not(.has-image):not([rel]):is(:hover, :focus),
#nw23 .tab_link_mehr a:is(:hover, :focus) {
  background-color: #ffde00;
  color: #333333;
}

/* #endregion ------------------------------ button-style --------------------------------------- */

/* #region ------------------------------------- news ------------------------------------------- */

#news {
  padding-bottom: clamp(40px, 6vw, 80px);
}

#news :is(h1, h2, h3, h4, h5, h6) {
  font-size: 1.875rem;
  text-transform: uppercase;
}

@media (min-width: 992px) {
  #news {
    background-color: #f2f4f9;
    padding-bottom: clamp(40px, 6vw, 80px);
    padding-top: 150px;
    margin-top: -150px;
  }
}

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

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

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

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

#news .tab_link_entry {
  font-size: 1rem;
  position: relative;
  background: #ffffff;
  padding: 30px 26px;
  hyphens: auto;
  border: 4px solid #e8e8e8 !important;
}

#news .tab_link_entry .tab_preview_picture {
  display: none;
}

#news .tab_link_entry .tab_date {
  font-weight: 700;
  font-size: 1.3125rem;
}

#news .tab_link_entry .tab_link_title a {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.4;
  display: block;
  margin-bottom: 25px;
}

#news .tab_link_entry .tab_link_title a:not(:is(:hover, :focus)) {
  color: #333333;
}

#news .tab_link_entry :is(.tab_spacer, .tab_link_mehr) {
  display: none;
}

/* #endregion ---------------------------------- news ------------------------------------------- */

/* #region ------------------------------------- news ------------------------------------------- */

#events {
  padding-bottom: clamp(40px, 6vw, 80px);
}

#events :is(h1, h2, h3, h4, h5, h6) {
  font-size: 1.875rem;
  text-transform: uppercase;
}

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

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

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

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

#events .tab_link_entry {
  font-size: 1rem;
  position: relative;
  background: #ffffff;
  padding: 60px 24px 30px 24px;
  border: 4px solid #e8e8e8 !important;
  margin-top: 75px;
  hyphens: auto;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
 #events .tab_link_entry {
    min-height: 400px;
  }
}

#events .tab_link_entry::before,
#events .tab_link_entry .tab_preview_picture {
  position: absolute;
  display: block;
  top: -75px;
  left: 13px;
  right: 13px;
  height: 100px;
  max-width: 215px;
  overflow: hidden;
}

@media (min-width: 1200px) {

  #events .tab_link_entry::before,
  #events .tab_link_entry .tab_preview_picture {
    position: absolute;
    display: block;
    overflow: hidden;
  }
}

@media (min-width: 992px) {

  #events .tab_link_entry::before,
  #events .tab_link_entry .tab_preview_picture {
    position: absolute;
    display: block;
    max-width: 100%;
    overflow: hidden;
  }
}

#events .tab_link_entry::before {
  content: "";
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#events .tab_link_entry .tab_preview_picture {
  z-index: 1;
}

#events .tab_link_entry .tab_preview_picture img {
  margin: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f2f4f9;
}

#events .tab_link_entry .tab_link_date {
  font-weight: 700;
  font-size: 1.25rem;
  order: 1 !important;
}

#events .tab_link_title {
  order: 2 !important;
}

#events .tab_link_entry .tab_link_title a {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.4;
  display: block;
  margin-bottom: 25px;
}

#events .tab_link_entry .tab_link_title a:not(:is(:hover, :focus)) {
  color: #333333;
}

#events .tab_link_entry :is(.tab_spacer, .tab_link_mehr) {
  display: none;
}

#events .tab_link_mandat {
  font-weight: 700;
  font-size: 1.125rem;
  order: 3 !important;
}

#events .tab_link_mandat a {
  color: #333333;
}

#events .vorschau,
#events .tab_link_mehr {
  display: none;
}

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

#ev10 .tab {
    margin-left: auto;
    margin-right: auto;
    margin-top: 32px;
    position: relative;
    background: #ffffff;
    font-size: 0.9375rem;
    color: #333333;
    -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
    max-width: 370px;
    margin: 0 auto;
    margin-top: 30px;
}

@media (min-width: 992px) {
 #ev10 .tab {
    position: relative;
    margin-top: 4px;
    height: 470px;
  }
}

#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: 1.4375rem;
    font-weight: 700;
    color: #333333;
    margin: 0;
    text-transform: uppercase;
}

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

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

#ev10 .tab .tab_link_title a {
    color: #333333;
    font-weight: 600;
}

#ev10 .tab .tab_link_mandat a {
    color: #333333;
    font-weight: 600;
}

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

#ev10 .tab .tab_link_mehr a {
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    font-size: 0.9375rem;
    color: #fff;
    font-weight: 600;
    border-radius: 2px;
    padding: 3px 11px;
    background: #1b449d;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

#ev10 .tab .tab_link_mehr a:hover,
#ev10 .tab .tab_link_mehr a:focus {
    color: #1b449d;
    background: #ffffff;
}
/* #endregion ---------------------------------- news/events ------------------------------------------- */

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

footer {
  overflow: hidden;
  color: #333333;
  position: relative;
  background: #f2f4f9;
  border-top: 1px solid #e5eaf4;
}

#footer {
  padding: 62px 0 46px 0;
  row-gap: 30px;
}

#footer :is(h1, h2, h3, h4, h5, h6) {
  text-transform: uppercase;
  margin: 0;
  color: #333333;
  margin-bottom: -5px;
}

#footer .sprechzeiten :is(h1, h2, h3, h4, h5, h6) {
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  #footer .sprechzeiten {
    margin-top: -60px;
  }
}

#footer .sprechzeiten {
  line-height: 1.3;
}

#footer a {
  color: #1b449d;
}

#footer .button-style.button-small a:not([href^="mailto:"]):not(.has-image):not([rel]) {
  display: block;
  text-align: center;
}

#footer .button-style.button-small p+p,
#footer .button-style.button-small a:not([href^="mailto:"]):not(.has-image):not([rel])+* {
  margin-top: 15px;
}

/* scroll-top-button */

#scroll-top-button {
  width: 50px;
  height: 50px;
  padding: 0;
  background-image: url("../img/icon-arrow.png");
  background-position: center;
  background-size: 21px auto;
  background-repeat: no-repeat;
}

/* innerfooter */

#innerfooter {
  color: #333333;
  font-size: 1rem;
  background: #ffde00;
  padding: 15px 0;
}

@media (max-width: 767px) {
  #innerfooter {
    padding: 30px 0;
  }
}

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

#innerfooter ul {
  padding: 0;
}

#innerfooter ul a {
  color: #333333;
  text-decoration: none;
  display: inline-block;
  padding: 6px 10px;
  outline: 2px solid transparent;
  outline-offset: 10px;
  transition: outline-color 200ms linear, outline-offset 200ms linear;
}

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

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

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

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

#vernetzt {
  gap: 15px;
  text-align: right;
  font-size: 1.125rem;
  color: #333333;
  line-height: 1.2;
  font-weight: 400;
  text-decoration: none;
}

#vernetzt span span {
  display: block;
}

#vernetzt :is(b, strong) {
  font-weight: 400;
  color: #333333;
}

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

/* #region ---------------------------------- decoration ---------------------------------------- */

:is(#news, #contact, #events) h2 :is(i, em),
#scroll-top-button {
  position: relative;
}

/* news */

#news h2 :is(i, em)::before {
  top: -5px;
  bottom: -240px;
  left: -32px;
  width: 2px;
}

#news h2 :is(i, em)::after {
  bottom: -10px;
  left: -180px;
  right: calc(100% - 100px);
  height: 2px;
}

/* contact */

#contact h2 :is(i, em)::after {
  bottom: -10px;
  left: -180px;
  right: calc(100% - 145px);
  height: 2px;
}

/* events */

#events h2 :is(i, em)::after {
  bottom: -10px;
  left: -313px;
  right: calc(100% - 75px);
  height: 2px;
}

/* scroll-top-button */

#scroll-top-button::before {
  top: 5px;
  bottom: -240px;
  right: -45px;
  width: 2px;
}

#scroll-top-button::after {
  top: 50%;
  width: 180px;
  right: -192px;
  height: 2px;
}

/* ------------------------------------------------- counter ------------------------------------------------- */

#counter {
  color: #333333;
  font-size: 1rem;
  padding: 5px 16px;
  margin: 0 auto;
  max-width: 235px;
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: space-between;
  border: 1px solid #333333;
  margin-top: 30px;
  hyphens: auto;
}

@media (min-width: 768px) {
  #counter {
    margin-left: auto;
    margin-right: 0;
  }
}

#counter span {
  font-weight: 400;
  padding-right: 5px;
}

@media (min-width: 992px) {
  .scrolltopBereich {
    top: -52px;
  }

  #counter {
    margin-top: 58px;
  }
}

/* #endregion ------------------------------- decoration ---------------------------------------- */

/* #region ----------------------------------- contrast ----------------------------------------- */

:is(.contrast_dark, .contrast_light) :is(#news, #events) .tab_link_entry .tab_link_title a::before {
  display: none;
}

.contrast_dark #burgerButton,
.contrast_dark #events .slick-button,
.contrast_dark #events .slick-dots .slick-active button,
.contrast_dark #events .slick-dots button:is(:hover, :focus) {
  background-color: #ffffff !important;
}

.contrast_light #burgerButton::before,
.contrast_light #burgerButton::after,
.contrast_light #burgerButtonInner {
  background: #333333 !important;
}

.contrast_light nav.burger .dropdown-toggle-button::before {
  color: #000000;
}

@media (min-width: 1200px) {
  .contrast_light #quick-access .tab:is(:hover, :focus-within) {
    background: #ffffff;
  }
}

.contrast_light #events .slick-dots .slick-active button,
.contrast_light #events .slick-dots button:is(:hover, :focus) {
  background-color: #000000 !important;
}

.contrast_light #headerpic-overlay .tab-headline,
.contrast_light #headerpic-overlay .tiny_p {
  background-color: #fff !important;
}

.contrast_light #quick-access .tab-1 .tab-heading,
.contrast_light #quick-access .tab-2 .tab-heading,
.contrast_light #quick-access .tab-3 .tab-heading,
.contrast_light #quick-access .tab-4 .tab-heading,
.contrast_light #quick-access .tab-5 .tab-heading,
.contrast_light #quick-access .tab-6 .tab-heading,
.contrast_light #quick-access .tab-7 .tab-heading {
  filter: brightness(0) !important;
}

/* #endregion -------------------------------- contrast ----------------------------------------- */