/* Komponenten — 1:1 nach dem Claude-Design „Smartcard App.dc.html" */

/* ============================================================= Cards */

.card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--card-shadow);
}

.card--pad { padding: 18px; }
.card--press { transition: transform 140ms var(--ease-out); }
.card--press:active { transform: scale(0.985); }

/* ============================================================= Buttons & Pills */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  padding-inline: 20px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 700;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 140ms var(--ease-out), background-color 120ms ease;
}

.btn:active { transform: scale(0.98); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--white { background: var(--surface); color: var(--ink); box-shadow: var(--card-shadow); }
.btn--outline { background: var(--surface); color: var(--ink); border: 1px solid rgba(0, 0, 0, 0.12); font-weight: 600; }
.btn--outline:active { background: var(--surface-pressed); transform: none; }
.btn--ghost-dark { background: none; color: rgba(255, 255, 255, 0.6); font-weight: 500; min-height: 44px; }
.btn--sm { min-height: 44px; font-size: 15px; font-weight: 600; width: auto; }

.pill-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 5px 11px;
  line-height: 1.2;
}

.pill-badge--soft { background: var(--surface-dim); color: var(--ink); font-weight: 600; font-size: 12.5px; padding: 6px 12px; }
.pill-badge--white { background: #fff; color: var(--ink); }

/* Auswahl-Pills (Filter, Onboarding) */
.choice {
  height: 36px;
  padding: 0 15px;
  border-radius: var(--r-pill);
  border: none;
  background: var(--surface-dim);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 150ms ease;
  white-space: nowrap;
}

.choice[aria-pressed="true"],
.choice:has(input:checked) { background: var(--ink); color: #fff; }

/* „Angebot merken"-Button im Detail */
.heart-save[data-favorite="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

body.no-scroll { overflow: hidden; }

/* ============================================================= Toggle (iOS) */

.toggle { position: relative; flex: 0 0 auto; width: 51px; height: 31px; }
.toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 2; }

.toggle__track {
  position: absolute;
  inset: 0;
  border-radius: var(--r-pill);
  background: var(--toggle-off);
  transition: background-color 200ms ease;
}

.toggle__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 200ms var(--ease-out);
}

.toggle input:checked + .toggle__track { background: var(--ink); }
.toggle input:checked + .toggle__track::after { transform: translateX(20px); }

/* ============================================================= Segmented Control */

.segmented {
  display: flex;
  background: var(--surface-dim);
  border-radius: var(--r-seg);
  padding: 3px;
}

.segmented button {
  flex: 1;
  height: 36px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: all 200ms ease;
  background: transparent;
}

.segmented button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }

.segmented--pill { border-radius: var(--r-pill); background: #EAEAE7; }
.segmented--pill button { border-radius: var(--r-pill); height: 34px; padding: 0 15px; flex: 0 0 auto; font-size: 13.5px; color: var(--sec-70); }
.segmented--pill button[aria-pressed="true"] { color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }

/* ============================================================= Listen-Zeilen */

.row-list { overflow: hidden; }

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  position: relative;
  width: 100%;
  text-align: left;
  transition: background-color 120ms ease;
}

a.row:active, button.row:active { background: var(--surface-pressed); }

.row + .row::before,
.row--sep::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  height: 0.5px;
  background: var(--hairline);
}

.row__label { flex: 1; min-width: 0; font-size: 16.5px; }
.row__label small { display: block; font-size: 13px; color: var(--sec-60); margin-top: 1px; }
.row__value { font-size: 15px; color: var(--sec-55); }

.chev { flex: 0 0 auto; color: var(--sec-30); display: flex; }

/* ============================================================= Tab-Bar (Liquid Glass, floating) */

.tab-bar {
  position: fixed;
  bottom: calc(10px + var(--safe-bottom));
  left: 20px;
  right: 20px;
  touch-action: none;
  z-index: 38;
  height: 64px;
  max-width: calc(var(--content-max) - 40px);
  margin-inline: auto;
  border-radius: var(--r-pill);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tab-bar__glass {
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  background: rgba(255, 255, 255, 0.65);
}

.tab-bar__rim {
  position: absolute;
  inset: 0;
  border-radius: var(--r-pill);
  box-shadow: inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.7);
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
  z-index: 2;
}

.tab-bar__inner { position: relative; height: 100%; display: flex; align-items: stretch; touch-action: none; }

