.beyer-form-unavailable {
  margin: 0 0 28px;
  padding: 24px;
  border: 1px solid #d8d8d8;
  border-left: 4px solid #009900;
  background: #f7f7f7;
  color: #555555;
}

.beyer-form-unavailable h2 {
  margin: 0 0 10px;
  color: #333333;
  font-size: 24px;
}

.beyer-form-unavailable p:last-child {
  margin-bottom: 0;
}

.beyer-form-unavailable__button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 2px;
  background: #009900;
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none !important;
}

.beyer-form-unavailable__button:hover,
.beyer-form-unavailable__button:focus-visible {
  background: #007a00;
}

#avia-menu > .menu-item-has-children:focus-within > .sub-menu,
#avia-menu > .menu-item-has-children:hover > .sub-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}

.beyer-mobile-nav[hidden] {
  display: none !important;
}

.beyer-mobile-nav {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgb(0 0 0 / 48%);
}

.beyer-mobile-nav__panel {
  width: min(420px, 92vw);
  height: 100%;
  overflow-y: auto;
  background: #ffffff;
  box-shadow: -10px 0 28px rgb(0 0 0 / 18%);
  color: #444444;
  overscroll-behavior: contain;
}

.beyer-mobile-nav__heading {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #e3e3e3;
}

.beyer-mobile-nav__heading strong {
  font-size: 19px;
}

.beyer-mobile-nav__close,
.beyer-mobile-nav__submenu-toggle {
  display: inline-flex;
  min-width: 46px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #444444;
  cursor: pointer;
}

.beyer-mobile-nav__close {
  font-size: 34px;
  line-height: 1;
}

.beyer-mobile-nav-list,
.beyer-mobile-nav-list .sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.beyer-mobile-nav-list > li {
  position: relative;
  border-bottom: 1px solid #eeeeee;
}

.beyer-mobile-nav-list a {
  display: flex;
  min-height: 50px;
  align-items: center;
  padding: 12px 66px 12px 22px;
  color: #444444;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.beyer-mobile-nav-list a:hover,
.beyer-mobile-nav-list a:focus-visible {
  background: #f5f5f5;
  color: #009900;
}

.beyer-mobile-nav__submenu-toggle {
  position: absolute;
  top: 2px;
  right: 8px;
  font-size: 24px;
}

.beyer-mobile-nav-list .sub-menu {
  position: static !important;
  width: 100% !important;
  border: 0 !important;
  background: #f6f6f6;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.beyer-mobile-nav-list .sub-menu[hidden] {
  display: none !important;
}

.beyer-mobile-nav-list .sub-menu a {
  min-height: 46px;
  padding-left: 38px;
  font-size: 15px;
  font-weight: 500;
}

body.beyer-mobile-nav-open,
body.beyer-lightbox-open {
  overflow: hidden;
}

.av-masonry-container.beyer-static-masonry {
  position: relative !important;
  display: grid !important;
  height: auto !important;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 18px;
}

.beyer-static-masonry > .av-masonry-entry {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  display: block;
  visibility: visible !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  opacity: 1 !important;
  transform: none !important;
}

.beyer-static-masonry > .av-masonry-item-no-image:not(a) {
  display: none !important;
}

.beyer-static-masonry .av-inner-masonry,
.beyer-static-masonry .av-masonry-outerimage-container,
.beyer-static-masonry .av-masonry-image-container {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  height: auto !important;
  min-height: 0 !important;
  transform: none !important;
}

.beyer-static-masonry .av-masonry-image-container img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.beyer-static-masonry .av-inner-masonry-content {
  position: relative !important;
  inset: auto !important;
}

.beyer-static-slider .avia-content-slider-inner {
  height: auto !important;
}

.beyer-static-slider .slide-entry-wrap {
  position: relative !important;
  left: auto !important;
  opacity: 1 !important;
  transform: none !important;
}

.beyer-static-slider__controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.beyer-static-slider__controls button {
  width: 44px;
  height: 44px;
  border: 1px solid #dddddd;
  border-radius: 50%;
  background: #ffffff;
  color: #444444;
  font-size: 28px;
  cursor: pointer;
}

.beyer-contact-map {
  width: 100%;
  max-width: 600px;
}

.beyer-contact-map iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 320px;
  border: 0;
}

.beyer-contact-map__route {
  margin: 10px 0 0;
}

.beyer-contact-map__route a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 16px;
  border-radius: 2px;
  background: #009900;
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
}

.beyer-contact-map__route a:hover,
.beyer-contact-map__route a:focus-visible {
  background: #007a00;
  color: #ffffff !important;
}

