/* CHEX · Hinweise, Bottom-Sheet, Erfolgs-Animation, Ladeplatzhalter, Bewegung, Wortmarke. */
/* ---------- Hinweise im Stil der Dynamic Island ---------- */
.toasts {
  position: fixed; top: calc(env(safe-area-inset-top) + 10px); left: 50%; z-index: 100; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(92vw, 440px); pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 11px 20px 11px 12px; border-radius: 980px; background: #000; color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; pointer-events: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
  animation: island .6s var(--spring) both;
}
[data-theme="dark"] .toast { background: #1c1c1e; box-shadow: 0 12px 40px rgba(0, 0, 0, .7), inset 0 0 0 .5px rgba(255, 255, 255, .14); }
.toast .ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #30d158; color: #000; font-size: 13px; font-weight: 800; }
.toast.err .ic { background: #ff453a; color: #fff; }
.toast .tx { min-width: 0; }
.toast-act {
  flex: none; margin: -4px -10px -4px 6px; padding: 7px 14px; border: 0; border-radius: 980px; cursor: pointer;
  background: rgba(255, 255, 255, .16); color: #ffd60a; font: inherit; font-size: 15px; font-weight: 700;
}
.toast-act:active { transform: scale(.94); }
.toast.out { animation: island-out .4s var(--ease) forwards; }
@keyframes island { from { opacity: 0; transform: translateY(-10px) scale(.45, .6); filter: blur(6px); } }
@keyframes island-out { to { opacity: 0; transform: translateY(-12px) scale(.6); filter: blur(6px); } }

/* ---------- Bottom-Sheet ---------- */
.modal {
  width: 100%; max-width: 100%; max-height: 88vh; margin: auto 0 0; overflow: auto;
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); border: 0; border-radius: 28px 28px 0 0;
  background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-lg);
}
.modal::before { content: ""; display: block; width: 36px; height: 5px; margin: 0 auto 16px; border-radius: 3px; background: var(--fill-3); }
.modal[open] { animation: sheet-in .55s var(--ease) both; }
.modal.closing { animation: sheet-out .3s var(--ease) forwards; }
.modal::backdrop { background: rgba(0, 0, 0, .38); animation: fade .35s both; }
.modal h3 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.modal textarea { min-height: 150px; font-size: 15px; }
@media (min-width: 760px) {
  .modal { width: min(92vw, 480px); margin: auto; padding: 26px; border-radius: 26px; }
  .modal::before { display: none; }
  .modal[open] { animation: pop .45s var(--spring) both; }
  .modal.closing { animation: fade-out .2s ease forwards; }
}
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }

/* ---------- Erfolg (Häkchen wie bei Apple Pay) ---------- */
.celebrate {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(0, 0, 0, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fade .3s both;
}
.celebrate.out { animation: fade-out .35s forwards; }
.celebrate-box {
  display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 220px; max-width: 86vw;
  padding: 30px 36px 26px; border-radius: 30px; text-align: center;
  background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  box-shadow: var(--shadow-lg); animation: pop .55s var(--spring) both;
}
.celebrate-box b { font-family: var(--font-display); font-size: 24px; letter-spacing: -.025em; margin-top: 6px; }
.celebrate-box span { color: var(--text-2); font-size: 15px; }
.check-anim { width: 76px; height: 76px; }
.check-anim circle { fill: none; stroke: #34c759; stroke-width: 3.2; stroke-dasharray: 152; stroke-dashoffset: 152; transform: rotate(-90deg); transform-origin: center; animation: draw .7s var(--ease-out) .1s forwards; }
.check-anim path { fill: none; stroke: #34c759; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34; stroke-dashoffset: 34; animation: draw .45s var(--ease-out) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Ladeplatzhalter ---------- */
.sk-title { width: 58%; height: 40px; margin: 22px 4px 26px; border-radius: 12px; background: var(--fill-2); }
.sk { position: relative; overflow: hidden; height: 104px; margin-bottom: 12px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--card-border); }
.sk::after, .sk-title { background-image: linear-gradient(90deg, transparent, var(--fill-2), transparent); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.sk::after { content: ""; position: absolute; inset: 0; }

/* ---------- Bewegung ---------- */
.enter > * { animation: rise .75s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 8) * 60ms); }
.enter .ride-card { animation: rise .75s var(--ease-out) both; animation-delay: calc(var(--j, 0) * 45ms + 140ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.985); filter: blur(5px); } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Chex-Marke ---------- */
.wordmark { font-weight: 700; font-size: 19px; letter-spacing: .04em; color: var(--accent); }
.ask-input { width: 100%; margin: 4px 0 14px; resize: none; }
