/* Small runtime replacements. Original responsive design is retained. */
html,body { overflow-x:clip !important;max-width:100%; }
[class*="HamburgerOverlay"][class*="__root"] { display:none !important; }
#comp-kd5px9q0 { display:none !important; }
#SITE_CONTAINER [id^="comp-"] { animation:none !important; }
.independent-image { display:block; }
.independent-image img { width:100%;height:100%; }
[hidden] { display:none !important; }
.independent-menu-item { position:relative; }
.independent-menu-item > .independent-submenu { display:none !important; }
.independent-menu-item.independent-open > .independent-submenu { display:block !important;opacity:1 !important;visibility:visible !important;pointer-events:auto !important;z-index:1000; }
.independent-menu-item.independent-open .independent-submenu [data-part="dropdown-container"] { visibility:visible !important;opacity:1 !important; }
.independent-footer-open > .wixui-vertical-menu__submenu { display:block !important;height:auto !important;visibility:visible !important; }
.independent-mobile-menu { box-sizing:border-box;position:fixed;inset:0 0 0 auto;margin:0;max-height:100dvh;min-height:100dvh;width:min(420px,100vw);max-width:100vw;background:#fff;color:#3b4652;border:0;padding:28px;box-shadow:-8px 0 40px #0002;font:16px/1.5 manrope,Arial,sans-serif; }
.independent-mobile-menu::backdrop { background:#1e2c3c66; }
.independent-mobile-menu nav { display:flex;flex-direction:column;gap:5px;margin-top:28px; }
.independent-mobile-menu a { display:block;padding:9px 12px;color:#0b5abf;text-decoration:none;border-radius:20px; }
.independent-mobile-menu a:hover,.independent-mobile-menu a[aria-current] { color:#fff;background:#0b5abf; }
.independent-close { display:block;margin-left:auto;background:#0b5abf;color:#fff;padding:10px 18px;border:0;border-radius:22px;font:inherit;cursor:pointer; }
.independent-faq-question { position:relative;cursor:pointer;padding-right:30px; }
.independent-faq-question::after { content:'+';position:absolute;right:0;top:0;font:24px/1.3 Arial,sans-serif;color:#0b5abf; }
.independent-expanded .independent-faq-question::after { content:'−'; }
.independent-faq-row [role="region"] { margin-top:16px; }
.independent-select { appearance:none;width:100%;box-sizing:border-box;border:1px solid currentColor;border-radius:0;padding:10px 34px 10px 12px;min-height:44px;background-color:transparent;color:inherit;font:inherit;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='m2 2 6 6 6-6' fill='none' stroke='%233b4652' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center; }
.independent-select option { background:#fff;color:#3b4652; }
.independent-honeypot { position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important; }
.independent-form-status { margin-top:14px;line-height:1.5; }
.independent-form-status:empty { display:none; }
.independent-form-status a { color:inherit;text-decoration:underline; }
:focus-visible { outline:2px solid #0b5abf;outline-offset:3px; }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important;animation:none!important;transition:none!important; } }

/* Phone layout. The original section grids keep their columns and order.
   Content-sized rows replace Wix's editor-canvas heights. */
@media screen and (max-width: 750px) {
  :where([id^="PAGE_SECTIONS"]:not(#PAGE_SECTIONSpukqv, #PAGE_SECTIONSy4svm, #PAGE_SECTIONSsa6h0)) > .wixui-section,
  .wixui-footer {
    min-height: 0 !important;
  }

  :where([id^="PAGE_SECTIONS"]:not(#PAGE_SECTIONSpukqv, #PAGE_SECTIONSy4svm, #PAGE_SECTIONSsa6h0)) > .wixui-section > [data-testid="responsive-container-content"],
  :where([id^="PAGE_SECTIONS"]:not(#PAGE_SECTIONSpukqv, #PAGE_SECTIONSy4svm, #PAGE_SECTIONSsa6h0)) > .wixui-section > [data-testid="responsive-container-overflow"] > [data-testid="responsive-container-content"],
  .wixui-footer > [data-testid="responsive-container-overflow"] > [data-testid="responsive-container-content"] {
    grid-template-rows: none !important;
    grid-auto-rows: auto;
    align-content: start;
  }

  /* This section is its own grid container rather than having an inner wrapper. */
  #comp-mslj656n {
    grid-template-rows: auto auto auto !important;
    padding-block: 24px !important;
  }

  /* These slots previously mounted Wix widgets and have no rendered contents. */
  #comp-mrhghk5w:has(#comp-mrhgqhxk:empty),
  #comp-mraj55qg:has(#comp-mraj5egi:empty) {
    display: none !important;
  }

  /* Keep the two full-width photo rows and the original portrait in the flow
     even when the adjacent text is short. */
  #comp-lkc5v99y,
  #comp-lkc5vlz92 {
    min-height: clamp(150px, 45vw, 240px) !important;
  }
  #comp-lkfdn54j {
    min-height: clamp(195px, 62vw, 310px) !important;
  }

  #comp-mrd5j8vy {
    min-height: 0 !important;
  }
  .comp-mrd4jomt-container {
    grid-template-rows: auto !important;
  }

  /* Leave comfortable breathing room between formerly fixed text rows. */
  .comp-mrdblhvr-container,
  .comp-mrailt1d-container,
  .comp-mrep0v9b-container,
  .comp-mres584x-container,
  .comp-mrdg72vs-container {
    row-gap: 20px !important;
  }
  #comp-mrdbmz8t, #comp-mraim1d1, #comp-mrdg7njq,
  .wixui-footer [id$="_r_comp-lkfb2fa5"] {
    height: auto !important;
    min-height: 0 !important;
    margin-block: 0 !important;
  }
  .wixui-footer > [data-testid="responsive-container-overflow"] > [data-testid="responsive-container-content"] {
    row-gap: 24px !important;
    padding-block: 24px !important;
  }

  /* Each credential links to its full-resolution PDF. */
  #comp-mrhk92th {
    width: min(86%, 300px) !important;
    margin-block: 12px !important;
    gap: 12px;
  }
  #comp-mrhh6j1w, #comp-mrhk1bya, #comp-mrhk1d6m {
    width: 100% !important;
    height: 172px !important;
    margin-block: 0 !important;
  }
  #comp-mrhgyqsv img {
    object-fit: contain !important;
  }

  .wixui-hamburger-open-button, .independent-close,
  .independent-mobile-menu a, .wixui-button[href^="tel:"],
  .wixui-button[href^="https://wa.me/"], .independent-select,
  form [data-hook="submit-button"] {
    box-sizing: border-box;
    min-height: 44px !important;
  }
  .wixui-hamburger-open-button {
    min-width: 44px !important;
  }
  form :is(input:not([type="checkbox"]):not([type="hidden"]), textarea, select),
  [data-hook="faq-root"] input[type="search"] {
    font-size: 16px !important;
  }
  .independent-faq-question {
    min-height: 44px;
    box-sizing: border-box;
  }
}
/* These pre-rendered cards inherit the original gallery's loading mask.
   All content and links are already present in this static copy. */
:is(#pro-gallery-pro-blog, #pro-gallery-comp-mrg9nweb) .gallery-item-container {
  display: block !important;
  opacity: 1 !important;
}

/* Replace desktop-only absolute card coordinates in narrow viewports. */
@media screen and (max-width: 1099px) {
  [data-hook="post-list-pro-gallery-container"] {
    --blog-pl-common-padding-top: 16px;
    --blog-pl-common-padding-bottom: 16px;
    --blog-pl-header-margin-bottom: 8px;
  }

  [data-hook="post-list-pro-gallery-container"] .pro-gallery.inline-styles,
  [data-hook="post-list-pro-gallery-container"] .pro-gallery-margin-container {
    width: 100% !important;
    height: auto !important;
  }

  [data-hook="post-list-pro-gallery-container"] .pro-gallery-margin-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 16px;
    align-items: start;
  }

  [data-hook="post-list-pro-gallery-container"] [data-hook="item-container"] {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }

  [data-hook="post-list-pro-gallery-container"] [data-hook="item-container"] > div[style*="float"] {
    float: none !important;
  }

  [data-hook="post-list-pro-gallery-container"] [data-hook="item-wrapper"] {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin: 0 !important;
  }

  [data-hook="post-list-pro-gallery-container"] [data-hook="image-item"] {
    width: 100% !important;
    height: 100% !important;
  }

  [data-hook="post-list-pro-gallery-container"] [data-hook="image-item"] img {
    object-fit: cover;
  }

  [data-hook="post-list-pro-gallery-container"] :is(.gallery-item-common-info-outer, .gallery-item-common-info, [data-hook="post-list-item"], .post-list-item-wrapper) {
    position: relative !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }

  [data-hook="post-list-pro-gallery-container"] .post-list-item-wrapper {
    padding: 16px !important;
  }

  [data-hook="post-list-pro-gallery-container"] [data-hook="post-title"] {
    font-size: clamp(1.15rem, 3.8vw, 1.45rem) !important;
    line-height: 1.35;
  }

  [data-hook="post-list-pro-gallery-container"] [data-hook="post-title"] :is(h2,h3) {
    display: block;
    -webkit-line-clamp: unset !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* The static version has no live view/like counter to wait for. */
  [data-hook="post-list-item"] .NPsER6:has([data-hook="skeleton-loader"]):not(:has(a,button)),
  [data-hook="recent-post-list-item"] footer:has([data-hook="skeleton-loader"]):not(:has(a,button)) {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  /* /projekte originally reserved a 454px heading row before the first card. */
  #comp-lkfi38ka,
  #comp-lkfi38ka .comp-lkfi38ka-container,
  #comp-mrg9ipvq .comp-mrg9ipvq-container,
  #comp-mrg9na4n .comp-mrg9na4n-container,
  #comp-mrg9na4y .comp-mrg9na4y-container {
    min-height: 0;
    grid-template-rows: auto;
  }
  #comp-lkfi38ka .comp-lkfi38ka-container { padding-block: 20px 24px; }
  #comp-lkfi38kc4 { margin-block: 0; }
  #comp-mrgs89wx { max-width: 100%; }

  #comp-mrg9nweb,
  #TPASection_mrg9n8ds {
    box-sizing: border-box;
    width: calc(100% - 32px);
    min-width: 0;
    margin: 16px auto 24px;
  }
  #TPAMultiSection_mrg9n8g2 {
    width: 100%;
    min-width: 0;
    margin: 0 auto 24px;
  }

  :is([data-hook="feed-page-root"], [data-hook="post-page-root"]) .blog-header__navigation {
    height: auto;
    width: 100%;
    overflow: visible;
  }
  :is([data-hook="feed-page-root"], [data-hook="post-page-root"]) .blog-header__navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
    padding: 0;
    max-width: 100%;
    height: auto;
  }
  :is([data-hook="feed-page-root"], [data-hook="post-page-root"]) .blog-header__navigation li {
    height: auto;
    margin: 0;
  }
  :is([data-hook="feed-page-root"], [data-hook="post-page-root"]) .blog-header__navigation a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0;
  }

  [data-hook="post-page-root"] article[data-hook="post"] {
    --postPageHorizontalPadding: 18px;
    --postPageVerticalPadding: 18px;
    --section-spacer-2: 16px;
    --postPageWidth: 100%;
  }
  [data-hook="post-page-root"] [data-hook="recent-posts"] {
    margin-block-start: 16px;
  }
}

@media screen and (max-width: 750px) {
  /* In the original file the homepage reserves 113px, then an inner header
     reserves another logo-height minimum. Let the original logo scale in an
     80px header with its aspect ratio and existing menu hit area intact. */
  #comp-mrfdvkzk, .wixui-header[id$="_r_comp-mrfdvkw3"] {
    min-height: 80px !important;
  }
  .wixui-header [id$="_r_comp-mrfdkya7"] {
    width: clamp(94px, 26vw, 108px) !important;
    height: auto !important;
  }

  /* Avoid stacking the previous section's padding with two nested top insets. */
  #comp-mrd43xob .comp-mrd448pu-container {
    padding-bottom: 12px !important;
  }
  #comp-mrd4jfqn .comp-mrd4jfqn-container {
    padding-top: 16px !important;
  }
  #comp-mrd4jomt .comp-mrd4jomt-container {
    padding-top: 8px !important;
  }
}
/* The exported widget slots have no content or background media. */
@media screen and (min-width: 751px) {
  #comp-mrhghk5w:has(#comp-mrhgqhxk:empty):has([id^="bgMedia_"]:empty),
  #comp-mraj55qg:has(#comp-mraj5egi:empty):has([id^="bgMedia_"]:empty) {
    display: none !important;
  }

  /* Keep the heading and link rows and both FAQ columns. The list defines its row height. */
  #comp-mrdblhvr .comp-mrdblhvr-container {
    grid-template-rows: minmax(clamp(78px, 12.75vw, 180px), auto) auto minmax(clamp(44px, 6vw, 80px), auto) !important;
  }
}

/* Wix stacks the FAQ and callback panel at this breakpoint. */
@media screen and (min-width: 751px) and (max-width: 1000px) {
  #comp-mrailt1d .comp-mrailt1d-container {
    grid-template-rows: auto auto !important;
    row-gap: 1.5rem;
  }
}
