/* slaypflege.de/app (13.10.2026) — die Teil-Adresse für WhatsApp & Co.
   Am Handy füllt die Story den ganzen Bildschirm: Die Store-Motive (600×1301) haben fast genau das
   Seitenverhältnis eines heutigen iPhones (390×844), „cover“ schneidet deshalb kaum etwas ab.
   Am Rechner steht die Story als Handy neben dem Text. Eigene Datei statt site.css: Diese Seite
   braucht ihre Regeln nirgends sonst, und site.css trägt einen Versionsstempel in jeder Seite. */

.app-seite { background: #FAF9F5; }

/* ── Story ───────────────────────────────────────────────────────────────────────────────── */
.app-story {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #172554;
  color: #fff;
  isolation: isolate;
}

/* Ohne JavaScript: waagerecht wischbare Reihe. */
.app-story-bilder {
  list-style: none; margin: 0; padding: 0;
  display: flex; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.app-story-bilder::-webkit-scrollbar { display: none; }
.app-story-bild { flex: 0 0 100%; height: 100%; scroll-snap-align: start; position: relative; }
.app-story-bild > img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  /* Oben steht die Überschrift des Motivs — wird die Seite kürzer (Browserleisten), fällt unten
     etwas weg, wo ohnehin die Karte mit dem Knopf liegt. */
  object-position: 50% 0;
}

/* Mit JavaScript: übereinander gestapelt, der aktive Schritt blendet ein. */
.app-story.ist-story .app-story-bilder { display: block; overflow: hidden; position: absolute; inset: 0; }
.app-story.ist-story .app-story-bild {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 280ms ease, visibility 0s linear 280ms;
}
.app-story.ist-story .app-story-bild.ist-aktiv { opacity: 1; visibility: visible; z-index: 1; transition: opacity 280ms ease; }
.app-story.ist-story .app-story-bild.ist-aktiv > img { animation: app-heranfahren 3.6s cubic-bezier(.2, .7, .3, 1) both; }
.app-story.ist-angehalten .app-story-bild.ist-aktiv > img { animation-play-state: paused; }
@keyframes app-heranfahren { from { transform: scale(1.06); } to { transform: none; } }

/* Abdunkeln oben, damit Balken und Pause-Knopf auch auf den hellen Motiven lesbar bleiben. */
.app-story.ist-story::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; z-index: 2;
  height: calc(env(safe-area-inset-top, 0px) + 84px);
  background: linear-gradient(rgba(10, 18, 48, .38), rgba(10, 18, 48, 0));
  pointer-events: none;
}
.app-story.ist-frage::before { display: none; }

.app-story-balken {
  display: none;
  position: absolute; z-index: 4;
  top: calc(env(safe-area-inset-top, 0px) + 10px); left: 10px; right: 10px;
  gap: 4px;
}
.app-story.ist-story .app-story-balken { display: flex; }
.app-story-balken span {
  flex: 1; height: 3px; border-radius: 3px; overflow: hidden;
  background: rgba(255, 255, 255, .38);
}
.app-story-balken i {
  display: block; height: 100%; background: #fff;
  transform: scaleX(0); transform-origin: left center;
}
.app-story-balken i.ist-voll { transform: none; }
.app-story-balken i.laeuft { animation: app-balken-fuellen 3.6s linear forwards; }
.app-story.ist-angehalten .app-story-balken i.laeuft { animation-play-state: paused; }
@keyframes app-balken-fuellen { from { transform: scaleX(0); } to { transform: none; } }
/* Auf dem hellen Frage-Schritt in Markenblau statt Weiß. */
.app-story.ist-frage .app-story-balken span { background: rgba(37, 99, 235, .18); }
.app-story.ist-frage .app-story-balken i { background: var(--blue); }

.app-story-pause {
  position: absolute; z-index: 4;
  top: calc(env(safe-area-inset-top, 0px) + 22px); right: 10px;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 18, 48, .32); color: #fff; cursor: pointer;
}
.app-story-pause svg { fill: currentColor; }
.app-story-pause .app-weiter-zeichen { display: none; }
.app-story-pause.zeigt-weiter .app-pause-zeichen { display: none; }
.app-story-pause.zeigt-weiter .app-weiter-zeichen { display: inline; }
.app-story-pause:focus-visible, .app-story-tipp:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }

/* Tippflächen wie bei Instagram: links ein Drittel zurück, rechts zwei Drittel weiter.
   Auf dem Frage-Schritt weg — dort tippt man Antworten. */
