/* BECUT Stempelkarte – Grundstil, Kundenseiten und Karte.
   Farben aus dem Salon: schwarze Decke (Ink), Betongrau (Stone), helle Wände/Boden (Paper). */

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/jost-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/jost-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Farben */
  --ink: #141516;
  --ink-2: #1a1b1d;
  --ink-3: #222326;
  --graphite: #2e2f31;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --stone: #8f8e8b;
  --stone-2: #b4b1ab;
  --paper: #f2efe9;
  --danger: #e8836f;
  --ok: #a9cfa4;

  /* Typo */
  --font: 'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;

  /* Form & Bewegung */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.2s;
  --t-mid: 0.6s;
  --t-slow: 1.1s;
  --stamp-step: 85ms;

  --gutter: clamp(20px, 5vw, 48px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
}
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.55;
  font-weight: 400;
  color: var(--paper);
  background:
    radial-gradient(120% 60% at 50% -10%, #232427 0%, rgba(20, 21, 22, 0) 60%),
    var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--paper);
  color: var(--ink);
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}

/* Körnung – sehr dezent, gibt der Fläche Material */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* :where() = Spezifität 0, damit fixierte Elemente (Navigation, Toast) ihre Position behalten */
:where(body > *:not(.grain, .toast)) {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------------ Typo */
.display {
  font-weight: 300;
  font-size: clamp(2.75rem, 11vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0.3em 0 0.35em;
}
.h1 {
  font-weight: 300;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0.2em 0 0.4em;
}
.h2 {
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.35em;
}
.h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: var(--fs-lg);
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
}
.h3 .icon {
  color: var(--stone-2);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-2);
}
.lead {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  line-height: 1.5;
  color: #d7d3cc;
  max-width: 34ch;
  margin: 0 0 1.4em;
}
.muted {
  color: var(--stone-2);
}
.hint {
  font-size: var(--fs-sm);
  color: var(--stone);
  margin: 0.5em 0 0;
}
.hint--center {
  text-align: center;
}
.note {
  font-size: var(--fs-sm);
  color: var(--stone-2);
  text-align: center;
}
em {
  font-style: normal;
}
.field .label em,
label em {
  color: var(--stone);
  font-weight: 400;
}

/* ------------------------------------------------------------------ Topbar & Footer */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: 1200px;
  margin: 0 auto;
}
.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.topbar__brand .mark {
  width: 30px;
  height: auto;
  color: var(--paper);
}
.topbar__link {
  font-size: var(--fs-sm);
  color: var(--stone-2);
}
.mark {
  color: var(--paper);
}
.mark--sm {
  width: 22px;
  height: auto;
}

.site-footer {
  max-width: 1200px;
  margin: 72px auto 0;
  padding: 28px var(--gutter) calc(32px + var(--safe-b));
  border-top: 1px solid var(--line);
  color: var(--stone);
  font-size: var(--fs-sm);
  display: grid;
  gap: 10px;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  font-weight: 500;
}
.site-footer__addr {
  margin: 0;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.site-footer a {
  color: var(--stone-2);
}

/* ------------------------------------------------------------------ Buttons */
.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 500;
  font-size: var(--fs-md);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--t-fast) var(--ease-out),
    background-color var(--t-fast),
    border-color var(--t-fast),
    color var(--t-fast),
    opacity var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active {
  transform: scale(0.98);
}
.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn--primary {
  background: var(--paper);
  color: var(--ink);
}
.btn--primary:hover {
  background: #fff;
  color: var(--ink);
}
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}
.btn--accent {
  background: var(--stone);
  color: var(--ink);
}
.btn--accent:hover {
  background: var(--stone-2);
  color: var(--ink);
}
.btn--danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(232, 131, 111, 0.45);
}
.btn--danger:hover {
  background: rgba(232, 131, 111, 0.08);
  color: var(--danger);
}
.btn--block {
  width: 100%;
}
.btn--lg {
  min-height: 56px;
  padding: 0 26px;
}
.btn--xl {
  min-height: 64px;
  font-size: var(--fs-lg);
  width: 100%;
}
.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: var(--fs-sm);
}

