/* Quiz, retning A: svaret først (quiz-bundle.js). Én kilde; se quiz-spec.md.
   Farver er brandets: teal #0e7c7b, teal-mørk #0a5e5d, ink #13343b, tekst #1c1827. */

/* ---------- Hero på quiz-sider: én kolonne, tilbuddene i fuld bredde ---------- */
.hero.hero-with-quiz { grid-template-columns: 1fr; gap: 24px; text-align: center; align-items: start; }
.hero-with-quiz .hero-text { text-align: center; }
.hero-with-quiz .hero-text .breadcrumb { justify-content: center; }
.hero-with-quiz .hero-text h1 { margin-left: auto; margin-right: auto; }
.hero-with-quiz .hero-text .hero-sub { margin-left: auto; margin-right: auto; }
.hero-with-quiz .hero-text .eyebrow-pill, .hero-with-quiz .hero-trust { display: none; }
.hero-with-quiz .hero-quiz { width: 100%; max-width: 1080px; margin: 0 auto; }
#quiz.hero { grid-template-columns: 1fr; gap: 28px; text-align: center; align-items: start; }
#quiz.hero h1, #quiz.hero .hero-sub { margin-left: auto; margin-right: auto; }
#quiz.hero .trust { display: none; }
#quiz.hero #quiz-mount { width: 100%; max-width: 1080px; margin: 0 auto; }
@media (max-width: 860px) {
  #quiz.hero { gap: 14px; padding-top: 12px; text-align: left; }
  #quiz.hero h1 { font-size: 32px; line-height: 1.1; margin: 0 0 8px; }
  #quiz.hero .hero-sub { font-size: 15px; line-height: 1.45; margin: 0; }
  .hero.hero-with-quiz { gap: 14px; padding-top: 12px; text-align: left; }
  .hero-with-quiz .hero-text { text-align: left; }
  .hero-with-quiz .hero-text .breadcrumb { display: none; }
  .hero-with-quiz .hero-text h1 { font-size: 28px; line-height: 1.15; margin: 0 0 8px; }
  .hero-with-quiz .hero-text .hero-sub { font-size: 15px; line-height: 1.45; margin: 0; }
  .hero-with-quiz .hero-quiz { max-width: none; }
  .hero-wrap:has(.hero-with-quiz) { padding-bottom: 24px; }
}

