/* =========================================================================
   Nuvario Glasklar · /projekt (Projektanfrage)
   Nur Regeln dieser Seite, baut auf glasklar.css auf.
   Die Klassen und IDs des Fragebogens (.fs, .opt, .field, .summary, .fs-nav …)
   stammen aus dem Original, weil js/nuvario-projekt.js sie verwendet. Hier
   bekommen sie nur die neue Optik; Struktur und Verhalten bleiben gleich.
   ========================================================================= */

/* ---------- Pfeil in Buttons (Zeichen wie im Original) ---------- */
.btn-arrow { display: inline-block; line-height: 1; transition: transform .2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Seitenkopf mit Fragebogen-Vorschau ---------- */
.pj-hero .meta-line { margin-top: 26px; }
.pj-visual { position: relative; padding: 36px 20px 44px; max-width: 520px; width: 100%; margin-inline: auto; }
.pv-card {
  padding: 26px 26px 24px; border-radius: 30px;
  background: rgba(255,255,255,.66); box-shadow: var(--shadow-lift);
  animation: pvFloat 8s ease-in-out infinite alternate;
}
.pv-top { display: flex; align-items: center; gap: 14px; }
.pv-step { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); white-space: nowrap; }
.pv-bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(var(--brand-rgb),.12); overflow: hidden; }
.pv-bar i { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-deep), var(--brand-light)); transform-origin: 0 50%; transform: scaleX(.14); animation: pvBar 9s var(--ease) infinite; }
.pv-q { margin: 22px 0 14px; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; color: var(--ink); }
.pv-opts { list-style: none; display: grid; gap: 10px; }
.pv-opts li {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 16px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.35; color: var(--ink);
  background: rgba(255,255,255,.74); border: 1px solid rgba(var(--ink-rgb),.07);
  animation: pvPick 9s var(--ease) infinite;
}
.pv-opts li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb),.25); animation: pvDot 9s var(--ease) infinite; }
.pv-opts li:nth-child(2), .pv-opts li:nth-child(2)::before { animation-delay: 3s; }
.pv-opts li:nth-child(3), .pv-opts li:nth-child(3)::before { animation-delay: 6s; }
.pv-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 18px; padding: 0 20px;
  border-radius: 999px; background: var(--brand); color: #fff; font-size: 14.5px; font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 20px rgba(var(--brand-rgb),.28);
}
.pv-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap;
  background: rgba(255,255,255,.84); border: 1px solid rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 #fff, 0 14px 32px rgba(var(--brand-deep-rgb),.14);
  animation: pvFloat 7s ease-in-out infinite alternate-reverse;
}
.pv-chip .dot { animation: none; }
.pv-chip--a { left: 0; top: 6px; }
.pv-chip--b { right: 0; bottom: 10px; animation-duration: 9s; }

@keyframes pvFloat { to { transform: translateY(-8px); } }
@keyframes pvBar { 0%, 30% { transform: scaleX(.14); } 36%, 63% { transform: scaleX(.29); } 69%, 94% { transform: scaleX(.43); } 100% { transform: scaleX(.14); } }
@keyframes pvPick {
  0%, 5% { border-color: rgba(var(--ink-rgb),.07); background-color: rgba(255,255,255,.74); box-shadow: none; }
  9%, 30% { border-color: rgba(var(--brand-rgb),.55); background-color: rgba(var(--ice-rgb),.7); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),.1); }
  35%, 100% { border-color: rgba(var(--ink-rgb),.07); background-color: rgba(255,255,255,.74); box-shadow: none; }
}
@keyframes pvDot {
  0%, 5% { box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb),.25); }
  9%, 30% { box-shadow: inset 0 0 0 5px var(--brand); }
  35%, 100% { box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb),.25); }
}
.is-offscreen .pv-card, .is-offscreen .pv-chip, .is-offscreen .pv-opts li, .is-offscreen .pv-opts li::before, .is-offscreen .pv-bar i { animation-play-state: paused; }

