:root {
  --color-primary: #1a8ed3;;
  /*  --theme-color kommt von Magento selbst */
  --color-secondary: #075880;
  --color-accent: #1a8ed3;
  --color-accent-hover: #075880;
  --color-gray-warm: rgb(229,227,222);
  --color-background-light: #f8f8f8;
  --color-transparent-white: #ffffff00;
  --color-white: #fff;
  --color-black: #000;
  --color-text-muted: #777777;  /* FEHLT*/
  --color-border-default: #ccc;  /* FEHLT*/
  --color-error-bg: #eee;  /* FEHLT*/
  --color-error-text: #333333;  /* FEHLT*/
  --direction: 90deg;
    /* FONT */
  --main-font: "Frutiger", sans-serif;
}

/* Dublikat von BOE */

@font-face {
  font-family: var(--main-font);
  src: url(/html/pub/media/porto/web/fonts/Frutiger/Frutiger%20LT%2055%20Roman.ttf);
}
* {
  font-family: var(--main-font);
}
/* --- Developemode-Warnung --- */
#opmode-banner {
  display: none;
}

/* Konto erstellen ausblenden */
.login-container .actions-toolbar .action.create { 
  display: none !important; 
}

.fotorama__stage__frame .fotorama__img {
    width: 95%!important;
}

.section-items.nav-sections-items.mage-tabs-disabled {
  box-shadow: 5px 3px 3px #efefef;
}
/* Wishlist in Nav ausblenden */
.wishlist.mr-1.mr-lg-2.pr-lg-1 {
  display: none;
} 

/*  Nav
.page-header .panel.wrapper, .main-panel-top, header.page-header.sticky-header .nav-sections {
  background-color: var(--color-primary) !important;
}
.header-right {
  color: #fff;
}
.main-panel-top {
  border-block-end: .075rem solid var(--color-gray-warm);
}
.page-main-inner {
  margin-top: 50px;
}
.level-top:hover {
  color: var(--color-accent) !important;
  padding-bottom: 13px;
  border-bottom: 1px var(--color-accent) solid;
}

html body#html-body.printq-upload_fullpage_configuration.catalog-product-view.product-plakat-konigurierbar.categorypath-uploadartikel.category-uploadartikel.layout-1220.wide.mobile-sticky.page-layout-1column.am-porto-cmtb.page-layout-product-full-width.printq_upload_fullpage_configuration div.page-wrapper main#maincontent.page-main {
  padding-top: 25px;
}
.matrix_layoutMain .matrix_quantityContainer tr {
  border-bottom: 1px solid var(--color-background-light) !important;
}
.matrix_layoutMain .matrix_quantityContainer tr th {
  color: var(--color-background-light) !important;
}
*/

/* RKW · Als zusätzliches CSS nach den Porto-Theme-Regeln laden. */
.page-header.type20 {
  --rkw-header-blue: #086591;
  --rkw-header-hover: #edf6fb;
  --rkw-header-line: #dce8ee;

  #store\.menu .sw-megamenu .submenu :is(li.level1, li.level2, li.level3) > a,
  #store\.menu .sw-megamenu .submenu :is(li.level1, li.level2, li.level3) > a > span {
    text-decoration: none !important;
    border-bottom: 0 !important;
  }

  #store\.menu .sw-megamenu .submenu li.level1:has(> a[href$="/select-location.html"]) {
    > .subchildmenu > li.level2 > a > span,
    a[href$="/wasserburg/inn.html"] > span {
      margin-inline-start: 8px;
    }

    li.level2:has(> a[href$="/select-location/wasserburg.html"]):has(> .subchildmenu > li:only-child > a[href$="/wasserburg/inn.html"]) {
      > a,
      > .open-children-toggle {
        display: none !important;
      }

      > .subchildmenu {
        display: block !important;
        position: static;
        height: auto !important;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: inherit;
      }

      a[href$="/wasserburg/inn.html"] > span::before {
        content: "Wasserburg/";
      }
    }
  }
}

