/* ════════════════════════════════════════════════════════════════════════
 * av-order.css — Geburtsdaten-Formular auf den Horoskop-Kategorieseiten
 * (Karte 427, Auftrag Martin 04.09.2026). Gehoert zu av-order.js.
 *
 * Farbtokens = BRIEF §4 (blau #1A2A6C, orange #E8731A, creme #FDF8F1,
 * Creme-Rand #EADFCF, Text #2B2F3A, gedaempft #5B6070). Bewusst als
 * Klartextwerte, damit die Datei ohne den Theme-LESS-Kontext funktioniert —
 * genauso wie av-admin.css es haelt.
 *
 * Zwei Zustaende der Schritte-Sektion, gesetzt von av-order.js:
 *   .avo-stage-1  nur die Geburtsdaten (Standard/Premium noch verborgen)
 *   .avo-stage-2  Standard/Premium sind eingeblendet
 * ════════════════════════════════════════════════════════════════════════ */

/* ── Zustaende der Schritte-Sektion ──────────────────────────────────── */
section.avo-stage-1 .av-var-col { display: none !important; }

/* Ohne die beiden Varianten-Spalten wuerde .tm-grid-expand > * {flex-grow:1}
   die Formularspalte auf volle Breite ziehen — ein Formular ueber 1200 px
   sieht kaputt aus. */
@media (min-width: 960px) {
  section.avo-stage-1 .av-order-col { max-width: 560px; }
}

section.avo-stage-2 .av-var-col { animation: avo-in .35s ease-out both; }
@keyframes avo-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  section.avo-stage-2 .av-var-col { animation: none; }
}

/* ── Formular ────────────────────────────────────────────────────────── */
.avo { margin-top: 16px; }

.avo-person { font-size: 15px; font-weight: 700; color: #1A2A6C; margin: 0 0 10px;
  text-transform: uppercase; letter-spacing: .06em; }
.avo-person-block + .avo-person-block { margin-top: 22px; padding-top: 18px;
  border-top: 1px solid #EADFCF; }

.avo-field { margin-bottom: 14px; position: relative; }
.avo-field > label { display: block; font-size: 13px; font-weight: 600; color: #5B6070;
  margin-bottom: 5px; }

.avo input[type="text"],
.avo input[type="email"],
.avo input[type="number"] {
  width: 100%; box-sizing: border-box; height: 44px; padding: 0 12px;
  border: 1px solid #EADFCF; border-radius: 8px; background: #fff;
  font-family: inherit; font-size: 15px; color: #2B2F3A;
  transition: border-color .15s, box-shadow .15s;
}
.avo input[type="text"]:focus,
.avo input[type="email"]:focus,
.avo input[type="number"]:focus {
  outline: none; border-color: #1A2A6C; box-shadow: 0 0 0 3px rgba(26, 42, 108, .12);
}
.avo input::placeholder { color: #9aa0ad; }

.avo-check { display: flex; align-items: center; gap: 8px; margin-top: 8px;
  font-size: 13px; color: #5B6070; cursor: pointer; }
.avo-check input { width: 16px; height: 16px; accent-color: #1A2A6C; flex: none; }

.avo-hint { font-size: 12px; color: #5B6070; margin-top: 5px; }

.avo-coords:not(:empty) { font-size: 12px; color: #5B6070; margin-top: 5px; }

/* ── Ortssuche ───────────────────────────────────────────────────────── */
.avo-city-field { position: relative; }
.avo-city-results {
  display: none; position: absolute; z-index: 30; left: 0; right: 0; top: 100%;
  margin-top: 4px; max-height: 260px; overflow-y: auto;
  background: #fff; border: 1px solid #EADFCF; border-radius: 8px;
  box-shadow: 0 12px 28px rgba(26, 42, 108, .14);
}
.avo-city-results.active { display: block; }
.avo-city-item { padding: 9px 12px; font-size: 14px; color: #2B2F3A; cursor: pointer;
  border-bottom: 1px solid #F3EADC; }
.avo-city-item:last-child { border-bottom: none; }
.avo-city-item:hover,
.avo-city-item.sel { background: #FDF8F1; color: #1A2A6C; }
.avo-city-empty { color: #5B6070; cursor: default; }
.avo-city-empty:hover { background: none; color: #5B6070; }

/* ── Meldung + Knopf ─────────────────────────────────────────────────── */
.avo-error { margin: 0 0 12px; padding: 9px 12px; border-radius: 8px;
  background: #FBECEA; color: #A5342A; font-size: 14px; }
.avo-error[hidden] { display: none; }

.avo-submit { width: 100%; margin-top: 4px; }
.avo-submit[disabled] { opacity: .6; cursor: default; }

/* ── Bestaetigung der Gratis-Deutung (Karte 516) ─────────────────────── */
/* Steht nach dem Abschicken an der Stelle des Formulars. Gruener Rahmen wie
   die Plakette „Derzeit kostenlos" auf /gratis — dieselbe Zusage, derselbe Ton. */
.avo-danke { margin-top: 16px; padding: 18px 18px 16px; border-radius: 10px;
  background: #F1F8F2; border: 1px solid #CBE3CE; }
.avo-danke h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #2E6B3A; }
.avo-danke p { margin: 0; font-size: 14px; color: #2B2F3A; }

/* Ohne JavaScript bleibt der Weg ueber die App erhalten. */
.av-order noscript p { margin: 12px 0 0; }
