@import url("https://fonts.verwaltungsportal.de/import/?family=Poppins:400,500,600,400i,500i,600i");

html {
  max-width: 1930px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(241, 171, 57, 0.7);
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  scrollbar-color: #a66321 #ffffff;
  scrollbar-width: thin;
}

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

a {
  color: #a66321;
}

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

b,
strong {
  font-weight: 600;
}

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

.logo {
  display: inline-block;
}

.logo img {
  display: block;
}

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

@media (min-width: 992px) {
  #logo {
    margin-bottom: -40px;
  }
  #logo img {
    max-height: 140px;
  }
}

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

/* burgermenu for tablet */

@media (max-width: 991px) {
  nav.horizontally {
    position: static !important;
    padding: 28px 0;
    background-color: #34348a;
  }

  #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: #34348a;
    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: #34348a;
    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: 2px;
  }
}

/* menu desktop */

@media (min-width: 992px) {
  .sticky-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
  }

  nav.horizontally {
    padding: 15px 0 15px 0;
    background: rgba(52, 52, 138, 0.7);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    right: 0;
    top: 0;
    max-width: 1930px;
    width: 100%;
    z-index: 101;
    transition: 150ms linear all;
  }

  .is-sticky nav.horizontally {
    background: #34348a;
    padding-top: 30px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.1);
    color: #ffffff;
  }

  nav.horizontally .navbar-nav {
    display: flex;
    justify-content: end;
    align-items: center;
    position: relative;
    top: 16px;
  }

  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: #ffffff;
  font-weight: 500;
  text-align: center;
  padding: 15px 35px 15px 35px;
  text-transform: uppercase;
  position: relative;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}

@media (min-width: 992px) {
  nav.horizontally a[class*="toplevel"] {
    color: #ffffff;
    padding: 12px 0;
  }

  nav.horizontally li[class*="toplevel"] + li {
    margin-left: 20px;
  }

  .is-sticky nav.horizontally a[class*="toplevel"] {
    color: #ffffff;
  }

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

  nav.horizontally a[class*="toplevel"].dropdown-toggle::after {
    content: "";
    position: absolute;
    display: block;
    right: 0;
    top: 50%;
    margin-top: -6px;
    width: 5px;
    height: 5px;
    display: inline-block;
    border-left: 2px solid rgba(255, 255, 255, 1);
    border-bottom: 2px solid rgba(255, 255, 255, 1);
    transform: rotate(-45deg);
    transition: border 300ms linear;
  }

  .is-sticky nav.horizontally a[class*="toplevel"].dropdown-toggle::after {
    border-color: #ffffff;
  }
}

nav.horizontally a[class*="toplevel"]::before {
  content: "";
  height: 2px;
  display: block;
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 4px;
  background-color: #f1ab39;
  opacity: 0;
  transition: opacity 300ms linear, right 300ms linear, left 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: 1;
  right: 0;
  left: 0;
}

@media (min-width: 992px) {
  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 {
    right: 15px;
  }
}

/* secondlevel + thirdlevel dropdown-box */

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

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

  nav.horizontally [class*="toplevel"] > ul {
    margin-top: 20px;
    left: -25px;
  }

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

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

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

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

/* secondlevel + thirdlevel */

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

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

  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) {
  color: #a66321;
}

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

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

@media (min-width: 768px) {
  #headerpic .nivo-controlNav {
    bottom: 60px;
  }
}

@media (min-width: 992px) {
  body.index #slider {
    max-height: clamp(450px, 67vw, 750px);
  }

  #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: block;
  background: url("../img/welle-banner.png") bottom -1px center / 100% auto no-repeat;
}

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

main {
  background: #ffffff;
}

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

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

/* ------------------------------------------ tab buttons --------------------------------------- */

#content .tabContent a {
  width: 90%;
  margin: 10px 5% 0 5%;
}

#c2a a {
  display: inline-block;
  margin-top: 10px;
  background: #f1ab39;
  color: #34348a;
}

:is(#content .tabContent, .button-style) a {
  display: block;
  background: #f1ab39;
  color: #34348a;
}

:is(#content .tabContent, #c2a, .button-style) a {
  font-size: 1rem;
  font-weight: 500;
  padding: 13px 30px;
  text-decoration: none;
  border-radius: 2px;
  text-align: center;
  text-transform: uppercase;
}

:is(#content .tabContent, #c2a, .button-style) a:is(:hover, :focus) {
  color: #ffffff;
  background: #34348a;
}

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

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

h1,
.h1,
.legacy_h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  text-transform: none;
}

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

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

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

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

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

/* #region ---------------------------------- aktuelles ----------------------------------------- */

#aktuelles {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

#aktuelles::before {
  content: "";
  position: absolute;
  background: url(../img/angler.png);
  width: 595px;
  height: 499px;
  transform: translateX(-100%);
  top: 60%;
  z-index: 1;
  pointer-events: none;
  left: 595px;
  display: block;
  background-repeat: no-repeat;
}
@media (max-width: 1420px) {
  #aktuelles::before {
    display: none !important;
  }
}

