/* ============================================================
   Basty v3: Spielzeugladen
   Farben aus der Packung, dicke Konturen, harte Schatten.
   Mit 3D (html.try-3d) ist das Canvas der ganze Hintergrund, die Seite
   besteht nur aus Hero, Scroll-Strecke und Kassa-Panel. Ohne 3D zeigt
   .flat die ruhige Ersatzansicht.
   ============================================================ */

:root {
  --yellow: #ffd23f;
  --blue: #1f6fcf;
  --blue-d: #114ba0;
  --orange: #f58321;
  --cream: #f6f0e5;
  --ink: #14120f;
  --muted: #5d574c;

  --display: "Archivo", "Figtree", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --nav: 64px;
  --gut: clamp(20px, 5.6vw, 80px);
  --wrap: 1280px;
  --r: 10px;
  --line: 2px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --focus: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--yellow); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 12px 16px; border-radius: var(--r); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 1.2rem + 6.4vw, 7rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4rem); }
h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; }
.hl { color: var(--blue); }
.lead { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); line-height: 1.45; max-width: 30em; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px;
  font: 700 1.0625rem/1 var(--display); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  border: var(--line); border-radius: var(--r); background: var(--cream); color: var(--ink);
  box-shadow: var(--shadow); white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn--primary { background: var(--orange); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav); background: var(--cream); border-bottom: var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav .btn { height: 42px; padding: 0 20px; font-size: 1rem; box-shadow: 3px 3px 0 var(--ink); }
.logo { font: 700 1.7rem/1 var(--display); letter-spacing: -0.05em; text-decoration: none; position: relative; padding-right: 0.9rem; }
.logo sup { position: absolute; top: -0.05em; right: 0; font-size: 0.6rem; font-weight: 700; letter-spacing: 0; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--nav) + 40px) 48px; background: var(--yellow); }
.hero__grid { display: grid; gap: 32px; width: min(100% - 2 * var(--gut), var(--wrap)); }
.hero__text h1 { max-width: 9em; }
.hero__text .lead { margin-top: 28px; }
.hero__text .btn-row { margin-top: 36px; }

.pack { position: relative; width: 100%; height: clamp(340px, 62svh, 620px); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pack:focus-visible { outline-offset: 10px; }
.pack__still { height: 100%; width: auto; margin-inline: auto; object-fit: contain; -webkit-user-drag: none; }
html.is-3d .pack__still { visibility: hidden; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
  .hero__text { grid-column: 1 / 8; }
  .pack { grid-column: 8 / 13; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: enter 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__text > :nth-child(2) { animation-delay: 0.1s; }
  .hero__text > :nth-child(3) { animation-delay: 0.2s; }
  @keyframes enter { from { opacity: 0; transform: translateY(16px); } }
}

/* ---------- Mit 3D: der Laden ---------- */
.stage3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
html.try-3d .hero {
  position: fixed; inset: 0; z-index: 10; background: transparent;
  opacity: var(--hero-op, 1); pointer-events: none;
}
html.try-3d .hero .btn, html.try-3d .hero a, html.try-3d .hero button { pointer-events: auto; }
html.try-3d.past-hero .hero { visibility: hidden; }
html.try-3d .nav { transform: translateY(calc((1 - var(--nav-op, 1)) * -101%)); }
html.try-3d.nav-off .nav { visibility: hidden; pointer-events: none; }
html.try-3d .runway { height: 300vh; }
html.try-3d .flat, html.try-3d .flat-foot { display: none; }
html.try-3d { touch-action: pan-y; scrollbar-width: none; -ms-overflow-style: none; }
html.try-3d::-webkit-scrollbar, html.try-3d body::-webkit-scrollbar { display: none; width: 0; height: 0; }
html:not(.try-3d) .runway, html:not(.try-3d) .kassa { display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Kassa-Panel am Ende der Fahrt */
.kassa {
  position: fixed; left: 50%; bottom: clamp(20px, 5vh, 56px); z-index: 30; width: min(92vw, 540px);
  transform: translate(-50%, calc((1 - var(--kassa-op, 0)) * 24px));
  opacity: var(--kassa-op, 0); pointer-events: none;
  background: var(--cream); border: var(--line); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); padding: 28px;
  display: grid; gap: 14px;
}
html.at-kassa .kassa { pointer-events: auto; }
.kassa h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); }
.kassa p { font-size: 1.125rem; }

