/* =========================================================
   effektbar Termin – Buchungsseite (ADR-120), baut auf assets/app.css auf
   ========================================================= */

body { overflow-y: auto; }
.termin { min-height: 100dvh; height: auto; display: flex; flex-direction: column; align-items: center; padding: 28px 20px 84px; }
.termin .brandbar { max-width: 1040px; }
.booking { width: 100%; max-width: 1040px; padding: 34px; min-height: 520px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 440px; color: var(--fg-3); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Aufteilung: links Infos, rechts Auswahl */
.split { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 38px; }
.info { display: flex; flex-direction: column; gap: 16px; padding-right: 34px; border-right: 1px solid var(--line); }
.info h1 { margin: 0; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.12; letter-spacing: -.02em; font-weight: 650; }
.info .lead { white-space: pre-line; }
.hosts { display: flex; align-items: center; gap: 12px; }
.faces { display: flex; }
.faces .face + .face { margin-left: -12px; }
.face { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--bg-raised); background: color-mix(in srgb, var(--brand) 26%, #2f3033); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; overflow: hidden; flex: none; }
.face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.host-names { display: flex; flex-direction: column; line-height: 1.3; }
.host-names strong { font-weight: 600; }
.host-names span { font-size: 13px; color: var(--fg-3); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--fg-2); font-size: 15px; }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts svg { width: 18px; height: 18px; color: var(--brand-text); }
.tz-note { margin: 0; font-size: 13px; color: var(--fg-3); }

/* Kalender */
.pick { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 28px; align-items: start; }
.pick.no-day { grid-template-columns: minmax(0, 1fr); }
.pick h2, .step-title { margin: 0 0 14px; font-size: 18px; font-weight: 620; letter-spacing: -.01em; }
.month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.month-head strong { font-size: 16px; font-weight: 600; }
.month-nav { display: flex; gap: 4px; }
.month-nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.month-nav button:disabled { opacity: .35; cursor: default; }
.month-nav svg { width: 16px; height: 16px; }
.weekdays, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.weekdays span { text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); padding-bottom: 4px; }
.day { aspect-ratio: 1; max-height: 56px; border-radius: 14px; border: 0; background: transparent; color: var(--fg-3); font-size: 15px; font-weight: 500; cursor: default;
  position: relative; display: flex; align-items: center; justify-content: center; transition: background-color .2s var(--ease), transform .15s var(--ease); }
.day.free { color: var(--fg); background: color-mix(in srgb, var(--brand) 11%, transparent); cursor: pointer; font-weight: 620; }
.day.free:hover { background: color-mix(in srgb, var(--brand) 20%, transparent); transform: translateY(-1px); }
.day.free::after { content: ''; position: absolute; bottom: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--brand); }
.day.today { box-shadow: inset 0 0 0 1px var(--line-strong); }
.day.selected, .day.free.selected:hover { background: var(--accent); color: var(--on-accent); }
.day.selected::after { background: var(--on-accent); }
.day.outside { visibility: hidden; }
.month-empty { margin: 14px 0 0; font-size: 14px; color: var(--fg-3); }
.times { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.times-title { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.time { min-height: 44px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); background: var(--glass); color: var(--brand-text);
  font-size: 15px; font-weight: 620; cursor: pointer; transition: all .18s var(--ease); font-variant-numeric: tabular-nums; }
.time:hover { background: var(--brand); color: #fff; border-color: transparent; transform: translateY(-1px); }

/* Formular */
.form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.chosen { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-s); background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--fg); font-weight: 560; }
.chosen svg { color: var(--brand-text); }
.field textarea { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: var(--r-s); border: 1px solid var(--line-strong); background: var(--bg-raised); color: var(--fg); resize: vertical; min-height: 96px; }
.field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.field .optional { font-weight: 400; color: var(--fg-3); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--fg-2); font-size: 14px; cursor: pointer; padding: 4px 0; }
.back svg { width: 16px; height: 16px; }
.consent { margin: 0; font-size: 13px; color: var(--fg-3); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Bestätigung */
.done { max-width: 560px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 18px 0; }
.done h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.15; }
.check { width: 72px; height: 72px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 16%, transparent); display: flex; align-items: center; justify-content: center; color: var(--brand-text); animation: pop .5s var(--ease); }
.check svg { width: 34px; height: 34px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .2s var(--ease) forwards; }
.check.cancelled { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.summary { width: 100%; text-align: left; border: 1px solid var(--line); border-radius: var(--r-m); padding: 6px 18px; background: var(--glass); }
.summary div { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.summary div:last-child { border-bottom: 0; }
.summary dt { width: 92px; flex: none; color: var(--fg-3); font-size: 14px; }
.summary dd { margin: 0; font-weight: 520; word-break: break-word; }
.done .row { justify-content: center; }
.btn svg { width: 18px; height: 18px; }

/* Übersicht */
.pages-head { margin-bottom: 22px; }
.pages-head h1 { margin: 6px 0 0; font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -.02em; }
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.page-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--glass); color: var(--fg); text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease); position: relative; overflow: hidden; }
.page-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--page-color, var(--brand)); }
.page-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 40%, transparent); background: var(--glass-strong); }
.page-card h2 { margin: 0; font-size: 18px; font-weight: 620; }
.page-card p { margin: 0; color: var(--fg-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.page-card .facts { font-size: 13px; gap: 6px; }
.error-box { text-align: center; padding: 60px 10px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.error-box h1 { margin: 0; font-size: 26px; }

/* Eingebettet auf effektbar.de: ohne Hintergrund und Rahmen */
body.embed { background: transparent; }
body.embed .glow, body.embed .grain, body.embed .code-bg, body.embed .vignette, body.embed .legal, body.embed .brandbar, body.embed .theme-toggle { display: none; }
body.embed .termin { padding: 0; min-height: 0; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .info { padding-right: 0; border-right: 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .pick { grid-template-columns: 1fr; }
  .times { max-height: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .times-title { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .termin { padding: 16px 12px 84px; }
  .booking { padding: 22px 16px; border-radius: var(--r-m); }
  .weekdays, .days { gap: 4px; }
  .day { border-radius: 10px; font-size: 14px; }
  .summary dt { width: 74px; }
}

/* Fußzeile unter der Karte statt darüber (Seite scrollt) */
.legal { position: relative; transform: none; background: none; padding: 0 0 28px; margin-top: -56px; }