#aktuelles::before,
#aktuelles::after {
  content: "";
  display: block;
}

#aktuelles::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background: url("../img/welle-footer.png") center bottom / 100% auto no-repeat;
}

#aktuelles > .row {
  padding: clamp(30px, 4vw, 50px) 0 clamp(110px, 10vw, 190px) 0;
  z-index: 2;
}
#aktuelles h1 {
  color: #34348a;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

#aktuelles h2 {
  color: #222222;
  font-weight: 500;
  line-height: 1.2;
  font-size: clamp(1.55rem, 4vw, 1.875);
  text-transform: none;
  top: -10px;
  position: relative;
}

#aktuelles .template-page :is(h1, h2, h3, h4, h5, h6) :is(i, em) {
  font-size: clamp(1.625rem, 3.5vw, 1.875rem);
  text-transform: none;
  color: #222222;
  font-style: normal;
  display: block;
}

#aktuelles .tab_link {
  margin-top: clamp(20px, 2vw, 40px);
}

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

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

@media (min-width: 992px) {
  #aktuelles .tab_link_entries {
    grid-template-columns: repeat(3, 1fr);
  }
}

#aktuelles .tab_link_entry {
  border-bottom: none !important;
  text-align: center;
  position: relative;
  background: #ffffff;
  padding: 165px 20px 20px 20px;
  box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.1);
  font-size: 1rem;
}
#aktuelles .tab_link_entry::before {
  content: "";
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: grey;
  background: url("../img/platzhalter-aktuelles.jpg") center / cover no-repeat;
}

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

#aktuelles .tab_link_entry .tab_link_title a::before,
#aktuelles .tab_link_entry .tab_preview_picture {
  display: block;
  height: 150px;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

#aktuelles .tab_preview_picture img {
  margin: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#aktuelles .tab_date {
  font-size: 1rem;
  position: absolute;
  left: 50%;
  top: 134px;
  z-index: 1;
  display: inline-block;
  padding: 4px 10px;
  background: #f1ab39;
  color: #34348a;
  transform: translateX(-50%);
  font-weight: 500;
}

#aktuelles .tab_link_title a {
  color: #222222;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
  text-decoration: none;
}

#aktuelles .tab_link_entry .tab_link_mehr {
  font-size: 0;
  line-height: 0;
}

#aktuelles .tab_link_entry .tab_link_mehr > a {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url("../img/mehr-erfahren.png") center top calc(50% - 20px) no-repeat, linear-gradient(to bottom, rgba(52, 52, 138, 0.8), rgba(52, 52, 138, 1) 150px);
  z-index: 1;
  color: #ffffff;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  padding-top: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  opacity: 0;
  text-decoration: none;
  transition: opacity 200ms linear;
}

#aktuelles .tab_link_entry:is(:hover, :focus-within) .tab_link_mehr > a {
  opacity: 1;
}

#aktuelles .button-style {
  margin-top: 30px;
}

/* #endregion ------------------------------- aktuelles ----------------------------------------- */

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

#footer {
  background: #34348a;
  padding: 10px 0 30px 0;
  color: #ffffff;
  font-size: 1rem;
}

@media (min-width: 992px) {
  #footer {
    padding: 43px 0 55px 0;
  }
}

@media (max-width: 1410px) {
  #innerfooter::before {
    display: none;
  }
}

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

#footer :is(h1, h2, h3, h4, h5, h6) {
  font-size: inherit;
  color: inherit;
  margin: 0 0 2px 0;
}

#footer .template-page a {
  color: #f1ab39;
}

#innerfooter {
  background: #ffffff;
  padding: 15px 0;
  font-size: 0.875rem;
}

#innerfooter ul {
  padding: 0;
}

#innerfooter li {
  display: inline-block;
}

#innerfooter a {
  color: #222222;
  display: inline-block;
  font-weight: 400;
}

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

#innerfooter li + li::before {
  content: "•";
  margin: 0 clamp(15px, 2vw, 25px);
  color: #222222;
}

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

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

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

#vernetzt b {
  font-weight: 500;
  color: #f1ab39;
}

#vernetzt span span {
  display: block;
}

/* ------------------------------------------ call to action ------------------------------------ */

#slideOut {
  position: relative;
  z-index: 1;
}

#c2a {
  position: sticky;
  bottom: 0;
  width: 100%;
  font-size: clamp(1.125rem, 3vw, 1.625rem);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #34348a;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(56, 49, 41, 0.3);
}

#c2aContainer {
  padding: 130px 0;
  position: relative;
}

#c2a :is(h1, h2, h3, h4, h5, h6) {
  color: #ffffff;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 4vw, 3.75rem);
  font-weight: 600;
}

#c2a h1 {
  font-size: clamp(1.75rem, 4vw, 3.75rem);
}
