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

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

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

a {
  color: #de381b;
}

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

b,
strong {
  font-weight: 600;
}

.overflow {
  overflow: clip;
  position: relative;
}
/* ------------------------------------------------- logo ------------------------------------------------ */

#logo {
  display: inline-block;
}

#logo img {
  display: block;
}

@media (max-width: 991px) {
  #logo img {
    max-width: 210px;
    width: 100%;
  }
  #logo {
    margin-top: 30px;
  }
}

@media (min-width: 992px) {
  #logo {
    padding: 30px 46px 30px 52px;
    background-color: #fff;
  }
  #logoBereich {
    margin-top: -180px;
    z-index: 12;
    position: relative;
    margin-bottom: 10px;
  }
}

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

/* burgermenu for tablet */

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

  #burgerButton::before,
  #burgerButton::after,
  #burgerButtonInner {
    background-color: #de381b;
    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: 7px;
  }

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

/* menu desktop */

@media (min-width: 992px) {
  nav.horizontally {
    background: #ffffff;
    padding: 25px 0 21px 0;
    transition: all 0.2s 0s linear;
  }

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

  nav.horizontally .navbar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-left: 30px;
    margin-right: 30px;
  }

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

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

  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"] {
    padding: 11px 0;
  }
}

nav.horizontally a[class*="toplevel"]::before {
  content: "";
  width: 0;
  height: 2px;
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: #de381b;
  opacity: 0;
  transition:
    opacity 300ms linear,
    width 300ms linear;
}

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

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: 50%;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
  background-color: #ffffff;
  border: solid 1px rgba(57, 27, 25, 0.3);
  padding: 30px;
}

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

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

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

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

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

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

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

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

/* secondlevel + thirdlevel */

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

@media (max-width: 991px) {
  nav.horizontally a[class*="secondlevel"].dropdown-toggle2 {
    padding-right: 35px;
  }
  nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    padding: 9px 25px 9px 25px;
  }
}

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):not(:nth-child(2)) {
  border-top: 1px solid rgba(57, 27, 25, 0.2);
}

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

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

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

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

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

  #headerpic a.nivo-nextNav {
    right: 65px;
  }
  #headerpic .theme-nivo .nivo-controlNav {
    left: 210px;
  }
}

#headerpic {
  padding: 0;
  overflow: hidden;
  position: relative;
  background: #381b19;
}
.theme-nivo .nivo-controlNav .slick-dots li,
.nivo-directionNav a,
a.nivo-control,
a.nivo-control.active,
.nivo-controlNav span {
  color: #ffffff !important;
}
.slider-wrapper,
#slider {
  height: 100%;
}

.slider-mask {
  display: block;
  background: rgba(56, 27, 25, 0.65);
}

/* banner overlay */

#bannerOverlay {
  color: #ffffff;
  padding: 30px;
  text-align: center;
  hyphens: auto;
}

@media (max-width: 767px) {
  #bannerOverlay {
    background: #381b19;
  }

  body:not(.index) header > .row > *:first-child {
    display: none;
  }
}

@media (min-width: 768px) {
  #bannerOverlay {
    position: absolute;
    left: 0;
    top: 40%;
    right: 0;
    z-index: 50;
  }
}
@media (min-width: 992px) {
  #bannerOverlay {
    top: 12%;
  }
}

@media (min-width: 1200px) {
  #bannerOverlay {
    bottom: 220px;
    top: unset;
  }
}

#bannerOverlay a {
  text-shadow: none;
}

#bannerOverlay :is(h1, h2, h3, h4, h5, h6, .bannerHeadline) {
  color: #ffffff;
  margin: 0 0 5px 0;
  text-transform: uppercase;
  font-size: clamp(1.875rem, 2vw, 2.375rem);
  font-weight: 700;
  font-family: "Ubuntu", sans-serif;
}
/* ------------------------------------------------ content ----------------------------------------------- */

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

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

/* #region ------------------------------------ news -------------------------------------------- */

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

#news > .row {
  padding: clamp(40px, 6vw, 70px) 0 clamp(40px, 6vw, 64px) 0;
}

@media (min-width: 1200px) {
  #news .tab_link {
    margin-top: -30px;
  }
}
#news .tabSpecialHeadline :is(h1, h2, h3, h4, h5, h6) {
  font-family: "Ubuntu", sans-serif;
  font-size: clamp(1.625rem, 4.5vw, 2rem);
  color: #fff !important;
  text-transform: uppercase;
}

#news .tab_link_entries {
  display: grid;
  gap: 30px;
  margin-top: clamp(30px, 4vw, 60px);
}

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

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

#news .tab_link_entry {
  font-size: 1rem;
  position: relative;
  box-shadow: 0 60px 30px -30px rgba(66, 58, 1, 0.2);
  background: #ffffff;
  padding: 260px 20px 70px 20px;
  border: none !important;
  color: #252525;
}

#news .tab_link_entry::after {
  content: "";
  position: absolute;
  display: block;
  top: 200px;
  left: 0;
  right: 0;
  width: 50px;
  height: 50px;
  margin: auto;
  background: #ffffff url("../img/icon-aktuelles.png") center no-repeat;
  border-radius: 50%;
  z-index: 2;
}

#news .tab_link_entry::before,
#news .tab_link_entry .tab_preview_picture {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  right: 0;
  height: 227px;
  overflow: hidden;
}

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

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

