/* THETA Verwaltungsrechner, Aufbau 1:1 nach buena-Nachfolge-Rechner (06.11.2026), THETA-Farben. */
:root {
  --vr-ink: oklch(21% 0.04 258);
  --vr-muted: oklch(42% 0.03 262);
  --vr-red: oklch(44.8% 0.166 24.8);
  --vr-red-hover: oklch(39% 0.15 24.8);
  --vr-line: oklch(88% 0.01 258);
  --vr-soft: oklch(96.5% 0.004 258);
  --vr-page: oklch(95.2% 0.004 258);
  --vr-focus: oklch(55% 0.13 258);
}

/* ---- Hero (Rechner ist der Hero) ---- */
.vr-hero { background: #fff; padding: clamp(4rem, 3rem + 5vw, 8rem) 1rem clamp(3rem, 2rem + 3vw, 5rem); text-align: center; }
.vr-hero-inner { max-width: 760px; margin: 0 auto; }
.vr-eyebrow { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 600; color: var(--vr-muted); }
.vr-h1 { margin: 0; font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--vr-ink); font-weight: 700; }
.vr-sub { margin: 1.2rem auto 0; max-width: 34em; font-size: 1.15rem; line-height: 1.5; color: var(--vr-muted); }
.vr-value { margin: 2.6rem 0 0.9rem; font-size: 1.45rem; font-weight: 700; color: var(--vr-red); font-variant-numeric: tabular-nums; }
.vr-track { position: relative; display: flex; align-items: center; gap: 0.75rem; max-width: 450px; margin: 0 auto; padding: 0.55rem 1rem; background: var(--vr-soft); border-radius: 999px; }
.vr-track-min, .vr-track-max { font-size: 0.95rem; color: var(--vr-muted); font-variant-numeric: tabular-nums; flex: none; }
.vr-track input[type="range"] { flex: 1; min-width: 0; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.vr-track input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--vr-red) var(--vr-fill, 50%), var(--vr-line) var(--vr-fill, 50%)); }
.vr-track input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--vr-line); }
.vr-track input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--vr-red); }
.vr-track input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -13px; border-radius: 50%; background: #fff; border: 2px solid var(--vr-red); box-shadow: 0 1px 4px rgb(0 0 0 / 0.18); }
.vr-track input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--vr-red); box-shadow: 0 1px 4px rgb(0 0 0 / 0.18); }
.vr-track input[type="range"]:focus-visible { outline: 3px solid var(--vr-focus); outline-offset: 4px; border-radius: 999px; }
.vr-start { margin: 2rem 0 0; }
.vr-micro { margin: 1.4rem auto 0; max-width: 46em; font-size: 0.95rem; line-height: 1.5; color: var(--vr-muted); }