.beyer-legacy-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 92%);
  color: #ffffff;
}

.beyer-legacy-lightbox::backdrop {
  background: rgb(0 0 0 / 86%);
}

.beyer-legacy-lightbox__frame {
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  grid-template-columns: minmax(52px, 8vw) minmax(0, 1fr) minmax(52px, 8vw);
}

.beyer-legacy-lightbox figure {
  display: flex;
  max-width: 1180px;
  max-height: calc(100vh - 64px);
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin: auto;
}

.beyer-legacy-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 115px);
  object-fit: contain;
}

.beyer-legacy-lightbox figcaption {
  padding: 12px 14px;
  color: #ffffff;
  font-size: 15px;
  text-align: center;
}

.beyer-legacy-lightbox button {
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.beyer-legacy-lightbox__close {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 12px;
  width: 52px;
  height: 52px;
  font-size: 38px;
}

.beyer-legacy-lightbox__previous,
.beyer-legacy-lightbox__next {
  min-width: 52px;
  min-height: 72px;
  font-size: 48px;
}

.beyer-legacy-lightbox__counter {
  position: absolute;
  right: 78px;
  bottom: 16px;
  margin: 0;
  color: #dddddd;
  font-size: 13px;
}

[data-beyer-gallery] a[href$='.jpg'],
[data-beyer-gallery] a[href$='.jpeg'],
[data-beyer-gallery] a[href$='.png'],
[data-beyer-gallery] a[href$='.webp'],
[data-beyer-gallery] a[href$='.gif'] {
  cursor: zoom-in;
}

/* Sichtbare ehemalige H1-Überschriften bleiben semantisch H2, verwenden aber
   weiterhin exakt die charakteristische Beyer-Handschrift des Originals. */
h2.legacy-original-h1 {
  font-family: 'wc_mano_negra_btaregular', sans-serif !important;
  font-size: 38px !important;
  line-height: 1.1em !important;
  font-weight: normal !important;
  text-transform: none !important;
}

/* Das schwebende Bewertungssiegel bleibt kompakt, damit es keine Inhalte
   verdeckt. Mobil zeigt ProvenExpert nur die runde Kurzform. */
@media only screen and (min-width: 600px) {
  .pe-pro-seal {
    transform: scale(0.8) !important;
    transform-origin: right bottom !important;
  }
}

@media only screen and (max-width: 599px) {
  .pe-pro-seal {
    display: block !important;
    transform: none !important;
  }

  .pe-pro-seal .pe-pro-seal-hide-widget-on-mobile {
    display: block !important;
  }

  .pe-pro-seal .pe-pro-seal-back-page {
    display: none !important;
  }

  .pe-pro-seal .pe-pro-seal-front-page-a {
    position: fixed !important;
    z-index: 9999 !important;
    right: 10px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    left: auto !important;
    top: auto !important;
    width: 76px !important;
    height: 76px !important;
    overflow: hidden !important;
    border-radius: 50% !important;
  }

  .pe-pro-seal .pe-pro-seal-front-top {
    width: 76px !important;
    height: 76px !important;
  }

  .pe-pro-seal .pe-pro-seal-icon {
    position: absolute !important;
    top: 3px !important;
    right: 3px !important;
    bottom: auto !important;
    left: auto !important;
    width: 70px !important;
    height: 70px !important;
    margin: 0 !important;
  }

  .pe-pro-seal .pe-pro-seal-minimize-button,
  .pe-pro-seal .pe-pro-seal-rating-text,
  .pe-pro-seal .pe-pro-seal-stars,
  .pe-pro-seal .pe-pro-seal-bar-mobile,
  .pe-pro-seal .pe-pro-seal-footer {
    display: none !important;
  }
}

@media only screen and (max-width: 767px) {
  .beyer-form-unavailable {
    padding: 20px;
  }

  .beyer-form-unavailable h2 {
    font-size: 21px;
  }

  .beyer-contact-map iframe {
    min-height: 280px;
  }

  .av-masonry-container.beyer-static-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .beyer-legacy-lightbox__frame {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .beyer-legacy-lightbox__previous,
  .beyer-legacy-lightbox__next {
    min-width: 48px;
    font-size: 38px;
  }

  .beyer-legacy-lightbox__counter {
    right: 16px;
  }
}

@media only screen and (max-width: 479px) {
  .av-masonry-container.beyer-static-masonry {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .beyer-mobile-nav,
  .beyer-legacy-lightbox {
    scroll-behavior: auto;
  }
}