/* Links zu Instagram, TikTok, LinkedIn */
.nav__right { display: flex; align-items: center; gap: 18px; }
.social { display: flex; gap: 8px; }
.social__link {
  width: 42px; height: 42px; display: grid; place-items: center; background: var(--cream); color: var(--ink);
  border: var(--line); border-radius: var(--r); box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.social__link svg { width: 20px; height: 20px; fill: currentColor; }
.social__link:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); background: var(--yellow); }
.social__link:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.social--hero, .social--panel { display: none; }
.social--hero { margin-top: 22px; }
@media (max-width: 899px) {
  .social--nav { display: none; }
  .social--hero { display: flex; }
}

/* Kassabon: die Links als Positionen (nur große Fenster) */
.bon {
  position: fixed; left: clamp(16px, 5vw, 110px); bottom: clamp(24px, 7vh, 72px); z-index: 31; width: 270px;
  background: #fffdf6; color: var(--ink); border: var(--line); box-shadow: 4px 4px 0 var(--ink);
  padding: 18px 18px 22px; font: 500 0.9375rem/1.4 var(--text);
  transform: translateY(calc((1 - var(--kassa-op, 0)) * 90px)) rotate(-2deg); opacity: var(--kassa-op, 0); pointer-events: none;
}
html.at-kassa .bon { pointer-events: auto; }
.bon::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -12px; height: 12px; background: radial-gradient(circle at 8px -2px, transparent 7px, #fffdf6 8px) 0 0 / 16px 12px repeat-x; filter: drop-shadow(0 2px 0 var(--ink)); }
.bon__head { font: 700 1.1rem/1 var(--display); text-align: center; padding-bottom: 12px; border-bottom: 2px dashed var(--ink); margin-bottom: 8px; }
.bon ul { list-style: none; }
.bon li a { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; text-decoration: none; }
.bon li a:hover span { text-decoration: underline; }
.bon__sum { display: flex; justify-content: space-between; border-top: 2px dashed var(--ink); margin-top: 8px; padding-top: 10px; font: 700 1rem/1 var(--display); }
.bon__foot { text-align: center; margin-top: 12px; font-size: 0.875rem; }
@media (max-width: 1099px) { .bon { display: none; } .social--panel { display: flex; } }
html:not(.try-3d) .bon { display: none; }

/* Sprechblase des Verkäufers (folgt im 3D dem Kopf) */
.kassa-bubble {
  position: fixed; left: 50%; top: 40%; z-index: 29; transform: translate(-100%, -50%); max-width: min(52vw, 260px);
  opacity: var(--kassa-op, 0); pointer-events: none; margin: 0;
  background: var(--cream); color: var(--ink); border: var(--line); border-radius: var(--r); box-shadow: 3px 3px 0 var(--ink);
  padding: 10px 16px; font: 700 1rem/1.3 var(--display); text-align: center;
}
.kassa-bubble::after { content: ""; position: absolute; top: 50%; right: -9px; width: 14px; height: 14px; background: var(--cream); border-right: var(--line); border-top: var(--line); transform: translateY(-50%) rotate(45deg); }
html:not(.try-3d) .kassa-bubble { display: none; }

/* Vorhang für die Abkürzung zur Kassa */
.wipe { position: fixed; inset: 0; z-index: 80; background: var(--orange); border-top: 6px solid var(--ink); transform: translateY(101%); pointer-events: none; }
html:not(.try-3d) .wipe { display: none; }

/* Impressum und Datenschutz: immer sichtbar */
.legal-tags { position: fixed; left: 16px; bottom: 16px; z-index: 40; display: flex; gap: 8px; }
.legal-tags a {
  text-decoration: none; font: 700 0.875rem/1 var(--display); padding: 9px 12px; background: var(--cream); color: var(--ink);
  border: var(--line); border-radius: 8px; box-shadow: 3px 3px 0 var(--ink); transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.legal-tags a:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
html.try-3d .legal-tags { bottom: auto; top: var(--legal-top, calc(100svh - 50px)); }

/* ============================================================
   Ersatzansicht (.flat): ohne 3D
   ============================================================ */
.sec { padding-block: clamp(80px, 12vh, 128px); }
.sec--blue { background: var(--blue); color: #fff; }
.sec--cream { background: var(--cream); }
.sec--orange { background: var(--orange); }
.sec__head { max-width: 40rem; }
.sec__head h2 { margin-bottom: 18px; }
.sec--blue .btn--primary { background: var(--yellow); }

/* Zubehör: Karten */
.swipe { display: grid; gap: 40px; margin-top: 56px; align-items: center; }
@media (min-width: 900px) { .swipe { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; } }
.swipe__buddy { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.swipe__basty { display: flex; justify-content: center; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); transform-origin: bottom center; }
.swipe__basty-img { width: auto; height: clamp(164px, 24vw, 248px); }
.swipe.is-yes .swipe__basty { transform: translateY(-8px) rotate(-4deg) scale(1.05); }
.swipe.is-no .swipe__basty { transform: rotate(4deg) scale(0.97); }
.swipe__bubble {
  position: relative; background: var(--cream); color: var(--ink); border: var(--line); border-radius: var(--r); box-shadow: 3px 3px 0 var(--ink);
  padding: 10px 16px; font: 700 1rem/1.3 var(--display); text-align: center; max-width: 18rem; min-height: 2.8em;
}
.swipe__bubble::after {
  content: ""; position: absolute; top: -9px; left: 50%; width: 14px; height: 14px; background: var(--cream);
  border-left: var(--line); border-top: var(--line); transform: translateX(-50%) rotate(45deg);
}
.swipe__stage { position: relative; width: 100%; max-width: 640px; justify-self: end; }
.swipe__deck { position: relative; height: clamp(300px, 42vh, 360px); }
.swipe__deck:focus-visible { outline-offset: 10px; }
.swipe__card {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(24px, 4vw, 40px);
  background: var(--cream); color: var(--ink); border: var(--line); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink);
  transform: translateY(calc(var(--i, 0) * 10px)) scale(calc(1 - var(--i, 0) * 0.03));
  transition: transform 0.3s ease, opacity 0.3s ease; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.swipe__card.is-dragging { transition: none; cursor: grabbing; }
.swipe__card.is-gone { transition: transform 0.38s ease, opacity 0.38s ease; }
.swipe__card-title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); }
.swipe__card-text { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.4; max-width: 24em; }
.swipe__stamp { position: absolute; top: 20px; height: 32px; padding: 0 12px; display: inline-flex; align-items: center; font: 700 0.9375rem/1 var(--display); border: var(--line); border-radius: 8px; opacity: 0; transition: opacity 0.12s ease; }
.swipe__stamp--yes { right: 20px; background: var(--yellow); }
.swipe__stamp--no { left: 20px; background: var(--ink); color: var(--cream); }
.swipe.hint-yes .swipe__card.is-top .swipe__stamp--yes { opacity: 1; }
.swipe.hint-no .swipe__card.is-top .swipe__stamp--no { opacity: 1; }
.swipe__controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; }
.swipe__controls[hidden] { display: none; }
.swipe__tally { font: 700 1rem/1 var(--display); text-align: center; }
.swipe__done {
  position: absolute; inset: 0 0 auto 0; height: clamp(300px, 42vh, 360px); display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: clamp(24px, 4vw, 40px); background: var(--ink); color: var(--cream); border: var(--line); border-radius: 16px; box-shadow: 6px 6px 0 var(--cream);
}
.swipe__done[hidden] { display: none; }
.swipe__done-text { font: 700 clamp(1.5rem, 1.1rem + 1.4vw, 2rem)/1.1 var(--display); letter-spacing: -0.02em; max-width: 22ch; }
.plain { margin-top: 40px; display: grid; gap: 12px; list-style: none; max-width: 40rem; }
html.js .plain { display: none; }
html:not(.js) .swipe { display: none; }