/* ---------- Komponent ---------- */
#quiz-mount { container-type: inline-size; container-name: aq; }
.aq { background: #fff; color: #1c1827; border-radius: 20px; padding: 14px; box-shadow: 0 10px 30px rgba(19,52,59,0.22); text-align: left; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; box-sizing: border-box; }
.aq *, .aq *::before, .aq *::after { box-sizing: border-box; }
.aq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.aq-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.aq-tab { font: inherit; flex: 1 1 auto; min-height: 44px; padding: 0 8px; font-size: 13px; border-radius: 999px; border: 1.5px solid rgba(19,52,59,0.16); background: #fff; font-weight: 700; color: #13343b; white-space: nowrap; cursor: pointer; }
.aq-tab[aria-pressed="true"] { background: #0e7c7b; border-color: #0e7c7b; color: #fff; }

.aq-sel { display: flex; gap: 8px; margin-bottom: 10px; }
.aq-select { position: relative; flex: 1; display: flex; align-items: center; min-height: 44px; border-radius: 999px; border: 1.5px solid rgba(19,52,59,0.16); background: #f3f7f6; color: #13343b; }
.aq-select .aq-ico { position: absolute; left: 14px; color: #0e7c7b; pointer-events: none; }
.aq-select .aq-chev { position: absolute; right: 14px; pointer-events: none; }
.aq-select select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 700; color: #13343b; width: 100%; min-height: 44px; padding: 0 40px 0 42px; border-radius: 999px; cursor: pointer; }
.aq-select:focus-within { outline: 3px solid #13343b; outline-offset: 2px; }
.aq-select select:focus { outline: none; }

.aq-cards { display: flex; flex-direction: column; gap: 10px; }
.aq-card { border: 1px solid rgba(19,52,59,0.12); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 5px; background: #fff; box-shadow: 0 2px 10px rgba(19,52,59,0.06); min-width: 0; }
.aq-card.is-top { border: 2px solid #0e7c7b; background: #f2faf8; box-shadow: none; }
.aq-card-hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; }
.aq-logo { height: 32px; padding: 0 10px; border-radius: 10px; background: #fff; border: 1px solid rgba(19,52,59,0.12); display: flex; align-items: center; flex: none; }
.aq-logo img { height: 20px; width: auto; max-width: 108px; object-fit: contain; display: block; }
.aq-logo-txt { font-weight: 800; font-size: 14px; color: #13343b; white-space: nowrap; }
.aq-pill { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #eef1f0; color: #13343b; white-space: nowrap; }
.aq-pill--top { background: #0a5e5d; color: #fff; }
.aq-pill--cheap { background: #dff3ef; color: #0a5e5d; }
.aq-reason { margin: 0; font-size: 13px; font-weight: 700; color: #0a5e5d; }
.aq-desc { margin: 0; font-size: 13px; color: rgba(28,24,39,0.72); }
.aq-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 4px; }
.aq-amount { font-size: 24px; font-weight: 800; color: #13343b; line-height: 1.1; white-space: nowrap; }
.aq-amount small { font-size: 14px; font-weight: 700; }
.aq-amount--txt { font-size: 20px; }
.aq-terms { margin: -2px 0 0; font-size: 12px; color: rgba(28,24,39,0.72); text-wrap: pretty; }
.aq-cta { min-height: 44px; padding: 0 16px; border-radius: 12px; background: #fff; border: 2px solid #0e7c7b; color: #0a5e5d; font-size: 14px; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; flex: none; }
.aq-card.is-top .aq-cta { background: #0e7c7b; color: #fff; }
.aq-cta:hover { background: #0a5e5d; border-color: #0a5e5d; color: #fff; }
.aq-cta:focus-visible, .aq-tab:focus-visible, .aq-why:focus-visible { outline: 3px solid #13343b; outline-offset: 2px; }
.aq-terms b { color: #13343b; }

.aq-cross { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(19,52,59,0.12); display: flex; flex-direction: column; gap: 8px; }
.aq-cross-hd { margin: 0; font-size: 15px; font-weight: 800; color: #13343b; letter-spacing: 0; }
.aq-cross-row { border-radius: 16px; background: #f2faf8; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.aq-cross-top { display: flex; align-items: center; gap: 12px; }
.aq-cross-name { text-wrap: pretty; display: flex; flex-direction: column; gap: 1px; font-size: 15px; font-weight: 800; color: #13343b; min-width: 0; }
.aq-cross-lbl { font-size: 12px; font-weight: 800; color: #0a5e5d; }
.aq-cross-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aq-cross-desc { font-size: 12px; line-height: 1.4; color: rgba(28,24,39,0.72); text-wrap: pretty; }

.aq-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 6px; }
.aq-why { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 700; color: #0a5e5d; cursor: pointer; padding: 0 8px; }
.aq-trust { display: none; }

@container aq (min-width: 760px) {
  .aq-tab { flex: 0 0 auto; padding: 0 16px; font-size: 14px; }
  .aq { border-radius: 24px; padding: 24px; box-shadow: 0 16px 48px rgba(19,52,59,0.24); }
  .aq-sel { max-width: 380px; }
  .aq-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
  .aq-card { padding: 20px; gap: 8px; border-radius: 18px; }
  .aq-logo { height: 44px; }
  .aq-logo img { height: 28px; max-width: 140px; }
  .aq-buy { display: contents; }
  .aq-amount { order: 5; margin-top: 8px; font-size: 32px; }
  .aq-amount--txt { font-size: 26px; }
  .aq-terms { order: 6; margin: 0; }
  .aq-card .aq-cta { order: 8; }
  .aq-card .aq-cta { margin-top: auto; min-height: 48px; width: 100%; }
  .aq-cross { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; padding-top: 16px; }
  .aq-cross-hd { grid-column: 1 / -1; }
  .aq-foot { flex-direction: row; justify-content: space-between; margin-top: 14px; }
  .aq-trust { display: flex; gap: 24px; margin: 0; font-size: 14px; color: rgba(28,24,39,0.72); }
  .aq-trust span { display: inline-flex; align-items: center; gap: 6px; }
  .aq-trust svg { color: #0e7c7b; }
}

/* ---------- Mobil som spil: tre tryk gør svaret skarpere ---------- */
.aq-game { background: #f3f7f6; border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.aq-game-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aq-game.is-done .aq-game-hd { justify-content: flex-start; }
.aq-game-t { margin: 0; font-size: 15px; font-weight: 800; color: #13343b; }
.aq-game-t:focus { outline: none; }
.aq-game-s { margin: 0; font-size: 13px; color: rgba(28,24,39,0.72); }
.aq-step { font-size: 12px; font-weight: 800; color: #0a5e5d; background: #dff3ef; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.aq-medal { width: 36px; height: 36px; border-radius: 999px; background: #0e7c7b; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.aq-prog { height: 8px; border-radius: 999px; background: #e0e9e7; overflow: hidden; }
.aq-prog span { display: block; height: 8px; border-radius: 999px; background: #0e7c7b; transition: width .35s ease; }
.aq-dones { display: flex; flex-wrap: wrap; gap: 6px; }
.aq-done { font: inherit; min-height: 44px; border-radius: 999px; border: 0; background: #dff3ef; color: #0a5e5d; font-size: 13px; font-weight: 800; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.aq-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.aq-q legend { padding: 0; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #13343b; }
.aq-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.aq-chips--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aq-chips--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.aq-chip { font: inherit; min-height: 44px; border-radius: 12px; border: 1.5px solid rgba(19,52,59,0.18); background: #fff; color: #13343b; font-size: 14px; font-weight: 700; padding: 0 8px; cursor: pointer; white-space: nowrap; }
.aq-chip:hover { border-color: #0e7c7b; }
.aq-chip:focus-visible, .aq-done:focus-visible { outline: 3px solid #13343b; outline-offset: 2px; }
.aq-checks { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.aq-check { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: rgba(28,24,39,0.72); white-space: nowrap; }
.aq-check svg { width: 14px; height: 14px; }
.aq-check.is-ok { color: #0a5e5d; }
.aq-cards .aq-card { animation: aq-in .28s ease both; }
.aq-cards .aq-card:nth-child(2) { animation-delay: .05s; }
.aq-cards .aq-card:nth-child(3) { animation-delay: .1s; }
@keyframes aq-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .aq-cards .aq-card { animation: none; } .aq-prog span { transition: none; } }
@container aq (min-width: 760px) {
  .aq-game { padding: 14px 16px; margin-bottom: 16px; }
  .aq-chips, .aq-chips--4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

/* ---------- "Sådan har vi valgt" ---------- */
.aq-sheet-wrap { position: fixed; inset: 0; background: rgba(19,52,59,0.55); z-index: 10000; display: flex; align-items: flex-end; justify-content: center; }
.aq-sheet { background: #fff; color: #1c1827; width: 100%; max-width: 560px; border-radius: 20px 20px 0 0; padding: 20px 20px 28px; box-sizing: border-box; max-height: 85vh; overflow: auto; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; text-align: left; }
.aq-sheet-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aq-sheet-hd h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: 0; color: #13343b; text-align: left; }
.aq-close { width: 44px; height: 44px; border-radius: 999px; border: 0; background: #f3f7f6; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #13343b; flex: none; }
.aq-close:focus-visible, .aq-sheet-link:focus-visible { outline: 3px solid #13343b; outline-offset: 2px; }
.aq-sheet-body p { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: rgba(28,24,39,0.86); }
.aq-sheet-body b { color: #13343b; }
.aq-sheet-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 8px; font-size: 14px; font-weight: 700; color: #0a5e5d; }
@media (min-width: 861px) {
  .aq-sheet-wrap { align-items: center; }
  .aq-sheet { border-radius: 20px; padding: 24px 28px 28px; }
}

/* ---------- Fejl: fallback når svaret ikke kan vises ---------- */
.aq--fejl { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.aq-fejl { margin: 0; font-size: 15px; font-weight: 700; color: #13343b; }
