/*
 * Mobile usability layer for the locally archived BEYER pages.
 * It deliberately leaves the original desktop design untouched.
 */

html {
  text-size-adjust: 100%;
}

body,
#wrap_all {
  max-width: 100%;
}

#wrap_all {
  overflow-x: clip;
}

img,
video,
embed,
object {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

.avia_textblock,
.entry-content-wrapper,
#footer,
#socket {
  overflow-wrap: anywhere;
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.beyer-mobile-projects-toggle {
  display: none;
}

@media only screen and (min-width: 990px) {
  .responsive #top #header,
  .responsive #top #header_main,
  .responsive #top #header_main > .container,
  .responsive #top .av-logo-container,
  .responsive #top .logo,
  .responsive #top .logo img,
  .responsive #top .main_menu,
  .responsive #top .main_menu ul:first-child > li > a {
    transition: height 180ms ease, min-height 180ms ease, max-height 180ms ease,
      line-height 180ms ease;
  }

  .responsive #top #header.header-scrolled #header_main,
  .responsive #top #header.header-scrolled #header_main > .container,
  .responsive #top #header.header-scrolled .av-logo-container,
  .responsive #top #header.header-scrolled .logo,
  .responsive #top #header.header-scrolled .main_menu,
  .responsive #top #header.header-scrolled .main_menu ul:first-child > li > a {
    height: 60px !important;
    min-height: 60px !important;
    line-height: 60px !important;
  }

  .responsive #top #header.header-scrolled .logo img {
    max-height: 59px !important;
  }
}

@media only screen and (max-width: 989px) {
  .responsive #top #header {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 501;
  }

  html.responsive.html_mobile_menu_tablet body#top #wrap_all #main {
    padding-top: 91px !important;
  }

  .responsive #top #header_meta {
    display: none !important;
  }

  .responsive #top #header,
  .responsive #top #header_main,
  .responsive #top #header_main > .container,
  .responsive #top .av-logo-container,
  .responsive #top .logo,
  .responsive #top .main_menu,
  .responsive #top .main_menu ul:first-child > li > a {
    transition: height 180ms ease, min-height 180ms ease, line-height 180ms ease;
  }

  .responsive #top #header.header-scrolled #header_main,
  .responsive #top #header.header-scrolled #header_main > .container,
  .responsive #top #header.header-scrolled .av-logo-container,
  .responsive #top #header.header-scrolled .logo,
  .responsive #top #header.header-scrolled .main_menu,
  .responsive #top #header.header-scrolled .main_menu ul:first-child > li > a {
    height: 60px !important;
    min-height: 60px !important;
    line-height: 60px !important;
  }

  .responsive #top #header.header-scrolled .logo img {
    max-height: 58px !important;
  }

  .responsive #top .av-burger-menu-main > a {
    min-width: 52px;
    min-height: 44px;
    padding-inline: 12px !important;
  }

  .responsive #top .av-hamburger-box {
    width: 30px;
  }

  .responsive #top .av-burger-overlay-scroll {
    overscroll-behavior: contain;
  }

  .responsive #top .av-burger-overlay-inner a {
    min-height: 46px;
    padding-top: 12px;
    padding-bottom: 12px;
    line-height: 1.45;
  }

  .responsive #top .beyer-mobile-service-menu-item--first {
    margin-top: 12px;
    border-top: 1px solid rgb(0 0 0 / 12%);
    padding-top: 12px;
  }

  .responsive #top .beyer-mobile-service-menu-item a {
    color: #555555;
    font-weight: 600;
  }
}

