@import url("https://fonts.verwaltungsportal.de/import/?family=Red+Hat+Text:400,400i,600,600i");
@import url("https://fonts.verwaltungsportal.de/import/?family=Julius+Sans+One:400");

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

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

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

a:is(:hover, :focus),
:is(#contact-col, #content, #footer .template-page) a {
  text-decoration: underline;
}

b,
strong {
  font-weight: 600;
}

#overflow {
  overflow: clip;
  position: relative;
}

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

#topbar {
  position: relative;
}

#topbar::before {
  content: "";
  display: block;
  width: 100%;
  height: 6px;
  background: #006699 linear-gradient(to right, #005179 50%, rgba(255, 255, 255, 0) 50%) top left / 40% 100%;
}

#topbar > .row {
  font-size: 1rem;
  padding: 30px 0;
}
@media (max-width: 991px) {
  #topbar > .row {
    font-size: 1rem;
    padding: 10px 0;
  }
}

#logo {
  display: inline-block;
}

#logo img {
  display: block;
  filter: brightness(0) saturate(100%) invert(21%) sepia(79%) saturate(2472%) hue-rotate(181deg) brightness(94%) contrast(100%);
}

@media (min-width: 992px) {
  #logo {
    position: absolute;
    top: -37px;
    background-color: #ffffff;
    padding: 15px;
    z-index: 1055;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.15);
  }
}
@media (min-width: 1200px) {
  #logo {
    top: -57px;
  }
}
@media (max-width: 991px) {
  #logo img {
    max-width: 90px;
  }
}

#contact-col {
  column-gap: 30px;
}

@media (min-width: 992px) and (max-width: 1199px) {
  #contact-col {
    column-gap: 60px;
  }
}
@media (max-width: 767px) {
  .contact-tab.contact-phone {
    margin-right: 30px;
  }
}

@media (max-width: 575px) {
  #contact-col {
    font-size: 0.875rem;
  }
}

@media (max-width: 767px) {
  #contact-col {
    border-top: 1px solid #002d55;
    column-gap: 10px;
    padding-top: 30px;
    margin-top: 30px;
    margin-bottom: 10px;
  }
}

.contact-tab {
  padding-top: 45px;
  background: center top / 35px auto no-repeat;
  min-height: 30px;
  display: grid;
  place-content: center;
}

@media (min-width: 768px) {
  .contact-tab {
    padding: 0 0 0 45px;
    background: center left / 35px auto no-repeat;
    min-height: 45px;
  }
}

@media (min-width: 992px) {
  .contact-tab {
    padding: 0 0 0 70px;
    background: center left / 53px auto no-repeat;
    min-height: 53px;
  }
}

.contact-tab.contact-phone {
  background-image: url("../img/telefon-icon.svg");
}

.contact-tab.contact-phone :is(b, strong) {
  text-transform: uppercase;
}

.contact-tab.contact-address {
  background-image: url("../img/adresse-icon.svg");
}

@media (max-width: 575px) {
  #contact-col {
    border-top: 1px solid #002d55;
    column-gap: 10px;
    padding-top: 15px;
    margin-top: 15px;
    margin-bottom: 10px;
  }
}
/* #endregion --------------------------------- topbar ------------------------------------------ */

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

/* burgermenu for tablet */

@media (max-width: 991px) {
  .sticky-wrapper {
    height: auto !important;
  }

  .sticky-wrapper nav.horizontally {
    position: static !important;
  }

  #burgerButton {
    font-size: 0;
    border: none !important;
    display: block;
    height: 50px;
    width: 60px;
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    background-color: #006699;
  }

  #burgerButton::before,
  #burgerButton::after,
  #burgerButtonInner {
    background-color: #ffffff;
    border-radius: 4px;
    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: #006699;
    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: 4px;
  }
}

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
    background: #006699;
    transition: background-color 300ms linear;
  }

  nav.horizontally .navbar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    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 12px 20px;
  position: relative;
  font-size: 1.25rem;
  line-height: 1.2;
  text-decoration: none;
  font-family: "Julius Sans One", sans-serif;
}

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

  nav.horizontally a[class*="toplevel"] {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
  }

  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: 26px 0;
  }
}

