/* ── Anfrage: mehrstufiges Formular ─────────────────────────
   Vier Schritte (Stil, Stelle & Größe, Idee, Kontakt) und eine
   Bestätigung. Die Felder entsprechen dem, was StudioOS später als
   Webseiten-Anfrage übernimmt. */

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.anfrage__lead { color: var(--on-dark-mid); max-width: 34ch; }
.wiz__map { display: none; gap: 0.2rem; }
.wiz__map li { display: flex; align-items: baseline; gap: 0.8rem; padding: 0.35rem 0; font: 700 1.25rem/1 var(--display); text-transform: uppercase; color: rgba(239, 232, 220, 0.3); transition: color 0.5s var(--ease); }
.wiz__map li span { font: 400 0.68rem var(--sans); letter-spacing: 0.2em; }
.wiz__map li.is-on { color: var(--bone); }
.wiz__map li.is-on span { color: var(--red); }
.wiz__map li.is-done { color: rgba(239, 232, 220, 0.55); }
.wiz__map li.is-done span::before { content: "✓ "; color: var(--red); }
@media (min-width: 48rem) { .wiz__map { display: grid; } }

.wiz {
  position: relative; display: grid; gap: 1.1rem;
  width: 100%; max-width: 40rem;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  background: var(--ink-2); border: 1px solid rgba(239, 232, 220, 0.08); border-radius: 22px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}
.wiz__top { display: flex; align-items: center; gap: 1rem; font-size: 0.68rem; letter-spacing: 0.22em; color: var(--on-dark-mid); }
.wiz__count b { color: var(--bone); font-weight: 500; }
.wiz__bar { flex: 1; height: 2px; background: rgba(239, 232, 220, 0.12); border-radius: 2px; overflow: hidden; }
.wiz__bar i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0.25); transition: transform 0.8s var(--ease); }
.wiz__stage { position: relative; min-height: 21rem; }
.wiz__step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.wiz__step.is-on { display: grid; gap: 1rem; align-content: start; animation: stepIn 0.6s var(--ease) both; }
.wiz__step.is-on.is-back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(2.5rem); filter: blur(8px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-2.5rem); filter: blur(8px); } }
.wiz__q { padding: 0; margin-bottom: 0.2rem; font: 900 clamp(1.6rem, 2.8vw, 2.3rem)/1 var(--display); text-transform: uppercase; }

/* Stil-Karten */
.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
.pick label { position: relative; aspect-ratio: 4 / 4.6; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--ink); isolation: isolate; }
.pick input, .who input, .consent input, .drop input { position: absolute; opacity: 0; pointer-events: none; }
.pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.7) brightness(0.55); transition: filter 0.6s var(--ease), transform 0.9s var(--ease); }
.pick span { position: absolute; left: 0.7rem; bottom: 0.6rem; font: 900 clamp(0.95rem, 1.5vw, 1.25rem)/1 var(--display); text-transform: uppercase; }
.pick label::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid transparent; transition: border-color 0.4s var(--ease); }
.pick label::before {
  content: "✓"; position: absolute; top: 0.55rem; right: 0.55rem; z-index: 1;
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 0.85rem;
  transform: scale(0); transition: transform 0.45s var(--ease);
}
.pick label:hover img { filter: grayscale(0.2) brightness(0.75); transform: scale(1.05); }
.pick label:has(input:checked) img { filter: none; transform: scale(1.05); }
.pick label:has(input:checked)::after { border-color: var(--red); }
.pick label:has(input:checked)::before { transform: scale(1); }
.pick label:has(input:focus-visible)::after { border-color: var(--bone); }
.pick__unsure { display: grid; place-items: center; text-align: center; border: 1px dashed rgba(239, 232, 220, 0.3); }
.pick__unsure span { position: static; font-size: 1rem; color: var(--on-dark-mid); }

/* Stelle und Größe */
.chips--wide span { padding: 0.55rem 0.95rem; }
.size { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.2rem; align-items: center; margin-top: 0.6rem; }
.size__viz { aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(239, 232, 220, 0.25); display: grid; place-items: center; }
.size__viz i {
  width: 30%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff5a4e, var(--red) 55%, var(--red-deep));
  box-shadow: 0 0 30px rgba(215, 38, 30, 0.45);
  transition: width 0.5s var(--ease);
}
.size__label { display: block; font-size: 0.8rem; color: var(--on-dark-mid); margin-bottom: 0.6rem; }
.size__label b { font: 900 1.5rem var(--display); color: var(--bone); margin-right: 0.3rem; }
.size__scale { display: flex; justify-content: space-between; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(239, 232, 220, 0.4); margin-top: 0.4rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: linear-gradient(90deg, var(--red) var(--fill, 16%), rgba(239, 232, 220, 0.18) var(--fill, 16%)); border-radius: 2px; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bone); border: 5px solid var(--red); transition: transform 0.3s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--bone); border: 5px solid var(--red); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }

/* Idee, Referenzen, Artist */
.field { position: relative; }
.field__count { position: absolute; right: 0; bottom: -1.2rem; font-size: 0.66rem; color: rgba(239, 232, 220, 0.4); }
.field textarea::placeholder, .field input::placeholder { color: rgba(239, 232, 220, 0.3); }
.drop { display: flex; gap: 0.6rem; align-items: stretch; margin-top: 0.6rem; }
.drop__zone {
  flex: 1; display: grid; gap: 0.15rem; align-content: center;
  padding: 0.8rem 1rem; border: 1px dashed rgba(239, 232, 220, 0.3); border-radius: 12px;
  cursor: pointer; transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.drop__zone b { font-weight: 500; font-size: 0.85rem; }
.drop__zone span { font-size: 0.72rem; color: var(--on-dark-mid); }
.drop__zone:hover, .drop.is-over .drop__zone { border-color: var(--red); background: rgba(215, 38, 30, 0.08); }
.drop input:focus-visible + .drop__zone { outline: 2px solid var(--red); outline-offset: 2px; }
.drop__thumbs { display: flex; gap: 0.4rem; }
.drop__thumbs figure { position: relative; width: 3.6rem; height: 3.6rem; border-radius: 10px; overflow: hidden; animation: stepIn 0.5s var(--ease) both; }
.drop__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.drop__thumbs button { position: absolute; top: 2px; right: 2px; width: 1.2rem; height: 1.2rem; border: 0; border-radius: 50%; background: rgba(12, 11, 11, 0.75); font-size: 0.7rem; line-height: 1; cursor: pointer; }
.who__label { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--on-dark-mid); margin-bottom: 0.6rem; }
.who__list { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.who__list label { position: relative; display: grid; justify-items: center; gap: 0.3rem; cursor: pointer; }
.who__list img, .who__any {
  width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px transparent; filter: grayscale(1);
  transition: box-shadow 0.4s var(--ease), filter 0.4s var(--ease), transform 0.4s var(--ease);
}
.who__any { display: grid; place-items: center; background: var(--ink); font: 900 1.3rem var(--display); color: var(--on-dark-mid); filter: none; }
.who__list i { font-style: normal; font-size: 0.7rem; color: var(--on-dark-mid); }
.who__list label:hover img { filter: grayscale(0.3); }
.who__list label:has(input:checked) img, .who__list label:has(input:checked) .who__any { box-shadow: 0 0 0 2px var(--ink-2), 0 0 0 4px var(--red); filter: none; transform: scale(1.06); }
.who__list label:has(input:checked) i { color: var(--bone); }
.who__list label:has(input:focus-visible) i { text-decoration: underline; }

/* Kontakt: Antwortweg als Schalter */
.consent { position: relative; display: block; font-size: 0.78rem; color: var(--on-dark-mid); cursor: pointer; padding-left: 1.8rem; }
.consent span::before {
  content: ""; position: absolute; left: 0; top: 0.1rem;
  width: 1.1rem; height: 1.1rem; border-radius: 5px; border: 1px solid rgba(239, 232, 220, 0.4);
  transition: background-color 0.3s, border-color 0.3s;
}
.consent:has(input:checked) span::before { background: var(--red) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3 3 7-7' fill='none' stroke='white' stroke-width='2'/></svg>") center / 80% no-repeat; border-color: var(--red); }
.consent:has(input:focus-visible) span::before { outline: 2px solid var(--bone); outline-offset: 2px; }
.is-bad { animation: shake 0.45s; }
.field.is-bad input, .field.is-bad textarea { border-color: var(--red); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Navigation und Fehler */
.wiz__err { min-height: 1.1em; font-size: 0.8rem; color: #ff6a5f; }
.wiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wiz__back { border: 0; background: none; cursor: pointer; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-mid); }
.wiz__back:hover { color: var(--bone); }
.wiz__back.is-hidden { visibility: hidden; }
.wiz.is-done .wiz__nav, .wiz.is-done .wiz__err, .wiz.is-done .wiz__top { display: none; }

/* Bestätigung */
.wiz__done { justify-items: center; text-align: center; padding-block: 1.5rem; outline: none; }
.done__mark { width: 4.5rem; height: 4.5rem; fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.done__mark circle { stroke-dasharray: 183; stroke-dashoffset: 183; animation: draw 0.9s var(--ease) 0.1s forwards; }
.done__mark path { stroke: var(--bone); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.6s var(--ease) 0.7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__h { margin: 0.4rem 0 0; font: 900 clamp(2rem, 4vw, 3rem)/1 var(--display); text-transform: uppercase; }
.done__p { color: var(--on-dark-mid); max-width: 34ch; }
.done__sum { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 0.4rem; }
.done__sum li { padding: 0.4rem 0.8rem; border-radius: 100px; background: var(--ink); font-size: 0.75rem; }
.wiz__again { margin-top: 0.8rem; border: 0; background: none; cursor: pointer; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-mid); text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 48rem) {
  .anfrage .ch__inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}
@media (max-width: 47.99rem) {
  .anfrage .ch__inner { align-content: start; }
  .anfrage .note { display: none; }
  .pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick label { aspect-ratio: 16 / 10; }
  .wiz__stage { min-height: 0; }
  .size { grid-template-columns: 4.5rem 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .wiz__step.is-on, .drop__thumbs figure { animation: none; }
  .done__mark circle, .done__mark path { animation: none; stroke-dashoffset: 0; }
}