.tab-bar__bubble {
  position: absolute;
  top: 6px;
  height: 52px;
  width: calc(25% - 10px);
  left: 5px;
  border-radius: var(--r-pill);
  background: rgba(13, 13, 13, 0.08);
  /* Feder mit leichtem Überschwingen (Rebound) beim Einrasten/Gleiten */
  transition: left 0.62s var(--ease-bubble), transform 0.2s var(--ease-out), background-color 0.2s ease;
  pointer-events: none;
  will-change: left, transform;
}

/* Während des Ziehens: left folgt dem Finger ohne Transition, Bubble „hebt ab" */
.tab-bar__bubble.is-dragging {
  transition: transform 0.18s var(--ease-out), background-color 0.2s ease;
  transform: scale(1.12);
  background: rgba(13, 13, 13, 0.14);
}

.tab-bar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
}

.tab-bar__item svg {
  width: 24px;
  height: 24px;
  transition: transform 0.35s var(--ease-pop);
  color: var(--sec-45);
  stroke-width: 1.7;
}

.tab-bar__item span { font-size: 10.5px; font-weight: 600; color: var(--sec-45); }

.tab-bar__item[aria-current="page"] svg { color: var(--ink); stroke-width: 2; transform: translateY(-1.5px) scale(1.1); }
.tab-bar__item[aria-current="page"] span { color: var(--ink); }

/* ============================================================= Inline-Titel (erscheint beim Scrollen) */

.inline-title {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  height: calc(76px + var(--safe-top));
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.inline-title[data-visible] { opacity: 1; transform: translateY(0); }

.inline-title__glass {
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(244, 244, 242, 0.72);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.inline-title__text {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

/* ============================================================= Feed: Begrüßung + Ersparnis-Hero */

.greeting {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.greeting__title {
  font-size: 33px;
  font-weight: 800;
  letter-spacing: -0.9px;
  line-height: 1.08;
  color: var(--ink);
}

.greeting .avatar { flex: 0 0 auto; margin-top: 2px; }

.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 700;
}

.savings-hero { display: flex; flex-direction: column; gap: 12px; transition: opacity 120ms ease; }
.savings-hero:active { opacity: 0.75; }

.savings-hero__amount {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.savings-hero__sub { font-size: 16px; font-weight: 600; letter-spacing: -0.2px; }

.savings-hero__pill {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  box-shadow: var(--card-shadow);
  font-size: 13.5px;
  color: var(--sec-70);
}

/* ============================================================= Filter */

.feed-head { display: flex; align-items: center; justify-content: space-between; }

.filter-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: var(--card-shadow);
  transition: all 200ms ease;
}

.filter-btn[data-active] { background: var(--ink); color: #fff; }

.filter-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-wrap[data-open] { grid-template-rows: 1fr; }
.filter-wrap > div { overflow: hidden; min-height: 0; }

.filter-panel {
  background: var(--surface);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--card-shadow);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.32s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.filter-wrap[data-open] .filter-panel { opacity: 1; transform: translateY(0); pointer-events: auto; }

.filter-panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 0.5px solid var(--hairline);
  padding-top: 14px;
  font-size: 13px;
  color: var(--sec-55);
}

/* ============================================================= OfferCard */

.offer-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 140ms var(--ease-out);
}

.offer-card:active { transform: scale(0.985); }

.offer-card__link { position: absolute; inset: 0; z-index: 1; }

.offer-card__media {
  height: 132px;
  position: relative;
  background: var(--surface-dim);
}

.offer-card__media img { width: 100%; height: 100%; object-fit: cover; }

.offer-card__badge { position: absolute; top: 12px; left: 12px; }

.offer-card__heart {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-pop);
}

.offer-card__heart:active { transform: scale(0.8); }
.offer-card__heart svg { width: 16px; height: 15px; }
.offer-card__heart .heart-fill { opacity: 0; transition: opacity 150ms ease; }
.offer-card__heart[data-favorite="true"] .heart-fill { opacity: 1; }

.offer-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }

.offer-card__meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--sec-60); }
.offer-card__meta b { font-weight: 600; }
.offer-card__meta .dot { width: 3px; height: 3px; border-radius: 99px; background: var(--sec-30); }

.offer-card__title { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }

