/* ========================================================================
   LUMIS ENERGIE — booking.css
   Kalender-Grid · Slot-Chips · Buchungsformular · Skeleton · Erfolg
   Mobile-First (375px) · 40px Tageszellen
   ======================================================================== */

.booking-hero { background: var(--navy); padding: 44px 0; text-align: center; }
.booking-hero h1 { margin-bottom: 10px; color: #fff; }
.booking-hero p { color: rgba(255,255,255,0.75); max-width: 52ch; margin: 0 auto; }

.booking-wrap { max-width: 560px; margin: 0 auto; }
.booking-panel { background: var(--lumis-white); border: 1px solid var(--lumis-border); border-radius: var(--lumis-radius-lg); box-shadow: var(--lumis-shadow); padding: 26px; }

/* Schritt-Anzeige */
.step-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.step-sub { color: var(--lumis-text-muted); font-size: 0.92rem; margin-bottom: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--lumis-orange); font-weight: 600; font-size: 0.92rem; margin-top: 18px; background: none; border: none; }

/* ── Kalender ────────────────────────────────────────────────────────── */
.booking-calendar { width: 100%; max-width: 480px; margin: 0 auto; }

.cal-nav { display: flex; align-items: center; justify-content: space-between; padding: 0 0 16px; }
.cal-nav-btn { width: 44px; height: 44px; border: none; background: var(--lumis-orange-light); color: var(--lumis-orange); border-radius: var(--lumis-radius-sm); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cal-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cal-nav h3 { font-family: var(--font-display); font-size: 18px; margin: 0; }

.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; font-weight: 600; color: var(--lumis-text-muted); padding-bottom: 8px; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }

.cal-day {
  aspect-ratio: 1; min-height: 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: var(--lumis-radius-sm); font-size: 14px; font-weight: 500; position: relative;
  cursor: default; color: var(--lumis-day-disabled); background: transparent; border: none;
}
.cal-day.empty { visibility: hidden; }

.cal-day.available {
  background: var(--lumis-white); color: var(--lumis-text); cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08); border: 1px solid var(--lumis-border);
  transition: background .15s, box-shadow .15s;
}
.cal-day.available:hover { background: var(--lumis-orange-light); box-shadow: var(--lumis-shadow); }
.cal-day.available:focus-visible { outline: 2px solid var(--lumis-orange); outline-offset: 2px; }
.cal-day.available::after { content: ''; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--lumis-day-dot); }

.cal-day.selected { background: var(--lumis-orange); color: #fff; border-color: var(--lumis-orange); }
.cal-day.selected::after { background: #fff; }

/* ── Skeleton ────────────────────────────────────────────────────────── */
@keyframes skeleton-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.cal-skeleton { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-skeleton-cell { aspect-ratio: 1; min-height: 40px; background: var(--lumis-border); border-radius: var(--lumis-radius-sm); animation: skeleton-pulse 1.4s ease-in-out infinite; }
.cal-skeleton-cell:nth-child(3n)   { animation-delay: 0.2s; }
.cal-skeleton-cell:nth-child(3n+1) { animation-delay: 0.4s; }

/* ── Slot-Chips ──────────────────────────────────────────────────────── */
.slot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
@media (min-width: 480px) { .slot-grid { grid-template-columns: repeat(3, 1fr); } }
.slot-chip {
  padding: 12px 8px; border-radius: var(--lumis-radius-sm);
  background: var(--lumis-slot-free-bg); color: var(--lumis-orange);
  border: 1.5px solid var(--lumis-orange); font-weight: 600; font-size: 13px;
  text-align: center; cursor: pointer; transition: background .15s, color .15s; line-height: 1.4;
}
.slot-chip:hover { background: var(--lumis-orange); color: #fff; }
.slot-empty { text-align: center; color: var(--lumis-text-muted); padding: 24px 0; }

/* ── Buchungsformular ────────────────────────────────────────────────── */
.booking-summary { background: var(--lumis-orange-light); border-radius: var(--lumis-radius-md); padding: 14px 18px; margin-bottom: 20px; font-weight: 600; color: var(--lumis-orange-dark); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.booking-form .form-field { margin-bottom: 16px; }
.booking-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; }
.booking-form input, .booking-form select, .booking-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font-family: var(--font-body); font-size: 1rem;
  border: 1.5px solid var(--lumis-border); border-radius: var(--lumis-radius-md); background: var(--lumis-white); color: var(--lumis-text);
}
.booking-form textarea { min-height: 92px; resize: vertical; }
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { outline: none; border-color: var(--lumis-orange); }
.booking-form .checkbox-field { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; }
.booking-form .checkbox-field input { width: auto; min-height: auto; margin-top: 3px; }
.booking-form .checkbox-field label { font-weight: 400; font-size: 0.9rem; margin: 0; }
.booking-form .checkbox-field a { color: var(--lumis-orange); text-decoration: underline; }

.booking-error { display: none; margin-top: 14px; padding: 12px 16px; border-radius: var(--lumis-radius-md); background: #FEF2F2; color: #dc2626; font-size: 0.9rem; }
.booking-error.show { display: block; }

/* ── Erfolg ──────────────────────────────────────────────────────────── */
.booking-success { text-align: center; padding: 20px 0; }
.booking-success .success-check { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--lumis-green-bg); color: var(--lumis-green); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.booking-success h2 { margin-bottom: 12px; }
.booking-success p { color: var(--lumis-text-muted); margin-bottom: 8px; }
.booking-success .success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* Sekundaerer CTA (Track A) */
.booking-cross-cta { text-align: center; margin-top: 22px; font-size: 0.9rem; color: var(--lumis-text-muted); }
.booking-cross-cta a { color: var(--lumis-orange); font-weight: 600; text-decoration: underline; }

/* ── Desktop ─────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .cal-day, .cal-skeleton-cell { min-height: 52px; font-size: 15px; }
  .cal-grid, .cal-skeleton { gap: 6px; }
}
@media (max-width: 560px) {
  .booking-success .success-actions .btn { width: 100%; }
}
