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

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

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

a {
  color: #0076ad;
  text-decoration: underline;
}

a:is(:hover, :focus) {
  color: #0076ad;
  text-decoration: none;
}

b,
strong {
  font-weight: 600;
}

@media (min-width: 1200px) {
  .row {
    max-width: 1440px;
    width: 100%;
  }
}

#overflow {
  overflow: clip;
  position: relative;
}
/* ------------------------------------------- header ------------------------------------------- */

header {
  background-color: #03608c;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

header::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: #ffffff;
}

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

#logo {
  display: inline-block;
  position: relative;
  z-index: 2;
  margin-top: -15px;
}

#logo::before,
#logo::after {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 26px;
  box-shadow: 5px 5px 27px 0px rgba(19, 23, 14, 0.18);
  -webkit-box-shadow: 5px 5px 27px 0px rgba(19, 23, 14, 0.18);
  -moz-box-shadow: 5px 5px 27px 0px rgba(19, 23, 14, 0.18);
}

#logo::before {
  background: #dedede;
  left: -66px;
  right: -60px;
  -moz-transform: skewX(17deg);
  -webkit-transform: skewX(17deg);
  -o-transform: skewX(17deg);
  -ms-transform: skewX(17deg);
  transform: skewX(17deg);
  z-index: 1;
  top: 30px;
  bottom: 26px;
  transition: all 300ms linear;
}

#logo::after {
  background: #265bfc;
  left: -50vw;
  right: 110px;
  z-index: 0;
  top: 30px;
  bottom: 26px;
  transition: all 300ms linear;
}

#logo img {
  display: block;
  position: relative;
  z-index: 1;
  top: 6px;
  left: -5px;
  transition: all 300ms linear;
}

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

@media (min-width: 992px) {
  .is-sticky #logo img {
    max-width: 90%;
    top: 30px;
  }
  .is-sticky #logo::after {
    min-height: 91px;
  }
  .is-sticky #logo::before {
    min-height: 91px;
  }
}

@media (min-width: 1200px) {
  #logo::before {
    background: #dedede;
    left: -66px;
    right: -80px;
    -moz-transform: skewX(17deg);
    -webkit-transform: skewX(17deg);
    -o-transform: skewX(17deg);
    -ms-transform: skewX(17deg);
    transform: skewX(17deg);
    z-index: 1;
    top: 20px;
    bottom: 13px;
    transition: all 300ms linear;
  }

  #logo::after {
    background: #008ecf;
    left: -50vw;
    right: 110px;
    z-index: 0;
    top: 20px;
    bottom: 13px;
    transition: all 300ms linear;
  }
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
  nav.horizontally {
    position: static !important;
    padding: 15px 0 25px 0;
  }

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

  #burgerButton[aria-expanded="true"] {
    transform: none;
  }

  #portunatopdeveloper {
    display: none !important;
  }

  #burgerButton::before,
  #burgerButton::after,
  #burgerButtonInner {
    background-color: #03608c;
    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: #03608c;
    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: 2px;
  }
}

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
    padding: 0;
    transition:
      background 200ms linear,
      box-shadow 200ms linear;
  }

  .is-sticky nav.horizontally {
    background: #03608c;
    box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.15);
  }

  nav.horizontally .navbar-nav {
    margin-top: 33px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 4px;
  }

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

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

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

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

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

@media (min-width: 1200px) {
  nav.horizontally a[class*="toplevel"] {
    font-size: 1.25rem;
    padding: 10px 15px;
  }
}

nav.horizontally a[class*="toplevel"]::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border: 1px solid #ffffff;
  opacity: 0;
  transform: scale(0);
  transition:
    opacity 300ms linear,
    transform 300ms linear;
}

/* toplevel-over */

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: 0.5;
  transform: scale(1);
}

/* secondlevel + thirdlevel dropdown-box */

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

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

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

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

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  color: #080808;
  font-weight: 400;
  text-align: left;
  padding: 8px 35px 8px 10px;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: -42px;
  bottom: 0;
  width: 32px;
  background: #008ecf;
  border-left: 2px solid #ffffff;
  transform: skewX(26deg);
  transition: right 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) {
  background: #0076ad;
  color: #ffffff;
}

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 {
  right: -10px;
}

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

/* -------------------------------------------- contact ----------------------------------------- */

