/* ============================================================
   App-Seite (/app) + Store-Badges der Startseite
   Ziel der QR-Codes auf Plakaten und TV-Bildern.
   Baut auf base.css / components.css / pages.css auf.
   ============================================================ */

/* ---------- Offizielle Store-Badges (unverändert, gleich hoch) ---------- */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store-badge { position: relative; display: inline-block; border-radius: 10px; line-height: 0;
  transition: transform var(--t-fast) var(--ease-spring), box-shadow var(--t-fast) ease; }
.store-badge img { height: 52px; width: auto; display: block; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:focus-visible { outline: 2px solid var(--ice-300); outline-offset: 4px; }
.store-badges.gross .store-badge img { height: 60px; }
/* Passendes Gerät: dezenter Ring + Hinweis (gesetzt per Skript) */
.store-badge .geraet { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap;
  font: 600 .68rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--navy-900);
  background: var(--ice-200); padding: 6px 10px; border-radius: 99px; display: none; }
.store-badge .geraet::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--ice-200); }
.store-badge.ist-geraet { box-shadow: 0 0 0 3px rgba(169, 198, 239, .55), 0 10px 28px rgba(3, 6, 18, .45); }
.store-badge.ist-geraet .geraet { display: block; }
.store-badges.mit-hinweis { padding-top: 34px; }

/* ---------- Hero ---------- */
.app-hero { padding-bottom: clamp(70px, 9vw, 110px); }
.app-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 5vw, 70px); }
.app-hero .page-hero-title { font-family: var(--font-body); font-weight: 600; letter-spacing: -.01em; line-height: 1.05; font-size: clamp(2.4rem, 6.4vw, 4.2rem); }
.app-hero .page-hero-title em { font-style: normal; color: #e48aa6; }
.app-hero .page-hero-lead { font-size: clamp(1.02rem, 1.8vw, 1.16rem); }
.app-hero .store-badges { margin-top: 30px; }
.app-hero-fakten { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: rgba(238, 242, 251, .75); }
.app-hero-fakten > span { display: inline-flex; align-items: center; gap: 7px; }
.app-hero-fakten .icon { width: 16px; height: 16px; color: var(--ice-300); }

/* Drei Handys */
.app-handys { position: relative; height: clamp(440px, 46vw, 560px); }
.app-handys::before { content: ""; position: absolute; left: 50%; top: 46%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(143, 176, 236, .42), rgba(143, 124, 245, .14) 55%, rgba(91, 134, 201, 0) 100%); pointer-events: none; }
.app-handy { --w: 230px; position: absolute; width: var(--w); padding: calc(var(--w) * .034); border-radius: calc(var(--w) * .168);
  background: linear-gradient(140deg, #4a4f5e 0%, #1b1d25 22%, #2c303c 55%, #121319 80%, #3a3e4b 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), inset 0 0 0 4px rgba(0, 0, 0, .6), 0 40px 70px rgba(2, 4, 12, .6),
              -12px 0 40px -8px rgba(169, 198, 239, .28), 12px 0 40px -8px rgba(228, 138, 166, .22); }
.app-handy img { display: block; width: 100%; height: auto; aspect-ratio: 1206 / 2622; border-radius: calc(var(--w) * .137); background: #0b1430; }
.app-handy.mitte { --w: clamp(190px, 21vw, 250px); left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
.app-handy.links, .app-handy.rechts { --w: clamp(150px, 17vw, 205px); top: 9%; z-index: 1; }
.app-handy.links { left: 50%; transform: translateX(-118%) rotate(-8deg); }
.app-handy.rechts { left: 50%; transform: translateX(18%) rotate(8deg); }

/* ---------- Funktionen ---------- */
.app-funktionen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.app-funktion { overflow: hidden; display: flex; flex-direction: column; }
.app-funktion-bild { position: relative; height: 300px; overflow: hidden; background: var(--hero-grad); }
.app-funktion-bild .app-handy { --w: 148px; left: 50%; top: 22px; transform: translateX(-50%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), inset 0 0 0 4px rgba(0, 0, 0, .6), 0 20px 40px rgba(2, 4, 12, .55); }
.app-funktion-bild::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--surface)); }
.app-funktion-text { padding: 6px 22px 24px; }
.app-funktion-text .icon-chip { margin-top: -26px; position: relative; z-index: 1; border: 3px solid var(--surface); }
.app-funktion h3 { margin-top: 12px; font-size: 1.12rem; font-weight: 600; color: var(--text); }
.app-funktion p { margin-top: 6px; font-size: .94rem; font-weight: 300; color: var(--text-soft); }