@media only screen and (max-width: 767px) {
  html.responsive.html_mobile_menu_tablet body#top #wrap_all #main {
    padding-top: 115px !important;
  }

  .responsive #top #header_meta {
    display: block !important;
    min-height: 38px;
    border-bottom: 1px solid rgb(0 0 0 / 8%);
    background: #f3f3f3;
    overflow: hidden;
    transition: height 180ms ease, min-height 180ms ease, opacity 140ms ease;
  }

  .responsive #top #header.header-scrolled #header_meta {
    height: 0;
    min-height: 0;
    border-bottom: 0;
    opacity: 0;
  }

  .responsive #top #header_meta .container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    margin-top: 0 !important;
    padding: 0 16px;
  }

  .responsive #top #header_meta .sub_menu {
    display: none !important;
  }

  .responsive #top #header_meta .phone-info {
    float: none;
    width: 100%;
    padding: 0;
    text-align: center;
    line-height: 38px;
  }

  .responsive #top #header_meta .phone-info a {
    display: block;
    color: #333333;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
  }

  .responsive #top #header.header-scrolled #header_main,
  .responsive #top #header.header-scrolled #header_main > .container,
  .responsive #top #header.header-scrolled .av-logo-container,
  .responsive #top #header.header-scrolled .logo,
  .responsive #top #header.header-scrolled .main_menu,
  .responsive #top #header.header-scrolled .main_menu ul:first-child > li > a {
    height: 58px !important;
    min-height: 58px !important;
    line-height: 58px !important;
  }

  .responsive #top #header.header-scrolled .logo img {
    max-height: 55px !important;
  }

  body {
    font-size: 16px !important;
    line-height: 1.6;
  }

  .responsive #top #wrap_all .container {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
  }

  .responsive #top #wrap_all #header_main > .container,
  .responsive #top #wrap_all .av-logo-container {
    height: 76px !important;
    min-height: 76px;
    line-height: 76px;
  }

  .responsive #top .logo {
    width: 170px;
    max-width: calc(100% - 68px);
    height: 76px !important;
  }

  .responsive #top .logo img {
    max-height: 72px;
  }

  .responsive #top #wrap_all .main_menu,
  .responsive #top .main_menu ul:first-child > li a {
    height: 76px;
    line-height: 76px;
  }

  .responsive #top #header_main {
    min-height: 76px;
    background-size: auto 58px;
  }

  .responsive #top #main .container_wrap:first-child .content,
  .responsive #top .content {
    padding-top: 28px;
    padding-bottom: 38px;
  }

  #top h1,
  #top .av-special-heading-h1 .av-special-heading-tag,
  #top .entry-content-wrapper .post-title {
    font-size: clamp(29px, 9vw, 36px);
    line-height: 1.18;
  }

  #top h2,
  #top .av-special-heading-h2 .av-special-heading-tag {
    font-size: clamp(22px, 6.5vw, 26px);
    line-height: 1.3;
  }

  #top h3,
  #top .av-special-heading-h3 .av-special-heading-tag {
    font-size: 18px;
    line-height: 1.35;
  }

  #top .avia_textblock,
  #top .entry-content-wrapper {
    font-size: 16px;
    line-height: 1.65;
  }

  #top .avia_textblock p,
  #top .entry-content-wrapper p {
    margin-bottom: 1em;
  }

  #top .title_container .container {
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  #top .title_container .main-title {
    position: static;
    display: block;
    width: 100%;
    margin: 0 0 4px;
    line-height: 1.4;
  }

  #top .title_container .breadcrumb {
    position: static;
    display: block;
    overflow-x: auto;
    width: 100%;
    margin: 0;
    padding-bottom: 2px;
    font-size: 14px;
    line-height: 1.45;
    white-space: nowrap;
    scrollbar-width: none;
  }

  #top .title_container .breadcrumb a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  #top .title_container .breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .responsive #top #wrap_all .flex_column {
    margin-bottom: 26px;
  }

  #top .avia-image-container,
  #top .avia-image-container-inner,
  #top .avia-image-overlay-wrap,
  #top .avia_image {
    max-width: 100%;
  }

  #top .avia-gallery-thumb {
    display: flex;
    flex-wrap: wrap;
  }

  #top .avia-gallery-thumb a {
    width: 50% !important;
    min-width: 0;
  }

  #top .avia-gallery-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  #top .av-masonry-entry {
    width: 50% !important;
  }

  #top table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    -webkit-overflow-scrolling: touch;
  }

  #top input:not([type="checkbox"]):not([type="radio"]),
  #top select,
  #top textarea {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    font-size: 16px;
  }

  #top input[type="checkbox"],
  #top input[type="radio"] {
    width: 24px !important;
    min-width: 24px;
    height: 24px !important;
    margin-right: 10px;
    vertical-align: middle;
  }

  #top .gchoice,
  #top .ginput_container_consent {
    display: flex;
    min-height: 44px;
    align-items: center;
  }

  #top input[type="submit"],
  #top button,
  #top .avia-button {
    min-height: 44px;
    padding: 11px 16px;
  }

  #top .avia-button-wrap,
  #top .avia-button {
    max-width: 100%;
  }

  #top .avia-button {
    white-space: normal;
  }

  #top .avia-video,
  #top .avia-iframe-wrap,
  #top .avia-iframe-wrap iframe {
    width: 100%;
    max-width: 100%;
  }

  #footer {
    font-size: 14px !important;
    line-height: 1.6;
  }

  #socket {
    font-size: 14px !important;
    line-height: 1.55;
  }

  #footer .widget {
    margin-top: 26px;
    margin-bottom: 26px;
  }

  #footer iframe {
    width: 100% !important;
    min-height: 155px;
  }

  #socket .container {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  #socket .sub_menu_socket {
    margin-left: 0 !important;
  }

  #socket .sub_menu_socket li,
  #socket .sub_menu_socket a {
    min-height: 44px;
    line-height: 44px;
  }

  #socket .sub_menu_socket a {
    display: inline-flex;
    align-items: center;
    padding-inline: 8px;
  }

  #footer .social_bookmarks li,
  #footer .social_bookmarks a,
  #socket .social_bookmarks li,
  #socket .social_bookmarks a {
    width: 44px !important;
    min-width: 44px;
    height: 44px !important;
    line-height: 44px !important;
  }

  .beyer-mobile-project-hidden {
    display: none !important;
  }

  .beyer-mobile-projects-toggle {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin: 18px 0 34px;
    padding: 12px 18px;
    border: 0;
    border-radius: 2px;
    background: #009900;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
  }

  .beyer-mobile-projects-toggle:hover,
  .beyer-mobile-projects-toggle:focus-visible {
    background: #007600;
  }

  #top .pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  #top .pagination .pagination-meta {
    flex-basis: 100%;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
  }

  #top .pagination .current,
  #top .pagination a {
    display: inline-flex !important;
    min-width: 44px !important;
    min-height: 44px !important;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    line-height: 1 !important;
  }

  /* Auf kleinen Bildschirmen ist die Bewertungsabbildung bereits im Footer
     vorhanden. Das zusaetzliche schwebende Siegel verdeckt daher nur Inhalt. */
  .pe-pro-seal {
    display: none !important;
  }

  .responsive #scroll-top-link {
    right: 12px;
    bottom: 12px;
    display: block;
    width: 46px;
    height: 46px;
    line-height: 46px;
  }

  .mfp-wrap .mfp-arrow {
    width: 48px;
    min-height: 64px;
  }

  .mfp-wrap .mfp-close {
    width: 48px;
    height: 48px;
    font-size: 34px;
  }
}

@media only screen and (max-width: 479px) {
  .responsive #top #wrap_all .container {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
  }

  #top .av-masonry-entry,
  #top .grid-sort-container .grid-entry {
    width: 100% !important;
  }

  #top .avia-gallery-thumb a {
    width: 50% !important;
  }

  #top blockquote {
    margin-left: 0;
    margin-right: 0;
    padding-left: 18px;
  }

  #top .avia-promocontent,
  #top .avia-button-wrap {
    display: block;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