/* Datenblatt */
.spec { display: grid; gap: 56px; align-items: end; }
.spec__text h2 { margin-bottom: 18px; }
.spec__fig img { height: clamp(380px, 56vh, 600px); width: auto; margin-inline: auto; }
@media (min-width: 900px) {
  .spec { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .spec__text { grid-column: 1 / 8; }
  .spec__fig { grid-column: 9 / 13; }
}
.rows { margin-top: 44px; border: var(--line); border-radius: 14px; background: #fff; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.rows > div { display: grid; grid-template-columns: minmax(7.5rem, 11rem) 1fr; gap: 16px; padding: 14px 20px; border-bottom: 2px solid rgba(20, 18, 15, 0.15); }
.rows > div:last-child { border-bottom: 0; }
.rows dt { color: var(--muted); }
.rows dd { font-weight: 600; }
.rows__live { display: none !important; }

/* Kontakt */
.order { display: grid; gap: 56px; margin-top: 56px; }
@media (min-width: 900px) {
  .order { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .form { grid-column: 1 / 7; }
  .call { grid-column: 8 / 13; }
}
.form { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.form h3, .call h3 { margin-bottom: 4px; }
.field { width: 100%; display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.form input, .form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream); border: var(--line); border-radius: var(--r); padding: 13px 14px; resize: vertical; }
.form input { height: 50px; padding-block: 0; }
.field__error { font-size: 0.9375rem; font-weight: 600; }
.form [aria-invalid="true"] { border-color: #b3261e; }
.form__note { font-size: 0.9375rem; }
.call { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.call p { font-size: 1.125rem; max-width: 26em; }
.sec--orange .btn--primary { background: var(--ink); color: var(--cream); }
.sec--orange .btn--primary:hover { background: #2c2923; }

.paywrap { margin-top: 80px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.paybtn {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; width: fit-content;
  background: var(--cream); color: var(--ink); border: var(--line); border-radius: var(--r); box-shadow: 3px 3px 0 var(--ink);
  font: 700 0.9375rem/1 var(--display); cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.paybtn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.paybtn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.paybtn__glyph { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.paywrap__note { font-size: 0.9375rem; }

/* Footer (nur Ersatzansicht) */
.foot { background: var(--ink); color: var(--cream); padding: 0 0 80px; overflow: hidden; }
.foot__word { position: relative; font: 700 min(38.5vw, 34rem)/0.82 var(--display); letter-spacing: -0.05em; color: #26231e; padding-top: 24px; padding-bottom: 0.06em; margin-bottom: 40px; margin-left: -0.04em; user-select: none; }
.foot__word sup { position: absolute; top: 0.14em; right: -0.04em; font-size: 0.14em; letter-spacing: 0; color: #4a453b; }
.foot__row { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; font-size: 0.9375rem; padding-top: 24px; border-top: 2px solid rgba(246, 240, 229, 0.25); }
.foot__row a { text-decoration: none; font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 2px; transition: background-size 0.2s ease; }
.foot__row a:hover { background-size: 100% 2px; }
.foot__row span { margin-left: auto; opacity: 0.7; }

/* ============================================================
   Overlays
   ============================================================ */
.overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: clamp(12px, 4vw, 40px); }
.overlay[hidden] { display: none; }
.overlay__backdrop { position: absolute; inset: 0; background: rgba(20, 18, 15, 0.65); }
.overlay__panel { position: relative; width: min(560px, 100%); max-height: 90vh; display: flex; flex-direction: column; background: var(--cream); border: var(--line); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; animation: panel-in 0.18s ease both; }
@keyframes panel-in { from { transform: translateY(12px); opacity: 0; } }
.overlay__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: var(--line); }
.overlay__bar p { font: 700 1.125rem/1 var(--display); }
.overlay__close { border: 0; background: none; font-size: 1.75rem; line-height: 1; cursor: pointer; color: var(--ink); width: 44px; height: 44px; margin-right: -12px; }
.overlay__content { flex: 1; min-height: 420px; }
.overlay__content { overflow: auto; }
.overlay__note { padding: 10px 20px; font-size: 0.875rem; border-bottom: 2px solid rgba(20, 18, 15, 0.12); }
.overlay__content iframe { width: 100%; height: 600px; border: 0; display: block; background: #fff; }
.overlay__fallback { padding: 32px 24px; display: grid; gap: 12px; }
.overlay__fallback a { font-weight: 700; }

/* Basty Pay */
.pay { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pay[hidden] { display: none; }
.pay__backdrop { position: absolute; inset: 0; background: rgba(20, 18, 15, 0.65); animation: fade-in 0.2s ease both; }
.pay__sheet { position: relative; width: min(400px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--cream); color: var(--ink); border: var(--line); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); padding: 16px 16px 20px; animation: sheet-up 0.4s cubic-bezier(0.2, 0.9, 0.25, 1) both; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(60px); opacity: 0; } }
.pay__bar { display: flex; align-items: center; justify-content: space-between; padding: 0 0 14px 4px; }
.pay__brand { display: inline-flex; align-items: center; gap: 8px; font: 700 1.125rem/1 var(--display); }
.pay__brand svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.pay__x { border: 0; background: transparent; width: 44px; height: 44px; margin: -8px -8px -8px 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.pay__card { position: relative; height: 148px; border: var(--line); border-radius: 12px; padding: 16px 18px; background: var(--blue); color: #fff; }
.pay__chip { display: block; width: 34px; height: 25px; border: 2px solid var(--ink); border-radius: 5px; background: var(--yellow); }
.pay__card-name { position: absolute; left: 18px; bottom: 16px; font: 700 1rem/1 var(--display); }
.pay__card-no { position: absolute; right: 18px; bottom: 16px; font-size: 0.9375rem; letter-spacing: 0.06em; }
.pay__rows { margin-top: 12px; background: #fff; border: var(--line); border-radius: 12px; padding: 2px 16px; }
.pay__rows div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 2px solid rgba(20, 18, 15, 0.12); font-size: 0.9375rem; }
.pay__rows div:last-child { border-bottom: 0; font-weight: 700; }
.pay__rows dt { color: var(--muted); }
.pay__rows dd { text-align: right; }
.pay__dock { margin-top: 14px; }
.pay__go { width: 100%; height: 56px; display: flex; align-items: center; justify-content: center; gap: 12px; border: var(--line); border-radius: 12px; cursor: pointer; background: var(--ink); color: var(--cream); font: 700 1.0625rem/1 var(--display); transition: background-color 0.3s ease, color 0.3s ease; }
.pay__icon { position: relative; width: 28px; height: 28px; display: grid; place-items: center; }
.pay__icon svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pay__glyph { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; padding: 3px; }
.pay__spin, .pay__check { opacity: 0; fill: none; }
.pay__spin circle { stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 90 140; transform-origin: 25px 25px; }
.pay__check-ring { stroke: currentColor; stroke-width: 3; stroke-dasharray: 145; stroke-dashoffset: 145; }
.pay__check-tick { stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
[data-state="ready"] .pay__icon::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; opacity: 0.5; animation: ping 1.7s ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.7); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }
.pay__sheet.is-nudge .pay__go { animation: nudge 0.4s ease; }
@keyframes nudge { 40% { transform: scale(0.97); } 100% { transform: scale(1); } }
[data-state="wait"] .pay__glyph { opacity: 0; }
[data-state="wait"] .pay__spin { opacity: 1; }
[data-state="wait"] .pay__spin circle { animation: rot 0.9s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
[data-state="done"] .pay__go { background: var(--yellow); color: var(--ink); }
[data-state="done"] .pay__glyph, [data-state="done"] .pay__spin { opacity: 0; }
[data-state="done"] .pay__check { opacity: 1; animation: pop 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
[data-state="done"] .pay__check-ring { animation: draw 0.5s ease forwards; }
[data-state="done"] .pay__check-tick { animation: draw 0.35s 0.35s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(0.4); } 100% { transform: scale(1); } }
[data-state="done"] .pay__icon::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; animation: burst 0.9s 0.3s ease-out both; }
@keyframes burst { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }
.pay__done { display: none; padding-top: 20px; }
[data-state="done"] .pay__done { display: grid; gap: 12px; justify-items: start; animation: done-in 0.5s 0.55s ease both; }
@keyframes done-in { from { opacity: 0; transform: translateY(10px); } }
.pay__done-title { font: 700 1.6rem/1.1 var(--display); letter-spacing: -0.02em; }
.pay__again { border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.9375rem; text-decoration: underline; cursor: pointer; padding: 10px 0; }
[data-state="done"] .pay__body { display: none; }

@media (max-width: 639px) {
  .btn-row .btn { flex: 1 1 100%; }
  .hero .btn-row .btn { flex: 1 1 auto; padding: 0 18px; }
  .hero { padding-block: calc(var(--nav) + 24px) 16px; align-items: flex-start; }
  .hero__text .lead { margin-top: 18px; }
  .hero__text .btn-row { margin-top: 22px; }
  .pack { height: clamp(250px, 36svh, 420px); }
  .swipe__controls { flex-wrap: wrap; }
  .swipe__tally { order: -1; flex-basis: 100%; }
  .swipe__controls .btn { flex: 1; }
  .rows > div { grid-template-columns: 1fr; gap: 2px; }
  .foot__row span { margin-left: 0; flex-basis: 100%; }
  .pay { align-items: flex-end; padding: 0; }
  .pay__sheet { border-radius: 16px 16px 0 0; width: 100%; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .kassa { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
}

/* Video-Ansicht (?video): nur Szene und Packung, keine Oberfläche. Für die Aufnahmen des Präsentationsvideos. */
html.video .nav, html.video .hero__text, html.video .legal-tags, html.video .kassa, html.video .kassa-bubble { display: none !important; }
html.video .hero__grid { display: block; }
html.video .pack { height: 74svh; width: 100%; margin: 0 auto; }

/* Text nur für Suchmaschinen und Screenreader (im 3D-Modus); ohne 3D zeigt .flat dieselben Inhalte */
.seo-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
html:not(.try-3d) .seo-text { display: none; }
