/* Standalone Check and the same form inside the site dialog. */
:root {
  color-scheme: light;
  --ink: #153f40;
  --muted: #4d6762;
  --green: #176350;
  --line: #d9e5de;
  --paper: #f5f8f6;
  --white: #fff;
  --focus: #b74419;
  --finder-width: 52rem;
  --finder-space: clamp(1rem, 4vw, 2rem);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-block: 1rem 5rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 var(--font); }
button, input { font: inherit; }
button, a, label { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; text-underline-offset: .2em; }
svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 3; top: .65rem; left: 1rem; max-width: calc(100% - 2rem); padding: .7rem 1rem; border-radius: .5rem; background: var(--white); transform: translateY(calc(-100% - 1rem)); }
.skip-link:focus { transform: none; }

.check-header { display: flex; align-items: center; justify-content: space-between; gap: .85rem; padding: .6rem max(1rem, calc((100vw - 76rem) / 2)); border-bottom: 1px solid var(--line); background: var(--white); }
.check-brand, .check-header-end { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.check-brand { font-size: clamp(1rem, 4vw, 1.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -.045em; text-decoration: none; }
.check-brand > img { display: block; width: 32px; height: 32px; flex: 0 0 32px; }
.check-brand > span > span { color: #ab3e1b; }
.check-brand small { display: block; margin-top: .35rem; color: var(--muted); font-size: .49rem; letter-spacing: .12em; }
.check-header-end > span { color: var(--muted); font-size: .8rem; }
.check-close { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; }
.check-close:hover { background: #edf6f0; }
.check-close svg { width: 19px; height: 19px; }
.check-intro, .static-paths { width: min(var(--finder-width), calc(100% - 2rem)); margin-inline: auto; }
.check-intro { padding-block: 1.5rem 1.1rem; }
.check-intro h1 { margin: 0 0 .45rem; font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.15; letter-spacing: -.04em; }
.check-intro > p { max-width: 42rem; margin: 0; color: var(--muted); font-size: .92rem; }
.check-intro h1, .question legend, .result h2 { overflow-wrap: anywhere; hyphens: auto; }

.finder { width: min(var(--finder-width), calc(100% - 2rem)); min-width: 0; margin: 0 auto 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); overflow-anchor: none; }
.finder-head { display: flex; align-items: center; gap: .75rem; padding: 1rem var(--finder-space) .65rem; }
.step-label { flex: 0 0 auto; color: var(--green); font-size: .81rem; font-weight: 750; }
.progress { flex: 1; height: 5px; overflow: hidden; border-radius: 1rem; background: #e8efea; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .25s ease; }
.form { padding: .65rem var(--finder-space) 0; }
.question { min-width: 0; margin: 0; padding: 0; border: 0; }
.question legend { display: block; width: 100%; margin: 0 0 .45rem; padding: 0; font-size: clamp(1.32rem, 4vw, 1.85rem); font-weight: 780; line-height: 1.2; letter-spacing: -.035em; }
.question > legend:focus-visible { outline: none; }
.question-help { margin: 0 0 .85rem; color: var(--muted); font-size: .89rem; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.option { display: flex; align-items: center; justify-content: space-between; gap: .7rem; min-width: 0; min-height: 54px; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--white); cursor: pointer; }
.option:hover { border-color: #8daf9d; background: #f8fbf8; }
.option:has(input:checked) { border-color: var(--green); background: #edf7f1; }
.option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.option input { width: 18px; height: 18px; margin: 0; flex: 0 0 18px; accent-color: var(--green); cursor: pointer; outline: none; }
.option-label { min-width: 0; font-size: .9rem; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.intent-check .option-label { flex: 1; }
.option-icon { display: grid; flex: 0 0 2rem; height: 2rem; place-items: center; border-radius: .5rem; background: #edf5f1; color: var(--green); }
.option-icon svg { width: 17px; height: 17px; }
.actions { position: sticky; z-index: 1; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 1.05rem calc(-1 * var(--finder-space)) 0; padding: .55rem var(--finder-space); border-top: 1px solid var(--line); background: var(--white); }
.actions > .button { margin-inline-start: auto; }
.button, .back-button, .text-button { min-height: 44px; font-size: .86rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; padding: .6rem 1rem; border: 1px solid var(--green); border-radius: .6rem; background: var(--green); color: white; font-weight: 750; line-height: 1.35; text-decoration: none; }
.button:hover { background: #104c3c; }
.back-button, .text-button { padding: .5rem 0; border: 0; background: transparent; color: var(--muted); font-weight: 650; }
.back-button { flex: 0 0 auto; }
.text-button { text-decoration: underline; text-underline-offset: .2em; }
.back-button:hover, .text-button:hover { color: var(--green); }
.finder-privacy { padding-inline: var(--finder-space); }
.privacy-details { color: var(--muted); }
.privacy-details summary, .result-details summary { min-height: 44px; padding: .64rem 0; color: var(--muted); font-size: .84rem; font-weight: 650; cursor: pointer; }
.fineprint { color: var(--muted); font-size: .81rem; line-height: 1.6; overflow-wrap: anywhere; }
.fineprint a { color: var(--green); }
.error { margin: 0 0 .75rem; padding: .65rem .85rem; border: 1px solid #edc8c0; border-radius: .55rem; background: #fff4f0; color: #862f20; font-size: .86rem; font-weight: 650; }
.error:not(.visible) { display: none; }
.question-error { margin: 0 0 .75rem; color: #862f20; font-size: .85rem; font-weight: 650; }
.finder-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem 1.1rem; padding: 0 var(--finder-space) .45rem; }
.static-paths { margin-block: 1.5rem; color: var(--muted); }
.static-paths h2 { margin: 0; color: var(--ink); font-size: 1rem; }
.static-paths p { font-size: .86rem; }
.static-paths ul, .check-footer nav { display: flex; flex-wrap: wrap; gap: 0 1rem; margin: 0; padding: 0; list-style: none; }
.static-paths a, .check-footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: .82rem; }
.check-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; width: min(76rem, calc(100% - 2rem)); margin: auto; padding: .55rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

.topic-search { margin: 0 0 .75rem; }
.topic-search > label { display: block; margin-bottom: .35rem; font-size: .83rem; font-weight: 700; }
.topic-search input { display: block; width: 100%; min-height: 44px; padding: .55rem .75rem; border: 1px solid #9fb8ab; border-radius: .6rem; background: var(--white); color: var(--ink); }
.topic-search p { color: var(--muted); font-size: .85rem; }
.question[data-question="thema"] .options { max-height: min(41svh, 22rem); overflow-y: auto; overscroll-behavior: contain; padding: 4px; scrollbar-gutter: stable; }
.topic-prefill { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 1rem; margin: 0 0 .8rem; padding: 0 .75rem; border: 1px solid var(--line); border-radius: .6rem; background: #f0f7f2; font-size: .86rem; }

body:not([data-finder-state="questions"]) .check-intro { display: none; }
body:not([data-finder-state="questions"]) .finder { margin-top: 1.2rem; }
body[data-finder-state="result"] .static-paths { display: none; }
body[data-finder-state="analysis"] .reset-label,
body:not([data-finder-state="analysis"]) .cancel-label { display: none; }
.analysis { padding: clamp(2rem, 9vh, 4rem) var(--finder-space); text-align: center; }
.analysis-orbit { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 50%; background: #edf7f1; color: var(--green); }
.analysis-orbit::before { content: ""; position: absolute; inset: -4px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: finder-spin 1.6s linear infinite; }
.analysis h2 { margin: 0 auto; font-size: clamp(1.35rem, 4vw, 1.8rem); line-height: 1.25; text-wrap: balance; }
.analysis-track { width: min(100%, 19rem); height: 5px; margin: 1.15rem auto 0; overflow: hidden; border-radius: 1rem; background: #e8efea; }
.analysis-track > span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--green); transform-origin: left; animation: finder-assembly 3000ms ease both; }
@keyframes finder-spin { to { transform: rotate(360deg); } }
@keyframes finder-assembly { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.result-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 13rem); gap: 1.1rem; align-items: center; padding: var(--finder-space); border-radius: 1rem 1rem 0 0; background: #eff6f1; }
.ready-badge { display: inline-flex; align-items: center; gap: .35rem; color: var(--green); font-size: .8rem; font-weight: 750; }
.result h2 { margin: .35rem 0 .55rem; font-size: clamp(1.5rem, 4vw, 2.15rem); font-weight: 780; line-height: 1.15; letter-spacing: -.04em; text-wrap: pretty; }
.result-intro { margin: 0; color: var(--muted); font-size: .92rem; }
.result-photo { position: relative; align-self: stretch; min-height: 8rem; overflow: hidden; border-radius: .7rem; }
.result-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.result-photo > span { position: absolute; right: 8px; bottom: 8px; padding: 2px 5px; border-radius: 3px; background: #ffffffe6; color: #476056; font-size: 9px; }
.result-content { padding: .85rem var(--finder-space) 0; }
.result-primary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 52px; padding: .72rem .95rem; border: 1px solid var(--green); border-radius: .65rem; background: var(--green); color: white; text-decoration: none; }
.result-primary:hover { background: #104c3c; }
.result-primary strong { font-size: clamp(.95rem, 2.4vw, 1.12rem); line-height: 1.3; overflow-wrap: anywhere; }
.result-primary small { display: block; margin-top: .12rem; color: #e2f3ec; font-size: .76rem; }
.primary-arrow { flex: 0 0 auto; font-size: 1.25rem; }
.intent-check .result {
  display: grid;
  justify-items: center;
  gap: 1.4rem;
  max-width: 39rem;
  margin-inline: auto;
  padding: clamp(2rem, 9vh, 4.5rem) var(--finder-space);
  text-align: center;
}
.intent-check .result h2 { margin: 0; }
.intent-check .result h2:focus-visible { outline: none; }
.intent-check .result-primary {
  max-width: 100%;
  border-color: #b74419;
  background: #b74419;
  text-align: left;
}
.intent-check .result-primary:hover { border-color: #983712; background: #983712; }
.intent-check .result-primary small { color: white; }
.intent-check[data-finder-state="result"] .finder-controls { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .intent-check .result-primary[data-partner-action] { animation: partner-pulse 3s ease-out infinite; }
}
@keyframes partner-pulse {
  0%, 30%, 100% { box-shadow: 0 0 0 0 #b7441900; }
  7% { box-shadow: 0 0 0 4px #b744193d; }
  23% { box-shadow: 0 0 0 10px #b7441900; }
}
.result-offer-paths { margin-block: .8rem .35rem; }
.result-offer-paths h3 { margin: 0 0 .25rem; font-size: .92rem; }
.result-offer-paths ul { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.result-offer-paths a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .65rem; min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: .55rem; color: var(--green); font-size: .86rem; font-weight: 700; overflow-wrap: anywhere; }
.result-offer-paths a:hover { border-color: var(--green); }
.result-offer-paths small { color: var(--muted); }
.result-details { border-top: 1px solid var(--line); }
.result-details > :not(summary) { margin-block: 0 .8rem; }
.result-details summary { color: var(--ink); }
.answer-summary { display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; list-style: none; }
.answer-summary li { padding: .2rem .5rem; border-radius: .4rem; background: #edf5ef; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
#result-count { color: var(--muted); font-size: .86rem; }
#result-count:empty { display: none; }
.topic-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .65rem; }
.topic-card { min-width: 0; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: .65rem; background: #fbfdfa; overflow-wrap: anywhere; }
.topic-card h3 { margin: 0 0 .45rem; font-size: 1rem; line-height: 1.25; }
.topic-card h4 { margin: .5rem 0 .2rem; font-size: .86rem; }
.topic-card p, .topic-card li { color: var(--muted); font-size: .85rem; }
.topic-card ul, #general-links { padding-inline-start: 1.25rem; }
.topic-card a, #general-links a { display: inline-block; padding: .3rem 0; color: var(--green); font-size: .86rem; }
.partner-card { margin-block: .8rem; padding: .8rem; border: 1px solid var(--line); border-radius: .6rem; background: #fcfaf4; }
.partner-card .eyebrow, .partner-card p { color: var(--muted); font-size: .82rem; }
.partner-card h3 { margin: .25rem 0; font-size: 1rem; }

.finder-embedded .check-header,
.finder-ready.finder-embedded .check-intro,
.finder-ready.finder-embedded .static-paths,
.finder-ready.finder-embedded .check-footer { display: none; }
.finder-ready.finder-embedded .finder { width: 100%; margin: 0; border: 0; border-radius: 0; }
.finder-embedded .intent-check { --finder-space: clamp(1rem, 3vw, 1.35rem); }
.finder-embedded .intent-check .finder-head { padding-block: .7rem; border-bottom: 1px solid var(--line); }
.finder-embedded .intent-check .progress { max-width: 16rem; }
.finder-embedded .intent-check .form { padding-top: 1rem; }
.finder-embedded .intent-check .actions { background: var(--paper); }
.finder-embedded .intent-check[data-finder-state="questions"] .finder-controls { display: none; }
.finder-embedded .result-hero { border-radius: 0; }
.finder-embedded body { background: var(--white); }
@media (max-width: 36rem) {
  .check-header-end > span { display: none; }
  .options { grid-template-columns: minmax(0, 1fr); }
  .result-hero { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .result-photo { height: 5rem; min-height: 0; }
  .result-photo img { object-position: center 45%; }
}
@media (max-width: 36rem) and (max-height: 32rem) {
  .result-photo { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .progress > span, .analysis-orbit::before, .analysis-track > span { transition: none; animation: none; }
}
