/* Offer selection UI, shared (AUD-DM, 10.11.2026).
 * One place for the pick-a-card / pick-a-type UI that used to be copied inline
 * into angebot (EN, DE is generated from it), angebot/offer, and partly
 * automation and onboarding. Linked after shell.css, before the page's own
 * <style>, so page rules still win where a page needs an exception.
 *
 * Colour roles (tokens.css): --accent-ink is the accent as a foreground
 * (borders, ticks, icons, text on a card) and is light enough on dark cards,
 * --control-edge is the 3:1 edge of a control that is not yet chosen.
 * --accent-deep stays a background colour and is NOT used for ink here.
 * A chosen state never relies on colour alone: tint, 2px outline, a filled
 * radio dot or a tick shape change together.
 */

/* ---------- Scope: the bundle form, the care-solo form, the offer form ---------- */

/* Ticks in price and path lists */
.off-card li::before{content:"";position:absolute;left:0;top:7px;width:14px;height:14px;border-radius:50%;background:var(--accent-soft);}
.off-card li::after{content:"";position:absolute;left:4px;top:9px;width:6px;height:3px;border-left:2px solid var(--accent-ink);border-bottom:2px solid var(--accent-ink);transform:rotate(-45deg);}
.path-card .path-col.inc li::before{content:"";position:absolute;left:0;top:6px;width:14px;height:14px;border-radius:50%;background:var(--accent-soft);}
.path-card .path-col.inc li::after{content:"";position:absolute;left:4px;top:8px;width:6px;height:3px;border-left:2px solid var(--accent-ink);border-bottom:2px solid var(--accent-ink);transform:rotate(-45deg);}
.path-card .path-col.exc li::before{content:"";position:absolute;left:2px;top:10px;width:10px;height:2px;background:var(--control-edge);}

/* Path card icon */
.path-card .path-icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:var(--accent-soft);color:var(--accent-ink);margin:0 0 18px;}
.path-card.is-new .path-icon{background:var(--gold-soft);color:var(--gold-deep);}

/* Selectable cards. .off-wrap is the /angebot/offer/ page wrapper: its blog-maker
   tier picker sits in a <section> outside .off-form, so without .off-wrap here
   the chosen tier lost its outline, tint and radio dot (R1/R2 B-1, 10.11.2026). */
:is(.cfg,.off-solo,.off-form,.off-wrap) label.off-card{cursor:pointer;transition:border-color .15s, box-shadow .15s, background-color .15s;}
:is(.cfg,.off-solo,.off-form,.off-wrap) label.off-card:not(.featured){border-color:var(--control-edge);}
:is(.cfg,.off-solo,.off-form,.off-wrap) label.off-card:hover{border-color:var(--accent-ink);}
:is(.cfg,.off-solo,.off-form,.off-wrap) label.off-card:has(input:checked){border-color:var(--accent-ink);background:var(--select-fill);box-shadow:var(--shadow-lift);outline:2px solid var(--accent-ink);outline-offset:0;}
:is(.cfg,.off-solo,.off-form,.off-wrap) label.off-card:has(input:focus-visible){outline:2px solid var(--gold-deep);outline-offset:2px;}
:is(.cfg,.off-solo,.off-form,.off-wrap) .pickmark{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:.92rem;color:var(--text-soft);margin-top:auto;padding-top:6px;}
:is(.cfg,.off-solo,.off-form,.off-wrap) .pickmark::before{content:"";width:18px;height:18px;border-radius:50%;border:2px solid var(--control-edge);background:var(--surface);flex:0 0 auto;}
:is(.cfg,.off-solo,.off-form,.off-wrap) label.off-card:has(input:checked) .pickmark{color:var(--accent-ink);}
:is(.cfg,.off-solo,.off-form,.off-wrap) label.off-card:has(input:checked) .pickmark::before{border-color:var(--accent-ink);background:radial-gradient(circle at center, var(--accent-ink) 0 45%, var(--surface) 50%);}

