/* =========================================================
   Drei R GmbH – Anfrage-Funnel
   ========================================================= */

body.funnel { min-height: 100vh; min-height: 100svh; overflow-x: hidden; }

/* ---------- Hintergrund ---------- */
.funnel-hg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.funnel-hg img { width: 100%; height: 100%; object-fit: cover; filter: blur(28px) saturate(1.1); transform: scale(1.15); opacity: .28; }
.funnel-hg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(220, 168, 0, .16), transparent 70%),
    linear-gradient(180deg, rgba(11, 10, 9, .55), rgba(11, 10, 9, .92) 70%);
}

/* ---------- Kopf ---------- */
.funnel-kopf {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px clamp(16px, 3vw, 36px);
}
.funnel-kopf .logo b { font-size: 18px; }
.schliessen {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glas); border: 1px solid var(--glas-rand); color: var(--creme);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background .3s, transform .4s var(--ease);
}
.schliessen:hover { background: rgba(246, 240, 225, .12); transform: rotate(90deg); }
.schliessen svg { width: 18px; height: 18px; }

.fortschritt { position: fixed; inset: 0 0 auto; height: 3px; z-index: 30; background: rgba(246, 240, 225, .06); }
.fortschritt span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-hell));
  box-shadow: 0 0 18px rgba(220, 168, 0, .7);
  transition: width .7s var(--ease);
}

/* ---------- Layout ---------- */
.funnel-raster {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1fr 360px; gap: clamp(30px, 4vw, 60px);
  max-width: 1240px; margin: 0 auto;
  padding: 110px clamp(16px, 3vw, 36px) 40px;
}
.buehne { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - 150px); }

/* ---------- Schritt ---------- */
.schritt-feld { position: relative; width: 100%; max-width: 760px; }
.frage-block { width: 100%; }
.frage-block.rein { animation: rein .75s var(--ease) both; }
.frage-block.raus { animation: raus .4s var(--ease) both; position: absolute; inset: 0 0 auto; pointer-events: none; }
.frage-block.zurueck.rein { animation-name: reinZurueck; }
.frage-block.zurueck.raus { animation-name: rausZurueck; }
@keyframes rein { from { opacity: 0; transform: translateY(46px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes raus { to { opacity: 0; transform: translateY(-46px); filter: blur(6px); } }
@keyframes reinZurueck { from { opacity: 0; transform: translateY(-46px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rausZurueck { to { opacity: 0; transform: translateY(46px); filter: blur(6px); } }

.frage-nr {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 13px; font-weight: 600; color: var(--gold-text);
}
.frage-nr svg { width: 14px; height: 14px; }
.frage {
  font-size: clamp(30px, 4.2vw, 50px); line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; color: var(--creme);
}
.frage em { font-style: italic; font-weight: 500; color: var(--gold-text); }
.hinweis { margin-top: 12px; font-size: 17px; color: var(--leise); }

/* gestaffeltes Einblenden der Inhalte */
.frage-block.rein .staffel > * { animation: rein .7s var(--ease) both; }
.frage-block.rein .staffel > *:nth-child(1) { animation-delay: .08s; }
.frage-block.rein .staffel > *:nth-child(2) { animation-delay: .13s; }
.frage-block.rein .staffel > *:nth-child(3) { animation-delay: .18s; }
.frage-block.rein .staffel > *:nth-child(4) { animation-delay: .23s; }
.frage-block.rein .staffel > *:nth-child(5) { animation-delay: .28s; }
.frage-block.rein .staffel > *:nth-child(6) { animation-delay: .33s; }
.frage-block.rein .staffel > *:nth-child(7) { animation-delay: .38s; }
.frage-block.rein .staffel > *:nth-child(8) { animation-delay: .43s; }

/* ---------- Auswahl-Karten ---------- */
.optionen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 34px; }
.optionen.drei { grid-template-columns: repeat(3, 1fr); }
.option {
  position: relative; text-align: left;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 18px;
  background: rgba(20, 18, 16, .72); border: 1px solid var(--linie);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--creme);
  transition: border-color .25s, background .25s, transform .35s var(--ease), box-shadow .3s;
}
.option:hover { border-color: rgba(220, 168, 0, .55); transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(220, 168, 0, .55); }
.option:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.option .ico {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--flaeche-2); border: 1px solid var(--linie); color: var(--gold);
  transition: background .25s, color .25s;
}
.option .ico svg { width: 22px; height: 22px; }
.option .txt { flex: 1; min-width: 0; }
.option b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.option small { display: block; font-size: 13px; color: var(--leise); margin-top: 2px; }
.option kbd {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font: 600 12px/1 "Jakarta", sans-serif; color: var(--leise);
  border: 1px solid var(--linie); background: var(--bg);
  transition: all .25s;
}
.option.gewaehlt { border-color: var(--gold); background: rgba(220, 168, 0, .12); }
.option.gewaehlt .ico { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.option.gewaehlt kbd { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.option.puls { animation: puls .45s var(--ease); }
@keyframes puls { 0% { transform: scale(1); } 40% { transform: scale(.97); } 100% { transform: scale(1); } }
.option.gross { flex-direction: column; align-items: flex-start; padding: 20px; gap: 18px; min-height: 150px; }
.option.gross kbd { position: absolute; top: 16px; right: 16px; }
.option.gross .ico { width: 52px; height: 52px; }

/* Häkchen bei Mehrfachauswahl */
.option .haken-box {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid rgba(246, 240, 225, .3);
  display: grid; place-items: center; transition: all .2s;
}
.option .haken-box svg { width: 14px; height: 14px; color: var(--bg); opacity: 0; transform: scale(.4); transition: all .25s var(--ease); }
.option.gewaehlt .haken-box { background: var(--gold); border-color: var(--gold); }
.option.gewaehlt .haken-box svg { opacity: 1; transform: none; }

/* ---------- Regler ---------- */
.regler-feld { margin-top: 40px; }
.regler-wert {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 26px;
  font-size: clamp(56px, 8vw, 96px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--creme);
}
.regler-wert span { font-variant-numeric: tabular-nums; }
.regler-wert small { font-size: 20px; font-weight: 500; letter-spacing: 0; color: var(--leise); }
input[type="range"].regler {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-hell) var(--p, 30%), rgba(246, 240, 225, .1) var(--p, 30%));
}
input[type="range"].regler::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--creme); border: 6px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(220, 168, 0, .2), 0 8px 20px rgba(0, 0, 0, .5);
  transition: transform .2s var(--ease);
}
input[type="range"].regler::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"].regler::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--creme); border: 6px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(220, 168, 0, .2);
}
.regler-skala { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--leise); }
.regler-stufen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.stufe {
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--linie); background: rgba(20, 18, 16, .7); color: var(--text);
  transition: all .2s;
}
.stufe:hover { border-color: rgba(220, 168, 0, .5); }
.stufe.aktiv { background: var(--gold); border-color: var(--gold); color: var(--bg); }

