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

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

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

a {
  color: #0e5301;
}

a:is(:hover, :focus),
#content .template-page a {
  color: #0e5301;
  text-decoration: underline;
}

#content a,
#footer a {
  font-style: italic;
}

b,
strong {
  font-weight: 500;
}

#overflow {
  overflow: clip;
}

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

.contact {
  background: #b93c4c;
  font-size: 1rem;
  padding: 15px;
  color: #fff;
  font-family: "Jost", sans-serif;
  hyphens: auto;
}
.contact a:is([href*="mailto"], [href*="formulare"]) {
  font-family: "Livvic", cursive;
  font-style: italic;
}

@media (min-width: 992px) {
  .contact {
    width: fit-content;
    margin-left: auto;
    position: relative;
    z-index: 1;
    padding: 6px 0 6px 20px;
  }

  .contact::after {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    top: 0;
    right: -380px;
    bottom: 0;
    left: 0;
    background: #b93c4c;
  }
}

.contact p {
  margin: 0;
  display: inline-block;
}

@media (max-width: 991px) {
  .contact p + p {
    margin-top: clamp(15px, 3vw, 30px);
  }
  .contact {
    padding: 10px 0 10px 0px;
  }
}

@media (min-width: 992px) {
  .contact p + p {
    margin-left: clamp(15px, 3vw, 30px);
  }
}

.contact img {
  margin-right: 4px;
  vertical-align: middle;
}

.contact a {
  color: inherit;
  text-decoration: underline;
}

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

#logo {
  position: relative;
  z-index: 10;
  display: inline-block;
  background: #fff;
  border-radius: 0 0 30px 30px;
  padding: 15px 40px;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);
  transition: width 300ms linear;
}

@media (max-width: 991px) {
  #logo {
    margin-bottom: -30px;
    width: 40%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .is-sticky #logo {
    width: 30%;
    transition: width 300ms linear;
  }
}

@media (min-width: 992px) {
  #logo {
    position: absolute;
    top: 0;
    left: 15px;
    transition: width 300ms linear;
    width: 100%;
  }

  .is-sticky #logo {
    width: 70%;
    transition: width 300ms linear;
  }
}

#logo img {
  display: block;
}

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

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

nav.horizontally {
  border-top: 5px solid #b93c4c;
}

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

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
    position: sticky;
    top: 0;
    z-index: 1010;
    background-color: #fff;
  }

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

  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 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: #333333;
  font-weight: 500;
  text-align: left;
  padding: 10px 15px 15px 15px;
  position: relative;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
  font-family: "Livvic", cursive;
}

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

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

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

nav.horizontally a[class*="toplevel"]::before {
  content: "";
  width: 0;
  height: 35px;
  bottom: 11px;
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: url(../img/hover.png) no-repeat;
  opacity: 0;
  transition: opacity 300ms linear, width 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;
  width: 100%;
}
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: #b93c4c;
}
/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 2px 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;
    border-radius: 10px;
  }

  nav.horizontally [class*="toplevel"] > ul {
    margin-top: 5px;
    border-radius: 10px;
    left: 90%;
    transform: translate(-50%, 0);
  }

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
  color: #333333;
  font-weight: 400;
  text-align: left;
  padding: 8px 15px;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color 300ms linear, border 300ms linear;
  font-family: "Jost", sans-serif;
}

@media (max-width: 991px) {
  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: #faeee0;
  border-color: #315857;
  color: #b93c4c;
}

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

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

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

@media (min-width: 992px) {
  #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/bannermaske.png") center bottom / 100% auto no-repeat;
}

@media (min-width: 1200px) {
  .slider-mask::before {
    content: "";
    position: absolute;
    background: url(../img/deko-maedchen.png) no-repeat;
    width: 135px;
    height: 199px;
    bottom: 5px;
    z-index: 0;
    pointer-events: none;
    right: 280px;
    display: block;
  }
}

.theme-nivo .nivo-controlNav {
  top: 10px !important;
}
/* ------------------------------------------- content ------------------------------------------ */

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

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

/* ----------------------------------------------- @10nw news -------------------------------------------- */

#nw10 .tab {
  margin-top: 112px;
  font-size: 1rem;
  color: #444444;
  position: relative;
  padding: 45px 20px 20px 20px;
  background: #ffffff;
  border-top: 4px solid #b93c4c;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 100px;
}

@media (max-width: 991px) {
  #nw10 .tab {
    margin-top: 30px;
    margin-bottom: 30px;
  }
}

