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

html {
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  background: #ffede2;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  scrollbar-color: #33609f #ffffff;
  scrollbar-width: thin;
}

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

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

a {
  color: #33609f;
  text-decoration: underline;
}

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

b,
strong {
  font-weight: 700;
}

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

#logo {
  display: inline-block;
}

#logo img {
  display: block;
}

@media (max-width: 1199px) {
  #logo img {
    max-width: 210px;
    width: 100%;
    padding: 20px 0;
  }
}

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

/* burgermenu for tablet */

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

  #burgerButton::before,
  #burgerButton::after,
  #burgerButtonInner {
    background-color: #282828;
    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: #f5a670;
    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: 35px;
    right: 25px;
    z-index: 101;
  }

  .dropdown-toggle-button-wrapper {
    top: 7px;
  }

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

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

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

/* menu desktop */

@media (min-width: 1199px) {
  .horizontally {
    position: absolute;
    z-index: 56;
    left: 0;
    top: 30px !important;
    right: 0;
  }

  .horizontally > .row {
    padding: 0 30px;
    max-width: 1600px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 40px;
  }

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

  nav.horizontally .navbar-nav > li {
    flex-grow: 1;
  }

  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 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 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: #282828;
  font-weight: 300;
  text-align: left;
  padding: 10px 15px 15px 15px;
  position: relative;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}

@media (max-width: 1199px) {
  nav.horizontally a[class*="toplevel"].dropdown-toggle {
    padding-right: 35px;
  }
}

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

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

/* 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) {
  background-color: #f5a670;
}

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

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

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

  nav.horizontally [class*="toplevel"] > ul {
    border-radius: 5px;
    left: 0;
    top: 60px;
  }

  nav.horizontally [class*="toplevel"] > ul::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 20px;
    top: -20px;
    left: 0;
  }
  nav.horizontally [class*="secondlevel"] > ul {
    margin-top: -18px;
    border-radius: 5px;
    margin-left: 10px;
  }

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

/* secondlevel + thirdlevel */

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

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

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

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

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

#slider::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 200px;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  background: url("../img/bannermaske.png") center bottom / contain no-repeat;
}

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

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

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

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

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

.slider-mask {
  display: none;
}

.slider-wrapper::before {
  content: "";
  position: absolute;
  z-index: 12;
  width: 100%;
  height: 200px;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  background: url("../img/bannermaske.png") center bottom / contain no-repeat;
}

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

main {
  text-align: left;
  padding-bottom: 30px;
  padding-top: 30px;
}

@media (min-width: 992px) {
  main {
    padding-bottom: 60px;
    padding-top: 60px;
  }
}

/* ----------------------------------------------- @12ev events -------------------------------------------- */

#ev12 {
  color: #282828;
  font-size: 1rem;
  position: relative;
  background: #ffffff;
  box-shadow: 0px 0px 5px 0px rgba(43, 43, 43, 0.15);
}

@media (max-width: 992px) {
  #ev12 {
    margin-top: 30px;
  }
}

#ev12 .tabHeadline {
  margin-bottom: 0;
  text-align: center;
  color: #282828;
  font-size: 1.625rem;
  font-weight: 700;
  padding: 19px 25px;
  background: #f5a670;
}

#ev12 .tabContent .box,
#ev12 #clr-events-hide {
  padding: 20px;
}

#ev12 .tabContent .box {
  padding: 0;
  height: 0;
}

#ev12 #clr-events-hide > P:first-of-type {
  display: none;
}

/* html .clndr-next-button::after, html .clndr-previous-button::after {
  content: "";
} */

#ev12 .tab_link_title a {
  font-weight: 700;
  text-decoration: none;
  color: #33609f;
}

#ev12 .tab_link_mandat a {
  color: #282828;
  text-decoration: none;
}

#ev12 .tab_link_mehr {
  font-size: 0;
  text-align: right !important;
  padding: 0 !important;
}

#ev12 .tab_link_mehr a {
  text-decoration: none;
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 400;
  color: #282828;
  padding: 5px 15px;
  background: #dfebdb;
}

#ev12 .tab_link_mehr a:hover,
#ev12 .tab_link_mehr a:focus {
  background: #f5a670;
}

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

#nw1 {
  padding-top: 30px;
  padding-bottom: 30px;
}

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

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

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

#nw1 .tabHeadline {
  color: #282828;
  font-weight: 700;
  hyphens: auto;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
}

#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(2, 1fr);
  }
}