.page-header.type20 > .header-main > .header-row {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  column-gap: 12px;

  > .header-left,
  > .header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-inline: 0;
  }

  > .header-left {
    flex: 0 1 auto;
    min-width: 0;
    justify-content: flex-start;

    > .logo {
      order: -1;
      min-width: 0;
      margin-inline: 0;
    }
  }

  > .header-right {
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-inline-start: auto;
    gap: 8px;

    > .search-area,
    > .header-contact,
    > .minicart-wrapper {
      margin-inline-start: 0;
    }
  }
}

@media (max-width: 991.98px) {
  .page-header.type20 > .header-main {
    background-color: #fff;
    box-shadow: 0 1px 0 var(--rkw-header-line);

    > .header-row {
      min-height: 64px;

      > .header-left,
      > .header-right {
        padding-block: 0;
      }

      > .header-left {
        gap: 4px;

        > .nav-toggle {
          position: relative;
          inset: auto;
          box-sizing: border-box;
          flex: 0 0 auto;
          min-width: 44px;
          min-height: 44px;
          margin: 0;
          text-align: center;
        }
      }
    }
  }

  /* Portos Position, Breite und Schaltzustände des Seitenmenüs verwenden. */
  .page-header.type20 .nav-sections {
    background-color: #fff;
    box-shadow: 2px 0 14px rgb(18 52 73 / 12%);

    .nav-sections-items {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      box-shadow: none;

      &::before,
      &::after {
        content: none;
      }
    }

    .nav-sections-item-title {
      box-sizing: border-box;
      grid-row: 1;
      width: auto;
      background-color: #f5f9fb;
      border: 0;
      border-bottom: 1px solid var(--rkw-header-line);
    }

    .nav-sections-item-title.active {
      background-color: #fff;
      box-shadow: inset 0 -2px var(--rkw-header-blue);
    }

    .nav-sections-item-content {
      grid-row: 2;
      grid-column: 1 / -1;
      width: 100%;
      margin: 0;
    }

    .nav-sections-item-switch {
      color: var(--rkw-header-blue);
      font-weight: 600;
      text-decoration: none;
    }

    #store\.menu .sw-megamenu {
      background-color: #fff;

      li.level0 {
        background-color: #fff;
        box-shadow: none;
        border-bottom: 1px solid var(--rkw-header-line);
      }

      li.level0 > a.level-top {
        box-sizing: border-box;
        min-height: 48px;
        padding: 14px 16px;
        color: var(--rkw-header-blue);
        font-weight: 600;
        line-height: 20px;
        text-decoration: none;
        text-transform: none;
      }

      li.level0.parent > a.level-top {
        padding-inline-end: 52px;
      }

      .open-children-toggle {
        min-width: 44px;
        min-height: 44px;
      }

      .submenu {
        background-color: #f5f9fb;

        :is(li.level1, li.level2, li.level3) > a {
          display: block;
          box-sizing: border-box;
          min-height: 44px;
          padding-block: 12px;
          color: var(--rkw-header-blue);
          line-height: 20px;
          text-transform: none;
        }
      }

      a:focus-visible {
        outline: 2px solid var(--rkw-header-blue);
        outline-offset: -2px;
      }
    }
  }
}

