/* ================================================================
   ASTRA – Ergänzungen zum AI-Frequency-Designsystem
   Nur neue Bausteine; Farben, Schrift, Radien und Bewegung aus tokens/home.css.
   ================================================================ */

/* ---------- Eingabe: ein Feld, drei Segmente (Datum · Uhrzeit · Ort) ---------- */
.a-birth { width: min(760px, 100%); position: relative; }
.a-field { align-items: stretch; gap: 0; padding: 7px 7px 7px 4px; position: relative; text-align: left; }
.a-seg { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 7px 20px 8px; border-left: 1px solid var(--hair); cursor: text; }
.a-seg:first-child { border-left: 0; padding-left: 24px; }
.a-seg--date { flex: 0 0 30%; } .a-seg--time { flex: 0 0 19%; } .a-seg--place { flex: 1 1 auto; }
.a-seg-label { margin-bottom: 4px; font-size: 9.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-mute); transition: color .6s; }
.a-seg:focus-within .a-seg-label { color: var(--bronze); }
.a-seg input { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 16.5px; line-height: 1.4; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.a-seg input::placeholder { color: #9a8d7c; }
.a-seg.is-off input { opacity: .3; pointer-events: none; }
.a-seg.is-off .a-seg-label { text-decoration: line-through; text-decoration-color: var(--hair-strong); }
.a-seg.is-bad .a-seg-label { color: #a0482c; }
.a-field .submit { align-self: center; margin-left: 4px; }

/* Ortsvorschläge – leichte Ivory-Fläche, wie das Feld selbst */
.a-suggest { position: absolute; z-index: 20; top: calc(100% + 8px); left: 46%; right: 0; margin: 0; padding: 6px; list-style: none; display: none;
  border: 1px solid var(--hair-strong); border-radius: 22px; background: rgba(251, 248, 242, .95);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 30px 64px -36px rgba(90, 64, 30, .5); }
.a-suggest.is-open { display: block; }
.a-suggest.is-up { top: auto; bottom: calc(100% + 8px); box-shadow: 0 -24px 60px -36px rgba(90, 64, 30, .45); }
.a-suggest li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 14px; border-radius: 16px; cursor: pointer; font-size: 14.5px; color: var(--ink); }
.a-suggest li small { font-size: 11.5px; color: var(--ink-mute); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-suggest li[aria-selected="true"], .a-suggest li:hover { background: rgba(201, 166, 107, .13); }
.a-suggest .a-suggest-more { justify-content: center; color: var(--bronze); font-size: 12px; letter-spacing: .06em; }

.home .form-hint { font-family: var(--sans); font-style: normal; font-size: 14px; }
.a-choice { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.a-choice button, .inspire button[aria-pressed] { transition: border-color .5s, color .5s, background .5s; }
.a-choice button { border: 1px solid var(--hair-strong); border-radius: 999px; background: rgba(251, 248, 242, .5); padding: 8px 16px 9px; color: var(--ink); font-size: 12.5px; font-weight: 500; }
.a-choice button:hover { background: rgba(255, 253, 249, .85); }
.inspire button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory-hi); }

/* Ohne WebGL: ruhige Linienzeichnung statt Globus */
.a-globe-fallback { fill: none; stroke: var(--bronze); stroke-width: .6; opacity: .7; width: min(60vh, 70%); height: auto; }
body.no-webgl .a-globe-fallback { height: auto; transform: translate(-50%, -50%); -webkit-mask-image: none; mask-image: none; }

/* ---------- Beschriftung der Himmelskörper (folgt der Bühne) ---------- */
.a-labels { position: fixed; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease-inout); }
.a-labels.is-on { opacity: 1; }
.a-lab { position: absolute; left: 0; top: 0; padding-left: 14px; white-space: nowrap; font-size: 9.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--on-dark-soft); will-change: transform; transition: opacity .8s; }
.a-lab::before { content: ""; position: absolute; left: 2px; top: 50%; width: 8px; height: 1px; background: currentColor; opacity: .55; }
/* Am rechten Rand: Beschriftung links vom Himmelskörper */
.a-lab.is-left { padding-left: 0; padding-right: 14px; translate: -100% 0; }
.a-lab.is-left::before { left: auto; right: 2px; }
.a-lab.is-below { opacity: .34; }
.a-lab.is-back { opacity: .5; }
.a-lab.is-below.is-back { opacity: .2; }
.a-lab--dir { padding-left: 0; color: var(--on-dark-mute); letter-spacing: .34em; transform-origin: center; }
.a-lab--dir::before { display: none; }

/* ---------- Die großen Drei ---------- */
.a-three { margin: clamp(18px, 3vh, 30px) 0 0; border-top: 1px solid var(--hair-dark); }
.a-three > div { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 4px 22px; padding: clamp(14px, 2.2vh, 20px) 0; border-bottom: 1px solid var(--hair-dark); }
.a-three dt { padding-top: 9px; font-size: 10.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-mute); }
.a-three dd { margin: 0; }
.a-sign { display: block; font-size: clamp(24px, 2.1vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; color: var(--on-dark); }
.a-det { display: block; margin-top: 5px; font-size: 13.5px; line-height: 1.55; color: var(--on-dark-soft); font-variant-numeric: tabular-nums; }
.a-three .is-open .a-sign { color: var(--on-dark-soft); }
.a-note { margin: clamp(16px, 2.4vh, 22px) 0 clamp(22px, 3.4vh, 30px); max-width: 48ch; font-size: 13px; line-height: 1.65; color: var(--on-dark-mute); }
.h-resonance .h-ask { font-size: 13px; line-height: 1.6; }

/* ---------- Smartphone ---------- */
@media (max-width: 560px) {
  .a-field { display: grid; grid-template-columns: 1fr 1fr auto; padding: 6px 6px 6px 2px; border-radius: 26px; }
  .a-seg { padding: 9px 14px 10px; }
  .a-seg:first-child { padding-left: 18px; }
  .a-seg--date { grid-column: 1; grid-row: 1; } .a-seg--time { grid-column: 2; grid-row: 1; }
  .a-seg--place { grid-column: 1 / 3; grid-row: 2; border-left: 0; border-top: 1px solid var(--hair); padding-left: 18px; }
  .a-field .submit { grid-column: 3; grid-row: 1 / 3; }
  .a-seg input { font-size: 16px; } /* ≥ 16 px: iOS zoomt beim Fokus nicht */
  .a-suggest { left: 0; }
  .a-three > div { grid-template-columns: 1fr; gap: 2px; }
  .a-three dt { padding-top: 0; }
  .a-lab { font-size: 8.5px; letter-spacing: .2em; }
}

/* Lange Zeilen beim Übergang (Ort, Datum, Zeitzone) dürfen umbrechen; nichts darf die Seite verbreitern */
html, body { overflow-x: clip; }
.h-whisper .h-line { max-width: min(92vw, 860px); margin-left: auto; margin-right: auto; white-space: normal; text-wrap: balance; }
@media (max-width: 860px) {
  .h-split { grid-template-columns: minmax(0, 1fr); }
  .h-col { min-width: 0; }
  .h-themes .h-sep { white-space: normal; } /* AF setzt alle spans auf nowrap – der Trenner muss umbrechen dürfen */
}