@media (min-width: 991px) {
  #nw1 .tabHeadline {
    padding-top: 60px;
  }
}

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

#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;
  transform: translateX(-50%) translateY(-50%);
}

#nw1 .tab_date {
  display: inline-block;
  position: absolute;
  z-index: 1;
  left: -1px;
  top: 105px;
  font-weight: 400;
  color: #282828;
  font-size: 0.875rem;
  padding: 6px 12px;
  background: #dfebdb;
  border-radius: 0 3px 3px 0;
}

#nw1 .tab_link_title a {
  display: block;
  font-weight: 700;
  font-size: 1.375rem;
  color: #33609f;
  line-height: 1.2;
  margin-bottom: 8px;
  text-decoration: none;
}

#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-decoration: none;
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 400;
  color: #ffffff;
  padding: 5px 30px 5px 20px;
  border-radius: 3px;
  border: 1px solid #ffffff;
  background: rgba(40, 40, 40, 0.8);
  transition:
    background 300ms linear,
    color 300ms linear;
  margin-top: 14px;
  position: relative;
}

#nw1 .buttonStyle a::before {
  position: absolute;
  right: 15px;
  content: "»";
}

@media (min-width: 768px) {
  #nw1 .buttonStyle a + a {
    margin-left: 12px;
  }
}

#nw1 .buttonStyle a:hover,
#nw1 .buttonStyle a:focus {
  color: #ffffff;
  background: #282828;
  border-color: transparent;
}

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

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

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

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

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

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

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

h6,
.h6,
.legacy_h6 {
  font-size: clamp(1.125rem, 3vw, 1.375rem);
}

/* ----------------------------------------------- @12f footer ----------------------------------------------- */

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

#footer {
  color: #282828;
  font-size: 1rem;
  background-color: #dfebdb;
}

#footer a,
#footer a:hover,
#footer a:focus {
  color: #282828;
}

#footer .footerTab {
  font-size: 1rem;
  padding-top: 20px;
  padding-bottom: 20px;
}

@media (min-width: 992px) {
  #footer {
    margin-top: 40px;
  }

  #footer .footerTab {
    padding-top: 55px;
    padding-bottom: 50px;
  }
}

#footer .tabHeadline {
  color: #282828;
  font-size: 1.25rem;
  font-weight: 700;
}

#footer .footerTab a {
  color: #282828;
}

#footer .footerTab a:hover,
#footer .footerTab a:focus {
  color: #282828;
  text-decoration: underline;
}

/* --------------------------------------------- innerfooter -------------------------------------------- */

#innerfooter {
  padding-top: 20px;
  padding-bottom: 20px;
}

@media (max-width: 767px) {
  #innerfooter {
    margin-bottom: 15px;
  }
}

@media (min-width: 992px) {
  #innerfooter {
    position: relative;
    padding-top: 40px;
    padding-bottom: 40px;
    padding-right: 100px;
  }

  #innerfooter::after {
    content: "";
    position: absolute;
    pointer-events: none;
    top: 0;
    bottom: 0;
    right: -95px;
    width: 50%;
    background: #dfebdb;
    transform: skewX(10deg);
    transition: background 300ms linear;
    z-index: 0;
  }
}

@media (min-width: 1200px) {
  #innerfooter::after {
    right: -160px;
  }
}

#innerfooter ul {
  padding: 0;
  z-index: 1;
  position: relative;
}

#innerfooter li {
  width: 100%;
  display: inline-block;
}

#innerfooter li {
  border-bottom: 2px solid rgba(40, 40, 40, 0.3);
  transition: border 300ms linear;
}

#innerfooter a {
  display: block;
  font-weight: 400;
  position: relative;
  font-size: 1.125rem;
  text-decoration: none;
  padding: 6px 10px 6px 20px;
}

#innerfooter li:hover {
  border-bottom: 2px solid rgb(40, 40, 40);
}

#innerfooter a::before {
  content: "";
  position: absolute;
  display: block;
  left: 2px;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(40, 40, 40, 0.8);
  transition: background 300ms linear;
}

#footerBG {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  display: block;
}

@media (min-width: 992px) {
  #footerBG {
    left: calc((100vw - 992px) / -2);
  }
}

@media (min-width: 1200px) {
  #footerBG {
    left: calc((100vw - 1200px) / -2);
  }
}

@media (max-width: 991px) {
  #footerBG {
    display: none;
  }
}

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

#vernetzt {
  font-size: 1rem;
  color: #282828;
  text-decoration: none !important;
}

#vernetzt span {
  display: block;
}