.app-story-tipp {
  position: absolute; z-index: 3; top: 0; bottom: 0;
  border: 0; padding: 0; background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none; user-select: none;
  touch-action: pan-y;
}
.app-story-tipp--zurueck { left: 0; width: 33%; }
.app-story-tipp--weiter { right: 0; width: 67%; }
.app-story.ist-frage .app-story-tipp { display: none; }

/* ── 1. Schritt: der echte Bildschirmclip mit Aufhänger ─────────────────────────────────── */
.app-story-clip {
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(165deg, #2563EB 0%, #1E40AF 55%, #172554 100%);
}
.app-clip-text { width: 100%; box-sizing: border-box; padding: calc(env(safe-area-inset-top, 0px) + 42px) 22px 0; }
.app-clip-kicker { font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.app-clip-titel { margin: 8px 0 6px; font-size: clamp(32px, 9.4vw, 42px); line-height: 1.06; font-weight: 900; color: #fff; }
.app-clip-titel span {
  color: #FFC83D;
  text-decoration: underline; text-decoration-color: rgba(255, 200, 61, .55);
  text-decoration-thickness: 4px; text-underline-offset: 7px;
}
.app-clip-unter { margin: 0; font-size: 15.5px; font-weight: 700; color: rgba(255, 255, 255, .86); }
.app-clip-geraet {
  flex: 1 1 auto; min-height: 0; width: 100%;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 18px 0 calc(env(safe-area-inset-bottom, 0px) + 92px);
  box-sizing: border-box;
}
.app-clip-geraet video {
  display: block; height: 100%; max-height: 600px; width: auto; max-width: 78%;
  aspect-ratio: 600 / 1298; object-fit: cover;
  border-radius: 30px; border: 6px solid #0B1430; background: #0B1430;
  box-shadow: 0 26px 54px rgba(0, 0, 0, .38);
}

/* ── 4. Schritt: eine Frage zum Selbst-Antippen ─────────────────────────────────────────── */
.app-story-frage { background: #FAF9F5; color: var(--ink); }
.app-frage {
  height: 100%; box-sizing: border-box; overflow-y: auto;
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 50px) 20px calc(env(safe-area-inset-bottom, 0px) + 100px);
}
.app-frage-crew { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 18px; }
.app-frage-crew img { width: 58px; height: auto; flex: none; }
.app-frage-crew p {
  margin: 0; padding: 10px 13px; border-radius: 16px 16px 16px 4px;
  background: #fff; border: 2px solid var(--line);
  font-size: 14.5px; line-height: 1.4; color: var(--body);
}
.app-frage-crew b { display: block; font-size: 10.5px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; color: var(--ink); }
.app-frage-thema { font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--body); }
.app-frage-text { margin: 6px 0 18px; font-size: clamp(20px, 6vw, 24px); line-height: 1.3; font-weight: 900; color: var(--ink); }
.app-frage-antworten { display: grid; gap: 12px; }
.app-frage-option {
  width: 100%; text-align: left; cursor: pointer;
  padding: 16px 18px; border-radius: 16px;
  background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line);
  font-family: inherit; font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--ink);
  transition: transform 90ms ease, box-shadow 90ms ease, border-color 140ms ease, background 140ms ease;
  -webkit-tap-highlight-color: transparent;
}
.app-frage-option:active:not(:disabled) { transform: translateY(4px); box-shadow: none; }
.app-frage-option:disabled { cursor: default; color: var(--ink); opacity: 1; }
.app-frage-option.ist-richtig { border-color: #10b981; background: #ecfdf5; box-shadow: 0 4px 0 #059669; }
.app-frage-option.ist-falsch { border-color: #ef4444; background: #fef2f2; box-shadow: 0 4px 0 #b91c1c; }
.app-frage-option:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.app-frage-warum {
  margin: 16px 0 0; padding: 12px 14px; border-radius: 14px;
  background: #fef2f2; border: 1.5px solid #fecaca; color: #7f1d1d;
  font-size: 14.5px; line-height: 1.5;
  animation: app-warum-rein 250ms ease both;
}
.app-frage-warum.ist-gut { background: #ecfdf5; border-color: #a7f3d0; color: #064e3b; }
@keyframes app-warum-rein { from { opacity: 0; transform: translateY(6px); } }
.app-frage-weiter {
  align-self: flex-end; margin-top: 10px; padding: 8px 4px;
  background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 800; line-height: 1; color: var(--blue);
}
.app-frage-weiter:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ── Karte unten: eine Zeile wie im App Store — Symbol, Name, Knopf ──────────────────────── */
.app-story-karte {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 26px 14px calc(env(safe-area-inset-bottom, 0px) + 14px);
  background: linear-gradient(rgba(10, 18, 48, 0), rgba(10, 18, 48, .84) 40%, rgba(10, 18, 48, .94));
}
.app-story-karte > img { width: 44px; height: 44px; border-radius: 11px; flex: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.app-story-karte p { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; line-height: 1.22; }
.app-story-karte strong { font-size: 17px; font-weight: 900; color: #fff; }
.app-story-karte span { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Gelb wie die Markierungen in den Motiven („Spaß“, „0 €“) — auf dem dunklen Grund springt es
   stärker ins Auge als das Markenblau. Chunky wie jeder Haupt-Knopf. */
.btn.app-laden {
  flex: none; padding: 13px 16px;
  background: #FFC83D; color: #172554;
  font-weight: 900; font-size: 14px; letter-spacing: .4px; white-space: nowrap;
  box-shadow: 0 4px 0 #D99A00;
}
.btn.app-laden:active { transform: translateY(4px); box-shadow: 0 0 0 #D99A00; }
.btn.app-laden:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.app-story.ist-fertig .app-laden { animation: app-federn 640ms var(--ease-pop-stark) 2; }
/* Kleine Handys (iPhone SE, 320 pt): Name und Knopf müssen nebeneinander passen. */
@media (max-width: 359px) {
  .btn.app-laden { padding: 12px 12px; font-size: 13px; letter-spacing: .2px; }
  .app-story-karte strong { font-size: 15px; }
  .app-story-karte > img { width: 40px; height: 40px; }
}
@keyframes app-federn { 0%, 100% { transform: none; } 40% { transform: scale(1.07); } }

/* ── Darunter: kurz in Worten ───────────────────────────────────────────────────────────── */
.app-mehr { max-width: 560px; margin: 0 auto; padding: 40px 20px 28px; text-align: center; }
.app-mehr-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 4px 16px rgba(23, 37, 84, .18); }
.app-mehr h1 { margin: 16px 0 10px; font-size: 32px; line-height: 1.15; font-weight: 900; color: var(--ink); }
.app-mehr h1 .accent { color: var(--blue); }
.app-mehr-lead { margin: 0 auto 22px; font-size: 17px; line-height: 1.5; color: var(--body); }
.app-mehr-stores { justify-content: center; margin-bottom: 26px; }
.app-mehr-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.app-mehr-liste li {
  padding: 14px 16px; border-radius: 16px; background: #fff;
  border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line);
  font-size: 15px; line-height: 1.45; color: var(--body);
}
.app-mehr-liste strong { display: block; font-size: 16px; font-weight: 900; color: var(--ink); margin-bottom: 2px; }
.app-mehr-frei { margin: 22px 0 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.app-mehr-frei span {
  display: inline-block; margin-right: 6px; padding: 3px 10px; border-radius: 999px;
  background: #FFC83D; color: #172554; font-weight: 900;
}

.app-fuss { display: flex; justify-content: center; gap: 20px; padding: 8px 20px calc(env(safe-area-inset-bottom, 0px) + 28px); font-size: 14px; }
.app-fuss a { color: var(--body); }

/* ── Am Rechner: Handy links, Text rechts ───────────────────────────────────────────────── */
@media (min-width: 900px) {
  .app-seite { background: radial-gradient(1200px 700px at 20% 0%, #EAF1FF, #FAF9F5 60%); }
  .app-rahmen {
    min-height: 100vh;
    display: grid; grid-template-columns: auto minmax(0, 520px);
    justify-content: center; align-items: center; gap: 72px;
    padding: 40px 32px 0;
  }
  .app-story {
    height: min(86vh, 820px); min-height: 0;
    aspect-ratio: 600 / 1301;
    border-radius: 40px;
    border: 8px solid #10182F;
    box-shadow: 0 30px 70px rgba(23, 37, 84, .35);
  }
  .app-laden { display: none !important; }
  .app-mehr { margin: 0; padding: 0; text-align: left; }
  .app-mehr h1 { font-size: 44px; }
  .app-mehr-lead { margin-left: 0; }
  .app-mehr-stores { justify-content: flex-start; }
  .app-mehr-liste { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .app-story.ist-story .app-story-bild { transition: none; }
  .app-story.ist-story .app-story-bild.ist-aktiv > img, .app-story.ist-fertig .app-laden, .app-frage-warum { animation: none; }
}