.contact {
  font-size: 1rem;
  width: 100%;
  padding: 30px 0;
  hyphens: auto;
}

@media (min-width: 992px) {
  .contact {
    padding: 0 0 clamp(30px, 24vw, 160px) 0;
  }
}

.contact a {
  text-decoration: underline;
}

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

.contact :is(h1, h2, h3, h4, h5, h6, .tabHeadline) {
  font-size: 1.5625rem !important;
  font-weight: 700;
  font-variant: small-caps;
  margin-top: 30px;
}

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

#options {
  padding: 15px 0;
  height: 150px;
  width: 100%;
}

form[id^="search"] {
  background: #f4f4f4;
  display: inline-flex;
  border-radius: 30px;
  margin: 85px 0 0 0;
  width: 100%;
  max-width: 250px;
}

form [id^="search_input"] {
  color: #080808;
  font-size: 0.9375rem;
  font-style: normal;
  background: transparent;
  padding: 8px 14px;
  border: 0;
  width: 100%;
  border-radius: 30px;
}

form [id^="search_submit"] {
  min-width: 38px;
  flex-shrink: 0;
  border: none;
  background: #0076ad url("../img/lupe-icon.png") center no-repeat;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0;
}

form [id^="search_submit"]:is(:hover, :focus) {
  background-color: #03608c;
}

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

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

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

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

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

@media (min-width: 992px) {
  #headerpic {
    padding-top: 28px;
  }

  header {
    padding-top: 22px;
  }
}

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

.slider-mask {
  display: none;
}

@media (min-width: 992px) {
  /* banner arrow */

  #headerpic .nivo-directionNav {
    position: absolute;
    z-index: 60;
    left: 0;
    bottom: 0;
    background: #008ecf;
    width: 305px;
    height: 94px;
  }

  #headerpic .nivo-directionNav::after {
    content: "";
    position: absolute;
    left: 285px;
    height: 94px;
    background: #008ecf;
    width: 40px;
    transform: skewX(20deg);
  }

  #headerpic .nivo-directionNav a {
    opacity: 1;
    top: 50%;
    margin-top: -19px;
    background: transparent;
    width: 38px;
    height: 38px;
    border-radius: 50%;
  }

  #headerpic .nivo-directionNav a:is(:hover, :focus) {
    background: rgba(0, 0, 0, 0.3);
  }

  #headerpic a.nivo-prevNav {
    left: 20px;
  }

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

  #headerpic a:is(.nivo-prevNav, .nivo-nextNav)::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -8px;
    display: block;
    width: 13px;
    height: 13px;
    border-left: 3px solid #080808;
    border-top: 3px solid #080808;
  }

  #headerpic a.nivo-prevNav::after {
    margin-left: -6px;
    transform: rotate(-45deg);
  }

  #headerpic a.nivo-nextNav::after {
    margin-left: -11px;
    transform: rotate(135deg);
  }

  /* banner dots */

  #headerpic .nivo-controlNav {
    position: absolute;
    z-index: 61;
    left: 70px;
    height: 70px;
    bottom: 10px;
    right: auto;
    width: 175px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
  }

  #headerpic .nivo-controlNav li {
    margin: 4px 2px;
  }

  #headerpic .nivo-controlNav button {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #080808;
    padding: 0;
  }

  #headerpic .nivo-controlNav .slick-active button,
  #headerpic .nivo-controlNav button:is(:hover, :focus) {
    background: #0076ad !important;
  }
}

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

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

#content {
  text-align: left;
  padding-bottom: clamp(40px, 10vw, 110px);
  padding-top: clamp(40px, 8vw, 90px);
}

#content > .row {
  row-gap: 40px;
}

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

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

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

h2,
.h2,
.legacy_h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

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

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

h5,
.h5,
.legacy_h5 {
  font-size: clamp(1.375rem, 2vw, 1.625rem);
}

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

/* #region ------------------------------------ events ------------------------------------------ */

@media (max-width: 991px) {
  #infoTabs {
    background-color: #03608c;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
}

@media (min-width: 992px) {
  #infoTabs {
    margin-bottom: -115px;
    overflow: hidden;
  }
}

#infoTabs > .row > * {
  z-index: 1;
  padding-top: 25px;
  padding-bottom: 40px;
}

