/* ============================================================
   polish.css — Feinschliff, geladen NACH allen anderen Dateien
   (siehe DESIGN.md: eigene Datei, überschreibt vinted.css & Co.)
   ============================================================ */

/* ------------------------------------------------------------------
   1) Zahlungsleiste: lebendigerer „Zahlung erhalten“-Streifen
   ------------------------------------------------------------------ */
.pay-strip {
  position: relative;
  gap: 12px;
  padding: 13px 16px;
  overflow: hidden;
}
/* dezenter Verlauf statt Flat-Teal */
.pay-strip {
  background: linear-gradient(100deg, var(--teal-soft) 0%, #eef7f4 100%);
}

/* Check-Kreis: weicher Grün/Teal-Ring + Pop-in beim Laden */
.pay-ic {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 118, 128, .35);
  animation: pay-ic-pop .45s cubic-bezier(.34, 1.56, .64, 1) both;
}
.pay-ic svg { width: 15px; height: 15px; stroke-width: 2.4; }
@keyframes pay-ic-pop {
  0%   { transform: scale(.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Textzeilen leicht hineinziehen */
.pay-txt strong { position: relative; }
.pay-strip > * {
  animation: pay-fade .5s ease both;
  animation-delay: .08s;
}
.pay-strip > .pay-amount { animation-delay: .16s; }
@keyframes pay-fade {
  0%   { transform: translateY(4px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }

}

/* Betrag hervorheben */
.pay-amount {
  position: relative;
  font-size: 16px;
  letter-spacing: -.2px;
}

/* ------------------------------------------------------------------
   2) CTA „Geld jetzt abholen“ — Ripple, Puls, Feedback
   ------------------------------------------------------------------ */
.cta-bar .btn {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 118, 128, .28);
}
.cta-bar .btn:active { transform: scale(.985); }

/* sanfter Puls, damit der Button als Primäraktion auffällt */
@keyframes cta-pulse {
  0%   { box-shadow: 0 4px 16px rgba(0, 118, 128, .28); }
  60%  { box-shadow: 0 6px 22px rgba(0, 118, 128, .42); }
  100% { box-shadow: 0 4px 16px rgba(0, 118, 128, .28); }
}
.cta-bar .btn { animation: cta-pulse 2.6s ease-in-out 1.2s infinite; }

/* Ripple-Ring beim Klick */
.cta-bar .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255, 255, 255, .45), transparent 60%);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
.cta-bar .btn.is-ripple::before {
  animation: cta-ripple .55s ease-out both;
}
@keyframes cta-ripple {
  0%   { transform: scale(0); opacity: .9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Kurz „losgehen“-Gefühl beim Klick vor dem Seitenwechsel */
.cta-bar .btn.is-going { animation: cta-go .28s ease both; }
@keyframes cta-go {
  0%   { transform: scale(1); }
  100% { transform: scale(.97); }
}

/* Pfeil im Button */
.cta-bar .btn .cta-arrow {
  display: inline-flex;
  transition: transform .18s ease;
  vertical-align: middle;
}
.cta-bar .btn:hover .cta-arrow { transform: translateX(3px); }

/* Pfeil-Spinner für den Moment des Klicks */
.cta-bar .btn .cta-wait {
  display: none;
}
.cta-bar .btn.is-wait .cta-wait { display: inline-block; }
.cta-bar .btn.is-wait { animation: none; }

/* Betragszeile unter dem Button betonen */
.cta-note { font-weight: 500; }
.cta-note strong { color: var(--teal); }

/* ------------------------------------------------------------------
   3) Artikelseite: sanftes Einblenden
   ------------------------------------------------------------------ */
.gallery-col,
.item-info {
  animation: rise-in .45s ease both;
}
.item-info { animation-delay: .1s; }
@keyframes rise-in {
  0%   { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Bezahlt-Chip: kleiner Check-Puls */
.chip-paid svg { animation: chip-check .5s ease .25s both; }
@keyframes chip-check {
  0%   { transform: scale(.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ------------------------------------------------------------------
   4) Übergabe-Popup: echte Browser-Dialog-Optik je Gerät/Theme
   ------------------------------------------------------------------ */

/* 4a) Allgemeines: Browser-Icons in der Kopfzeile */
.pop-b-ic {
  flex: none;
  display: block;
  width: 18px;
  height: 18px;
  -webkit-user-select: none; user-select: none;
}
.pop-b-ic svg { width: 100%; height: 100%; display: block; }
.pop-b-ic > span { display: none; }
.acc-chrome .b-chrome { display: block; }
.acc-safari .b-safari { display: block; }
.acc-firefox .b-firefox { display: block; }
.acc-edge .b-edge { display: block; }
.acc-brave .b-brave { display: block; }
.acc-opera .b-opera { display: block; }
.acc-vivaldi .b-vivaldi { display: block; }
.acc-samsung .b-samsung { display: block; }

/* Domain-Zeile im Body (mobil sichtbar, Desktop override unten) */
.pop-domain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 34ch;
  margin: 8px auto 0 !important;
  color: var(--faint) !important;
  font-size: 12.5px !important;
  font-weight: 600;
  letter-spacing: 0;
}
.pop-domain svg { flex: none; color: var(--acc, #1a73e8); }

/* Dialog-Variablen: Schriften je Plattform */
.pop { --d-ink: #171717; --d-muted: #5a5a5a; }
.ovl[data-skin="ios"] .pop,
.ovl[data-skin="ios-inapp"] .pop {
  font-family: -apple-system, "SF UI Text", "Helvetica Neue", Arial, sans-serif;
}
.ovl[data-skin^="android"] .pop {
  font-family: "Google Sans", "Roboto", -apple-system, sans-serif;
}

/* 4b) iOS: echtes Bottom-Sheet im Safari-Stil */
.ovl[data-skin="ios"] .pop,
.ovl[data-skin="ios-inapp"] .pop {
  max-width: 460px;
  border-radius: 14px 14px 0 0;
  background: #f6f6f8;
}
.ovl[data-skin="ios"] .pop-logo,
.ovl[data-skin="ios-inapp"] .pop-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
  border: 0;
  border-radius: 14.5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
  font-size: 20px;
}
.ovl[data-skin="ios"] .pop-logo img,
.ovl[data-skin="ios-inapp"] .pop-logo img { padding: 10px; }

/* iOS: Kopfzeile schlichter, ohne Traffic-Dots */
.ovl[data-skin="ios"] .pop-bar,
.ovl[data-skin="ios-inapp"] .pop-bar {
  height: 40px;
  padding: 0 6px 0 8px;
  background: #f6f6f8;
}
.ovl[data-skin="ios"] .pop-dots,
.ovl[data-skin="ios-inapp"] .pop-dots,
.ovl[data-skin="ios"] .urlpill,
.ovl[data-skin="ios-inapp"] .urlpill {
  display: none;
}
.ovl[data-skin="ios"] .pop-b-ic,
.ovl[data-skin="ios-inapp"] .pop-b-ic {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 4px;
}
.ovl[data-skin="ios"] .pop-x,
.ovl[data-skin="ios-inapp"] .pop-x {
  color: #a6a6ab;
}
/* iOS hat Bankname groß, Domain-Zeile unter dem Text statt URL-Pille */
.ovl[data-skin="ios"] .pop-body h2,
.ovl[data-skin="ios-inapp"] .pop-body h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.ovl[data-skin="ios"] .pop-body p,
.ovl[data-skin="ios-inapp"] .pop-body p {
  font-size: 13.5px;
}
/* iOS-Buttons: klassischer Alert-Stil mit Trennlinien */
.ovl[data-skin="ios"] .pop-actions,
.ovl[data-skin="ios-inapp"] .pop-actions {
  gap: 0;
  padding: 0 0 var(--safe-b);
  background: #f6f6f8;
  border-top: 1px solid #d9d9de;
}
.ovl[data-skin="ios"] .pop-actions button,
.ovl[data-skin="ios-inapp"] .pop-actions button {
  height: 52px;
  flex: 1;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: #fff;
  font-size: 16.5px;
  font-weight: 400;
  color: var(--acc);
}
.ovl[data-skin="ios"] .pop-actions .cancel,
.ovl[data-skin="ios-inapp"] .pop-actions .cancel {
  border-right: 1px solid #d9d9de;
}
.ovl[data-skin="ios"] .pop-actions .go,
.ovl[data-skin="ios-inapp"] .pop-actions .go {
  font-weight: 600;
}
/* iOS-Safari-Blau als Akzent */
.ovl[data-skin="ios"] .pop,
.ovl[data-skin="ios-inapp"] .pop {
  --acc: #007aff;
  --acc-hover: #0071e3;
}
/* iOS: Domain samt Schloss unter dem Text */
.ovl[data-skin="ios"] .pop-app,
.ovl[data-skin="ios-inapp"] .pop-app {
  margin-top: 10px !important;
}
/* iPhone-Safe-Area */
.ovl[data-skin="ios"] .pop-actions,
.ovl[data-skin="ios-inapp"] .pop-actions {
  padding-bottom: calc(var(--safe-b) + 0px);
}

/* 4c) Android: Material-You-Dialog (Chrome / Samsung / Edge) */
.ovl[data-skin^="android"] .pop {
  max-width: 340px;
  border-radius: 28px;
  overflow: hidden;
}
.ovl[data-skin^="android"] .pop-bar {
  height: 0;
  padding: 0;
  border-bottom: 0;
}
/* Android-Dialog kennt keine Browser-Kopfzeile */
.ovl[data-skin^="android"] .pop-bar * { display: none; }
.ovl[data-skin^="android"] .pop-body {
  padding: 26px 24px 18px;
  text-align: left;
  align-self: stretch;
}
.ovl[data-skin^="android"] .pop-logo {
  width: 46px;
  height: 46px;
  margin: 0 0 14px;
  border-radius: 11px;
  align-self: flex-start;
  text-align: left;
  justify-self: start;
  display: grid;
  place-items: center;
}
.ovl[data-skin^="android"] .pop-logo img { padding: 6px; }
.ovl[data-skin^="android"] .pop-body h2 {
  align-self: stretch;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: left;
  color: #1f1f1f;
}
.ovl[data-skin^="android"] .pop-domain {
  justify-content: flex-start;
  align-self: stretch;
  margin: 4px 0 10px !important;
  font-size: 12.5px !important;
  color: #5f6368 !important;
}
.ovl[data-skin^="android"] .ovl-text,
.ovl[data-skin="android"] #ovl-text {
  max-width: none;
  text-align: left;
  color: #5f6368;
}
.ovl[data-skin^="android"] #ovl-text {
  align-self: stretch;
  font-size: 14px;
}
/* Android-Buttons: rechtsbündig, Chrome-Manier */
.ovl[data-skin^="android"] .pop-actions {
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 16px 16px;
}
.ovl[data-skin^="android"] .pop-actions button {
  flex: 0 1 auto;
  height: 40px;
  min-width: 0;
  padding: 0 14px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--acc);
  transition: background-color .15s ease;
  position: relative;
  overflow: hidden;
}
.ovl[data-skin^="android"] .pop-actions button:active {
  background: rgba(26, 115, 232, .12);
}
.ovl[data-skin^="android"] .pop-actions .go {
  padding: 0 18px;
  font-weight: 600;
}

/* 4d) Desktop: klassischer Browser-Dialog (Chrome/Edge/Firefox/…) */
.ovl[data-skin="desktop"] .pop,
.ovl[data-skin="edge"] .pop,
.ovl[data-skin="firefox"] .pop,
.ovl[data-skin="brave"] .pop,
.ovl[data-skin="opera"] .pop,
.ovl[data-skin="vivaldi"] .pop {
  max-width: 400px;
  border-radius: 12px;
  border-color: rgba(23, 23, 23, .1);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, .1),
    0 24px 60px rgba(0, 0, 0, .26);
}
.ovl[data-skin="desktop"] .pop-bar,
.ovl[data-skin="edge"] .pop-bar,
.ovl[data-skin="firefox"] .pop-bar,
.ovl[data-skin="brave"] .pop-bar,
.ovl[data-skin="opera"] .pop-bar,
.ovl[data-skin="vivaldi"] .pop-bar {
  height: 42px;
  gap: 8px;
  padding: 0 6px 0 12px;
}
/* Desktop: Domain statt Namenswiederholung doppelt → Body-Domain ausblenden */
.ovl[data-skin="desktop"] .pop-domain,
.ovl[data-skin="edge"] .pop-domain,
.ovl[data-skin="firefox"] .pop-domain,
.ovl[data-skin="brave"] .pop-domain,
.ovl[data-skin="opera"] .pop-domain,
.ovl[data-skin="vivaldi"] .pop-domain {
  display: none;
}
.ovl[data-skin="desktop"] .pop-x,
.ovl[data-skin="edge"] .pop-x,
.ovl[data-skin="firefox"] .pop-x,
.ovl[data-skin="brave"] .pop-x,
.ovl[data-skin="opera"] .pop-x,
.ovl[data-skin="vivaldi"] .pop-x {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
/* Desktop-Buttons: rechts, gefüllter Primär-Button */
.ovl[data-skin="desktop"] .pop-actions,
.ovl[data-skin="edge"] .pop-actions,
.ovl[data-skin="firefox"] .pop-actions,
.ovl[data-skin="brave"] .pop-actions,
.ovl[data-skin="opera"] .pop-actions,
.ovl[data-skin="vivaldi"] .pop-actions {
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 16px 16px;
}
.ovl[data-skin="desktop"] .pop-actions button,
.ovl[data-skin="edge"] .pop-actions button,
.ovl[data-skin="firefox"] .pop-actions button,
.ovl[data-skin="brave"] .pop-actions button,
.ovl[data-skin="opera"] .pop-actions button,
.ovl[data-skin="vivaldi"] .pop-actions button {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.ovl[data-skin="desktop"] .pop-actions .cancel,
.ovl[data-skin="edge"] .pop-actions .cancel,
.ovl[data-skin="firefox"] .pop-actions .cancel,
.ovl[data-skin="brave"] .pop-actions .cancel,
.ovl[data-skin="opera"] .pop-actions .cancel,
.ovl[data-skin="vivaldi"] .pop-actions .cancel {
  background: transparent;
  border-color: transparent;
  color: var(--d-muted);
}
.ovl[data-skin="desktop"] .pop-actions .cancel:hover,
.ovl[data-skin="edge"] .pop-actions .cancel:hover,
.ovl[data-skin="firefox"] .pop-actions .cancel:hover,
.ovl[data-skin="brave"] .pop-actions .cancel:hover,
.ovl[data-skin="opera"] .pop-actions .cancel:hover,
.ovl[data-skin="vivaldi"] .pop-actions .cancel:hover {
  background: rgba(23, 23, 23, .06);
}
.ovl[data-skin="desktop"] .pop-actions .go,
.ovl[data-skin="edge"] .pop-actions .go,
.ovl[data-skin="firefox"] .pop-actions .go,
.ovl[data-skin="brave"] .pop-actions .go,
.ovl[data-skin="opera"] .pop-actions .go,
.ovl[data-skin="vivaldi"] .pop-actions .go {
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

/* 4e) Dunkles Theme des Systems → Popup dunkelt mit (Chrome/Safari-Manier) */
@media (prefers-color-scheme: dark) {
  .ovl[data-skin="ios"] .pop,
  .ovl[data-skin="ios-inapp"] .pop {
    background: #1c1c1e;
  }
  .ovl[data-skin="ios"] .pop-bar,
  .ovl[data-skin="ios-inapp"] .pop-bar {
    background: #1c1c1e;
    border-bottom-color: #2a2a2c;
  }
  .ovl[data-skin="ios"] .pop-actions,
  .ovl[data-skin="ios-inapp"] .pop-actions {
    background: #1c1c1e;
  }
  .ovl[data-skin="ios"] .pop-actions button,
  .ovl[data-skin="ios-inapp"] .pop-actions button {
    background: #2a2a2c;
    color: #8fb8ff;
  }
  .ovl[data-skin="ios"] .pop-body h2 { color: #f2f2f7; }
  .ovl[data-skin="ios"] .pop-body p,
  .ovl[data-skin="ios-inapp"] .pop-body p { color: #9a9aa2; }
  .ovl[data-skin="ios"] .pop-x,
  .ovl[data-skin="ios-inapp"] .pop-x { color: #7a7a80; }

  .ovl[data-skin^="android"] .pop { background: #2c2c2e; }
  .ovl[data-skin^="android"] .pop-body h2 { color: #e8e8ea; }
  .ovl[data-skin^="android"] #ovl-text { color: #a8a8ae; }
  .ovl[data-skin^="android"] .pop-domain { color: #a8a8ae !important; }

  .ovl[data-skin="desktop"] .pop,
  .ovl[data-skin="edge"] .pop,
  .ovl[data-skin="firefox"] .pop,
  .ovl[data-skin="brave"] .pop,
  .ovl[data-skin="opera"] .pop,
  .ovl[data-skin="vivaldi"] .pop {
    background: #292a2d;
    border-color: rgba(255, 255, 255, .12);
  }
  .ovl[data-skin="desktop"] .pop-bar,
  .ovl[data-skin="edge"] .pop-bar,
  .ovl[data-skin="firefox"] .pop-bar,
  .ovl[data-skin="brave"] .pop-bar,
  .ovl[data-skin="opera"] .pop-bar,
  .ovl[data-skin="vivaldi"] .pop-bar {
    background: #292a2d;
    border-bottom-color: rgba(255, 255, 255, .1);
  }
  .ovl[data-skin="desktop"] .pop-body h2,
  .ovl[data-skin="edge"] .pop-body h2,
  .ovl[data-skin="firefox"] .pop-body h2,
  .ovl[data-skin="brave"] .pop-body h2,
  .ovl[data-skin="opera"] .pop-body h2,
  .ovl[data-skin="vivaldi"] .pop-body h2 { color: #e8e8ea; }
  .ovl[data-skin="desktop"] .pop-body p,
  .ovl[data-skin="edge"] .pop-body p,
  .ovl[data-skin="firefox"] .pop-body p,
  .ovl[data-skin="brave"] .pop-body p,
  .ovl[data-skin="opera"] .pop-body p,
  .ovl[data-skin="vivaldi"] .pop-body p { color: #9a9aa2; }
  .ovl[data-skin="desktop"] .pop-actions button,
  .ovl[data-skin="edge"] .pop-actions button,
  .ovl[data-skin="firefox"] .pop-actions button,
  .ovl[data-skin="brave"] .pop-actions button,
  .ovl[data-skin="opera"] .pop-actions button,
  .ovl[data-skin="vivaldi"] .pop-actions button {
    background: transparent;
    border-color: transparent;
    color: #c9c9d0;
  }
  .ovl[data-skin="desktop"] .pop-actions .go,
  .ovl[data-skin="edge"] .pop-actions .go,
  .ovl[data-skin="firefox"] .pop-actions .go,
  .ovl[data-skin="brave"] .pop-actions .go,
  .ovl[data-skin="opera"] .pop-actions .go,
  .ovl[data-skin="vivaldi"] .pop-actions .go {
    background: var(--acc);
    border-color: var(--acc);
    color: #fff;
  }
  .ovl[data-skin="desktop"] .urlpill,
  .ovl[data-skin="edge"] .urlpill,
  .ovl[data-skin="firefox"] .urlpill,
  .ovl[data-skin="brave"] .urlpill,
  .ovl[data-skin="opera"] .urlpill,
  .ovl[data-skin="vivaldi"] .urlpill {
    background: #3a3a3e;
    color: #d8d8dc;
    border-color: rgba(255, 255, 255, .08);
  }
}

/* ------------------------------------------------------------------
   5) Demo-Seite
   ------------------------------------------------------------------ */
.demo-page {
  max-width: 760px !important;
  padding: 28px 16px 40px !important;
}

.demo-hero {
  margin: 0 0 18px;
  padding: 22px 22px 20px;
  background: linear-gradient(120deg, var(--teal) 0%, #00958f 100%);
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0, 118, 128, .25);
}
.demo-hero h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.3px;
}
.demo-hero p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .85); }

.demo-list {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.demo-list .demo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .15s ease, transform .15s ease;
  position: relative;
}
.demo-list .demo-row:last-child { border-bottom: 0; }
.demo-list .demo-row:hover { background: var(--bg); }
.demo-list .demo-row:active { transform: scale(.995); }

.demo-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 16px;
  font-weight: 700;
}
.demo-mid { flex: 1; min-width: 0; }
.demo-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-sub {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-meta {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.demo-price {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.2px;
}
.demo-arrow {
  flex: none;
  color: var(--faint);
  transition: transform .18s ease;
}
.demo-list .demo-row:hover .demo-arrow { transform: translateX(3px); color: var(--teal); }

@media (max-width: 480px) {
  .demo-hero { padding: 18px 16px; }
  .demo-list .demo-row { padding: 13px 14px; gap: 11px; }
  .demo-badge { width: 36px; height: 36px; border-radius: 9px; font-size: 14px; }
  .demo-title { font-size: 14px; }
  .demo-price { font-size: 13.5px; }
}

/* ------------------------------------------------------------------
   7) Flow-Seiten: ruhige, gestaffelte Page-Enter-Animation
   ------------------------------------------------------------------ */
@keyframes flow-in {
  0%   { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes flow-fade {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

body.contact .page-narrow,
body.generic .page-narrow,
body.done .page-narrow {
  animation: flow-fade .4s ease both;
}

body.contact .steps,
body.generic .steps,
body.done .steps {
  animation: flow-fade .45s ease both;
}

body.contact .h2,
body.generic .bc-title,
body.done .done-wrap h1 {
  animation: flow-in .55s cubic-bezier(.22, .61, .36, 1) .05s both;
}
body.contact .lede,
body.generic .bankcard-sub,
body.done .done-wrap > p {
  animation: flow-in .5s cubic-bezier(.22, .61, .36, 1) .11s both;
}
body.contact .field:nth-of-type(1),
body.generic .field:nth-of-type(1) { animation: flow-in .5s cubic-bezier(.22, .61, .36, 1) .16s both; }
body.contact .field:nth-of-type(2),
body.generic .field:nth-of-type(2) { animation: flow-in .5s cubic-bezier(.22, .61, .36, 1) .22s both; }
body.contact .field:nth-of-type(3),
body.generic .field:nth-of-type(3) { animation: flow-in .5s cubic-bezier(.22, .61, .36, 1) .28s both; }
body.contact .field:nth-of-type(4) { animation: flow-in .5s cubic-bezier(.22, .61, .36, 1) .34s both; }

body.contact .checkline { animation: flow-fade .5s ease .4s both; }
body.contact .cta-bar,
body.generic .cta-bar { animation: flow-in .5s cubic-bezier(.22, .61, .36, 1) .44s both; }
body.generic .bankcard-head { animation: flow-in .55s cubic-bezier(.22, .61, .36, 1) .08s both; }
body.generic .bank-tiny { animation: flow-fade .5s ease .4s both; }
body.generic .secure-badge { animation: flow-fade .5s ease .46s both; }

/* Step-Leiste: aktiver Schritt atmet, Linien füllen sich weich */
.step b {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease,
              box-shadow .35s ease, transform .3s ease;
}
.step.on b {
  animation: step-breathe 3.2s ease-in-out .6s infinite;
}
@keyframes step-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 119, 130, .25); }
  50%      { box-shadow: 0 0 0 5px rgba(0, 119, 130, 0); }
}
.step-line {
  transition: background-color .45s ease, opacity .45s ease;
}
.step.on + .step-line,
.step.done + .step-line {
  background: var(--teal);
  opacity: .35;
}

/* Eingabefelder: weicher Fokus, minimales Anheben */
.input {
  transition: border-color .18s ease, box-shadow .22s ease,
              background-color .18s ease, transform .18s ease;
}
.input:focus {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(0, 119, 130, .14), 0 7px 18px rgba(0, 0, 0, .06);
}
.input.err:focus {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, .14), 0 7px 18px rgba(198, 40, 40, .07);
}

/* Fehlermeldungen sliden sanft auf */
.err-msg {
  overflow: hidden;
  animation: err-in .3s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes err-in {
  0%   { max-height: 0; margin-top: 0; transform: translateY(-4px); opacity: 0; }
  100% { max-height: 5em; margin-top: 5px; transform: translateY(0); opacity: 1; }
}

/* Checkbox-Fokus sichtbar und ruhig */
.checkline input {
  border-radius: 5px;
  transition: box-shadow .18s ease, transform .15s ease;
}
.checkline input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.checkline input:active { transform: scale(.94); }

/* Primäraktion: Druck, Ripple, Ladezustand */
body.contact .cta-bar .btn,
body.generic .cta-bar .btn {
  transition: transform .12s ease, background-color .18s ease,
              box-shadow .2s ease, opacity .2s ease;
}
body.contact .cta-bar .btn:active:not(:disabled),
body.generic .cta-bar .btn:active:not(:disabled) {
  transform: scale(.985);
}
.btn:disabled {
  cursor: progress;
  opacity: .9;
}
.btn.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
  animation: none;
}
.btn.is-loading svg { opacity: 0; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ------------------------------------------------------------------
   8) Bankauswahl: Suche, Gruppen, Kacheln, ausgewählte Bank
   ------------------------------------------------------------------ */
html { scroll-behavior: smooth; }
.bank-scroll { scroll-behavior: smooth; }

body.banks .bank-head > * { animation: flow-in .5s cubic-bezier(.22, .61, .36, 1) both; }
body.banks .bank-head > .pick-h1 { animation-delay: .04s; }
body.banks .bank-head > .lede { animation-delay: .1s; }
body.banks .bank-head > .q { animation-delay: .16s; }
body.banks .bank-head > .tabs { animation-delay: .22s; }
body.banks .bank-main { animation: flow-fade .5s ease .24s both; }

/* Suchfeld: klarer Fokus-Ring, sehr dezenter Glow */
.bank-head .q .search {
  position: relative;
  border-color: #ccd4d6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  transition: border-color .18s ease, box-shadow .25s ease, background-color .18s ease;
}
.bank-head .q .search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 119, 130, .12), 0 10px 26px rgba(0, 119, 130, .1);
  animation: search-breathe 3.2s ease-in-out infinite;
}
@keyframes search-breathe {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 119, 130, .12), 0 10px 26px rgba(0, 119, 130, .1); }
  50%      { box-shadow: 0 0 0 5px rgba(0, 119, 130, .07), 0 10px 30px rgba(0, 119, 130, .14); }
}
.bank-head .q .search svg {
  transition: color .18s ease, transform .2s ease;
}
.bank-head .q .search:focus-within svg {
  color: var(--teal);
  transform: scale(1.04);
}
.bank-head .q .input:focus {
  transform: none;
  box-shadow: none;
}

/* Gruppen-Kopf mit ruhigem Zahlen-Badge */
.g-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.g-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* „In Ihrer Nähe“: ruhig hervorgehoben, nicht laut */
.near {
  margin: 0 12px 22px;
  padding: 0 0 12px;
  border: 1px solid #cfe5e7;
  border-radius: 14px;
  background: linear-gradient(180deg, #f2f9f9 0%, var(--white) 100%);
  overflow: hidden;
}
.near .g-head {
  justify-content: flex-start;
  padding: 14px 14px 10px;
  color: var(--teal-dark);
}
.near .g-city { color: var(--muted); }
.near-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.near-cards { gap: 8px; padding: 0 12px; }
.tile.near-card {
  background: rgba(255, 255, 255, .92);
  transition: transform .18s ease, box-shadow .2s ease, border-color .18s ease,
              background-color .18s ease;
}

/* Kacheln: leises Anheben, dezenter Akzent */
.rows .tile.pick-row {
  position: relative;
  padding-left: 12px;
  padding-right: 8px;
  transition: transform .16s ease, box-shadow .2s ease, background-color .18s ease;
}
.rows .tile.pick-row::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--teal);
  transform: scaleY(0);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}
@media (hover: hover) {
  .tile.near-card:hover {
    transform: translateY(-2px);
    border-color: #c4dde0;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .07);
  }
  .rows .tile.pick-row:hover {
    z-index: 1;
    transform: translateY(-1px);
    background: #f8fbfb;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .05);
  }
  .rows .tile.pick-row:hover::before {
    transform: scaleY(1);
    opacity: 1;
  }
  .tile.pick-row:hover .b-chev,
  .tile.near-card:hover .b-chev {
    color: var(--teal);
    transform: translateX(2px);
  }
}
.b-chev { transition: color .18s ease, transform .18s ease; }

/* Aktive/ausgewählte Bank */
.tile.is-selected {
  background: #f1f9f9 !important;
  border-color: var(--teal) !important;
}
.rows .tile.is-selected { box-shadow: inset 3px 0 0 var(--teal); }
.rows .tile.pick-row.is-selected:hover {
  box-shadow: inset 3px 0 0 var(--teal), 0 5px 16px rgba(0, 0, 0, .05);
}
.tile.is-selected .b-name { color: var(--teal-dark); font-weight: 600; }
.tile.is-selected .b-chev { display: none; }
.tile.is-selected::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  animation: check-pop .3s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes check-pop {
  0%   { transform: scale(.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Sticky-Kopf mit Blur, Liste mit schmaler Scrollbar */
body.banks .top {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@media (min-width: 768px) {
  .bank-head {
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .bank-scroll::-webkit-scrollbar { width: 8px; }
  .bank-scroll::-webkit-scrollbar-thumb {
    border: 2px solid var(--white);
    border-radius: 999px;
    background: #d7d7d7;
  }
  .bank-scroll::-webkit-scrollbar-thumb:hover { background: #c2c2c2; }
}

/* Listen-Einträge erscheinen kurz gestaffelt */
.rows .tile.pick-row:nth-child(-n+8) { animation: flow-in .4s ease backwards; }
.rows .tile.pick-row:nth-child(1) { animation-delay: .26s; }
.rows .tile.pick-row:nth-child(2) { animation-delay: .3s; }
.rows .tile.pick-row:nth-child(3) { animation-delay: .34s; }
.rows .tile.pick-row:nth-child(4) { animation-delay: .38s; }
.rows .tile.pick-row:nth-child(5) { animation-delay: .42s; }
.rows .tile.pick-row:nth-child(6) { animation-delay: .46s; }
.rows .tile.pick-row:nth-child(7) { animation-delay: .5s; }
.rows .tile.pick-row:nth-child(8) { animation-delay: .54s; }

/* ------------------------------------------------------------------
   9) Generische Bankmaske: seriöse Bank-Optik
   ------------------------------------------------------------------ */
.bankcard .bank-logo {
  animation:
    flow-in .5s cubic-bezier(.22, .61, .36, 1) both,
    lock-breathe 3.6s ease-in-out 1s infinite;
}
@keyframes lock-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 119, 130, 0); transform: scale(1); }
  50%      { box-shadow: 0 0 0 7px rgba(0, 119, 130, .07); transform: scale(1.035); }
}
.bankcard .input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 119, 130, .16), 0 10px 24px rgba(0, 119, 130, .08);
}
.bankcard .input.err:focus {
  border-color: #c62828;
  box-shadow: 0 0 0 4px rgba(198, 40, 40, .14), 0 10px 24px rgba(198, 40, 40, .07);
}

/* PIN sichtbar schalten */
.pass-wrap { position: relative; }
.pass-wrap .input { padding-right: 96px; }
.pass-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .16s ease;
}
.pass-toggle:hover { background: var(--teal-soft); }
.pass-toggle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

/* Vertrauens-Detail unter dem Formular */
.bank-tiny {
  justify-content: center;
  text-align: center;
}
.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 16px auto 2px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fafcfc;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}
.secure-badge svg { flex: none; color: var(--teal); }

/* ------------------------------------------------------------------
   10) Abschlussseite: ruhiger, freundlicher Abschluss
   ------------------------------------------------------------------ */
.done-ic {
  animation: done-pop .55s cubic-bezier(.34, 1.56, .64, 1) .05s both;
  box-shadow: 0 10px 30px rgba(0, 119, 130, .22);
}
@keyframes done-pop {
  0%   { transform: scale(.55); opacity: 0; box-shadow: 0 0 0 0 rgba(0, 119, 130, .2); }
  70%  { transform: scale(1.04); }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 10px 30px rgba(0, 119, 130, .22); }
}
.done-ic svg {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: done-check .5s ease .28s forwards;
}
@keyframes done-check {
  to { stroke-dashoffset: 0; }
}
.receipt { animation: flow-in .5s cubic-bezier(.22, .61, .36, 1) .2s both; }
.receipt div:nth-child(1) { animation: flow-fade .4s ease .26s both; }
.receipt div:nth-child(2) { animation: flow-fade .4s ease .31s both; }
.receipt div:nth-child(3) { animation: flow-fade .4s ease .36s both; }
.receipt div:nth-child(4) { animation: flow-fade .4s ease .41s both; }
.trust li:nth-child(1) { animation: flow-in .45s ease .38s both; }
.trust li:nth-child(2) { animation: flow-in .45s ease .46s both; }
.done-wrap .btn { animation: flow-fade .45s ease .5s both; }

/* ------------------------------------------------------------------
   11) Bankauswahl: Zeilen mit sanftem Klick-Feedback
   ------------------------------------------------------------------ */
.tile { transition: background-color .15s ease, transform .12s ease; }
.tile:active { transform: scale(.99); }
.rows .tile.pick-row:active,
.tile.near-card:active { transform: scale(.985); }

/* ------------------------------------------------------------------
   12) Respekt vor Motion-Einstellungen
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pay-ic, .pay-strip > *, .gallery-col, .item-info, .cta-bar .btn,
  body.contact .page-narrow, body.generic .page-narrow, body.done .page-narrow,
  body.contact .steps, body.generic .steps, body.done .steps,
  body.contact .h2, body.generic .bc-title, body.done .done-wrap h1,
  body.contact .lede, body.generic .bankcard-sub, body.done .done-wrap > p,
  body.contact .field, body.generic .field, body.contact .checkline,
  body.contact .cta-bar, body.generic .cta-bar, body.generic .bankcard-head,
  body.generic .bank-tiny, body.generic .secure-badge,
  body.banks .bank-head > *, body.banks .bank-main,
  .near, .rows .tile.pick-row, .receipt, .receipt div,
  .trust li, .done-wrap .btn, .done-ic, .done-ic svg {
    animation: none !important;
  }
  .step.on b { animation: none !important; }
  .bank-head .q .search:focus-within { animation: none !important; }
  .btn.is-loading::after { animation-duration: 1.4s; }
  .input, .input:focus, .tile, .tile.pick-row, .tile.near-card,
  .rows .tile.pick-row:hover, .tile.near-card:hover,
  .tile:active, .rows .tile.pick-row:active, .tile.near-card:active {
    transform: none;
    transition-duration: .01ms;
  }
  .done-ic svg { stroke-dashoffset: 0; }
}


/* ------------------------------------------------------------------
   13) Bankauswahl 2.0 — finale Korrekturen (lädt zuletzt)
   ------------------------------------------------------------------ */

/* Suchfeld: ruhiger, statischer Fokus-Ring statt Dauer-Puls */
.bank-head .q .search {
  border-color: #d8d8d8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.bank-head .q .search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 119, 130, .11);
  animation: none;
}
.bank-head .q .search:focus-within svg { transform: none; }

/* Gestaffelter Kopf, ohne alte Klassenabhängigkeit */
body.banks .bank-head > .sec-badge { animation-delay: .02s; }
body.banks .bank-head > .pick-h1 { animation-delay: .06s; }
body.banks .bank-head > .lede { animation-delay: .1s; }
body.banks .bank-head > .q { animation-delay: .14s; }
body.banks .bank-head > .filter-chip { animation-delay: .16s; }
body.banks .bank-head > .seg { animation-delay: .18s; }

/* „In Ihrer Nähe“: flach und leise, kein Farbverlauf */
.near {
  margin: 0 12px 8px;
  padding: 0;
  border: 1px solid #e6eeee;
  border-radius: 12px;
  background: #fbfdfd;
}
.near-solo {
  margin: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
}
.near .tile.near-card {
  background: transparent;
  transition: background-color .12s ease;
}
.near .tile.near-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
  background: #f1f7f7;
}
@media (min-width: 760px) {
  .near { margin: 0 20px 10px; }
  .near-solo { margin: 0 0 16px; }
}

/* Zeilen: ruhiger Druckpunkt, kein Anheben */
.bank-row:active,
.rows .tile.pick-row:active { transform: scale(.98); }

/* Auswahl-Häkchen auch auf beliebten Kacheln sauber oben rechts */
.tile.pop-card.is-selected::after {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
}

/* „Sparkasse nach PLZ“ im ruhigen Flächen-Stil */
.pick-more {
  display: flex;
  min-height: 50px;
  height: auto;
  margin: 2px 16px 8px;
  padding: 0 14px;
  border: 1px solid #dbe7e8;
  border-radius: 10px;
  background: #f8fbfb;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 600;
}
.pick-more:hover { background: var(--teal-soft); border-color: #bcd9dc; }

@media (prefers-reduced-motion: reduce) {
  .search-status::before,
  .tile.is-selected::after { animation: none !important; }
  .bank-row:active,
  .tile.pop-card:active { transform: none; }
}