nav.horizontally a[class*="toplevel"]::before {
  content: "";
  width: 12px;
  height: 20px;
  display: block;
  position: absolute;
  left: 0;
  bottom: calc(50% - 10px);
  border-radius: 0 10px 10px 0;
  background-color: #fff;
  opacity: 0;
  transition: opacity 300ms linear;
}

@media (min-width: 992px) {
  nav.horizontally a[class*="toplevel"]::before {
    width: 20px;
    height: 12px;
    left: calc(50% - 10px);
    bottom: 0;
    border-radius: 10px 10px 0 0;
  }
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  background-color: #f4f4f4;
  box-shadow: 0 2px 1px 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: 15px;
  }

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  color: #222222;
  font-weight: 400;
  text-align: center;
  padding: 10px 25px;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}

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

  nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
  }

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

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

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

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

/* ----------------------------------------------- video_wrapper ----------------------------------------------- */

#video_wrapper {
  width: 100%;
  height: auto;
  max-height: 435px !important;
  overflow: hidden;
  position: relative;
}

body.index #video_wrapper {
  max-height: 560px !important;
}

#body-video-background {
  width: 100%;
  position: relative;
  margin-top: -10%;
  max-width: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  #video_wrapper {
    max-height: 300px !important;
  }
}

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

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

#content {
  text-align: left;
  padding-top: 40px;
  padding-bottom: 40px;
}

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

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

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

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

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

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

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

h6,
.h6,
.legacy_h6,
#footer .template-page :is(h1, h2, h3, h4, h5, h6) {
  font-size: 1.3rem;
}

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

#nw1 {
  padding-top: 45px;
  padding-bottom: 50px;
  background: #ecf0f2;
}

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

#nw1 > .row::before {
  content: "";
  display: block;
  position: absolute;
  top: -160px;
  left: -340px;
  height: 321px;
  width: 321px;
  background: url("../img/handgezeichnete-illustration-des-planeten-erde.png") no-repeat;
}

#nw1 .tab {
  color: #ffffff;
  padding: 30px;
  overflow: hidden;
  border-radius: 3px;
  background:
    url("../img/icon-meldnungen.png") top 20px right 20px no-repeat,
    #0c5c82;
}

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

#nw1 .tabHeadline {
  color: #ffffff;
  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(3, 1fr);
  }
}

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

#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: 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 {
  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: #006699;
  border-radius: 0 3px 3px 0;
}

#nw1 .tab_link_title a {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: #0c5c82;
  line-height: 1.2;
  margin-bottom: 8px;
}

#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-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 3px;
  border: 1px solid #ffffff;
  background: rgba(0, 66, 97, 0.5);
  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: #006699;
}

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

footer {
  font-size: clamp(1rem, 2vw, 1.125rem);
  background: #006699;
}

footer,
footer * {
  color: #ffffff;
}

#footer {
  position: relative;
  background: center / cover no-repeat;
  padding: 32px 0;
  box-shadow: inset 0 0 0 100vw rgba(0, 81, 121, 0.8);
}

@media (min-width: 992px) {
  #footer::after {
    left: calc(50% - 20px);
  }
}

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

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

.footer-tab {
  padding-top: 100px;
  background: url("../img/heart.png") center top no-repeat;
}

@media (min-width: 768px) {
  .footer-tab {
    min-height: 80px;
    padding: 0 0 0 115px;
    background-position: left 15px center;
  }
}

#innerfooter {
  padding-top: 17px;
  padding-bottom: 17px;
  font-size: 1rem;
}

#innerfooter ul {
  padding: 0;
}

#innerfooter li {
  display: block;
}

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

@media (max-width: 575px) {
  #innerfooter a {
    padding: 6px;
    display: inline-block;
  }
}

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

@media (min-width: 576px) {
  #innerfooter li + li::before {
    content: "•";
    margin: 0 clamp(15px, 2vw, 25px);
    color: #fff;
  }

  #innerfooter li {
    display: inline-block;
  }
}

/* #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 {
  font-weight: inherit;
  color: #fff;
}