/* ---------- Eingaben ---------- */
.eingabe-feld { margin-top: 36px; display: grid; gap: 22px; }
.gross-eingabe {
  width: 100%; padding: 8px 0 14px; background: transparent; border: 0; border-bottom: 2px solid rgba(246, 240, 225, .2);
  color: var(--creme); font: 500 clamp(24px, 3.2vw, 36px)/1.3 "Jakarta", sans-serif; letter-spacing: -0.02em;
  outline: none; border-radius: 0; transition: border-color .3s;
}
.gross-eingabe:focus { border-color: var(--gold); }
.gross-eingabe::placeholder { color: rgba(246, 240, 225, .22); }
textarea.gross-eingabe { resize: none; min-height: 120px; font-size: clamp(20px, 2.4vw, 26px); }
.feld-label { font-size: 13px; font-weight: 600; color: var(--leise); margin-bottom: 4px; display: block; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.feld-fehler { min-height: 22px; font-size: 14px; color: #ff9b7a; }
.wackeln { animation: wackeln .45s; }
@keyframes wackeln { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- Navigation unten ---------- */
.steuerung {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 40px;
}
.steuerung .weiter[disabled] { opacity: .35; pointer-events: none; }
.tasten-hinweis { font-size: 13px; color: var(--leise); }
.tasten-hinweis kbd { padding: 2px 7px; border-radius: 6px; border: 1px solid var(--linie); background: var(--flaeche); font: 600 12px "Jakarta", sans-serif; color: var(--creme); }
.zurueck-knopf {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--leise); border: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.zurueck-knopf:hover { color: var(--creme); border-color: var(--linie); }
.zurueck-knopf svg { width: 16px; height: 16px; }
.zurueck-knopf[hidden] { display: none; }

/* ---------- Seitenleiste ---------- */
.seite { position: sticky; top: 110px; align-self: start; display: grid; gap: 14px; }
.karte {
  padding: 24px; border-radius: var(--radius);
  background: rgba(20, 18, 16, .78); border: 1px solid var(--linie);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.karte h3 { display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 600; color: var(--creme); margin-bottom: 16px; }
.karte h3 span { font-size: 13px; font-weight: 600; color: var(--gold-text); }
.zf-liste { list-style: none; display: grid; gap: 10px; }
.zf-liste li {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px;
  animation: rein .5s var(--ease) both;
}
.zf-liste li svg { width: 18px; height: 18px; color: var(--gold); margin-top: 1px; }
.zf-liste li small { display: block; font-size: 12px; color: var(--leise); }
.zf-liste li b { font-weight: 600; color: var(--creme); }
.zf-leer { font-size: 14px; color: var(--leise); }
.vertrauen { list-style: none; display: grid; gap: 12px; }
.vertrauen li { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--text); }
.vertrauen .ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--flaeche-2); border: 1px solid var(--linie); color: var(--gold); flex-shrink: 0; }
.vertrauen .ico svg { width: 18px; height: 18px; }
.direkt { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--leise); }
.direkt a { color: var(--creme); font-weight: 600; }
.direkt a:hover { color: var(--gold-text); }

