/* =============================================================================
   NATURHAUS WECHSELLAND  ·  Vorhaben-Check
   Loaded only on vorhaben-check.html. Builds on brand.css tokens, adds no new
   colours or fonts.
   Direction: the question is a quiet page with one big choice on it. The only
   loud element is the first question's photo tiles; everything after reads
   like a project page: serif caps headings, hairlines, photos, short text.
   ========================================================================== */

/* ---------- Start: intro + question ------------------------------------ */
.vc-start { padding-block: var(--s-12) var(--s-24); }
.vc-start__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--s-16);
  align-items: start;
}
.vc-intro { position: sticky; top: 140px; }
.vc-quiz { min-height: 560px; }
.vc-intro .kicker { display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.vc-intro__title { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.6rem); }
.vc-intro__lead { margin-top: var(--s-6); max-width: 36ch; }

@media (max-width: 900px) {
  .vc-start { padding-block: var(--s-8) var(--s-16); }
  .vc-start__grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .vc-intro { position: static; }
  /* keeps the footer from jumping up on the short list questions */
  .vc-quiz { min-height: 70svh; }
  .vc-intro__lead { margin-top: var(--s-4); font-size: var(--fs-base); max-width: 52ch; }
}

/* no-JS fallback */
.vc-nojs { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-8); }
.vc-nojs__links { display: flex; flex-wrap: wrap; gap: var(--s-6); margin-top: var(--s-6); }

/* ---------- One question ------------------------------------------------ */
.vc-q { transition: opacity .28s var(--ease), transform .28s var(--ease); }
.vc-q.is-entering { opacity: 0; transform: translateY(10px); }

.vc-q__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 48px; }
.vc-count { font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
.vc-back {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 48px; padding-inline: 0 var(--s-3);
  font-size: var(--fs-sm); font-weight: 600; color: var(--stone);
}
.vc-back:hover { color: var(--terracotta-700); }
.chev--back { width: .5em; height: .5em; transform: rotate(-135deg); }

/* progress: five segments */
.vc-bar { list-style: none; padding: 0; margin: var(--s-2) 0 var(--s-8); display: flex; gap: 6px; }
.vc-bar li { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.vc-bar li.is-done { background: var(--terracotta-700); }
.vc-bar li.is-now  { background: var(--stone); }

.vc-q__title {
  font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--tracking-disp);
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); line-height: 1.02;
  color: var(--stone);
}
.vc-q__title:focus { outline: none; }
.vc-q__title:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 6px; }
.vc-q__hint { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Answers: photo tiles (question 1) --------------------------- */
.vc-photos {
  margin-top: var(--s-8);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4);
}
.vc-photo {
  position: relative; display: block; width: 100%;
  aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); background: var(--clay-100);
  text-align: left; color: var(--paper);
}
.vc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter var(--dur) var(--ease); }
.vc-photo:hover img { filter: brightness(1.07); }
.vc-photo__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--s-12) var(--s-4) var(--s-4);
  background: linear-gradient(to bottom, transparent 0%,
    color-mix(in srgb, var(--stone) 70%, transparent) 45%,
    color-mix(in srgb, var(--stone) 92%, transparent) 100%);
}
.vc-photo__label {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-disp);
  font-size: clamp(1.1rem, .9rem + .9vw, 1.6rem); line-height: 1.08;
  hyphens: auto;
}
.vc-photo__sub { font-size: var(--fs-sm); line-height: 1.35; color: rgba(255,255,255,.9); }
/* chosen tile (visible when coming back to question 1) */
.vc-photo[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--terracotta-700); }
.vc-photo[aria-pressed="true"]::after {
  content: ""; position: absolute; top: var(--s-3); right: var(--s-3);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--terracotta-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}

@media (max-width: 620px) {
  .vc-photos { gap: var(--s-3); }
  .vc-photo { aspect-ratio: 4 / 5; }
  .vc-photo__cap { padding: var(--s-8) var(--s-3) var(--s-3); }
  .vc-photo__sub { font-size: var(--fs-xs); }
}