/* ---------- Passung ---------- */
.fit { align-items: stretch; }
.fit .card { padding: 36px 36px 38px; }
.card-kicker--muted { color: var(--ink2); }
.card-kicker--muted .dot { background: rgba(var(--ink-rgb),.3); box-shadow: 0 0 0 4px rgba(var(--ink-rgb),.06); }
.fit h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.03em; margin-bottom: 8px; }
.card .fit-sub { font-size: 15.5px; color: var(--ink2); margin-bottom: 26px; }
.fit-list { list-style: none; display: grid; gap: 14px; }
.fit-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 16px; line-height: 1.55; color: var(--ink); }
.fit-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; line-height: 1; }
.fit-yes .fit-mark { background: rgba(var(--brand-rgb),.12); color: var(--brand); }
.fit-no .fit-mark { background: rgba(var(--ink-rgb),.07); color: var(--ink2); }
.card.glass.fit-yes { background: rgba(255,255,255,.68); box-shadow: var(--shadow-glass), 0 0 0 1.5px rgba(var(--brand-rgb),.2); }
.card.glass.fit-no { background: rgba(255,255,255,.42); }
.fit-no .fit-list li { color: var(--ink2); }

/* ---------- Ablauf ---------- */
.steps .card { padding: 30px 28px 30px; }
.step-no {
  display: block; margin-bottom: 30px;
  font-size: clamp(48px, 4.4vw, 60px); font-weight: 600; letter-spacing: -0.05em; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(160deg, var(--brand-deep), var(--brand) 55%, var(--brand-light));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--brand);
}
.steps .card p { margin-bottom: 26px; }
.step-meter { display: block; height: 4px; margin-top: auto; border-radius: 4px; background: rgba(var(--brand-rgb),.1); overflow: hidden; }
.step-meter i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand-light));
  transform-origin: 0 50%; transform: scaleX(var(--w, 1));
  transition: transform 1.1s var(--ease-out) .35s;
}
html.js .steps .card.rv:not(.in) .step-meter i { transform: scaleX(0); }

/* ---------- Referenz-Band ---------- */
.ref-band .final { padding: 96px 56px; }
.ref-band .final p { max-width: 720px; font-size: 18px; }
.ref-band .final h2 { margin-top: 18px; max-width: 1000px; }
.ref-dots { position: relative; display: flex; justify-content: center; gap: clamp(22px, 4vw, 48px); width: max-content; margin: 30px auto 6px; }
.ref-dots::before { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; margin-top: -1px; background: rgba(255,255,255,.3); border-radius: 2px; }
.ref-dots i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.18), 0 0 14px rgba(255,255,255,.55); }
.ref-dots::after {
  content: ''; position: absolute; left: 0; top: 50%; width: 36px; height: 6px; margin-top: -3px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff); box-shadow: 0 0 16px 4px rgba(255,255,255,.6);
  animation: refSpark 4.8s var(--ease) infinite;
}
@keyframes refSpark { 0% { left: -10px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 26px); opacity: 0; } }
.is-offscreen .ref-dots::after { animation-play-state: paused; }

/* ---------- Fragebogen ---------- */
.funnel-card {
  max-width: 860px; margin: 0 auto; padding: 44px 48px 42px; border-radius: 36px;
  background: rgba(255,255,255,.66); box-shadow: var(--shadow-lift);
}
.fs-head { margin-bottom: 30px; }
.fs-progress-text { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.fs-progress-text::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),.12); }
.fs-bar { height: 6px; margin-top: 14px; border-radius: 6px; background: rgba(var(--brand-rgb),.1); overflow: hidden; }
.fs-bar-fill {
  height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand) 60%, var(--brand-light));
  box-shadow: 0 0 14px rgba(var(--brand-rgb),.45);
  transition: width .6s var(--ease-out);
}

.fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.fs + .fs { margin-top: 48px; padding-top: 48px; border-top: 1px solid rgba(var(--ink-rgb),.08); }
.fs-legend {
  display: block; padding: 0; margin-bottom: 10px;
  font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; color: var(--ink);
  text-wrap: balance;
}
.fs-legend:focus { outline: none; }
.fs-legend:focus-visible { outline: 2px solid var(--brand); outline-offset: 6px; border-radius: 10px; }
.fs-hint { color: var(--ink2); font-size: 16px; margin-bottom: 26px; max-width: 660px; }

