/* Prana Veda · "Welches Retreat passt zu dir?" (/finder.js): the quiz card, shared by the retreats page (a frosted card
   over their sunset photo) and the booking page (inside a popup). Same tokens, the one radius (--r). Answers are frosted
   rows with a number; the chosen one fills and its check draws in. Four dots show the way, the current one long. The
   result is the retreat's own cover: its photo with the name set large, as on the retreat cards. Media rules at the END. */

.fd { --glass: rgb(255 253 249 / 0.74); --glass-line: rgb(255 255 255 / 0.65); display: grid; gap: 18px; }

/* the top row: back, the four dots, "Frage 2 von 4" */
.fd__top { display: flex; align-items: center; gap: 14px; min-height: 36px; }
.fd__top.is-done { display: none; }
.fd__back { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 999px; background: var(--glass); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background 180ms var(--ease), color 180ms var(--ease), opacity 180ms var(--ease); }
.fd__back:hover:not(:disabled) { background: var(--accent); color: var(--on-accent); }
.fd__back:disabled { opacity: 0; pointer-events: none; }
.fd__back .mark { width: 16px; height: 16px; }
.fd__dots { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fd__dots li { width: 6px; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 22%, transparent); transition: width 320ms var(--ease), background 320ms var(--ease); }
.fd__dots li.is-past { background: color-mix(in srgb, var(--accent) 60%, transparent); }
.fd__dots li.is-on { width: 24px; background: var(--accent); }
.fd__count { margin-left: auto; font: 500 0.82rem/1 var(--text); color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* the stage: one step at a time, gliding to its height; steps slide in from the side */
.fd__stage { position: relative; overflow: clip; margin: -4px; padding: 4px; transition: height 400ms var(--ease); }
.fd__step { transition: opacity 320ms var(--ease), translate 420ms var(--ease); }
.fd__step:not(.is-on) { position: absolute; inset: 4px 4px auto; }
.fd__step[data-enter="right"] { opacity: 0; translate: 40px 0; transition: none; }
.fd__step[data-enter="left"] { opacity: 0; translate: -40px 0; transition: none; }
.fd__step[data-enter="fade"] { opacity: 0; transition: none; }
.fd__step[data-leave="left"] { opacity: 0; translate: -40px 0; }
.fd__step[data-leave="right"] { opacity: 0; translate: 40px 0; }
.fd__step[data-leave="fade"] { opacity: 0; }
.fd__q { margin: 0 0 20px; font: 300 clamp(1.55rem, 1.25rem + 1.1vw, 2.15rem)/1.2 var(--head); color: var(--head-ink); text-wrap: balance; outline: none; }

/* the answers: frosted rows, a number in a soft circle; chosen = filled, the check draws in */
.fd__opts { display: grid; gap: 10px; }
.fd__opt { display: grid; grid-template-columns: 32px minmax(0, 1fr) 20px; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 16px 12px 12px; border: 0; border-radius: var(--r); background: var(--glass); color: var(--ink); box-shadow: inset 0 0 0 1px var(--glass-line), 0 1px 0 rgb(255 255 255 / 0.5) inset, 0 6px 18px -14px rgb(61 52 24 / 0.5); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); font: 400 1rem/1.4 var(--text); text-align: left; cursor: pointer; transition: background 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease), translate 200ms var(--ease); }
.fd__opt:hover { box-shadow: inset 0 0 0 1px var(--accent), 0 10px 22px -14px rgb(61 52 24 / 0.55); translate: 0 -1px; }
.fd__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-ink); font: 500 0.88rem/1 var(--text); transition: background 200ms var(--ease), color 200ms var(--ease); }
.fd__tick { display: grid; place-items: center; width: 20px; height: 20px; opacity: 0; scale: 0.5; transition: opacity 200ms var(--ease), scale 260ms var(--ease); }
.fd__tick .mark { width: 18px; height: 18px; }
.fd__opt[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 0 0 1px var(--accent), 0 12px 26px -14px rgb(61 52 24 / 0.7); }
.fd__opt[aria-pressed="true"] .fd__n { background: rgb(255 255 255 / 0.18); color: var(--on-accent); }
.fd__opt[aria-pressed="true"] .fd__tick { opacity: 1; scale: 1; }

