/* Guet gfunde · Anfrage (zu assets/js/seite-anfrage.js)
   Schrittanzeige in Maschinenschrift, Lineal mit einer Marke pro Schritt, Tastenkappen,
   echte Erreichbarkeit und ein Protokoll nach dem Absenden. Felder und Ablauf bleiben wie in main.js. */
.p-anfrage { --an-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; --an-haus: cubic-bezier(.2,.7,.2,1); }

/* ------------------------------------------------ Lineal über dem Formular */
.p-anfrage .funnel__progress { position: relative; height: 6px; }
.p-anfrage .funnel__bar { transition: width .6s var(--an-haus); box-shadow: 0 0 12px rgba(227, 6, 19,.55); }
.an-lineal { position: absolute; inset: 0; pointer-events: none; }
.an-lineal i { position: absolute; top: 0; width: 1px; height: 100%; background: rgba(10, 10, 10,.28); }
.an-lineal i.is-durch { background: rgba(5, 5, 5,.35); }

/* ------------------------------------------------ Schrittanzeige «Schritt 02 / 06» */
.p-anfrage .funnel__meta { align-items: center; }
.an-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.an-zaehler { font: 600 .8rem/1 var(--an-mono); letter-spacing: .02em; text-transform: none; color: var(--fg-muted); display: inline-flex; gap: .45em; align-items: baseline; }
.an-zaehler b { color: var(--fg); font-weight: 700; display: inline-block; min-width: 2ch; }
.an-zaehler .an-gesamt { color: var(--fg-muted); font-weight: 600; transition: color .4s var(--an-haus); }
.an-zaehler .an-gesamt.is-neu { color: var(--accent-text); animation: anRoll .5s var(--an-haus); }
@keyframes anRoll { from { transform: translateY(-.5em); opacity: 0; } to { transform: none; opacity: 1; } }
.an-unverbindlich { font: 500 .72rem/1 var(--an-mono); letter-spacing: .04em; color: var(--fg-muted); }

/* ------------------------------------------------ Tastenkappen (nur mit Maus und Tastatur sichtbar) */
.an-taste, .an-tasten kbd {
  display: none; font: 600 .72rem/1 var(--an-mono); color: var(--fg-muted); min-width: 1.6rem; height: 1.6rem; padding: 0 .35rem;
  align-items: center; justify-content: center; border-radius: 5px; background: var(--bg-raised, #fff);
  border: 1px solid rgba(10, 10, 10,.16); box-shadow: 0 2px 0 rgba(10, 10, 10,.14); flex: none;
  transition: transform .15s var(--an-haus), box-shadow .15s var(--an-haus), color .2s, border-color .2s;
}
.an-tasten { display: none; margin: 1.1rem 0 0; font: 500 .74rem/1.6 var(--an-mono); color: var(--fg-muted); flex-wrap: wrap; gap: .35rem 1.1rem; align-items: center; }
.an-tasten span { display: inline-flex; align-items: center; gap: .35rem; }
.an-tasten span[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .an-taste, .an-tasten kbd { display: inline-flex; }
  .an-tasten { display: flex; }
  .p-anfrage .option .an-taste { margin-left: auto; }
  .p-anfrage .option:hover .an-taste { border-color: var(--amber-500); color: var(--accent-text); }
  .p-anfrage .option input:checked + span .an-taste { background: var(--amber-500); border-color: var(--amber-600); color: var(--navy-950); box-shadow: 0 1px 0 var(--amber-600); }
  .an-taste.is-druck, .an-tasten kbd.is-druck { transform: translateY(2px); box-shadow: 0 0 0 rgba(10, 10, 10,.14); border-color: var(--amber-500); color: var(--accent-text); }
}

/* ------------------------------------------------ Erreichbarkeit unter dem Formular */
.an-live { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3rem .8rem; margin: 1.4rem 0 0; font: 500 .76rem/1.5 var(--an-mono); color: var(--fg-muted); text-align: center; }
.an-live[hidden] { display: none; }
.an-live__led { width: .55rem; height: .55rem; border-radius: 50%; background: var(--slate-300); flex: none; }
.an-live.is-offen .an-live__led { background: #3fb46f; animation: anLed 2.6s var(--an-haus) infinite; }
.an-live b { color: var(--fg); font-weight: 600; }
.an-live__sep { opacity: .45; }
@keyframes anLed { 0% { box-shadow: 0 0 0 0 rgba(63,180,111,.45); } 70%, 100% { box-shadow: 0 0 0 .5rem rgba(63,180,111,0); } }

/* ------------------------------------------------ Protokoll nach dem Absenden */
.an-protokoll { margin: 1.6rem auto 0; max-width: 30rem; text-align: left; padding: 1rem 1.15rem; border-radius: 0;
  background: var(--navy-950); color: #cfcfcf; font: 500 .8rem/1.75 var(--an-mono); }
.an-protokoll div { display: flex; gap: .6rem; white-space: nowrap; }
.an-protokoll dt { flex: 1; min-width: 0; overflow: hidden; color: #8c8c8c; }
.an-protokoll dt::after { content: " ........................................................"; color: #4a4a4a; }
.an-protokoll dd { margin: 0; flex: none; color: #f5f5f5; }
.an-protokoll dd.is-ok { color: #ff3b45; }
.an-protokoll div { animation: anZeile .45s var(--an-haus) both; }
.an-protokoll div:nth-child(2) { animation-delay: .25s; } .an-protokoll div:nth-child(3) { animation-delay: .5s; } .an-protokoll div:nth-child(4) { animation-delay: .75s; }
@keyframes anZeile { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 520px) { .an-live__sep { display: none; } .an-live [data-an-status] { flex-basis: 100%; } .an-protokoll { font-size: .74rem; } }
@media (prefers-reduced-motion: reduce) {
  .an-live.is-offen .an-live__led, .an-zaehler .an-gesamt.is-neu, .an-protokoll div { animation: none; }
}
/* Keine Hover-Bewegung (Vorgabe Geschäftsführer): Optionen heben sich nicht mehr an, nur der Rand wird Amber */
.p-anfrage .option:hover span { transform: none; }
