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

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

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

a {
  color: #866a23;
}

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

b,
strong {
  font-weight: 700;
}

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

#logo {
  display: inline-block;
}

#logo img {
  display: block;
}

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

/* #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: #213564;
    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: 4px;
  }

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

/* menu desktop */

nav.horizontally {
  padding: 17px 0;
  transition: all 0.3s 0s ease;
}

.is-sticky nav.horizontally {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
}

@media (min-width: 992px) {
  nav.horizontally > .row {
    row-gap: 15px;
  }
  nav.horizontally,
  .sticky-wrapper {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 54;
  }

  nav.horizontally .navbar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }

  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, :hover) > ul,
  nav.horizontally .navbar-nav li.open:focus-within > 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.open > ul {
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden;
  }

  nav.horizontally .navbar-nav li:is(:hover, :focus) > ul {
    z-index: 1003;
  }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
  color: #213564;
  font-weight: 400;
  text-align: center;
  padding: 10px 35px;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
}

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

  nav.horizontally a[class*="toplevel"] {
    padding: 10px 10px;
  }
}

/* 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: #213564;
  background-color: #cfa63d;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  padding: 20px 0;
  background-color: #ffffff;
  filter: drop-shadow(0px 2px 5px rgba(0, 0, 0, 0.08));
}

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

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

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

  nav.horizontally [class*="toplevel"] > ul::after {
    top: -12px;
    left: calc(50% - 14px);
    width: 28px;
    height: 12px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: #ffffff;
  }

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

  nav.horizontally [class*="secondlevel"] > ul {
    margin-top: -20px;
    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: #213564;
  font-weight: 400;
  text-align: center;
  padding: 9px 35px;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}

@media (min-width: 992px) {
  nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    padding: 9px 25px;
  }
}

/* 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: #cfa63d;
  color: #213564;
}

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

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

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

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

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

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

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

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

/* ------------------------------------------------ @1tab ----------------------------------------------- */

#tab1 {
  padding: 60px 0;
  background: rgba(161, 214, 245, 0.3);
}

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

@media (max-width: 575px) {
  #tab1 > .row > * + * {
    margin-top: 30px;
  }
}

#tab1 .tab {
  padding: 20px;
  font-size: 1rem;
  color: #444444;
  min-height: 100%;
  background-color: #ffffff;
  box-shadow: 0px 10px 51px 0px rgba(43, 43, 43, 0.1);
  -webkit-box-shadow: 0px 10px 51px 0px rgba(43, 43, 43, 0.1);
  -moz-box-shadow: 0px 10px 51px 0px rgba(43, 43, 43, 0.1);
}

@media (min-width: 992px) {
  #tab1 > .row :is(h1, h2, h3, h4, h5, h6) {
    margin-bottom: 35px;
  }
}
#tab1 > .row :is(h1, h2, h3, h4, h5, h6) {
  font-size: 2.8125rem;
}
#tab1 > .row {
  row-gap: 40px;
}

#tab1 .tab :is(h1, h2, h3, h4, h5, h6) {
  font-size: 1.375rem;
  font-weight: 700;
  color: #213564;
  font-family: "Figtree", sans-serif;
  hyphens: auto;
}

#tab1 .tab a:not(.has-image):not([rel]):not(.has-image) {
  text-decoration: none;
  display: inline-block;
  color: #213564;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 7px 14px;
  margin-top: 15px;
  background-color: #e3f3fc;
  transition: background 300ms linear;
}

#tab1 .tab a:not(.has-image):not([rel]):not(.has-image):hover,
#tab1 .tab a:not(.has-image):not([rel]):not(.has-image):focus {
  background: #cfa63d;
}

#tab1 .tab img {
  margin: -20px -20px 25px -20px;
  display: block;
  width: calc(100% + 40px) !important;
  min-width: calc(100% + 40px) !important;
}

#tab1 .reihe-2 {
  margin-top: 40px;
}
/* -------------------------------------- h1 - h6, newslink ------------------------------------- */

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

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

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

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

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

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

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

/* ---------------------------------------------- tabs ------------------------------------------ */

#kontakt {
  background-color: #ffffff;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#kontakt .tab {
  padding: 60px clamp(40px, 6vw, 80px);
  color: #444444;
  background: #ffffff;
  font-size: 1.125rem;
  line-height: 1.2;
}

#kontakt .tabHeadline {
  color: #213564;
  margin: 0 0 10px 0;
  font-size: 2rem;
}

@media (min-width: 768px) {
  #kontakt .tabHeadline::after {
    margin-left: auto;
    margin-right: 0;
  }
}

#kontakt a {
  color: #866a23;
  text-decoration: underline;
}

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

#footer {
  background-color: #ffffff;
  padding: clamp(10px, 3vw, 20px) 0px;
  color: #444444;
}

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

#innerfooter ul {
  padding: 0;
}

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

  #innerfooter li + li {
    margin-left: clamp(20px, 3vw, 40px);
  }
}

#innerfooter a {
  color: #444444;
  text-decoration: none;
  display: inline-block;
  font-weight: 400;
  font-size: 0.9375rem;
}

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

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

#vernetzt {
  gap: 12px;
  text-align: left;
  font-size: 0.8125rem;
  color: #444444;
  line-height: 1.3;
  text-decoration: none;
}

#vernetzt span span {
  display: block;
}

#vernetzt b {
  color: #866a23;
  font-weight: 400;
}
#vernetzt b:is(:hover, :focus) {
  text-decoration: underline;
}