/* ---- Pillen-Buttons ---- */
.vr-pill { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 48px; padding: 0.7rem 1.6rem; border-radius: 999px; font: inherit; font-size: 1.02rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease; }
.vr-pill--dark { background: var(--vr-red); color: #fff; border: 2px solid var(--vr-red); }
.vr-pill--dark:hover { background: var(--vr-red-hover); border-color: var(--vr-red-hover); color: #fff; }
.vr-pill--outline { background: #fff; color: var(--vr-ink); border: 2px solid var(--vr-line); }
.vr-pill--outline:hover { border-color: var(--vr-ink); }
.vr-pill--lg { min-height: 54px; padding: 0.85rem 2rem; font-size: 1.08rem; }
.vr-pill--block { width: 100%; }
.vr-pill:focus-visible, .vr-textlink:focus-visible { outline: 3px solid var(--vr-focus); outline-offset: 3px; }
.vr-pill[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---- Funnel-Modus: nur schlanke Kopfzeile + Karte ---- */
body.vr-mode { background: var(--vr-page); }
body.vr-mode > header.nav, body.vr-mode .vr-hero, body.vr-mode main > section:not(.vr-funnel), body.vr-mode > footer, body.vr-mode .skip-link { display: none !important; }
.vr-fhead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem clamp(1rem, 0.5rem + 2vw, 2rem); background: var(--vr-page); }
.vr-fhead[hidden] { display: none; }
.vr-fhead-logo img { display: block; height: 40px; width: auto; }
.vr-fhead-cta { display: flex; align-items: center; gap: 0.7rem; }
.vr-fhead-face { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.vr-fhead-text { font-size: 0.98rem; font-weight: 500; color: var(--vr-ink); }
.vr-fhead-btn { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.98rem; }
.vr-fhead-short { display: none; }
.vr-funnel { padding: clamp(1.5rem, 1rem + 2vw, 2.6rem) 1rem 4rem; background: var(--vr-page); }
.vr-funnel[hidden] { display: none; }

/* ---- Karte ---- */
.vr-card { position: relative; max-width: 600px; margin: 0 auto; background: #fff; border-radius: 16px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 28px rgb(15 25 50 / 0.06); overflow: hidden; }
.vr-card[hidden] { display: none; }
.vr-progress { height: 6px; background: var(--vr-line); }
.vr-progress-fill { display: block; height: 100%; width: 100%; background: var(--vr-red); transform: scaleX(0); transform-origin: left center; transition: transform 0.3s ease; }
.vr-count { margin: 0; padding: 0.7rem 1.6rem; text-align: right; font-size: 0.9rem; color: var(--vr-muted); border-bottom: 1px solid var(--vr-line); font-variant-numeric: tabular-nums; }
.vr-body { padding: 1.9rem clamp(1.2rem, 0.8rem + 2vw, 2rem) 0.6rem; }
.vr-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.vr-step[hidden] { display: none; }
.vr-q { display: block; margin: 0 0 1.3rem; padding: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--vr-ink); }
.vr-q:focus { outline: none; }
.vr-label { display: block; margin: 1.1rem 0 0.45rem; font-size: 1.02rem; font-weight: 600; color: var(--vr-ink); }
.vr-step > .vr-label:first-of-type { margin-top: 0; }
.vr-hint, .vr-text { margin: 0 0 0.8rem; font-size: 1.02rem; line-height: 1.5; color: var(--vr-muted); }
.vr-text { color: var(--vr-ink); }
.vr-input { display: block; width: 100%; min-height: 50px; padding: 0.7rem 1rem; font: inherit; font-size: 1.05rem; color: var(--vr-ink); background: #fff; border: 1.5px solid var(--vr-line); border-radius: 12px; box-sizing: border-box; }
.vr-input:focus { outline: none; border-color: var(--vr-focus); box-shadow: 0 0 0 3px oklch(55% 0.13 258 / 0.2); }
.vr-input[aria-invalid="true"] { border-color: var(--vr-red); }
.vr-prefix { display: flex; align-items: stretch; border: 1.5px solid var(--vr-line); border-radius: 12px; overflow: hidden; }
.vr-prefix > span { display: flex; align-items: center; padding: 0 0.9rem; font-weight: 600; color: var(--vr-muted); background: var(--vr-soft); border-right: 1.5px solid var(--vr-line); }
.vr-prefix .vr-input { border: 0; border-radius: 0; }
.vr-prefix:focus-within { border-color: var(--vr-focus); box-shadow: 0 0 0 3px oklch(55% 0.13 258 / 0.2); }
.vr-error { margin: 0.4rem 0 0; min-height: 0; font-size: 0.95rem; color: var(--vr-red); font-weight: 500; }
.vr-error:empty { display: none; }
.vr-info { margin: 1.1rem 0 0; padding: 0.9rem 1rem; background: var(--vr-soft); border-radius: 12px; font-size: 0.97rem; line-height: 1.5; color: var(--vr-muted); }
.vr-legal { margin: 1.2rem 0 0; font-size: 0.92rem; line-height: 1.5; color: var(--vr-muted); }
.vr-legal a { color: var(--vr-ink); }

/* ---- Antwortkarten (zweizeilig) ---- */
.vr-options { display: grid; gap: 0.7rem; }
.vr-yesno, .vr-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.vr-card-opt { position: relative; display: flex; align-items: center; gap: 0.85rem; min-height: 56px; padding: 0.85rem 1rem; background: #fff; border: 1.5px solid var(--vr-line); border-radius: 12px; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.vr-card-opt:hover { border-color: var(--vr-muted); }
.vr-card-opt input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--vr-red); }
.vr-card-opt:has(input:checked) { border-color: var(--vr-red); background: oklch(97% 0.012 25); }
.vr-card-opt:has(input:focus-visible) { outline: 3px solid var(--vr-focus); outline-offset: 2px; }
.vr-card-opt--center { justify-content: flex-start; }
.vr-opt-title { display: block; font-size: 1.02rem; font-weight: 600; color: var(--vr-ink); line-height: 1.3; }
.vr-opt-sub { display: block; margin-top: 0.15rem; font-size: 0.95rem; color: var(--vr-muted); line-height: 1.4; }
.vr-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.8rem; }
.vr-grid2 .vr-label { margin-top: 0; }
.vr-check { display: flex; gap: 0.8rem; align-items: flex-start; margin: 1rem 0 0; padding: 0.85rem 1rem; border: 1.5px solid var(--vr-line); border-radius: 12px; font-size: 0.97rem; line-height: 1.45; color: var(--vr-ink); cursor: pointer; }
.vr-check input { flex: none; width: 20px; height: 20px; margin: 0.1rem 0 0; accent-color: var(--vr-red); }
.vr-check:has(input:focus-visible) { outline: 3px solid var(--vr-focus); outline-offset: 2px; }
.vr-choice-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1.4rem; }
.vr-link-row { margin: -0.6rem 0 1rem; }
.vr-textlink { padding: 0; background: none; border: 0; font: inherit; font-size: 1rem; font-weight: 600; color: var(--vr-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }

/* ---- Navigation in der Karte ---- */
.vr-nav { display: flex; justify-content: space-between; gap: 0.8rem; padding: 1.2rem clamp(1.2rem, 0.8rem + 2vw, 2rem) 1.6rem; }
.vr-nav [data-vr-next][hidden] { display: none; }
.vr-status { margin: 0; padding: 0 clamp(1.2rem, 0.8rem + 2vw, 2rem) 1.2rem; font-size: 0.97rem; color: var(--vr-muted); }
.vr-status:empty { display: none; }
.vr-status.is-error { color: var(--vr-red); }
.vr-done .vr-body { padding-bottom: 1.8rem; }
.vr-small { font-size: 0.97rem; color: var(--vr-muted); }
.vr-small a { color: var(--vr-ink); }
.vr-below { max-width: 600px; margin: 1.4rem auto 0; text-align: center; font-size: 0.95rem; line-height: 1.5; color: var(--vr-muted); }
.vr-below-links { margin: 1rem 0 0; text-align: center; font-size: 0.92rem; }
.vr-below-links a { color: var(--vr-muted); }

/* ---- Ablauf (3 Spalten wie buena) ---- */
.theta-vr-how { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.theta-vr-how li { border-top: 1px solid var(--vr-line); padding-top: 1rem; }
.theta-vr-how-num { display: block; font-size: 1rem; color: var(--vr-muted); font-variant-numeric: tabular-nums; }
.theta-vr-how h3 { margin: 0.6rem 0 0.4rem; font-size: 1.15rem; color: var(--vr-ink); hyphens: manual; -webkit-hyphens: manual; }
.theta-vr-how p { margin: 0; color: var(--vr-muted); font-size: 1rem; line-height: 1.5; }

/* ---- Mobil: Zurueck/Weiter als feste Fussleiste ---- */
@media (max-width: 640px) {
  .vr-fhead-text, .vr-fhead-long { display: none; }
  .vr-fhead-short { display: inline; }
  .vr-grid2, .vr-roles, .vr-choice-buttons { grid-template-columns: 1fr; }
  .vr-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--vr-line); }
  .vr-nav .vr-pill { flex: 1; }
  .vr-funnel { padding-bottom: 7rem; }
  .theta-vr-how { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .vr-progress-fill, .vr-pill, .vr-card-opt { transition: none; }
}

/* ---- Ablauf und FAQ hell wie buena ---- */
main > section[aria-labelledby="vr-how-h"], main > section[aria-labelledby="vr-faq-h"] { background: #fff; color: var(--vr-ink); }
main > section[aria-labelledby="vr-how-h"] { border-top: 1px solid var(--vr-line); }
main > section[aria-labelledby="vr-how-h"] .h2, main > section[aria-labelledby="vr-faq-h"] .h2,
main > section[aria-labelledby="vr-faq-h"] summary, main > section[aria-labelledby="vr-how-h"] h3 { color: var(--vr-ink); }
main > section[aria-labelledby="vr-faq-h"] .eyebrow { color: var(--vr-muted); }
main > section[aria-labelledby="vr-faq-h"] details { border-color: var(--vr-line); }
main > section[aria-labelledby="vr-faq-h"] details p { color: var(--vr-muted); }
.vr-step > .vr-info:not(:last-child) { margin-bottom: 1.2rem; }
@media (max-width: 640px) { .vr-grid2 > div + div .vr-label { margin-top: 1.1rem; } }
main > section[aria-labelledby="vr-faq-h"] summary:hover, main > section[aria-labelledby="vr-faq-h"] summary:focus-visible { color: var(--vr-red); }
.vr-fhead-btn { white-space: nowrap; }
@media (max-width: 400px) { .vr-fhead-btn { padding: 0.5rem 0.9rem; font-size: 0.94rem; } .vr-fhead-logo img { height: 34px; } }
body.vr-mode .media-strip { display: none !important; }