.price-row { display: flex; align-items: center; gap: 10px; }
.price-row__old { font-size: 15px; color: var(--sec-45); text-decoration: line-through; }
.price-row__new { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.price-row__validity { margin-left: auto; font-size: 12.5px; color: var(--sec-60); }

/* ============================================================= Empty-State */

.empty-card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.empty-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-pill);
  background: var(--surface-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sec-45);
}

.empty-card h2 { font-size: 16px; font-weight: 600; }
.empty-card p { font-size: 14px; color: var(--sec-60); line-height: 1.45; max-width: 300px; }

/* ============================================================= Mitgliedskarte (schwarz) */

.tilt-zone { perspective: 1000px; }

.member-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  padding: 22px;
  height: 228px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: radial-gradient(130% 180% at 88% -30%, #3E3E42 0%, #1C1C1F 45%, #070708 100%);
  box-shadow: 0 24px 48px rgba(14, 44, 35, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.22, 1.6, 0.36, 0.9);
  will-change: transform;
}

.member-card__sheen {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 45%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.09) 50%, transparent 100%);
  animation: sc-sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}

.member-card__skyline {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 7px;
  padding: 0 20px;
  pointer-events: none;
}

.member-card__skyline i {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
}

.member-card__skyline .spire { width: 1.5px; border: none; background: rgba(255, 255, 255, 0.13); border-radius: 0; }

.member-card__row { position: relative; display: flex; align-items: center; justify-content: space-between; }
.member-card__row--bottom { align-items: flex-end; }

.member-card__brand { display: flex; align-items: center; gap: 11px; font-size: 16.5px; font-weight: 700; letter-spacing: -0.2px; }

.member-card__name { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; }
.member-card__number { font-family: var(--font-mono); font-size: 13.5px; color: rgba(255, 255, 255, 0.6); letter-spacing: 2.5px; margin-top: 4px; }
.member-card__valid { text-align: right; font-size: 11.5px; color: rgba(255, 255, 255, 0.55); }
.member-card__valid strong { display: block; font-size: 14px; font-weight: 700; color: #fff; }

/* Warten-auf-Scan-Pille */
.scan-wait {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  border-radius: var(--r-pill);
  padding: 12px 18px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  animation: sc-slide-up 0.35s var(--ease-out) both;
}

.pulse-dot { width: 8px; height: 8px; border-radius: 99px; background: currentColor; animation: sc-pulse 1.2s ease infinite; flex: 0 0 auto; }
.pulse-dot--ink { background: var(--ink); width: 7px; height: 7px; animation-duration: 1.6s; }

/* Code-Panel */
.code-panel {
  background: var(--surface);
  border-radius: var(--r-panel);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--card-shadow);
}

.code-panel__stage { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 6px 0 2px; }
.code-panel__stage svg { display: block; animation: sc-pop 0.35s var(--ease-pop); }
.code-panel__qr { width: 160px; height: 160px; }
.code-panel__copy {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--sec-55);
  letter-spacing: 2px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 200ms ease;
}
.code-panel__copy:active { background: var(--surface-dim); }
.code-panel__hint { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13px; color: var(--sec-60); padding-bottom: 2px; }

/* Wallet-Button (r14 wie im Design) */
.btn--wallet { border-radius: 14px; background: var(--ink); color: #fff; min-height: 52px; font-weight: 600; font-size: 16px; }

/* ============================================================= Geschäfte */

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--r-input);
  padding: 0 14px;
  height: 44px;
  box-shadow: var(--card-shadow);
}

.search-bar svg { flex: 0 0 auto; color: var(--sec-45); }
.search-bar input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-size: 15.5px; color: var(--ink); }
.search-bar input::placeholder { color: var(--sec-45); }

.map-preview {
  height: 150px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(45deg, #E4E3DF 0 10px, #DEDDD8 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms var(--ease-out);
}

.map-preview:active { transform: scale(0.985); }
.map-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-preview__cta { position: absolute; bottom: 12px; right: 12px; font-size: 12.5px; font-weight: 600; background: var(--ink); color: #fff; border-radius: var(--r-pill); padding: 6px 12px; }

.store-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  position: relative;
  transition: background-color 120ms ease;
}

.store-row:active { background: var(--surface-pressed); }

.store-row + .store-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 78px;
  right: 0;
  height: 0.5px;
  background: var(--hairline);
}