#nw10 .tab::before {
  content: "";
  position: absolute;
  display: block;
  top: -32px;
  left: 0;
  right: 0;
  margin: auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: url("../img/icon-aktuelles.png") center no-repeat, #ffffff;
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.15);
}

#nw10 .tabSpecial {
  margin-bottom: 20px;
}

#nw10 .tabSpecial .tabHeadline {
  font-size: 1.5625rem;
  font-weight: 700;
  color: #b93c4c;
  margin-bottom: 0;
  font-family: "Livvic", cursive;
}

#nw10 .tab .tab_link_entries {
  display: grid;
  gap: 20px;
}

#nw10 .tab .tab_link_title a {
  color: #444444;
  font-weight: 600;
}

#nw10 .tab .tab_link_mandat a {
  color: #444444;
}

#nw10 .tab .tab_date {
  font-style: italic;
}

#nw10 .tab .tab_link_mehr {
  margin-top: 20px;
}

#nw10 .tab .tab_link_mehr a {
  text-decoration: none;
  display: inline-block;
  font-size: 0.9375rem;
  color: #fff;
  font-weight: 600;
  border-radius: 2px;
  padding: 3px 11px;
  background: #b93c4c;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

#nw10 .tab .tab_link_mehr a:hover,
#nw10 .tab .tab_link_mehr a:focus {
  color: #b93c4c;
  background: #faeee0;
}

#nw10 .tab .tab_preview_picture,
#nw10 .tab .tab_link_entry > div:nth-last-child(2),
#nw10 .tab .tab_spacer {
  display: none;
}
/* -------------------------------------- h1 - h6, newslink ------------------------------------- */

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
  color: #b93c4c;
  font-weight: 700;
  line-height: 1.2;
  font-family: "Livvic", cursive;
}

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

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

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

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

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

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

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

#footer {
  background: #faeee0 center / cover no-repeat;
  color: #333333;
  box-shadow: inset 0 0 0 100vw rgba(250, 238, 224, 0.9);
  font-size: 1.125rem;
}

#footer::after {
  content: "";
  display: block;
  height: 10px;
  width: 100%;
  background: #b93c4c;
}

#footer > .row {
  padding: clamp(30px, 10vw, 53px) 0 clamp(30px, 5vw, 45px) 0;
}

:is(#footer, #innerfooter) > .row {
  row-gap: 30px;
}

#footer a {
  text-decoration: underline;
}

#footer :is(h1, h2, h3, h4, h5, h6) {
  color: #b93c4c;
  font-weight: 700;
  font-family: inherit;
  margin-bottom: 25px;
  font-size: clamp(1.375rem, 2vw, 1.5625rem);
  font-family: "Livvic", cursive;
}

#footer .map :is(iframe, .iframe-wrapper-manual-enabling) {
  min-width: 100% !important;
  width: 100% !important;
  display: block;
}

@media (min-width: 992px) {
  #footer .footerTab2 {
    border-left: solid 1px rgba(185, 60, 76, 0.35);
  }
}

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

#innerfooter ul {
  padding: 0;
}

#innerfooter ul a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  padding: clamp(15px, 3vw, 26px);
  font-family: "Livvic", cursive;
  font-size: .9375rem;
}

@media (max-width: 991px) {
  #innerfooter ul a {
    padding: 8px clamp(15px, 3vw, 26px);
  }
}

#innerfooter ul a:is(:hover, :focus) {
  color: #b93c4c;
  background: #faeee0;
}

@media (min-width: 576px) {
  #innerfooter ul {
    margin-left: -20px;
  }

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

@media (min-width: 1200px) {
  #vernetzt::before {
    content: "";
    position: absolute;
    background: url(../img/deko-kind-baum.png) no-repeat;
    width: 213px;
    height: 257px;
    bottom: 50px;
    z-index: 0;
    pointer-events: none;
    right: -265px;
    display: block;
  }

  .map::before {
    content: "";
    position: absolute;
    background: url(../img/deko-baum.png) no-repeat;
    width: 103px;
    height: 460px;
    bottom: -80px;
    z-index: 0;
    pointer-events: none;
    left: -165px;
    display: block;
  }
}
/* #endregion -------------------------------- footer ------------------------------------------- */

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

#vernetzt {
  gap: 18px;
  text-align: right;
  font-size: 0.875rem;
  color: #000000;
  line-height: 1.3;
  font-weight: 400;
  text-decoration: none;
  font-family: "Livvic", cursive;
}

#vernetzt strong {
  color: #b93c4c;
  font-weight:600 ;
}

#vernetzt span span {
  display: block;
}