@media (min-width: 992px) {
  #infoTabs > .row > * {
    background: #03608c;
  }

  #infoTabs > .row > *::after {
    content: "";
    position: absolute;
    display: block;
    z-index: -1;
    top: 0;
    bottom: 0;
    right: 0;
    width: 85vw;
    max-width: 1445px;
    background-color: #03608c;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
}

#infoTabs .template-page a {
  text-decoration: underline;
}
#infoTabs #infoTabTitle {
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 30px;
}

#infoTabs #infoTabTitle .tabHeadline {
  font-variant: small-caps;
  margin-bottom: 5px;
  color: #fff;
}

@media (min-width: 1200px) {
  #tabBereich {
    margin-right: 85px;
  }
}
#tabBereich .tabKontakt {
  padding: 28px 20px;
  background: #ffffff;
  color: #080808;
  height: 100%;
  margin-left: -15px;
  margin-right: 15px;
}
#tabBereich .tabKontakt .tabHeadline {
  font-weight: 600;
  font-size: 1.125rem;
  color: #0076ad;
  margin-bottom: 10px;
}

#tabBereich .tabKontakt a {
  color: #0076ad;
  text-decoration: underline;
}
#tabBereich .tabKontakt a:is(:hover, :focus) {
  text-decoration: none;
}

#tabBereich .tabLogo {
  padding-top: 0;
  padding-bottom: 0;
}

@media (max-width: 575px) {
  #specialButton {
    margin-top: 30px;
    text-align: left;
  }
}

@media (min-width: 576px) {
  #specialButton {
    position: absolute;
    bottom: 35px;

    white-space: nowrap;
  }
}

@media (min-width: 992px) {
  #specialButton {
    bottom: 0px;
    left: 0;
  }
}

#specialButton a {
  color: #ffffff;
  background: #0076ad;
  display: inline-block;
  padding: 16px 15px 16px 30px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  font-size: 1.125rem;
}

@media (min-width: 992px) {
  #specialButton a {
    padding: 25px 20px 25px 18px;
  }
}

@media (min-width: 1200px) {
  #specialButton a {
    padding: 25px 20px 25px 21px;
  }
}

#specialButton a::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  right: -20px;
  background: #0076ad;
  width: 40px;
  transform: skewX(20deg);
  transition: background 300ms linear;
}

#specialButton a::after {
  content: " \00BB";
}

#specialButton a:is(:hover, :focus),
#specialButton a:is(:hover, :focus)::before {
  background: #03608c;
}

@media (max-width: 991px) {
  #specialButton {
    position: relative;
    width: 100%;
    padding: 16px 90px 16px 0px;
    margin-top: 30px;
    margin-bottom: -40px;
  }
  #specialButton a {
    padding: 16px 30px 16px 30px;
  }
}
/* #endregion --------------------------------- events ------------------------------------------ */

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

footer {
  background: #008ecf;
  padding: 40px 0;
  color: #080808;
  font-size: 1rem;
}

@media (min-width: 992px) {
  footer {
    padding-top: 160px;
  }
}

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

#innerfooter ul {
  padding: 0;
}

#innerfooter a {
  display: inline-block;
  color: #080808;
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid transparent;
  transition: border 300ms linear;
}

#innerfooter a:is(:hover, :focus) {
  color: #080808;
  border-color: rgba(0, 0, 0, 0.3);
}

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

  #innerfooter li + li::before {
    content: "\2022";
    margin: 0 12px;
    color: #080808;
  }
}

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

#vernetzt {
  gap: 18px;
  text-align: right;
  font-size: 0.9375rem;
  color: #080808;
  line-height: 1.3;
  text-decoration: none;
}

#vernetzt span span {
  display: block;
}

/* ------------------------------------------ kontrast ------------------------------------------ */

:is(.contrast_light_font, .contrast_dark_font) #headerpic .nivo-directionNav {
  background: #2c2c2c !important;
}

.contrast_light_font form [id^="search_input"] {
  color: #000000 !important;
}

:is(.contrast_light_font, .contrast_dark_font) #events .tab_link_mehr a::before {
  display: none !important;
}

.contrast_light_font footer,
.contrast_dark_font :is(#blackWhite, #whiteBlack) {
  background: #000000 !important;
}

.contrast_dark_font #vernetzt {
  background: #ffffff !important;
}