/* the result: the retreat's cover (photo, name large, the & small), then who it's for, her quote, best for, buttons */
.fd__tie { margin: -8px 0 18px; color: var(--ink-2); max-width: 52ch; }
.fd__picks { display: grid; gap: 18px; }
.fd__result.is-two .fd__picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fd__pick { display: grid; align-content: start; overflow: clip; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -26px rgb(61 52 24 / 0.5); }
.fd__cover { position: relative; display: block; aspect-ratio: 2 / 1; overflow: clip; }
.fd__result.is-two .fd__cover { aspect-ratio: 4 / 3; }
.fd__cover img { width: 100%; height: 100%; object-fit: cover; }
.fd__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(16 12 6 / 0) 35%, rgb(16 12 6 / 0.72) 100%); }
.fd__name { position: absolute; left: clamp(16px, 2.4vw, 24px); bottom: clamp(12px, 2vw, 18px); display: grid; font: 300 clamp(2rem, 1.6rem + 1.6vw, 2.8rem)/0.98 var(--head); letter-spacing: -0.02em; color: #fff; text-shadow: 0 2px 24px rgb(0 0 0 / 0.25); }
.fd__name em { margin-left: 0.06em; font-size: 0.5em; font-style: italic; color: #ecdcb4; vertical-align: 0.35em; }
.fd__body { display: grid; gap: 10px; justify-items: start; padding: 18px clamp(16px, 2.4vw, 24px) 22px; }
.fd__for { font: 500 0.76rem/1.4 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.fd__quote { margin: 0; font: italic 300 1.12rem/1.45 var(--head); color: var(--ink); text-wrap: pretty; }
.fd__best { margin: 0; color: var(--ink-2); font-size: 0.95rem; text-wrap: pretty; }
.fd__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 4px; }
.fd__again { justify-self: start; margin-top: 18px; padding: 0; border: 0; background: none; color: var(--accent-ink); font: 500 0.92rem/1.4 var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* on the retreats page: the card floats, frosted, over their sunset meditation; the title in white beside it */
.finder { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(56px, 8vw, 112px); color: #fff; }
.finder__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.finder__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(16 12 6 / 0.62) 0%, rgb(16 12 6 / 0.35) 55%, rgb(16 12 6 / 0.25) 100%); }
.finder__in { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.finder .head { margin-bottom: 0; justify-items: start; }
.finder .head .title { color: #fff; text-shadow: 0 2px 30px rgb(0 0 0 / 0.25); }
.finder .head .lede { color: rgb(255 255 255 / 0.9); }
.finder__card { padding: clamp(20px, 3vw, 32px); border-radius: calc(var(--r) * 2); background: rgb(249 244 238 / 0.62); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.55), 0 30px 80px -30px rgb(0 0 0 / 0.55); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); }

/* on the booking page: the popup (the ask popup's look, booking.css), a title above the card */
dialog.fd-dlg { width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.45); opacity: 0; scale: 0.97; translate: 0 8px; transition: opacity 260ms var(--ease), scale 260ms var(--ease), translate 260ms var(--ease), overlay 260ms allow-discrete, display 260ms allow-discrete; }
dialog.fd-dlg[open] { opacity: 1; scale: 1; translate: 0 0; }
@starting-style { dialog.fd-dlg[open] { opacity: 0; scale: 0.97; translate: 0 8px; } }
dialog.fd-dlg::backdrop { background: rgb(18 14 8 / 0); transition: background 260ms var(--ease), backdrop-filter 260ms var(--ease), overlay 260ms allow-discrete, display 260ms allow-discrete; }
dialog.fd-dlg[open]::backdrop { background: rgb(18 14 8 / 0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@starting-style { dialog.fd-dlg[open]::backdrop { background: rgb(18 14 8 / 0); } }
.fd-dlg__panel { position: relative; display: grid; gap: 6px; padding: clamp(22px, 4vw, 34px); overflow-y: auto; max-height: calc(100dvh - 32px); }
.fd-dlg__t { margin: 0; padding-right: 44px; font: 300 clamp(1.1rem, 1rem + 0.4vw, 1.3rem)/1.3 var(--text); color: var(--ink-2); }

@media (prefers-color-scheme: dark) {
  .fd { --glass: rgb(34 36 31 / 0.7); --glass-line: rgb(255 255 255 / 0.1); }
  .finder__card { background: rgb(22 23 20 / 0.6); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), 0 30px 80px -30px rgb(0 0 0 / 0.7); }
}

/* ═══════════ Media rules ═══════════ */
@media (max-width: 900px) {
  .finder__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .fd__result.is-two .fd__picks { grid-template-columns: minmax(0, 1fr); }
  .fd__result.is-two .fd__cover { aspect-ratio: 16 / 9; }
  .fd__opt { min-height: 56px; gap: 12px; }
}

/* the booking popup's fifth page: the retreat it chose, "selected below", one button to carry on (2026-11-13) */
.fd-dlg .fd__result .fd__cover { aspect-ratio: 21 / 9; }
.fd-dlg .fd__result.is-two .fd__cover { aspect-ratio: 16 / 9; }
.fd-dlg .fd__pick.is-chosen { box-shadow: 0 0 0 2px var(--accent), 0 18px 40px -26px rgb(61 52 24 / 0.5); }
.fd__chosen { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; color: var(--ink-2); font-size: 0.95rem; }
.fd__result.is-two .fd__chosen, .fd__result.is-two .fd__go { grid-column: 1 / -1; }
.fd__chosen i[data-mark] { width: 18px; height: 18px; color: var(--accent-ink); }
.fd__go { justify-self: stretch; justify-content: center; }
@media (max-width: 640px) { .fd-dlg .fd__result .fd__cover, .fd-dlg .fd__result.is-two .fd__cover { aspect-ratio: 5 / 2; } .fd-dlg .fd__picks { gap: 12px; } }