#news .tab_link_title a {
  font-weight: 500;
  font-size: 1.25rem;
  display: block;
  color: #cd381d;
  margin-bottom: 20px;
  line-height: 1.2;
  font-family: "Ubuntu", sans-serif;
}

#news .tab_date {
  font-size: 0.875rem;
  font-style: italic;
}

#news .tab_link_entry .tab_link_mehr {
  font-size: 0;
}

#news .tab_link_entry .tab_link_mehr a {
  display: inline-block;
  position: absolute;
  text-decoration: none;
  bottom: 20px;
  left: 20px;
  font-size: 0.875rem;
  color: inherit;
  padding: 7px 26px;
  background-color: #ffffff;
  border: 2px solid #cd381d;
  margin-top: 25px;
  transition: all 200ms linear;
}

#news .tab_link_entry .tab_link_mehr :is(a:hover, :focus) {
  background-color: #cd381d;
  color: #ffffff;
}

#news .tab_spacer {
  height: 5px;
}

.tabSpecialButton a {
  background: #381b19;
  font-size: 1rem;
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  padding: 16px 70px 16px 20px;
  display: inline-block;
  width: 100%;
  position: relative;
  margin-top: 10px;
  line-height: 1.2;
  text-align: center;
}

@media (min-width: 768px) {
  .tabSpecialButton a {
    max-width: 270px;
  }
}

.tabSpecialButton a::before {
  content: "\00BB";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50px;
  line-height: 50px;
  display: block;
  background-color: #502826;
  transition: background-color 300ms linear;
  font-family: "Rubrik", sans-serif;
  font-size: 1.25rem;
}

.tabSpecialButton a:is(:hover, :focus) {
  background: #cd381d;
}

.tabSpecialButton a:is(:hover, :focus)::before {
  background: #aa2f19;
}

.tabSpecialButton .btgrid > .row {
  align-items: center;
}

@media (min-width: 1200px) {
  #news > .row::before {
    content: "";
    position: absolute;
    background: rgba(129, 187, 39, 0.6);
    height: auto;
    width: 564px;
    z-index: 0;
    pointer-events: none;
    display: block;
    top: 0;
    bottom: 0;
    right: -80px;
    margin: auto;
  }
  #news > .row::after {
    content: "";
    position: absolute;
    background: url(../img/bunt-deko-linie.png);
    height: auto;
    width: 4px;
    z-index: 0;
    pointer-events: none;
    display: block;
    top: 0;
    bottom: 0;
    right: -80px;
    margin: auto;
  }
}
/* #endregion --------------------------------- news -------------------------------------------- */

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

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

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

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

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

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.75rem);
}

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

/* #region -------------------------------------- search ---------------------------------------- */

#searchbar {
  background: #ebe8e8;
  color: #252525;
  padding: 30px 0;
}

@media (max-width: 767px) {
  #searchbar {
    padding: 30px 0;
  }
  #searchbar > .row {
    row-gap: 30px;
  }
}



#searchbar a {
  color: #fff;
}

#search {
  background: #fff;
  display: flex;
}

#search_input {
  color: #252525;
  font-size: 1rem;
  font-style: normal;
  background: transparent;
  font-weight: 400;
  border: 0;
  width: 100%;
  padding: 14px 30px;
}

#search_submit {
  width: 55px;
  flex-shrink: 0;
  font-size: 0;
  background: url("../img/icon-lupe.png") center no-repeat;
  background-color: #391b19;
  padding: 0;
  cursor: pointer;
  border: none;
  transition: background-color 300ms linear;
}

#search_submit:is(:hover, :focus) {
  background-color: #cd381d;
}

#search input::placeholder {
  color: #252525 !important;
  opacity: 1 !important;
  font-style: normal !important;
}

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

footer {
  font-size: 1rem;
  background: #ffffff;
  color: #252525;
}

#footerBereich {
  position: relative;
}

@media (min-width: 1200px) {
  #footerBereich #kontakt > .row::after {
    content: "";
    position: absolute;
    background: url(../img/bunt-deko-linie.png);
    height: auto;
    width: 4px;
    z-index: 2;
    pointer-events: none;
    display: block;
    top: -55px;
    bottom: -192px;
    left: -75px;
    margin: auto;
  }
}

#kontakt {
  padding: clamp(40px, 4vw, 55px) 0 clamp(40px, 4vw, 50px) 0;
}

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

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

#kontakt a:is(:hover, :focus) {
  text-decoration: none;
}

#kontakt :is(b.strong) {
  font-weight: 600;
}
.footerHeadline {
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.625rem;
  color: #391b19;
  font-family: "Ubuntu", sans-serif;
}

#footer {
  background: #391b19;
  padding: 34px 0 28px 0;
}

/* ------------------------------------------ GoogleMaps ---------------------------------------- */

.iframeMapsTab :is(iframe, .iframe-wrapper-manual-enabling) {
  min-width: 100%;
  width: 100%;
  display: block;
}

@media (min-width: 768px) {
  .iframeMapsTab :is(iframe, .iframe-wrapper-manual-enabling) {
    margin-bottom: -100px;
  }
}

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

#innerfooter ul {
  padding: 0;
}

#innerfooter ul a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
}

#innerfooter li {
  display: inline-block;
}

#innerfooter li + li {
  margin-left: 25px;
}

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

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

#vernetzt {
  gap: 15px;
  text-align: left;
  font-size: 0.8125rem;
  color: #ffffff;
  line-height: 1.6;
  text-decoration: none;
}

#vernetzt span span {
  display: block;
}
