/* signwings.de production additions on top of base.css + pack.css (Familienband). */

/* header: account link + returning-buyer banner */
.fb-account { margin-left: 12px; padding: 8px 14px; font-size: .92rem; font-weight: 800; color: var(--sw-text); text-decoration: none; border-radius: 999px; white-space: nowrap; }
.fb-account:hover { background: var(--fb-apricot-soft); }
html[data-screen="start"] .fb-account { margin-left: 4px; }
.fb-returning { background: var(--fb-sage-soft); border-bottom: 1px solid #d6e3d1; }
.fb-returning-in { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; font-size: .95rem; }
.fb-returning-in .fb-ic { color: var(--fb-sage-text); }
.fb-returning-in .sw-btn { margin-left: auto; }
@media (max-width: 720px) { .fb-account { display: none; } .fb-returning-in { flex-wrap: wrap; } .fb-returning-in .sw-btn { margin-left: 0; } }

/* header never wraps: fewer links on small laptops, none on tablets (the page itself has the same sections) */
.fb-nav a, .fb-header-cta { white-space: nowrap; }
@media (max-width: 1199px) { .fb-header-in { gap: 18px; } .fb-nav a { padding: 8px 10px; } .fb-nav .fb-nav-opt { display: none; } }
@media (max-width: 1023px) {
  .fb-nav { display: none; }
  html[data-screen="start"] .fb-account { margin-left: auto; }
  html[data-screen="start"] .fb-header-cta { margin-left: 0; }
}
@media (max-width: 720px) { html[data-screen="start"] .fb-header-cta { margin-left: auto; } }

/* questionnaire extras */
.sw-opt-mark-t { font-weight: 600; color: var(--sw-text-2); font-size: .82em; }
.sw-lock-t { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-weight: 700; color: var(--fb-sage-text); font-size: .78em; }
.sw-lock-t .sw-i { width: 1em; height: 1em; }
.sw-field.is-locked .sw-input { background: var(--sw-surface-2); color: var(--sw-text-2); }
.sw-field.is-missing .sw-input { border-color: var(--sw-danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sw-danger) 18%, transparent); }

/* loading state */
.sw-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 220px; padding: 40px 20px; color: var(--sw-text-2); font-weight: 700; }
.sw-loading .sw-i { width: 28px; height: 28px; color: var(--fb-terra); animation: sw-bob 1.4s ease-in-out infinite; }
@keyframes sw-bob { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .sw-loading .sw-i { animation: none; } }