.store-row__tile {
  width: 48px;
  height: 48px;
  border-radius: var(--r-tile);
  flex: 0 0 auto;
  overflow: hidden;
  background: repeating-linear-gradient(45deg, #ECEAE5 0 8px, #E4E2DC 8px 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.45);
}

.store-row__tile img { width: 100%; height: 100%; object-fit: cover; }

.store-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.store-row__name { font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-row__meta { font-size: 13px; color: var(--sec-60); }

/* ============================================================= Sheets (Detail-Seiten) */

.sheet-grabber {
  position: sticky;
  top: 10px;
  z-index: 11;
  display: flex;
  justify-content: center;
  height: 0;
}

.sheet-grabber i { width: 42px; height: 5px; border-radius: var(--r-pill); background: rgba(0, 0, 0, 0.28); }

.float-back {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 0;
}

.float-back a, .float-back button {
  position: absolute;
  top: calc(64px + var(--safe-top));
  left: 16px;
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--float-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms var(--ease-out);
}

.float-back a:active, .float-back button:active { transform: scale(0.94); }

.sheet-hero {
  animation: sc-hero 0.55s ease both;
  height: 200px;
  position: relative;
  background: var(--surface-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sheet-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet-hero__badge { position: absolute; bottom: 40px; right: 20px; font-size: 13px; padding: 7px 14px; }

.sheet-body {
  padding: 0 var(--page-pad) 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: -28px;
  position: relative;
  max-width: var(--content-max);
  margin-inline: auto;
  width: 100%;
}

.title-card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 20px;
  box-shadow: var(--sheet-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Dunkle Karte („So löst du ein", „Angebot heute") */
.dark-card {
  background: var(--ink);
  border-radius: var(--r-card);
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dark-card .t-label { color: rgba(255, 255, 255, 0.55); letter-spacing: 1px; font-size: 11.5px; font-weight: 700; }

.step-row { display: flex; align-items: center; gap: 13px; }
.step-row i {
  width: 26px;
  height: 26px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.step-row span { font-size: 15px; line-height: 1.4; }

/* Bedingungen / Öffnungszeiten / Kontakt-Zeilen */
.info-card { background: var(--surface); border-radius: var(--r-card); padding: 6px 0; box-shadow: var(--card-shadow); }
.info-card > .t-label { display: block; padding: 12px 18px 4px; }

.bullet-row { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 18px; position: relative; }
.bullet-row i { width: 5px; height: 5px; border-radius: 99px; background: var(--sec-45); flex: 0 0 auto; }
.bullet-row span { flex: 1; font-size: 14.5px; line-height: 1.4; }
.bullet-row + .bullet-row::before { content: ""; position: absolute; top: 0; left: 34px; right: 0; height: 0.5px; background: var(--hairline); }

.hours-row { display: flex; align-items: center; min-height: 44px; padding: 0 18px; position: relative; font-size: 15.5px; color: var(--sec-60); }
.hours-row span:first-child { flex: 1; }
.hours-row + .hours-row::before { content: ""; position: absolute; top: 0; left: 18px; right: 0; height: 0.5px; background: var(--hairline); }
.hours-row[data-today] { font-weight: 700; color: var(--ink); }

/* ============================================================= Onboarding (dunkel) */

.ob {
  position: relative;
  min-height: 100dvh;
  background: radial-gradient(150% 110% at 85% -15%, #303034 0%, #17171A 42%, #060607 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: calc(64px + var(--safe-top)) 28px calc(36px + var(--safe-bottom));
  overflow: hidden;
  max-width: var(--content-max);
  margin-inline: auto;
}

.ob__glow, .ob__glow--2 {
  position: absolute;
  border-radius: 9999px;
  filter: blur(34px);
  pointer-events: none;
  animation: sc-glow 12s ease-in-out infinite alternate;
}

.ob__glow { top: -25%; left: -15%; width: 85%; height: 65%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.13), transparent 72%); }
.ob__glow--2 { top: auto; left: auto; bottom: -20%; right: -25%; width: 75%; height: 55%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07), transparent 72%); animation: sc-glow 15s ease-in-out infinite alternate-reverse; filter: blur(38px); }

.ob__skip { position: relative; display: flex; justify-content: flex-end; }
.ob__skip button { color: rgba(255, 255, 255, 0.5); font-size: 15px; padding: 8px; }

.ob__step { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; min-height: 0; animation: sc-slide-up 0.45s var(--ease-out) both; position: relative; }
.ob__step[hidden] { display: none; }

.ob h1 { font-size: 36px; line-height: 1.12; font-weight: 800; letter-spacing: -1px; }
.ob h1.xl { font-size: 46px; line-height: 1.04; letter-spacing: -1.8px; }
.ob p { font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, 0.6); max-width: 310px; }

.ob__foot { position: relative; display: flex; flex-direction: column; gap: 24px; }
.ob__dots { display: flex; gap: 7px; justify-content: center; }
.ob__dots i { width: 7px; height: 7px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.3); transition: all 0.3s; }
.ob__dots i[data-active] { width: 22px; background: #fff; }

.ob__cta { min-height: 56px; border-radius: var(--r-pill); background: #fff; color: var(--ink); font-size: 17px; font-weight: 700; transition: transform 140ms var(--ease-out); width: 100%; }
.ob__cta:active { transform: scale(0.97); }

/* Schwebende Karte (Schritt 1) */
.ob__cardwrap { position: relative; height: 256px; }
.ob__cardglow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 200px;
  border-radius: 9999px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), transparent 70%);
  filter: blur(28px);
}

.ob__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 272px;
  height: 170px;
  margin: -85px 0 0 -136px;
  transform: rotate(-7deg);
  border-radius: 20px;
  background: radial-gradient(130% 180% at 88% -30%, #3E3E42 0%, #1C1C1F 45%, #070708 100%);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: sc-float 6.5s ease-in-out infinite;
}

.ob__card .member-card__sheen { animation-duration: 4.5s; }

/* Dunkle Angebots-Vorschau (Schritt 2) */
.ob__offer {
  background: #1C1C1E;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ob__offer .tile { width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto; background: repeating-linear-gradient(45deg, #2C2C2E 0 6px, #242426 6px 12px); }
.ob__offer .name { font-size: 15px; font-weight: 600; }
.ob__offer .sub { font-size: 13px; color: rgba(255, 255, 255, 0.55); }

/* Onboarding-Pills */
.ob-choice {
  height: 40px;
  padding: 0 17px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  transition: all 150ms ease;
}

.ob-choice[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }

.ob-seg { display: flex; background: rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 3px; }
.ob-seg button { flex: 1; height: 38px; border-radius: 10px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.75); transition: all 200ms ease; }
.ob-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }

