/* /testen: Testzugang Frage für Frage (Aufbau wie avosolutions.de/anfrage). Farben/Schriften aus home.css. */

.t-page { min-height: 100svh; display: flex; flex-direction: column; }
.t-top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.t-top img { height: 34px; width: auto; }
.t-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--muted); text-decoration: none; font-size: 1rem; }
.t-close:hover { color: var(--text); border-color: var(--text); }

.t-main { flex: 1; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
.t-form { width: min(680px, 100% - 32px); margin: 0 auto; padding: clamp(24px, 6vh, 72px) 0 16px; display: flex; flex-direction: column; flex: 1; }

/* Fortschritt */
.t-progress { margin-bottom: clamp(28px, 6vh, 64px); }
.t-progress-head { display: flex; justify-content: space-between; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.t-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.t-bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(.14); transition: transform .5s cubic-bezier(.16, 1, .3, 1); }

/* Schritte: nur der sichtbare bestimmt die Höhe */
.t-steps { position: relative; }
.t-step {
  position: absolute; inset: 0 0 auto 0; border: 0; padding: 0; margin: 0; min-width: 0;
  opacity: 0; transform: translateY(24px); pointer-events: none; visibility: hidden;
  transition: opacity .45s ease, transform .45s cubic-bezier(.16, 1, .3, 1), visibility 0s .45s;
}
.t-step:not(.is-active) { height: 0; overflow: hidden; }
.t-step.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .45s ease .1s, transform .55s cubic-bezier(.16, 1, .3, 1) .1s, visibility 0s; }

.t-q { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; font-size: clamp(1.8rem, 6vw, 3.1rem); line-height: 1.1; margin: 0 0 clamp(22px, 4vh, 36px); padding: 0; }
.t-input {
  width: 100%; background: transparent; color: var(--text); font: 600 1.3rem var(--font-body);
  border: 0; border-bottom: 2px solid var(--line-strong); border-radius: 0; padding: 12px 0; outline: none; transition: border-color .25s;
}
.t-input::placeholder { color: var(--dim); font-weight: 400; }
.t-input:focus { border-color: var(--accent); }
.t-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.t-row-plz { grid-template-columns: 7.5rem 1fr; margin-top: 18px; }
.t-row-phone { grid-template-columns: auto 1fr; align-items: end; gap: 14px; }
.t-grid { display: grid; gap: 18px; }
.t-dial { width: auto; font-size: 1.1rem; cursor: pointer; padding-right: 4px; }
.t-dial option { background: var(--bg-2); color: var(--text); }
.t-help { margin-top: 16px; color: var(--dim); font-size: .95rem; }
@media (max-width: 520px) { .t-row:not(.t-row-plz):not(.t-row-phone) { grid-template-columns: 1fr; gap: 6px; } .t-input { font-size: 1.15rem; } }

/* Auswahl-Chips */
.t-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.t-chip { position: relative; cursor: pointer; }
.t-chip input { position: absolute; opacity: 0; pointer-events: none; }
.t-chip span { display: inline-block; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-weight: 700; font-size: .98rem; transition: all .2s; }
.t-chip:hover span { color: var(--text); border-color: var(--text); }
.t-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.t-chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.t-plan { margin-top: 24px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.t-plan b { color: var(--text); }

/* Adress-Vorschläge */
.t-addr { position: relative; }
.t-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; display: grid; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px -16px oklch(0.05 0.03 258 / .9); }
.t-sug { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); font: 600 .95rem var(--font-body); cursor: pointer; }
.t-sug:last-child { border-bottom: 0; }
.t-sug small { color: var(--dim); font-weight: 400; }
.t-sug:hover, .t-sug.is-active { background: var(--accent-soft); }

/* Übersicht */
.t-summary { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0 0 26px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.t-summary dt { color: var(--dim); font-weight: 700; font-size: .9rem; }
.t-summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 520px) { .t-summary { grid-template-columns: 1fr; gap: 2px; } .t-summary dd { margin-bottom: 10px; } }
.t-agb { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--muted); }
.t-agb input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.t-agb a { color: var(--cyan); }
.t-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Navigation: klebt unten, wenn ein Schritt länger als der Bildschirm ist */
.t-error { min-height: 1.5rem; margin-top: 16px; color: oklch(0.78 0.12 25); font-size: .95rem; }
.t-nav {
  position: sticky; bottom: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 16px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}
.t-back { background: none; border: 0; color: var(--muted); font: 700 .98rem var(--font-body); cursor: pointer; padding: 10px 0; }
.t-back:hover { color: var(--text); }
.t-next:disabled { opacity: .6; transform: none; cursor: wait; }
.t-enter { text-align: right; color: var(--dim); font-size: .8rem; margin-top: 4px; }
@media (pointer: coarse) { .t-enter { display: none; } }
.t-legal { margin-top: auto; padding-top: 40px; text-align: center; font-size: .78rem; color: var(--dim); }
.t-legal a { color: inherit; }

/* Fertig */
.t-done { text-align: center; }
.t-check { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 28px; border-radius: 50%; background: var(--ok); color: var(--bg); font-size: 2rem; font-weight: 800; }
.t-done-text { color: var(--muted); max-width: 46ch; margin: 0 auto 18px; }
.t-done-mail { display: inline-block; margin-bottom: 30px; padding: 10px 16px; border-radius: 12px; background: var(--accent-soft); color: oklch(0.85 0.08 256); font-weight: 700; }

@media (prefers-reduced-motion: reduce) { .t-step, .t-step.is-active, .t-bar span { transition: none; } }

.t-addr-hint { margin-top: 10px; font-size: .9rem; color: var(--dim); }
.t-addr-hint.is-warn { color: var(--warn); font-weight: 700; }