.opt-list { display: grid; gap: 10px; }
@media (min-width: 700px) {
  .fs[data-step="4"] .opt-list, .fs[data-step="5"] .opt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.opt {
  position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px; align-items: center;
  min-height: 64px; padding: 14px 20px; border-radius: 20px; cursor: pointer;
  background: rgba(255,255,255,.74); border: 1px solid rgba(var(--ink-rgb),.08);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(var(--ink-rgb),.03);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .25s var(--ease), transform .35s var(--ease-out);
}
.opt:hover { border-color: rgba(var(--brand-rgb),.35); background-color: rgba(255,255,255,.94); box-shadow: inset 0 1px 0 #fff, 0 10px 26px rgba(var(--brand-deep-rgb),.08); transform: translateY(-1px); }
.opt input {
  -webkit-appearance: none; appearance: none; margin: 0; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid rgba(var(--ink-rgb),.3); background: #fff; display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.opt input::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); transform: scale(0); transition: transform .3s var(--ease-out); }
.opt input:checked { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),.14); }
.opt input:checked::before { transform: scale(1); }
.opt:has(input:checked) {
  border-color: rgba(var(--brand-rgb),.6); background-color: rgba(var(--ice-rgb),.55);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(var(--brand-rgb),.22), 0 12px 28px rgba(var(--brand-rgb),.12);
}
@supports selector(:has(*)) {
  .opt input:focus-visible { outline: none; }
  .opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
}
.opt-text { font-size: 16.5px; line-height: 1.4; font-weight: 500; color: var(--ink); }
.opt-note { display: block; margin-top: 3px; font-size: 14px; font-weight: 400; color: var(--ink2); }

.summary-title { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin: 4px 0 12px; }
.summary { margin-bottom: 30px; padding: 4px 22px; border-radius: 22px; background: rgba(var(--ice-rgb),.4); border: 1px solid rgba(var(--brand-rgb),.14); }
.summary:empty { display: none; }
.summary-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(var(--ink-rgb),.07); }
.summary-row:last-child { border-bottom: 0; }
.summary-q { display: block; font-size: 13.5px; color: var(--ink2); margin-bottom: 2px; }
.summary-a { display: block; font-size: 16px; font-weight: 500; color: var(--ink); }
.summary-edit {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--brand); font-size: 14px; font-weight: 500;
  box-shadow: inset 0 1px 0 #fff, 0 2px 10px rgba(var(--brand-rgb),.12);
  transition: box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.summary-edit:hover { background: #fff; box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(var(--brand-rgb),.18); }
.summary-edit:focus-visible { border-radius: 999px; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); margin-bottom: 8px; }
.field .field-note { font-family: var(--font); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink3); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid rgba(var(--ink-rgb),.14); border-radius: 16px;
  font: 16px/1.4 var(--font); color: var(--ink); background: rgba(255,255,255,.9);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),.14); }
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink3); }