.ob__pushcard { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 14px 16px; }
.ob__pushcard .toggle input:checked + .toggle__track { background: #fff; }
.ob__pushcard .toggle input:checked + .toggle__track::after { background: var(--ink); }
.ob__pushcard .toggle__track { background: rgba(255, 255, 255, 0.2); }

.ob__minicard {
  width: 190px;
  height: 120px;
  border-radius: 18px;
  background: #fff;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transform: rotate(-4deg);
  color: var(--ink);
}

.ob__minicard b { font-size: 14px; font-weight: 800; }
.ob__minicard .bars { height: 26px; border-radius: 6px; background: repeating-linear-gradient(90deg, #0D0D0D 0 2px, #fff 2px 5px, #0D0D0D 5px 6px, #fff 6px 10px); }

/* ============================================================= Stadtkarte */

.citymap {
  position: fixed;
  inset: 0;
  background: #ECEAE4;
  overflow: hidden;
  animation: sc-sheet-up 0.55s var(--ease-drawer) both;
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
}

.citymap__grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 58px, #DFDCD5 58px 62px),
    repeating-linear-gradient(90deg, transparent 0 74px, #DFDCD5 74px 78px);
}

.citymap__zone { position: absolute; border-radius: 22px; display: flex; align-items: flex-end; padding: 8px 12px; }
.citymap__zone span { font-family: var(--font-mono); font-size: 10px; color: rgba(0, 0, 0, 0.3); }

.citymap__me {
  position: absolute;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.citymap__me i { width: 8px; height: 8px; border-radius: 99px; background: var(--ink); animation: sc-pulse 1.8s ease infinite; }

.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  transform-origin: 50% 100%;
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.22));
  transition: transform 0.35s var(--ease-pop);
  animation: sc-pop 0.4s var(--ease-pop) both;
}

.map-pin i {
  display: flex;
  width: 31px;
  height: 31px;
  border-radius: 99px 99px 99px 3px;
  background: #fff;
  border: 2px solid var(--ink);
  transform: rotate(-45deg);
  align-items: center;
  justify-content: center;
}

.map-pin b { transform: rotate(45deg); font-size: 12px; font-weight: 800; font-style: normal; color: var(--ink); }
.map-pin[data-offer] i, .map-pin[data-selected] i { background: var(--ink); }
.map-pin[data-offer] b, .map-pin[data-selected] b { color: #fff; }
.map-pin[data-selected] { transform: translate(-50%, -100%) scale(1.28); z-index: 6; }
.map-pin[data-selected] i { border-color: #fff; }

.citymap__chip {
  position: absolute;
  top: calc(64px + var(--safe-top));
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 11;
}

.citymap__chip span {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--float-shadow);
  font-size: 13.5px;
  font-weight: 600;
}

.citymap__card {
  position: absolute;
  bottom: calc(22px + var(--safe-bottom));
  left: 16px;
  right: 16px;
  z-index: 20;
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 16px 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: sc-slide-up 0.34s var(--ease-out) both;
}

/* ============================================================= Scanner (Händler-Modus) */

.scanner {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  padding: calc(60px + var(--safe-top)) 24px calc(28px + var(--safe-bottom));
  animation: sc-slide-up 0.34s var(--ease-out) both;
  color: #fff;
}

.scanner__cam {
  position: relative;
  height: 320px;
  border-radius: var(--r-panel);
  overflow: hidden;
  background: repeating-linear-gradient(45deg, #1C1C1E 0 12px, #161618 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner__frame { position: absolute; inset: 34px; border-radius: 18px; border: 2.5px solid rgba(255, 255, 255, 0.9); pointer-events: none; }
.scanner__line { position: absolute; left: 44px; right: 44px; height: 2.5px; border-radius: 99px; background: #fff; box-shadow: 0 0 14px rgba(255, 255, 255, 0.9); animation: sc-scan 1.6s ease-in-out infinite alternate; }

.mono-tag { font-family: var(--font-mono); font-size: 11px; color: rgba(0, 0, 0, 0.35); background: rgba(255, 255, 255, 0.75); padding: 4px 8px; border-radius: 6px; }
.mono-tag--dark { color: rgba(255, 255, 255, 0.4); background: rgba(0, 0, 0, 0.5); }

.check-circle {
  width: 58px;
  height: 58px;
  border-radius: var(--r-pill);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sc-pop 0.5s var(--ease-pop) both;
  animation-delay: 0.1s;
  flex: 0 0 auto;
}

/* Statistik-Kacheln */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-tile { background: var(--surface); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--card-shadow); }
.stat-tile small { font-size: 12.5px; color: var(--sec-60); }
.stat-tile strong { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }

/* ============================================================= Overlays */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 46;
  background: rgba(13, 13, 13, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.overlay[data-open] { opacity: 1; pointer-events: auto; }

.overlay__panel {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: 32px;
  padding: 34px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.88);
  transition: transform 0.5s var(--ease-pop);
}

.overlay[data-open] .overlay__panel { transform: scale(1); }

.overlay__check { width: 72px; height: 72px; }
.overlay__amount { font-size: 38px; font-weight: 800; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; }

/* Action-Sheet (Abmelden) */
.action-sheet {
  position: fixed;
  inset: 0;
  z-index: 47;
  background: rgba(13, 13, 13, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.action-sheet[data-open] { opacity: 1; pointer-events: auto; }

.action-sheet__stack {
  width: 100%;
  max-width: calc(var(--content-max) - 40px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(24px);
  transition: transform 0.35s var(--ease-out);
  padding-bottom: var(--safe-bottom);
}

.action-sheet[data-open] .action-sheet__stack { transform: translateY(0); }

.action-sheet__group { background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.action-sheet__head { padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.action-sheet__danger { height: 56px; border-top: 0.5px solid rgba(60, 60, 67, 0.15); color: var(--danger); font-size: 17px; font-weight: 600; }
.action-sheet__danger:active { background: var(--surface-dim); }
.action-sheet__cancel { height: 56px; border-radius: var(--r-card); background: var(--surface); font-size: 17px; font-weight: 700; }
.action-sheet__cancel:active { background: var(--surface-dim); }

/* ============================================================= Toast */

.toast {
  position: fixed;
  bottom: calc(90px + var(--safe-bottom));
  left: 50%;
  z-index: 70;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
  max-width: calc(100vw - 48px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast[data-visible] { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================= Herz */

.heart-fill { opacity: 0; transition: opacity 150ms ease; }
[data-favorite="true"] .heart-fill { opacity: 1; }
.heart-pop svg { animation: sc-pop 0.3s var(--ease-pop); }