/* preview made of server images */
.sw-page.sw-page--img { aspect-ratio: auto; height: auto; padding: 0; display: flex; flex-direction: column; gap: 14px; background: transparent; box-shadow: none; overflow: visible; }
.sw-page.sw-page--img img { width: 100%; height: auto; border-radius: 6px; background: #fff; box-shadow: var(--sw-shadow-lg); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; pointer-events: auto; }
.sw-pv-stack { min-height: 380px; }
.sw-pv-note { display: flex; gap: 10px; align-items: flex-start; margin: 18px auto 0; max-width: 620px; font-size: .9rem; color: var(--sw-text-2); }
.sw-pv-note .sw-i { color: var(--fb-sage-text); margin-top: 3px; }

/* package: single document picker */
.sw-single { margin: 18px auto 0; max-width: 720px; padding: 18px 20px; background: var(--sw-surface); border-radius: var(--sw-radius); box-shadow: var(--sw-shadow); }
.sw-single-t { margin: 0 0 10px; font-weight: 800; }
.sw-single-opts { display: grid; gap: 8px; }

/* checkout */
.sw-stripe { padding: 4px 0 2px; min-height: 120px; }
.sw-pay-test { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; font-size: .9rem; background: #fff6d6; border: 1px solid #f2dc8f; border-radius: var(--sw-radius-sm); }
/* Google Ads question on the thank-you page (app/ads.py) */
.sw-ads-ask { margin: 0 0 20px; padding: 14px 16px; border-radius: 14px; background: var(--fb-plum-soft, #efe6ee); font-size: .9rem; line-height: 1.5; }
.sw-ads-ask p { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.sw-ads-ask a { color: inherit; }
.sw-ads-ask-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sw-ads-ask .sw-ads-done { flex-direction: row; align-items: center; gap: 8px; }
.sw-pay-legal { margin: 12px 0 14px; font-size: .86rem; color: var(--sw-text-2); }
.sw-pay-legal a { color: var(--sw-text); font-weight: 700; }
.sw-pay-msg { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; color: #7a2418; background: #fdecea; border-radius: var(--sw-radius-sm); font-weight: 600; }
.sw-pay-error { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 14px 16px; background: #fdecea; color: #7a2418; border-radius: var(--sw-radius-sm); font-weight: 600; }
.sw-field-note { margin: 0; font-size: .9rem; color: var(--sw-text-2); }

/* success + account */
.sw-done-h2b { margin-top: 26px; }
.sw-done-files a.sw-btn { text-decoration: none; }
.sw-seat2 { display: flex; gap: 14px; align-items: flex-start; margin: 22px 0 6px; padding: 18px; background: var(--fb-peach); border: 1.5px dashed var(--fb-apricot); border-radius: var(--sw-radius); }
.sw-seat2 > .sw-i { width: 34px; height: 34px; color: var(--fb-terra-text); }
.sw-seat2 p { margin: 4px 0 12px; font-size: .95rem; }
/* "Später weitermachen?": link to the draft by e-mail (flow.js renderLater) – preview step below the CTA card, package
   step beside the totals (desktop) or below them (mobile) */
.sw-later[hidden] { display: none; }
.sw-later { margin: 0; }
.sw-later-in { flex: 1 1 auto; min-width: 0; }
.sw-later p.sw-later-text { margin: 4px 0 12px; }
.sw-later-form { display: grid; gap: 12px; }
.sw-later-form .sw-field { margin: 0; }
.sw-later-check { padding: 12px 14px; font-size: .9rem; }
.sw-later-btn { justify-self: start; }
.sw-later p.sw-later-fine { margin: 0; font-size: .82rem; color: var(--sw-text-2); }
.sw-later-fine a { color: var(--sw-text); font-weight: 700; }
.sw-later p.sw-later-done { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-weight: 700; color: var(--fb-sage-text); overflow-wrap: anywhere; }
.sw-later-done .sw-i { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.sw-later p.sw-later-note { margin: 8px 0 0; font-size: .92rem; }
.fb-pv-later { grid-column: 2; }
@media (min-width: 1024px) { .fb-pv-grid { row-gap: 22px; } }
@media (max-width: 1023px) {
  .fb-pv-later { grid-column: auto; margin-top: -22px; }
  .fb-pkg-left { order: 2; }
}
@media (max-width: 520px) {
  .sw-later > .sw-i { display: none; }
  .sw-later-btn { justify-self: stretch; }
}
/* Entrance animations play once. Removing a bounce/pop class would otherwise restart them (the card fades in again), so
   cards a visitor has interacted with are "settled": no entrance animation, only the bounce/pop while its class is set. */
.sw-opt.is-settled { animation: none; }
.sw-tiers.is-settled .sw-tier { animation: none; }
.sw-tiers.is-settled .sw-tier.is-pop { animation: sw-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.fb-spot img { transition: opacity .16s ease; }
.fb-spot img.fb-swap { opacity: 0; }
/* package step, questionnaire filled for one person: two cards + the couples offer below (flow.js renderPackage) */
@media (min-width: 861px) { .sw-tiers--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin-inline: auto; } }
.sw-couple-up { max-width: 880px; margin: 26px auto 6px; }
.sw-couple-up[hidden] { display: none; }
.sw-couple-up .sw-btn { margin-top: 2px; }
.sw-tier-note { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; font-size: .85rem; color: var(--sw-text-2); }
.sw-tier-note > .sw-i { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.sw-done-edit { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sw-done-edit p { display: flex; gap: 8px; width: 100%; margin: 0 0 4px; font-size: .9rem; color: var(--sw-text-2); }
.fb-account-page { max-width: 820px; padding-top: 24px; padding-bottom: 60px; }
.sw-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sw-orders li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--sw-surface-2); border-radius: var(--sw-radius-sm); }
.sw-orders .sw-btn { margin-left: auto; }
.sw-account-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.sw-account-form .sw-field { flex: 1 1 280px; margin: 0; }
.sw-account-done { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--fb-sage-text); }
.sw-account-foot { margin: 16px 0 0; }

/* test-mode badge (operator) */
.sw-testbadge { position: fixed; left: 14px; bottom: 14px; z-index: 300; display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: .78rem;
  color: #3d2c3e; background: #fff1b8; border: 1px solid #e8cf63; border-radius: 999px; box-shadow: var(--sw-shadow); }
.sw-testbadge.is-live { background: #e3ecdf; border-color: #b8cfb2; }
.sw-testbadge a, .sw-testbadge button { padding: 2px 8px; font: inherit; font-weight: 800; color: inherit; background: rgba(255, 255, 255, .7); border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; }
@media (max-width: 720px) { .sw-testbadge { bottom: 76px; } }

/* legal pages, withdrawal page, operator page */
.fb-legal { max-width: 860px; padding-top: 34px; padding-bottom: 80px; }
.fb-legal h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 0 0 18px; }
.fb-legal h2 { font-size: 1.32rem; margin: 34px 0 10px; }
.fb-legal h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.fb-legal p, .fb-legal li { max-width: 72ch; }
.fb-legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .92rem; background: var(--sw-surface); border-radius: var(--sw-radius-sm); overflow: hidden; }
.fb-legal th, .fb-legal td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sw-line); }
.fb-legal th { background: var(--sw-surface-2); font-weight: 800; }
.fb-legal td.num { text-align: right; white-space: nowrap; }
.legal-draft { display: inline-block; margin: 0 0 18px; padding: 6px 12px; font-size: .85rem; font-weight: 800; color: #7a4f00; background: #fff4dc; border-radius: 999px; }
.fb-legal .card { margin: 20px 0; padding: 20px 22px; background: var(--sw-surface); border-radius: var(--sw-radius); box-shadow: var(--sw-shadow); }
.fb-legal .card h2 { margin-top: 0; }
.fb-legal .who, .fb-legal .fine { font-size: .9rem; color: var(--sw-text-2); }
.fb-legal .ok { color: var(--fb-sage-text); } .fb-legal .no { color: var(--sw-danger); }
.fb-legal form label { display: inline-flex; gap: 6px; align-items: center; margin: 4px 0; }
.fb-legal form button, .fb-legal .btn { margin-top: 10px; padding: 10px 18px; font: inherit; font-weight: 800; color: #fff; background: var(--sw-primary); border: 0; border-radius: 999px; cursor: pointer; }
.fb-legal table.orders { font-size: .84rem; }
.fb-legal table.orders td { white-space: nowrap; }
.fb-legal .card { overflow-x: auto; }
.fb-withdraw form { display: grid; gap: 14px; max-width: 520px; }
.fb-withdraw .sw-field { margin: 0; }
.fb-withdraw .done { padding: 16px 18px; background: var(--fb-sage-soft); border-radius: var(--sw-radius); font-weight: 700; }

/* operator bar (admins only): payment mode + language for this browser */
.sw-adminbar { flex-wrap: wrap; gap: 8px; max-width: calc(100vw - 28px); border-radius: 18px; }
.sw-adminbar-note { opacity: .8; }
/* operator bar folds to a small pill (flow.js mountBadge) */
.sw-adminbar-body { display: contents; }
.sw-adminbar.is-min { padding: 0; gap: 0; background: transparent; border-color: transparent; box-shadow: none; opacity: .75; }
.sw-adminbar.is-min:hover, .sw-adminbar.is-min:focus-within { opacity: 1; }
.sw-adminbar.is-min .sw-adminbar-body, .sw-adminbar.is-min .sw-adminbar-toggle b { display: none; }
.sw-testbadge.is-min .sw-adminbar-toggle { padding: 0; }
.sw-adminbar.is-min .sw-adminbar-mode { padding: 4px 10px; box-shadow: 0 2px 8px rgba(40, 20, 40, .25); }
.sw-testbadge .sw-adminbar-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 3px 4px 3px 9px; background: transparent; }
.sw-adminbar-mode { padding: 1px 8px; font-weight: 800; color: #fff; background: #3d2c3e; border-radius: 999px; }
.sw-adminbar.is-live .sw-adminbar-mode { background: #b3261e; }
.sw-seg { display: inline-flex; gap: 2px; padding: 2px; background: rgba(255, 255, 255, .55); border-radius: 999px; }
.sw-testbadge .sw-seg button { background: transparent; }
.sw-testbadge .sw-seg button[aria-pressed="true"] { color: #fff; background: #3d2c3e; }
.sw-testbadge.is-live .sw-seg button[data-val="live"][aria-pressed="true"] { background: #b3261e; }
.sw-testbadge .sw-seg button:disabled { opacity: .45; cursor: not-allowed; }

/* SEPA direct debit: delivery after the payment is confirmed (up to 5 business days) */
.sw-pay-sepa { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--fb-sun-soft, #fdf3dc); font-size: .9rem; line-height: 1.45; }
.sw-pay-sepa .sw-i { flex: none; margin-top: 2px; }
.sw-done-sepa { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: center; margin: 4px 0 16px; font-size: .9rem; color: var(--sw-text-2); }