.honigtopf { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
#projektForm .form-hint-privacy { margin: 22px 0 0; }

.fs-error {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 12px 16px; border-radius: 14px;
  background: rgba(180,35,24,.07); border: 1px solid rgba(180,35,24,.16);
  color: #9B1C12; font-size: 15px; font-weight: 500; line-height: 1.45;
}
.fs-error::before { content: '!'; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: #B42318; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.fs-error[hidden] { display: none; }

.fs-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(var(--ink-rgb),.07); }
#fsWeiter { min-width: 190px; min-height: 52px; }
#fsWeiter[disabled] { opacity: .7; cursor: progress; }
.btn-back {
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.82); color: var(--ink2); font-size: 15.5px; font-weight: 500;
  box-shadow: inset 0 1px 0 #fff, 0 2px 8px rgba(var(--ink-rgb),.06);
  transition: color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-back:hover { color: var(--ink); background: #fff; box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(var(--ink-rgb),.08); }
.btn-back:focus-visible { border-radius: 999px; }
.fs-nav [hidden] { display: none !important; }
#fsMsg.is-info { margin-top: 18px; }

.fs-done { text-align: center; padding: 18px 0 4px; }
.fs-done::before {
  content: ''; display: block; width: 68px; height: 68px; margin: 0 auto 24px; border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.7 3.6 7.3-8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 30px no-repeat,
    linear-gradient(160deg, var(--brand-light), var(--brand-deep));
  box-shadow: 0 0 0 8px rgba(var(--brand-rgb),.1), 0 16px 36px rgba(var(--brand-rgb),.3);
}
.fs-done h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 14px; }
.fs-done p { color: var(--ink2); max-width: 540px; margin: 0 auto 10px; }
.fs-done a { color: var(--brand); }
.fs-done:focus { outline: none; }
.fs-done:focus-visible { outline: 2px solid var(--brand); outline-offset: 6px; border-radius: 20px; }
.fs-done[hidden], #projektForm[hidden] { display: none; }

.noscript-hint { margin-top: 28px; padding: 18px 22px; border-radius: 18px; background: rgba(var(--brand-rgb),.06); border: 1px solid rgba(var(--brand-rgb),.18); color: var(--ink2); font-size: 15.5px; }
.noscript-hint a { color: var(--brand); }

/* Ein-Schritt-Modus: erst aktiv, wenn JavaScript laeuft (Klasse js).
   Ohne JS bleiben alle Fragen sichtbar, der <noscript>-Hinweis nennt die E-Mail. */
.fs-head, .fs-nav { display: none; }
.js .fs-head { display: block; }
.js .fs-nav { display: flex; }
.js .fs { display: none; }
.js .fs.is-active { display: block; animation: fsIn .5s var(--ease-out) both; }
.js .fs + .fs { margin-top: 0; padding-top: 0; border-top: none; }
@keyframes fsIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  .pv-card, .pv-chip, .pv-opts li, .pv-opts li::before, .pv-bar i, .ref-dots::after, .js .fs.is-active { animation: none !important; }
  .pv-opts li:nth-child(2) { border-color: rgba(var(--brand-rgb),.55); background-color: rgba(var(--ice-rgb),.7); }
  .pv-opts li:nth-child(2)::before { box-shadow: inset 0 0 0 5px var(--brand); }
  .pv-bar i { transform: scaleX(.14); }
  .ref-dots::after { display: none; }
  .opt, .opt:hover { transform: none; }
  html.js .steps .card.rv .step-meter i { transform: scaleX(var(--w, 1)) !important; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1080px) {
  .page-hero--split.pj-hero .container { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 40px; }
}
@media (max-width: 899px) {
  .page-hero--split.pj-hero .container { grid-template-columns: 1fr; gap: 20px; }
  .pj-visual { max-width: 460px; }
  .funnel-card { padding: 36px 32px 34px; }
  .ref-band .final { padding: 80px 32px; }
}
@media (max-width: 600px) {
  .pj-visual { padding: 30px 6px 40px; }
  .pv-card { padding: 20px 18px 18px; border-radius: 26px; }
  .pv-q { font-size: 21px; margin: 18px 0 12px; }
  .pv-opts li { min-height: 48px; font-size: 14px; padding: 10px 14px; }
  .pv-opts li:nth-child(3) { display: none; }
  .pv-chip { font-size: 13px; padding: 8px 13px; }
  .pv-chip--a { top: 0; left: 4px; }
  .pv-chip--b { bottom: 8px; right: 4px; }

  .fit .card { padding: 28px 22px 30px; }
  .fit-list li { font-size: 15.5px; }
  .steps .card { padding: 26px 22px; }
  .step-no { margin-bottom: 22px; }

  .ref-band .final { padding: 64px 22px; }
  .ref-band .final p { font-size: 17px; }
  .ref-dots { gap: 22px; margin-top: 26px; }

  .funnel-card { padding: 26px 20px 24px; border-radius: 28px; }
  .fs-legend { font-size: 26px; }
  .fs-hint { font-size: 15.5px; margin-bottom: 20px; }
  .opt { min-height: 60px; padding: 13px 16px; gap: 14px; border-radius: 18px; }
  .opt-text { font-size: 16px; }
  .field-grid { grid-template-columns: 1fr; }
  .summary { padding: 4px 16px; }
  .summary-row { grid-template-columns: 1fr; gap: 8px; }
  .summary-edit { justify-self: start; }
  .fs-nav { flex-direction: column; align-items: stretch; }
  #fsWeiter, .btn-back { width: 100%; min-height: 54px; }
}