/* ---------- Zusammenfassung (letzter Schritt) ---------- */
.uebersicht { margin-top: 30px; display: grid; gap: 8px; }
.ue-zeile {
  display: grid; grid-template-columns: 170px 1fr auto; gap: 16px; align-items: center;
  padding: 14px 18px; border-radius: 14px; background: rgba(20, 18, 16, .72); border: 1px solid var(--linie);
}
.ue-zeile small { font-size: 13px; color: var(--leise); }
.ue-zeile b { font-weight: 600; color: var(--creme); font-size: 15px; }
.ue-zeile button { font-size: 13px; font-weight: 600; color: var(--gold-text); }
.ue-zeile button:hover { text-decoration: underline; }
.senden-optionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.knopf.gross { height: 60px; padding-left: 28px; font-size: 16px; }
.knopf.gross .kreis { width: 48px; height: 48px; }
.knopf.dunkel { background: var(--flaeche); border: 1px solid var(--linie); color: var(--creme); }
.knopf.dunkel .kreis { background: var(--flaeche-2); color: var(--gold); }
.knopf.dunkel:hover { border-color: rgba(220, 168, 0, .5); }

/* ---------- Erfolg ---------- */
.erfolg { text-align: center; display: grid; justify-items: center; gap: 18px; max-width: 620px; margin: 0 auto; }
.erfolg-kreis { width: 110px; height: 110px; }
.erfolg-kreis circle { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 340; stroke-dashoffset: 340; animation: zeichnen 1s var(--ease) .1s forwards; }
.erfolg-kreis path { fill: none; stroke: var(--gold-hell); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: zeichnen .6s var(--ease) .8s forwards; }
@keyframes zeichnen { to { stroke-dashoffset: 0; } }
.erfolg p { font-size: 17px; color: var(--leise); }
canvas.konfetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

/* ---------- Start-Screen ---------- */
.start-zeile { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; font-size: 14px; color: var(--leise); }
.start-zeile span { display: inline-flex; align-items: center; gap: 8px; }
.start-zeile svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- Responsiv ---------- */
@media (max-width: 1080px) {
  .funnel-raster { grid-template-columns: 1fr; }
  .seite { display: none; }
}
@media (max-width: 680px) {
  .funnel-raster { padding-top: 92px; padding-bottom: 28px; }
  .buehne { justify-content: flex-start; min-height: auto; }
  .optionen, .optionen.drei { grid-template-columns: 1fr; gap: 10px; margin-top: 26px; }
  .option.gross { flex-direction: row; align-items: center; min-height: 0; padding: 16px 18px; }
  .option.gross kbd { position: static; }
  .option kbd { display: none; }
  .tasten-hinweis { display: none; }
  .ue-zeile { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .ue-zeile small { grid-column: 1 / -1; }
  .steuerung { position: sticky; bottom: 0; margin: 30px -16px 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, var(--bg) 60%, transparent); }
  .steuerung .weiter { flex: 1; justify-content: space-between; }
  .senden-optionen .knopf { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .frage-block.rein, .frage-block.raus, .frage-block.rein .staffel > * { animation: none !important; }
}