.app-extras { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.app-extras > span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; background: var(--surface);
  border: 1px solid var(--border); font-size: .92rem; color: var(--text-soft); }
.app-extras .icon { width: 17px; height: 17px; color: var(--accent); }
.app-extras strong { font-weight: 600; color: var(--text); }

/* ---------- Abschluss: Laden ---------- */
.app-laden { position: relative; background: var(--hero-grad); color: #eef2fb; overflow: hidden; text-align: center; }
.app-laden .section-title { color: #fff; font-family: var(--font-body); font-weight: 600; letter-spacing: -.01em; }
.app-laden .section-lead { color: rgba(238, 242, 251, .8); margin-inline: auto; }
.app-laden .section-kicker { color: var(--ice-300); justify-content: center; }
.app-laden .section-kicker::after { display: none; }
.app-laden .store-badges { justify-content: center; margin-top: 30px; }
.app-qr { display: none; margin: 34px auto 0; width: max-content; align-items: center; gap: 18px; padding: 14px 22px 14px 14px; border-radius: 18px;
  background: rgba(238, 242, 251, .08); border: 1px solid rgba(238, 242, 251, .2); text-align: left; }
.app-qr .app-qr-svg { width: 116px; height: 116px; border-radius: 10px; display: block; }
.app-qr strong { display: block; font-weight: 600; font-size: 1.02rem; }
.app-qr span { font-size: .9rem; color: rgba(238, 242, 251, .72); }
.ist-desktop .app-qr { display: flex; }
.app-laden-klein { margin-top: 26px; font-size: .86rem; color: rgba(238, 242, 251, .66); }
.app-laden-klein a { color: var(--ice-200); text-decoration: underline; text-underline-offset: 3px; }
.app-marken { margin-top: 14px; font-size: .74rem; color: rgba(238, 242, 251, .45); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .app-funktionen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app-hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .app-hero .page-hero-lead { margin-inline: auto; }
  .app-hero .store-badges, .app-hero-fakten { justify-content: center; }
  .app-hero .section-kicker { justify-content: center; }
  .app-hero .section-kicker::after { display: none; }
  .app-handys { height: clamp(380px, 100vw, 470px); margin-top: 10px; }
  .app-handy.mitte { --w: clamp(170px, 46vw, 220px); }
  .app-handy.links, .app-handy.rechts { --w: clamp(130px, 36vw, 175px); }
}
@media (max-width: 560px) {
  .app-funktionen { grid-template-columns: minmax(0, 1fr); }
  .store-badges { flex-wrap: nowrap; gap: 10px; justify-content: center; }
  .store-badge img, .store-badges.gross .store-badge img { height: 46px; }
  .app-handy.links { transform: translateX(-108%) rotate(-8deg); }
  .app-handy.rechts { transform: translateX(8%) rotate(8deg); }
}
@media (max-width: 360px) {
  .store-badge img, .store-badges.gross .store-badge img { height: 41px; }
}
@media (prefers-reduced-motion: reduce) {
  .store-badge, .store-badge:hover { transition: none; transform: none; }
}

/* ---------- Startseite: App-Bereich ---------- */
.app-copy .store-badges { margin-top: 28px; }
.app-copy p.app-note a { color: var(--ice-200); text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; white-space: nowrap; }
.app-copy p.app-note a:hover { color: #fff; }
@media (max-width: 980px) {
  .app-copy .store-badges { justify-content: center; }
}