@media (min-width: 992px) {
  .page-header.type20 > .header-main {
    background-color: #fff;
    box-shadow: 0 1px 0 var(--rkw-header-line);
  }

  .page-header.type20 > .header-main > .header-row {
    height: auto;
    min-height: 72px;
    column-gap: 24px;

    > .header-left,
    > .header-right {
      height: auto;
      padding-block: 0;
    }

    .header-left > .nav-sections .nav-sections-items {
      box-shadow: none;
    }

    /* Nur die horizontale Navigation gegen Portos Ausblendregeln absichern. */
    > .header-left > .nav-sections,
    > .header-left > .nav-sections > .nav-sections-items,
    > .header-left #store\.menu,
    > .header-left #store\.menu > .sw-megamenu {
      display: block !important;
    }

    > .header-left > .nav-sections {
      flex: 0 0 auto;
      margin-inline: 18px 0;
    }

    > .header-left > .logo {
      flex-shrink: 0;
    }

    > .header-left .sw-megamenu > ul {
      display: flex !important;
      align-items: center;
      gap: 4px;
      background: transparent;

      li.level0 > a.level-top {
        min-height: 44px;
        padding: 12px;
        border-radius: 6px;
        color: var(--rkw-header-blue);
        line-height: 20px;
        text-decoration: none;
      }

      li.level0:is(:hover, .active, .has-active) > a.level-top,
      li.level0 > a.level-top:focus-visible {
        background-color: var(--rkw-header-hover);
        color: var(--rkw-header-blue);
      }

      > li.level0.fullwidth.parent:has(> a.level-top[href$="/business-cards.html"]) {
        position: relative;

        > a.level-top::after,
        > a.level-top > span::after {
          content: none !important;
          display: none !important;
        }

        > .level0.submenu {
          /* Porto kann Größe und Position des Megamenüs beim Öffnen setzen. */
          box-sizing: border-box;
          top: 100% !important;
          left: 0 !important;
          right: auto !important;
          width: 200px !important;
          min-width: 0 !important;
          margin: 0;
          padding: 6px;
          border: 1px solid var(--rkw-header-line);
          border-radius: 8px;
          background-color: #fff;
          box-shadow: 0 8px 20px rgb(18 52 73 / 12%);

          > .container {
            width: 100%;
            max-width: none;
            padding: 0;
          }

          > .container > .row,
          .mega-columns,
          .mega-columns > .level1,
          .level1 > .subchildmenu,
          .level1 > .subchildmenu > .level2 {
            display: block;
            float: none;
            width: 100%;
            max-width: none;
            margin: 0;
            padding: 0;
            list-style: none;
          }

          .level1 > a,
          .level2 > a,
          .level3 > a {
            display: block;
            margin: 0;
            padding: 8px 10px;
            border: 0;
            border-radius: 5px;
            color: var(--rkw-header-blue);
            font-size: 13px;
            line-height: 18px;
            text-transform: none;

            &:is(:hover, :focus-visible) {
              background-color: var(--rkw-header-hover);
              color: var(--rkw-header-blue);
            }
          }

          .level1 > a {
            color: #466375;
            font-size: 12px;
            font-weight: 600;
          }

          .level2 > a,
          .level3 > a {
            font-weight: 500;
          }
        }

        &:is(:hover, :focus-within) > .submenu {
          display: block;
          visibility: visible;
          opacity: 1;
          pointer-events: auto;
          transition-delay: 0s;
        }
      }
    }

    .header-right {
      gap: 10px;

      > .minicart-wrapper > .showcart .counter.qty {
        background-color: var(--rkw-header-blue);
        color: #fff;
      }
    }

    :is(.sw-megamenu a, .search-toggle-icon, .my-account, .showcart):focus-visible {
      outline: 2px solid var(--rkw-header-blue);
      outline-offset: -2px;
    }
  }
}

@media (min-width: 992px) and (hover: hover) {
  .page-header.type20 #store\.menu .sw-megamenu .level0.submenu .mega-columns {
    > li.level1 > a {
      position: relative;
      z-index: 2;
    }

    > li.level1:has(> a[href$="/select-location.html"]) {
      position: relative;

      > a {
        padding-inline-end: 30px;

        &::after {
          content: "";
          position: absolute;
          inset-inline-end: 12px;
          inset-block-start: 50%;
          width: 7px;
          height: 7px;
          border: solid currentColor;
          border-width: 0 1.5px 1.5px 0;
          transform: translateY(-50%) rotate(-45deg);
        }
      }

      > .subchildmenu {
        position: absolute;
        z-index: 1;
        inset-block-start: -1px;
        inset-inline-start: calc(100% - 1px);
        box-sizing: border-box;
        width: 200px;
        height: auto;
        max-height: none;
        overflow: visible;
        padding: 6px;
        border: 1px solid var(--rkw-header-line);
        border-radius: 8px;
        background-color: #fff;
        box-shadow: 0 8px 20px rgb(18 52 73 / 12%);
        visibility: hidden;
        transition: visibility 0s linear 150ms;

        /* Überbrückt den Mausweg links vom Standortmenü unterhalb der Hauptlinks. */
        &::before {
          content: "";
          position: absolute;
          inset-block: 0;
          inset-inline-end: 100%;
          width: calc(100% - 12px);
        }
      }

      &:is(:hover, :focus-within) {
        > a {
          background-color: var(--rkw-header-hover);
        }

        > .subchildmenu {
          visibility: visible;
          transition-delay: 0s;
        }
      }
    }
  }
}
