/* ───────────────────────────────────────────────────────────────
   LISI Booking Modal — Termin-Buchungs-Dialog
   ─────────────────────────────────────────────────────────────── */

.booking-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 6, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(.2,.7,.2,1);
}
.booking-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.booking-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 16px));
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: var(--cream, #faf6ee);
  border-radius: 14px;
  box-shadow: 0 40px 100px -30px rgba(20, 14, 6, 0.55);
  z-index: 9001;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(.2,.7,.2,1), opacity 0.28s cubic-bezier(.2,.7,.2,1);
}
.booking-modal.is-open {
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: auto;
}

.booking-header {
  padding: 28px 32px 16px;
  border-bottom: 1px solid rgba(20, 14, 6, 0.08);
}
.booking-eyebrow {
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--leaf2, #6a8c4a);
  display: flex;
  align-items: center;
  gap: 8px;
}
.booking-title {
  font-family: var(--display, "Fraunces", serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 12px 0 6px;
  color: var(--ink, #2a2522);
}
.booking-subtitle {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink2, #5e554d);
}

.booking-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  color: var(--ink2, #5e554d);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}
.booking-close:hover {
  background: rgba(20, 14, 6, 0.06);
  color: var(--ink, #2a2522);
}

.booking-form {
  padding: 22px 32px 28px;
  display: grid;
  gap: 16px;
}
.booking-row {
  display: grid;
  gap: 16px;
}
@media (min-width: 520px) {
  .booking-row.cols-2 { grid-template-columns: 1fr 1fr; }
}

.booking-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.booking-field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink2, #5e554d);
}
.booking-field label .req {
  color: var(--terra, #d97757);
  margin-left: 2px;
}
.booking-field input,
.booking-field select,
.booking-field textarea {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid rgba(20, 14, 6, 0.14);
  border-radius: 8px;
  color: var(--ink, #2a2522);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
  outline: 0;
  border-color: var(--leaf, #4a6b32);
  box-shadow: 0 0 0 3px rgba(74, 107, 50, 0.14);
}
.booking-field textarea {
  resize: vertical;
  min-height: 96px;
}
.booking-field.has-error input,
.booking-field.has-error select,
.booking-field.has-error textarea {
  border-color: var(--terra, #d97757);
}
.booking-field-error {
  font-size: 12px;
  color: var(--terra, #d97757);
  min-height: 16px;
}

/* Honeypot — visuell unsichtbar, für Screenreader normal */
.booking-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.booking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.booking-privacy {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink2, #5e554d);
  opacity: 0.78;
  max-width: 320px;
}
.booking-privacy a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 2px;
}

.booking-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: var(--leaf, #4a6b32);
  color: #faf6ee;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.booking-submit:hover:not(:disabled) {
  background: #3d5828;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -14px rgba(20, 14, 6, 0.4);
}
.booking-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.booking-status {
  padding: 16px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 4px;
  display: none;
}
.booking-status.is-visible { display: block; }
.booking-status.is-success {
  background: rgba(74, 107, 50, 0.08);
  border: 1px solid rgba(74, 107, 50, 0.22);
  color: #3d5828;
}
.booking-status.is-error {
  background: rgba(217, 119, 87, 0.08);
  border: 1px solid rgba(217, 119, 87, 0.32);
  color: #a4522e;
}

/* Spinner im Submit-Button */
.booking-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(250, 246, 238, 0.35);
  border-top-color: #faf6ee;
  border-radius: 50%;
  animation: booking-spin 0.8s linear infinite;
}
@keyframes booking-spin {
  to { transform: rotate(360deg); }
}

/* Scrollbar im Modal dezent */
.booking-modal::-webkit-scrollbar { width: 8px; }
.booking-modal::-webkit-scrollbar-thumb {
  background: rgba(20, 14, 6, 0.16);
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .booking-modal,
  .booking-backdrop,
  .booking-submit,
  .booking-spinner { transition: none; animation: none; }
}