/* ---------- Answers: list buttons (questions 2 to 4) -------------------- */
.vc-list { margin-top: var(--s-8); display: grid; gap: var(--s-3); }
.vc-opt, .vc-check {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  width: 100%; min-height: 64px;
  padding: var(--s-4) var(--s-6);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  text-align: left; cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.vc-opt:hover, .vc-check:hover { border-color: var(--stone); }
.vc-opt__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vc-opt__label { font-size: var(--fs-lg); font-weight: 500; line-height: 1.3; color: var(--stone); }
.vc-opt__sub { font-size: var(--fs-sm); line-height: 1.4; color: var(--muted); }
.vc-opt .chev { width: .55em; height: .55em; color: var(--terracotta-700); transition: transform var(--dur) var(--ease); }
.vc-opt:hover .chev { transform: rotate(45deg) translate(2px, -2px); }
.vc-opt[aria-pressed="true"] { border-color: var(--terracotta-700); box-shadow: inset 4px 0 0 var(--terracotta-700); }

/* ---------- Answers: multiple choice (question 5) ----------------------- */
.vc-multi {
  margin: var(--s-8) 0 0; padding: 0; border: 0; min-width: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3);
}
.vc-check { justify-content: flex-start; position: relative; }
.vc-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vc-check__box {
  flex: none; width: 24px; height: 24px; border-radius: 4px;
  border: 1.5px solid var(--stone); background: var(--paper);
  display: grid; place-items: center;
}
.vc-check input:checked ~ .vc-check__box {
  background: var(--terracotta-700); border-color: var(--terracotta-700);
}
.vc-check input:checked ~ .vc-check__box::after {
  content: ""; width: 6px; height: 11px; margin-top: -3px;
  border: solid var(--paper); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.vc-check:has(input:checked) { border-color: var(--terracotta-700); }
.vc-check:has(input:focus-visible) { outline: 3px solid var(--terracotta); outline-offset: 3px; }
.vc-check .vc-opt__label { font-size: var(--fs-base); }
.vc-next { margin-top: var(--s-8); }
@media (max-width: 620px) {
  .vc-multi { grid-template-columns: 1fr; }
  .vc-opt, .vc-check { padding: var(--s-3) var(--s-4); }
  .vc-opt__label { font-size: var(--fs-base); }
}

/* ---------- Result: head ------------------------------------------------ */
.vc-res-head { padding-block: var(--s-12) var(--s-16); }
.vc-res-head__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-16); align-items: center;
}
.vc-res-head .kicker { display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.vc-res-title { font-size: clamp(2rem, 1.2rem + 3.2vw, 4.2rem); hyphens: manual; }
.vc-res-title:focus { outline: none; }
.vc-summary { margin-top: var(--s-6); color: var(--muted); max-width: 60ch; }
.vc-textlink {
  display: inline; padding: 0; min-height: 0;
  font-weight: 600; color: var(--terracotta-700);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.vc-textlink:hover { color: var(--stone); }
.vc-why { margin-top: var(--s-6); }
.vc-why p { font-size: var(--fs-lg); line-height: 1.6; max-width: 58ch; }
.vc-why p + p { margin-top: var(--s-3); }
.vc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-8); }
.vc-copied { min-height: 1.6em; margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--muted); }

.vc-res-head__fig { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--clay-100); }
.vc-res-head__img { width: 100%; height: 100%; object-fit: cover; }
.vc-res-head__fig.is-plan { background: var(--paper); aspect-ratio: 5 / 4; padding: var(--s-6); }
.vc-res-head__fig.is-plan img { object-fit: contain; }

@media (max-width: 900px) {
  .vc-res-head { padding-block: var(--s-8) var(--s-12); }
  .vc-res-head__grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .vc-res-head__fig { aspect-ratio: 4 / 3; }
  .vc-why p { font-size: var(--fs-base); }
}