/* Wallet-Buttons im Stil der Wallet-Apps (schwarz, klar) */
.wallet-btns {
  display: grid;
  gap: 12px;
  justify-items: center;
}
.wallet-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 320px);
  min-height: 60px;
  padding: 10px 20px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.15;
  transition:
    transform var(--t-fast) var(--ease-out),
    border-color var(--t-fast);
}
.wallet-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
}
.wallet-btn:active {
  transform: scale(0.98);
}
.wallet-btn span {
  display: grid;
}
.wallet-btn small {
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.75;
}
.wallet-btn:has(img) {
  background: transparent;
  border: 0;
  padding: 0;
  width: auto;
  min-height: 0;
}
.wallet-btn img {
  height: 56px;
  width: auto;
}

/* ------------------------------------------------------------------ Formulare */
.form {
  display: grid;
  gap: 18px;
}
.form--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.form--inline input[type='search'] {
  flex: 1 1 160px;
  min-width: 0;
}
.field {
  display: grid;
  gap: 8px;
}
.field > label,
.label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #ddd9d2;
}
input[type='text'],
input[type='password'],
input[type='search'],
input:not([type]),
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
  transition:
    border-color var(--t-fast),
    background-color var(--t-fast);
}
textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.45;
}
input::placeholder,
textarea::placeholder {
  color: #77766f;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
}
select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23b4b1ab' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
select option {
  background: var(--ink-2);
  color: var(--paper);
}
.bday {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  flex: 1 1 260px;
}
.has-error input,
.has-error select {
  border-color: var(--danger);
}
.check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  font-size: var(--fs-sm);
  color: #d7d3cc;
  cursor: pointer;
  line-height: 1.5;
}
.check input {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  transition:
    background-color var(--t-fast),
    border-color var(--t-fast);
}
.check input:checked {
  background: var(--paper)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141516' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  border-color: var(--paper);
}
.check.has-error input {
  border-color: var(--danger);
}
.check strong {
  color: var(--paper);
  font-weight: 500;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(232, 131, 111, 0.1);
  border: 1px solid rgba(232, 131, 111, 0.35);
  color: #f3c3b8;
  font-size: var(--fs-sm);
  margin: 0 0 16px;
}
.alert .icon {
  flex: none;
  margin-top: 2px;
}
.alert--ok {
  background: rgba(169, 207, 164, 0.08);
  border-color: rgba(169, 207, 164, 0.3);
  color: #d3ebcf;
}

