/* ============================================================
   appinstall.css — App-Hinweis, Anleitung, Fußsymbol (ab 1.6.5)

   Dezent heißt hier: eine schmale Karte OBEN, nicht unten. Unten liegen am
   Handy die Warenkorb-Leiste und der Cookie-Hinweis – ein dritter Streifen
   dort würde genau das verdecken, wofür der Kunde gekommen ist. Oben ragt er
   höchstens über das Titelbild.

   Unter den Fenstern (Artikel 70, Kasse/Warenkorb), über der Seite und der
   klebenden Kategorie-Leiste (20). appinstall.js blendet ihn ohnehin aus,
   sobald etwas aufgeht.
   ============================================================ */

.apph {
  position: fixed; z-index: 65;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 50%; width: min(560px, calc(100vw - 20px));
  transform: translate(-50%, -140%);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .32s ease;
  opacity: 0;
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  column-gap: 4px; row-gap: 2px;
  padding: 10px 8px 8px 12px;
  background: var(--card, #fff); color: var(--ink, #1A1614);
  border: 1px solid color-mix(in srgb, var(--ink, #1A1614) 10%, transparent);
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .35);
  font: 500 .86rem/1.35 var(--body, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
}
.apph.is-da { transform: translate(-50%, 0); opacity: 1; }
.apph[hidden] { display: none; }

.apph__haupt {
  display: flex; align-items: center; gap: 10px;
  padding: 0; margin: 0; border: 0; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer; min-height: 44px;
}
.apph__ic { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.apph__text { overflow-wrap: anywhere; }
.apph__zu {
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: none;
  color: var(--muted, #8A7F76); font-size: 1.4rem; line-height: 1; cursor: pointer;
  align-self: start;
}
.apph__zu:hover, .apph__zu:focus-visible { background: color-mix(in srgb, var(--ink, #1A1614) 8%, transparent); }
.apph__nie {
  grid-column: 1 / -1; justify-self: start;
  display: inline-flex; align-items: center; gap: 6px;
  margin: 2px 0 0 50px; font-size: .78rem; color: var(--muted, #8A7F76); cursor: pointer;
}
.apph__nie input { width: 15px; height: 15px; margin: 0; accent-color: var(--primary, #E8A33D); }

/* Vorschau im Editor: an Ort und Stelle, nicht am Fenster */
.apph--vorschau .apph, .apph.apph--vorschau {
  position: relative; top: auto; left: auto; transform: none; opacity: 1;
  width: 100%; max-width: 420px; margin: 0;
}

/* ---------------- Anleitung ---------------- */
.appanl { position: fixed; inset: 0; z-index: 95; display: grid; place-items: end center; }
.appanl[hidden] { display: none; }
.appanl__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.appanl__panel {
  position: relative; width: min(460px, 100vw);
  max-height: 90vh; overflow: auto;
  padding: 26px 22px calc(env(safe-area-inset-bottom, 0px) + 20px);
  background: var(--card, #fff); color: var(--ink, #1A1614);
  border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .25);
  font: 500 .95rem/1.45 var(--body, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  text-align: left;
}
@media (min-width: 700px) {
  .appanl { place-items: center; }
  .appanl__panel { border-radius: 22px; }
}
.appanl__zu {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: none; font-size: 1.5rem; color: var(--muted, #8A7F76); cursor: pointer;
}
.appanl__ic { display: block; width: 64px; height: 64px; border-radius: 15px; margin: 0 0 10px; }
.appanl__titel { margin: 0 0 12px; font-size: 1.15rem; line-height: 1.25; }
.appanl__schritte { margin: 0 0 12px; padding-left: 1.3rem; display: grid; gap: 10px; }
.appanl__schritte li { padding-left: 2px; }
.appanl__bild { display: inline-block; vertical-align: -5px; color: #0A7AFF; }
.appanl__hinweis {
  margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; font-size: .85rem;
  background: color-mix(in srgb, var(--primary, #E8A33D) 12%, transparent);
}
.appanl__ok {
  width: 100%; min-height: 46px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--primary, #E8A33D); color: var(--on-primary, #fff);
  font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1;
}

/* ---------------- Fußsymbol: sehr dezent ---------------- */
.footer__app {
  grid-column: 1 / -1; justify-self: center;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: -1rem; padding: 4px 10px; border: 0; border-radius: 999px; background: none;
  color: var(--on-dark-soft, #CFC6BD); opacity: .75; font-size: .76rem; cursor: pointer;
}
.footer__app:hover, .footer__app:focus-visible { opacity: 1; }
.footer__app[hidden] { display: none; }
.footer__app svg { width: 14px; height: 14px; }

@media (prefers-reduced-motion: reduce) {
  .apph { transition: none; }
}