/* Business or private person */
:is(.cfg,.off-solo,.off-form) .ctype{display:flex;gap:14px;flex-wrap:wrap;margin:0 0 14px;}
:is(.cfg,.off-solo,.off-form) .ctype label{display:flex;align-items:center;gap:10px;border:1px solid var(--control-edge);border-radius:var(--radius-md);padding:14px 18px;font-weight:600;cursor:pointer;background:var(--surface);}
:is(.cfg,.off-solo,.off-form) .ctype label:hover{border-color:var(--accent-ink);}
:is(.cfg,.off-solo,.off-form) .ctype label:has(input:checked){border-color:var(--accent-ink);background:var(--select-fill);outline:2px solid var(--accent-ink);outline-offset:0;}
:is(.cfg,.off-solo,.off-form) .ctype input{width:18px;height:18px;accent-color:var(--accent-ink);}
/* /angebot/offer/: .off-form label{margin:14px 0 4px} (page rule) would push
   these labels 14px down now that the old .ctype label{margin:0} is gone (W-1). */
.off-form .ctype label{margin:0;}

/* Billing cycle toggle (angebot/offer) */
.cycle label{border-color:var(--control-edge);}
.cycle label:hover{border-color:var(--accent-ink);}
.cycle label:has(input:checked){border-color:var(--accent-ink);background:var(--select-fill);outline:2px solid var(--accent-ink);outline-offset:0;}

/* Add-on picker: 3 tier cards (Basic/Pro/Partner), same off-card component
   as every other pick step on this page. "No blog add-on" is deliberately
   NOT a 4th card in that row: it is the default, most-picked option, so it
   gets its own skip control below the grid instead of competing for
   attention with the 3 paid tiers. Sized to its own content (not full
   section width, that read as a disabled button) with the same solid
   bordered-pill language as the "As a business / As a private person"
   picker (.ctype above), not a dashed ghost outline. Shared between the
   bundle form (.cfg) and the care-solo form (.off-solo), so the selector
   is not scoped to either. Chosen: tint, outline and a leading tick, text
   stays --text, so it never reads as disabled. */
:is(.cfg,.off-solo) .addon-skip{position:relative;display:block;width:max-content;max-width:100%;margin:24px auto 0;padding:14px 50px;text-align:center;font-weight:700;color:var(--text);border:1px solid var(--control-edge);border-radius:var(--radius-md);cursor:pointer;background:var(--surface);transition:border-color .15s,box-shadow .15s,background-color .15s;}
:is(.cfg,.off-solo) .addon-skip input{position:absolute;opacity:0;pointer-events:none;}
:is(.cfg,.off-solo) .addon-skip:hover{border-color:var(--accent-ink);}
:is(.cfg,.off-solo) .addon-skip:has(input:checked){border-color:var(--accent-ink);background:var(--select-fill);outline:2px solid var(--accent-ink);outline-offset:0;color:var(--text);}
:is(.cfg,.off-solo) .addon-skip:has(input:checked)::before{content:"\2713";content:"\2713" / "";margin-right:8px;color:var(--accent-ink);font-weight:800;}
:is(.cfg,.off-solo) .addon-skip:has(input:focus-visible){outline:2px solid var(--gold-deep);outline-offset:2px;}

/* Demo pills: the type ("Prototype") carries a fill, the industry is outline
   only, so the two read as different levels. 13px is the floor for caps labels. */
.demo-badge{display:inline-block;margin-right:6px;padding:2px 10px;border-radius:999px;border:1px solid var(--gold-deep);background:var(--accent-soft);color:var(--link);font-size:.8125rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;line-height:1.35;}
.demo-badge.demo-tag{background:transparent;}

/* ---------- Pages that keep their own selection rules ---------- */
/* automation quiz options and onboarding theme tiles used --accent
   (#0C6E6D) for the chosen border, 1.9:1 on a dark card. Same roles here,
   the unchosen edge (--control-edge) is set in those pages' own base rule. */
.quiz-opts label:has(input:checked){border-color:var(--accent-ink);background:var(--select-fill);outline:2px solid var(--accent-ink);outline-offset:0;}
.ob-theme:has(input:checked){border-color:var(--accent-ink);background:var(--select-fill);outline:2px solid var(--accent-ink);outline-offset:0;}