/* ------------------------------------------------------------------ Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-b));
  z-index: 50;
  transform: translate(-50%, 0);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  font-size: var(--fs-sm);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.is-error {
  background: var(--danger);
}
.js .toast[data-toast] {
  transition:
    transform 0.45s var(--ease-out),
    opacity 0.45s var(--ease-out);
}
.toast.is-leaving {
  opacity: 0;
  transform: translate(-50%, 16px);
}
.toast--static {
  position: static;
  transform: none;
  display: block;
  width: fit-content;
  margin: 0 auto 20px;
  white-space: normal;
  text-align: center;
  border-radius: 16px;
}

/* ------------------------------------------------------------------ Die Karte */
.pass {
  --pad: clamp(18px, 5vw, 24px);
  position: relative;
  isolation: isolate;
  width: min(100%, 380px);
  margin: 0 auto;
  padding: var(--pad);
  border-radius: var(--r-lg);
  background:
    radial-gradient(140% 70% at 50% 0%, #26272a 0%, rgba(38, 39, 42, 0) 55%),
    linear-gradient(170deg, #1c1d1f 0%, #121314 70%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 50px 90px -40px rgba(0, 0, 0, 0.9),
    0 24px 40px -24px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.pass__sheen {
  position: absolute;
  inset: -20% -60%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.07) 47%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.07) 53%, transparent 62%);
  transform: translateX(-70%);
  opacity: 0;
}
.pass__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pass__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.pass__mark {
  width: 34px;
  height: auto;
  flex: none;
}
.pass__brandname {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.3;
}
.pass__progress {
  text-align: right;
  line-height: 1;
}
.pass__label,
.pass__meta dt {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}
.pass__count {
  display: block;
  margin-top: 6px;
  font-size: 2.1rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.pass__count b {
  font-weight: 400;
}
.pass__count span {
  color: var(--stone);
}
.pass__bar {
  width: 100%;
  height: 2px;
  margin: 18px 0 22px;
  overflow: visible;
}
.pass__bar-track {
  fill: rgba(255, 255, 255, 0.08);
}
.pass__bar-fill {
  fill: var(--paper);
  transform-box: fill-box;
  transform-origin: left center;
}
.pass__stamps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(8px, 2.6vw, 12px);
}
.pass[data-total='12'] .pass__stamps,
.pass[data-total='14'] .pass__stamps,
.pass[data-total='16'] .pass__stamps {
  grid-template-columns: repeat(6, 1fr);
}
.stamp {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  place-items: center;
}
.stamp__ghost,
.stamp__ink {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.stamp__ghost .mark {
  width: 50%;
  height: auto;
  color: #fff;
  opacity: 0.06;
}
.stamp__ink {
  inset: -1px;
  background: var(--paper);
  opacity: 0;
  transform: scale(0.6);
}
.stamp__ink .mark {
  width: 56%;
  height: auto;
  color: var(--ink);
}
.stamp.is-filled .stamp__ink {
  opacity: 1;
  transform: none;
}
.stamp--reward {
  border: 1px dashed rgba(143, 142, 139, 0.8);
  color: var(--stone);
}
.stamp__gift {
  width: 44%;
  height: auto;
}
.stamp--reward.is-ready {
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.stamp--reward.is-ready::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(242, 239, 233, 0.5);
}
.pass__status {
  margin: 18px 0 0;
  font-size: var(--fs-sm);
  color: #d7d3cc;
  min-height: 1.5em;
}
.pass.is-ready .pass__status,
.pass.is-birthday .pass__status {
  color: var(--paper);
  font-weight: 500;
}
.pass__meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pass__meta dd {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pass__meta-right {
  text-align: right;
}
.pass__meta-right dd {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.pass__reward {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: var(--fs-sm);
  color: var(--stone-2);
}
.pass__reward .icon {
  flex: none;
  color: var(--stone-2);
}
.pass__qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 20px;
}
.pass__qrbox {
  width: 156px;
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
}
.pass__qrbox svg {
  width: 100%;
  height: 100%;
}
.pass__qr-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, #141516 0 8px, transparent 8px 13px),
    repeating-linear-gradient(0deg, transparent 0 9px, #fff 9px 14px);
  opacity: 0.85;
}
.pass__qrnum {
  font-size: var(--fs-xs);
  letter-spacing: 0.24em;
  color: var(--stone);
  font-variant-numeric: tabular-nums;
}

/* Auftritt der Karte (nur mit JS und ohne reduzierte Bewegung) */
.js .pass:not(.is-in, .is-static) {
  opacity: 0;
  transform: perspective(1200px) translateY(40px) rotateX(14deg) scale(0.96);
  animation: failsafe 0s linear 3s forwards;
}
.js .pass:not(.is-in, .is-static) .stamp.is-filled .stamp__ink {
  opacity: 0;
  transform: scale(1.6);
  animation: failsafe 0s linear 3s forwards;
}
.js .pass:not(.is-in, .is-static) .pass__bar-fill {
  transform: scaleX(0);
  animation: failsafe 0s linear 3s forwards;
}
/* Falls JavaScript hängt: nach 3 s trotzdem alles zeigen. */
@keyframes failsafe {
  to {
    opacity: 1;
    transform: none;
  }
}
.js .pass.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s var(--ease-out),
    transform 1.2s var(--ease-out);
}
.js .pass.is-in .stamp.is-filled .stamp__ink {
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.55s var(--ease-back);
  transition-delay: calc(0.45s + var(--i, 0) * var(--stamp-step));
}
.js .pass.is-in .pass__bar-fill {
  transition: transform 1.4s var(--ease-in-out) 0.4s;
}
.js .pass.is-in .pass__sheen {
  animation: sheen 1.6s var(--ease-in-out) 0.9s 1 both;
}
.js .pass.is-idle .pass__sheen {
  animation: sheen 2.2s var(--ease-in-out) 0s infinite;
  animation-delay: 6s;
}
@keyframes sheen {
  0% {
    opacity: 0;
    transform: translateX(-70%);
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(70%);
  }
}
.stamp:nth-child(1) { --i: 0; }
.stamp:nth-child(2) { --i: 1; }
.stamp:nth-child(3) { --i: 2; }
.stamp:nth-child(4) { --i: 3; }
.stamp:nth-child(5) { --i: 4; }
.stamp:nth-child(6) { --i: 5; }
.stamp:nth-child(7) { --i: 6; }
.stamp:nth-child(8) { --i: 7; }
.stamp:nth-child(9) { --i: 8; }
.stamp:nth-child(10) { --i: 9; }
.stamp:nth-child(11) { --i: 10; }
.stamp:nth-child(12) { --i: 11; }
.stamp:nth-child(13) { --i: 12; }
.stamp:nth-child(14) { --i: 13; }
.stamp:nth-child(15) { --i: 14; }
.stamp:nth-child(16) { --i: 15; }
.stamp:nth-child(17) { --i: 16; }
.stamp:nth-child(18) { --i: 17; }
.stamp:nth-child(19) { --i: 18; }
.stamp:nth-child(20) { --i: 19; }

/* Neuer Stempel live */
.stamp.is-new .stamp__ink {
  animation: stampPress 0.75s var(--ease-back) both;
}
.stamp.is-new::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  animation: ring 0.9s var(--ease-out) 0.15s both;
}
@keyframes stampPress {
  0% {
    opacity: 0;
    transform: scale(1.8);
  }
  55% {
    opacity: 1;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes ring {
  0% {
    opacity: 0.9;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}
.js .stamp--reward.is-ready::after {
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0;
    transform: scale(1.25);
  }
}
.pass__count.is-bump b {
  display: inline-block;
  animation: bump 0.6s var(--ease-back);
}
@keyframes bump {
  0% {
    transform: translateY(40%);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}

/* ------------------------------------------------------------------ Einblenden */
.js .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(18px);
  animation: failsafe 0s linear 3s forwards;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

/* ------------------------------------------------------------------ Startseite */
.landing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero {
  display: grid;
  gap: 40px;
  padding: clamp(16px, 5vw, 56px) 0 24px;
  align-items: center;
}
.hero__facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: var(--fs-sm);
  color: #ddd9d2;
}
.hero__facts .icon {
  color: var(--stone-2);
}
.hero__card {
  perspective: 1400px;
}
.hero__caption {
  text-align: center;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--stone);
  margin-top: 18px;
}
.existing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 640px;
  margin: 24px auto 0;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
}
.existing p {
  margin: 0;
}
.signup {
  max-width: 640px;
  margin: 56px auto 0;
  padding: clamp(24px, 6vw, 40px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  scroll-margin-top: 20px;
}
.signup .muted {
  margin: 0 0 24px;
}
.how {
  margin: 88px auto 0;
  max-width: 1000px;
}
.steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.steps li {
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.03);
}
.steps__n {
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  color: var(--stone);
}
.steps h3 {
  margin: 10px 0 6px;
  font-weight: 500;
  font-size: var(--fs-lg);
}
.steps p {
  margin: 0;
  color: var(--stone-2);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    padding-top: 48px;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ------------------------------------------------------------------ Kartenseite */
.cardpage {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.cardpage__intro {
  text-align: center;
  margin: 8px 0 28px;
}
.cardpage__intro .eyebrow .icon {
  color: var(--ok);
}
.cardpage__intro .muted {
  margin: 0 auto;
  max-width: 34ch;
}
.cardpage__card {
  perspective: 1400px;
}
.cardpage__wallet {
  margin: 28px 0 8px;
}
.news {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 22px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
}
.news p {
  margin: 0;
}
.news .icon {
  flex: none;
  margin-top: 3px;
}
.panel {
  margin-top: 18px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.panel p {
  margin: 0 0 0.6em;
  color: #d7d3cc;
}
.panel .hint {
  margin: 10px 0 0;
}
.panel--danger {
  border-color: rgba(232, 131, 111, 0.22);
}
.toggle-form {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.panel .form--inline .bday {
  flex: 1 1 240px;
}

/* ------------------------------------------------------------------ Meldungsseiten & Rechtliches */
.message {
  max-width: 520px;
  margin: 10vh auto 0;
  padding: 0 var(--gutter);
  text-align: center;
  display: grid;
  justify-items: center;
}
.message__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  color: var(--stone-2);
}
.message .muted {
  margin: 0 0 28px;
}
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px var(--gutter) 0;
}
.legal__body h2 {
  font-weight: 500;
  font-size: 1.25rem;
  margin: 2em 0 0.5em;
  letter-spacing: -0.01em;
}
.legal__body h3 {
  font-weight: 500;
  font-size: 1.05rem;
  margin: 1.5em 0 0.4em;
}
.legal__body p,
.legal__body li {
  color: #d7d3cc;
}
.legal__body .draft {
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-2);
  color: var(--stone-2);
  font-size: var(--fs-sm);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal,
  .js .pass,
  .js .pass .stamp.is-filled .stamp__ink,
  .js .pass .pass__bar-fill {
    opacity: 1 !important;
    transform: none !important;
  }
}