/* ---------- Result: shared block layout --------------------------------- */
.vc-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-16); align-items: start; }
.vc-block__lead { margin-top: var(--s-4); color: var(--muted); max-width: 40ch; }
@media (max-width: 900px) { .vc-split { grid-template-columns: 1fr; gap: var(--s-8); } }

/* priorities */
.vc-prios { margin: 0; }
.vc-prios > div { padding-block: var(--s-6); border-top: 1px solid var(--line); }
.vc-prios > div:first-child { padding-top: 0; border-top: 0; }
.vc-prios dt { font-family: var(--font-display-text); font-size: var(--fs-xl); line-height: 1.2; color: var(--stone); }
.vc-prios dd { margin: var(--s-2) 0 0; color: var(--muted); max-width: 60ch; }

/* similar projects: list rows, not a card grid */
.vc-projects { list-style: none; padding: 0; margin: 0; }
.vc-projects li { border-top: 1px solid var(--line); }
.vc-projects li:first-child { border-top: 0; }
.vc-projects li:first-child .vc-proj { padding-top: 0; }
.vc-proj {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-6);
  align-items: center; padding-block: var(--s-6);
}
.vc-proj__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); transition: filter var(--dur) var(--ease); }
.vc-proj:hover .vc-proj__img { filter: brightness(1.06); }
.vc-proj__text { display: flex; flex-direction: column; gap: var(--s-2); }
.vc-proj__name {
  display: block;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-disp);
  font-size: var(--fs-xl); line-height: 1.05; color: var(--stone);
}
.vc-proj__name .chev { width: .32em; height: .32em; margin-left: .2em; vertical-align: .12em; border-width: 2px 2px 0 0; color: var(--terracotta); transition: transform var(--dur) var(--ease); }
.vc-proj:hover .vc-proj__name .chev { transform: rotate(45deg) translate(2px, -2px); }
.vc-proj__meta { color: var(--muted); line-height: 1.5; }
@media (max-width: 620px) {
  .vc-proj { grid-template-columns: 112px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
  .vc-proj__img { aspect-ratio: 1; }
  .vc-proj__name { font-size: var(--fs-lg); }
  .vc-proj__meta { font-size: var(--fs-sm); }
}

/* ---------- Result: process with photos -------------------------------- */
.vc-flow-head { max-width: 60ch; margin-bottom: var(--s-12); }
.vc-flow { list-style: none; padding: 0; margin: 0; }
.vc-step {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-12); align-items: center;
  padding-block: var(--s-8);
  border-top: 1px solid var(--line);
}
.vc-step:first-child { border-top: 0; padding-top: 0; }
.vc-step__fig { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--clay-100); }
.vc-step__img { width: 100%; height: 100%; object-fit: cover; }
.vc-step__fig.is-plan { background: var(--cream); padding: var(--s-4); }
.vc-step__fig.is-plan img { object-fit: contain; }
.vc-step__num {
  font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1;
  color: var(--terracotta-700); margin-bottom: var(--s-3);
}
.vc-step__title { font-size: var(--fs-xl); margin-bottom: var(--s-3); }
.vc-step__text p:not(.vc-step__num):not(.vc-step__diy) { color: var(--ink); max-width: 52ch; }
.vc-step__diy {
  display: inline-flex; align-items: center; gap: var(--s-2);
  margin-top: var(--s-4); font-size: var(--fs-sm); font-weight: 600; color: var(--terracotta-700);
}
.vc-step__diy .chev { width: .5em; height: .5em; }
@media (max-width: 760px) {
  .vc-step { grid-template-columns: 1fr; gap: var(--s-4); padding-block: var(--s-6); }
  .vc-step__text { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-3); align-items: baseline; }
  .vc-step__num { margin: 0; font-size: var(--fs-xl); }
  .vc-step__title { margin: 0 0 var(--s-2); }
  .vc-step__text > p:not(.vc-step__num) { grid-column: 1 / -1; }
}

