/* AUROSAN Web-App: untere Leiste – nur in der installierten App (html.aa-standalone) auf Handy und Tablet */
.aa-tabbar { display: none; }

@media (max-width: 979.98px) {
  html.aa-standalone .aa-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border-top: 1px solid #e3e3e3;
    box-shadow: 0 -2px 12px rgb(0 0 0 / .06);
    transition: transform .25s ease;
    will-change: transform;
  }

  html.aa-standalone .aa-tabbar.is-away { transform: translateY(calc(100% + 24px)); }

  .aa-tab {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: .2rem 0;
    color: #5f6368 !important;
    font-size: .6875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .aa-tab:hover,
  .aa-tab:focus-visible { color: #1a1a1a !important; }

  .aa-tab.is-current { color: var(--ui-color-accent, #e30613) !important; }

  /* Webshop: großer roter Knopf in der Mitte */
  .aa-tab__plus {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: -20px auto 0;
    border-radius: 14px;
    background: var(--ui-color-accent, #e30613);
    color: #ffffff;
    box-shadow: 0 6px 16px rgb(227 6 19 / .35);
  }

  .aa-tab__plus svg { width: 26px; height: 26px; }

  .aa-tab--main { color: #1a1a1a !important; }

  /* Platz unter dem Inhalt, „nach oben“-Knopf über der Leiste */
  html.aa-standalone body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  html.aa-standalone .ui-backtop { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
}

@media (prefers-reduced-motion: reduce) {
  html.aa-standalone .aa-tabbar { transition: none; }
}

@media print {
  .aa-tabbar { display: none !important; }
}

/* „App installieren“ im Handy-Menü und Hinweis für das iPhone */
.aa-install { display: none; }
.aa-install.is-ready { display: block; }
/* Nur im Handy-Menü – in der Desktop-Menüleiste nicht (dort gibt es den Hinweis im Fußbereich) */
@media (min-width: 980px) { .aa-install, .aa-install.is-ready { display: none !important; } }
.aa-install button {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .85rem .6rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.aa-install img { width: 24px; height: 24px; border-radius: 6px; box-shadow: 0 0 0 1px #e3e3e3; }

.aa-hint {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 10px;
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 10px 30px rgb(0 0 0 / .2);
  font-size: .9375rem;
  line-height: 1.4;
}
.aa-hint img { width: 40px; height: 40px; border-radius: 9px; box-shadow: 0 0 0 1px #e3e3e3; flex: none; }
.aa-hint button {
  margin-left: auto;
  padding: .25rem .5rem;
  border: 0;
  background: none;
  color: #5f6368;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

/* App-Hinweis im Fußbereich (unter den vier Fußspalten) */
.aa-footapp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgb(0 0 0 / .08);
  border-radius: 10px;
  background: #ffffff;
}
.aa-footapp[hidden] { display: none; }
.aa-footapp__icon { width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 0 0 1px #e3e3e3; flex: none; }
.aa-footapp__text { display: grid; gap: .1rem; flex: 1 1 14rem; line-height: 1.35; }
.aa-footapp__text strong { font-size: 1rem; }
.aa-footapp__text span { font-size: .875rem; color: #5f6368; }
.aa-footapp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.aa-footapp .aa-footapp__btn { padding: .45rem 1.1rem; border-radius: 4px; font-weight: 600; }
.aa-footapp__more { font-size: .875rem; }

/* App-Seite: Installations-Box und Anleitungen */
.aa-install-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: #f5f5f5;
}
.aa-install-box img { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 0 0 1px #e3e3e3; background: #fff; }
.aa-install-box p { margin: 0; flex: 1 1 16rem; }
.aa-install-box .btn { padding: .6rem 1.4rem; border-radius: 4px; font-weight: 600; }
.aa-install-box.is-installed .btn { display: none; }
.aa-guide { padding: 1.25rem; border: 1px solid #e3e3e3; border-radius: 10px; height: 100%; }
.aa-guide h3 { margin-top: 0; }
.aa-guide ol { margin-bottom: 0; padding-left: 1.2rem; }
.aa-qr { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.aa-qr img { width: 180px; height: 180px; padding: 8px; border: 1px solid #e3e3e3; border-radius: 8px; background: #fff; }
.aa-qr p { margin: 0; flex: 1 1 14rem; }
