/* ============================================================
   Coffee-chat booking — widget + booking.html + admin.html.
   Reuses main.css tokens exclusively (--accent, --muted, --surface,
   --border, --radius) and the existing .card/.chip/.btn grammar.
   Lazy-loaded together with js/booking.js AFTER the human gate —
   never on the first-load path.
   ============================================================ */

/* ---------- widget: day chips (horizontal thumb row) ---------- */
.book-days {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding: .2rem 0 .55rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.book-days::-webkit-scrollbar { display: none; }

.book-day {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1.2;
  padding: .45rem .9rem;
}
.book-day small { font-weight: 400; font-size: .72rem; color: var(--muted); }

/* selected chip state — accent, like every active border on the site */
.chip[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
.chip[aria-pressed="true"] small { color: var(--accent); }

/* ---------- widget: slot pills ---------- */
.book-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .45rem;
  margin: .4rem 0 .2rem;
}
.book-slot {
  min-height: 44px;                /* thumb target */
  padding: .4rem .2rem;
  font-size: .88rem;
  text-align: center;
}

.book-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin: .9rem 0 .4rem;
}

/* ---------- widget: form ---------- */
.book-form { margin-top: .3rem; }

.book-mode { display: flex; gap: .55rem; }

.book-field {
  display: block;
  margin: 0 0 .65rem;
  font-size: .85rem;
  color: var(--muted);
}
.book-field input,
.book-field textarea {
  display: block;
  width: 100%;
  margin-top: .25rem;
  min-height: 44px;                /* thumb target */
  padding: .6rem .7rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;                 /* ≥16px — no iOS zoom-on-focus */
}
.book-field textarea { resize: vertical; }
.book-field input:focus-visible,
.book-field textarea:focus-visible,
.book-slot:focus-visible,
.book-day:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* honeypot: visually gone, still in the DOM for bots */
.book-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.book-cta { width: 100%; margin-top: .3rem; border: 0; cursor: pointer; font-family: inherit; }
.book-cta:disabled { opacity: .55; cursor: default; }

.book-msg { margin: .6rem 0 0; font-size: .85rem; color: var(--muted); }
.book-err { margin: .6rem 0 0; font-size: .85rem; font-weight: 700; color: var(--text); }
.book-err:empty { display: none; }

.book-tz { margin: .5rem 0 0; font-size: .72rem; color: var(--muted); }

.book-turnstile { margin: .4rem 0; }

/* ---------- booking.html: confirmation / status page ---------- */
.book-page { max-width: 40rem; }

/* ✓ badge = the VERIFIED-pill pattern (dino-verified-badge), local copy
   because dino.css never loads on this page */
.book-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: .3rem .75rem;
  margin-bottom: .8rem;
}

.book-facts {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.book-facts > div {
  display: flex;
  gap: .8rem;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: .55rem;
}
.book-facts dt {
  flex: none;
  width: 5.4rem;
  margin: 0;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}
.book-facts dd {
  margin: 0;
  font-size: .92rem;
  overflow-wrap: anywhere;         /* long notes/emails never overflow 390px */
  white-space: pre-line;
}

/* status pill: dashed like .soon while pending, solid once decided */
.book-status-pill {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  border: 1px dashed var(--accent);
  border-radius: 6px;
  padding: .1rem .45rem;
}
.book-status-pill[data-status="confirmed"] { border-style: solid; }
.book-status-pill[data-status="declined"] {
  color: var(--muted);
  border-color: var(--muted);
  border-style: solid;
}

.book-back { margin-top: 1.2rem; }

/* ---------- admin.html (owner-only, deliberately plain) ---------- */
.adm-token { display: flex; gap: .55rem; margin: 0 0 1rem; }
.adm-token[hidden] { display: none; }  /* [hidden] muss display:flex schlagen (sonst Login+Session gleichzeitig) */
.adm-token input {
  flex: 1;
  min-height: 44px;
  padding: .6rem .7rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.adm-token .btn { flex: none; padding: .8rem 1rem; border: 0; cursor: pointer; font-family: inherit; }

.adm-list { display: flex; flex-direction: column; gap: .75rem; }
.adm-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .8rem; }
.adm-actions .btn {
  flex: 1;
  min-width: 8rem;
  min-height: 44px;
  padding: .55rem .9rem;
  font-size: .88rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.adm-actions .btn-ghost { border: 1px solid var(--border); }
.adm-actions a.btn { text-align: center; }

/* ---------- inquiry sections as panel boxes with toggle rows
   (owner 2026-07-12: "diese Boxen wie unter CV-Datei"; each inquiry a
   clearly separated toggle "wie die Toggle-Listen mit Daten"). Each list
   sits inside one .card panel; items are <details> rows split by borders. */
.adm-panel { padding: 0; }                        /* rows carry their own padding */
.adm-panel .adm-list { gap: 0; }                  /* divided by borders, not gaps */
.adm-panel .adm-list > .book-msg { margin: 0; padding: 1rem; }  /* empty state, inside the box */

.adm-item { border-top: 1px solid var(--border); }
.adm-item:first-child { border-top: 0; }
.adm-item-head {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem;
  cursor: pointer;
  list-style: none;                               /* hide the default disclosure triangle */
}
.adm-item-head::-webkit-details-marker { display: none; }
.adm-item-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.adm-item-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .12rem; }
.adm-item-name { font-weight: 700; font-size: .95rem; overflow-wrap: anywhere; }
.adm-item-sub { font-size: .78rem; color: var(--muted); }
.adm-item-head .book-status-pill { flex: none; white-space: nowrap; }
.adm-item-caret { flex: none; display: flex; color: var(--muted); transition: transform .18s ease; }
.adm-item[open] > .adm-item-head .adm-item-name,
.adm-item[open] > .adm-item-head .adm-item-caret { color: var(--accent); }
.adm-item[open] > .adm-item-head .adm-item-caret { transform: rotate(180deg); }
.adm-item-body { padding: 0 1rem 1rem; }
.adm-item-body .book-facts { margin: .2rem 0 0; }
.adm-item-body .adm-actions { margin-top: .7rem; }