/* ---------- Result: self-build ----------------------------------------- */
.vc-eigen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-16); align-items: center; }
.vc-eigen--text { grid-template-columns: 1fr; }
.vc-eigen__fig { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.vc-eigen__img { width: 100%; height: 100%; object-fit: cover; }
.vc-eigen__text h2 { margin-bottom: var(--s-6); }
.vc-eigen__text p { max-width: 58ch; }
.vc-eigen__text p + p { margin-top: var(--s-4); }
@media (max-width: 900px) {
  .vc-eigen { grid-template-columns: 1fr; gap: var(--s-8); }
  .vc-eigen__fig { aspect-ratio: 4 / 3; }
}

/* ---------- Result: closing ------------------------------------------- */
.vc-close__inner { text-align: center; }
.vc-close__inner .kicker { display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.vc-close .lead { color: rgba(255,255,255,.88); max-width: 56ch; margin: var(--s-6) auto 0; }
.vc-close__share { color: rgba(255,255,255,.78); max-width: 56ch; margin: var(--s-4) auto 0; }
.vc-close .vc-actions { justify-content: center; }
.vc-close .vc-copied { color: rgba(255,255,255,.82); }
.vc-btn-line { --btn-bg: transparent; --btn-fg: var(--paper); border: 1.5px solid rgba(255,255,255,.6); }
.vc-btn-line:hover { background: var(--paper); color: var(--stone); }
.vc-textlink--dark { color: var(--sand); padding-inline: var(--s-3); min-height: 48px; }
.vc-textlink--dark:hover { color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  .vc-q, .vc-q.is-entering { transition: none; opacity: 1; transform: none; }
}

/* Note below the project list: houses can be visited by arrangement */
.vc-visit { margin: var(--s-6) 0 0; max-width: 60ch; color: var(--muted); }

/* ---------- Result: phase plan (expandable, durations only inside) ----- */
.vc-plan-wrap { margin-bottom: var(--s-16); }
.vc-plan__h { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; margin-bottom: var(--s-3); }
.vc-plan__h--photos { margin-bottom: var(--s-8); }
.vc-plan__sum { color: var(--muted); max-width: 60ch; margin-bottom: var(--s-6); }
.vc-plan { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); max-width: 760px; }
.vc-phase { border-bottom: 1px solid var(--line); }
.vc-phase summary {
  display: grid; grid-template-columns: 2ch minmax(0, 1fr) 1em;
  column-gap: var(--s-4); row-gap: var(--s-1); align-items: baseline;
  padding-block: var(--s-4); cursor: pointer; list-style: none; min-height: 48px;
}
.vc-phase summary::-webkit-details-marker { display: none; }
.vc-phase summary:focus-visible { outline: 2px solid var(--terracotta-700); outline-offset: 2px; }
.vc-phase__num { font-family: var(--font-display); color: var(--terracotta-700); font-size: var(--fs-lg); }
.vc-phase__title { font-weight: 600; font-size: var(--fs-lg); }
.vc-phase__lead { grid-column: 2 / 3; color: var(--muted); }
.vc-phase__chev { width: .55em; height: .55em; align-self: center; transform: rotate(45deg); transition: transform var(--dur) var(--ease); }
.vc-phase details[open] .vc-phase__chev { transform: rotate(-45deg); }
.vc-phase__more { padding: 0 0 var(--s-6) calc(2ch + var(--s-4)); max-width: 62ch; }
.vc-phase__more ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--s-2); color: var(--ink); }
.vc-phase__dur { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 760px) {
  .vc-phase summary { column-gap: var(--s-3); }
  .vc-phase__title, .vc-phase__num { font-size: var(--fs-base); }
  .vc-phase__lead { font-size: var(--fs-sm); }
  .vc-phase__more { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .vc-phase__chev { transition: none; } }
