/* ============================================================
   LUMIÈRE CALENDAR — Luxuriöser Verfügbarkeitskalender
   Escort-Model Plattform · hello-biz Child Theme
   ============================================================ */

/* ---------- Container ---------- */
.lumiere-calendar-wrap {
  --lc-bg:           #0A0A0C;
  --lc-surface:      #111114;
  --lc-surface-2:    #1A1A1F;
  --lc-gold:         #C9956A;
  --lc-gold-light:   #E8C4A0;
  --lc-gold-glow:    rgba(201, 149, 106, 0.12);
  --lc-gold-dim:     rgba(201, 149, 106, 0.06);
  --lc-text:         #F0EDE8;
  --lc-text-muted:   #8A8580;
  --lc-border:       rgba(201, 149, 106, 0.15);
  --lc-border-s:     rgba(201, 149, 106, 0.30);
  --lc-avail:        rgba(140, 198, 140, 0.18);
  --lc-avail-dot:    #7DC87D;
  --lc-booked:       rgba(180, 80, 80, 0.15);
  --lc-booked-dot:   #B46060;
  --lc-radius:       12px;
  --lc-transition:   300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

  font-family: 'Jost', system-ui, sans-serif;
  font-size: 15px;
  color: var(--lc-text);
  background: var(--lc-surface);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  padding: 2rem 2.5rem 2.5rem;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 80px rgba(201, 149, 106, 0.04);
  position: relative;
  overflow: hidden;
}

/* Goldener Glow oben rechts — Atmosphäre */
.lumiere-calendar-wrap::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(201, 149, 106, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- Header ---------- */
.lc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--lc-border);
}

.lc-header__label {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lc-gold);
  margin-bottom: 0.35rem;
}

.lc-header__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--lc-text);
  line-height: 1.15;
}

.lc-header__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lc-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--lc-border);
  border-radius: 50%;
  color: var(--lc-text-muted);
  cursor: pointer;
  transition: all var(--lc-transition);
  flex-shrink: 0;
}

.lc-nav-btn:hover {
  border-color: var(--lc-gold);
  color: var(--lc-gold);
  background: var(--lc-gold-dim);
}

.lc-nav-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.lc-month-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--lc-text);
  min-width: 160px;
  text-align: center;
}

/* ---------- Wochentage ---------- */
.lc-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 0.5rem;
}

.lc-weekday {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lc-text-muted);
  padding: 0.5rem 0;
}

/* ---------- Tages-Grid ---------- */
.lc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

/* ---------- Einzelner Tag ---------- */
.lc-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: default;
  transition: all var(--lc-transition);
  position: relative;
  min-height: 52px;
}

.lc-day__num {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--lc-text-muted);
  line-height: 1;
}

.lc-day__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin-top: 5px;
  opacity: 0;
  transition: opacity var(--lc-transition);
}

/* Leer (anderer Monat) */
.lc-day--empty {
  opacity: 0;
  pointer-events: none;
}

/* Vergangen */
.lc-day--past {
  opacity: 0.3;
  pointer-events: none;
}

.lc-day--past .lc-day__num {
  text-decoration: line-through;
}

/* Heute */
.lc-day--today .lc-day__num {
  color: var(--lc-gold-light);
  font-weight: 500;
}

.lc-day--today::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lc-gold);
}

/* Verfügbar (background wird per inline-style als Gradient gesetzt) */
.lc-day--available {
  cursor: pointer;
}

.lc-day--available .lc-day__num {
  color: var(--lc-text);
}

.lc-day--available .lc-day__dot {
  background: var(--lc-avail-dot);
  opacity: 1;
}

.lc-day--available:hover {
  filter: brightness(1.22);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Gebucht (background wird per inline-style als Gradient gesetzt) */
.lc-day--booked .lc-day__num {
  color: var(--lc-text-muted);
}

.lc-day--booked .lc-day__dot {
  background: var(--lc-booked-dot);
  opacity: 1;
}

/* Ausgewählt */
.lc-day--selected {
  background: var(--lc-gold-glow) !important;
  border: 1px solid var(--lc-border-s);
  box-shadow: 0 0 24px rgba(201, 149, 106, 0.15);
}

.lc-day--selected .lc-day__num {
  color: var(--lc-gold-light) !important;
  font-weight: 500;
}

/* ---------- Legende ---------- */
.lc-legend {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--lc-border);
  flex-wrap: wrap;
}

.lc-legend__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lc-text-muted);
}

.lc-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lc-legend__dot--available { background: var(--lc-avail-dot); }
.lc-legend__dot--booked    { background: var(--lc-booked-dot); }
.lc-legend__dot--today     { background: var(--lc-gold); }

/* ============================================================
   INLINE BUCHUNGSPANEL
   ============================================================ */

.lc-booking-panel {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--lc-border);
}

/* Header-Zeile */
.lc-bp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.lc-bp-eyebrow {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lc-gold);
  margin-bottom: 0.35rem;
}

.lc-bp-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 300;
  color: var(--lc-text);
  line-height: 1.2;
  margin: 0;
}

.lc-bp-date {
  font-size: 0.82rem;
  color: rgba(201, 149, 106, 0.75);
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

.lc-bp-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--lc-border);
  border-radius: 50%;
  color: var(--lc-text-muted);
  cursor: pointer;
  transition: all var(--lc-transition);
  font-size: 0.9rem;
  line-height: 1;
  margin-top: 0.25rem;
}

.lc-bp-close:hover {
  border-color: var(--lc-gold);
  color: var(--lc-gold);
}

/* 2-Spalten-Grid für kompakte Darstellung */
.lc-bp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.25rem;
  margin-bottom: 1.25rem;
}

.lc-field--span2 {
  grid-column: 1 / -1;
}

@media (max-width: 500px) {
  .lc-bp-grid {
    grid-template-columns: 1fr;
  }
  .lc-field--span2 {
    grid-column: 1;
  }
}

/* ---------- MODAL (Legacy) ---------- */
.lc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--lc-transition);
}

.lc-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lc-modal {
  background: #111114;
  border: 1px solid rgba(201, 149, 106, 0.2);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 520px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--lc-transition);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 60px rgba(201, 149, 106, 0.08);
}

.lc-modal-overlay.is-open .lc-modal {
  transform: translateY(0) scale(1);
}

/* Gold-Linie oben */
.lc-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2.5rem;
  right: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lc-gold), transparent);
}

.lc-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--lc-border);
  border-radius: 50%;
  color: var(--lc-text-muted);
  cursor: pointer;
  transition: all var(--lc-transition);
  font-size: 1rem;
  line-height: 1;
}

.lc-modal__close:hover {
  border-color: var(--lc-gold);
  color: var(--lc-gold);
}

.lc-modal__eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lc-gold);
  margin-bottom: 0.5rem;
}

.lc-modal__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: #F0EDE8;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.lc-modal__date {
  font-size: 0.85rem;
  color: rgba(201, 149, 106, 0.8);
  margin-bottom: 1.75rem;
  letter-spacing: 0.05em;
}

/* Formular */
.lc-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lc-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lc-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8A8580;
}

.lc-input,
.lc-textarea {
  background: #0A0A0C;
  border: 1px solid rgba(201, 149, 106, 0.15);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: #F0EDE8;
  width: 100%;
  transition: border-color 300ms ease;
  outline: none;
  -webkit-appearance: none;
}

.lc-input::placeholder,
.lc-textarea::placeholder {
  color: #4A4844;
}

.lc-input:focus,
.lc-textarea:focus {
  border-color: rgba(201, 149, 106, 0.45);
  box-shadow: 0 0 0 3px rgba(201, 149, 106, 0.06);
}

.lc-textarea {
  resize: vertical;
  min-height: 90px;
}

/* ---------- Modal — Scroll auf kleinen Screens ---------- */
.lc-modal {
  max-height: 92dvh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,149,106,.2) transparent;
}
.lc-modal::-webkit-scrollbar { width: 4px; }
.lc-modal::-webkit-scrollbar-thumb { background: rgba(201,149,106,.2); border-radius: 2px; }

/* ---------- Formular-Sektion (Trennlinie mit Label) ---------- */
.lc-form-section {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201,149,106,.5);
  margin: 0.5rem 0 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(201,149,106,.08);
}
.lc-form-section:first-of-type { margin-top: 0; }

/* ---------- Pflichtfeld-Stern & Optional-Label ---------- */
.lc-req {
  color: rgba(201,149,106,.7);
  font-size: 0.75em;
}
.lc-optional {
  color: rgba(138,133,128,.6);
  font-size: 0.9em;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- Hinweistext unter Feldern ---------- */
.lc-field-hint {
  font-size: 0.7rem;
  color: rgba(138,133,128,.55);
  letter-spacing: 0.03em;
  line-height: 1.4;
}

/* ---------- Zweispaltige Zeile (Uhrzeiten) ---------- */
.lc-field--row {
  flex-direction: row;
  gap: 0.75rem;
  align-items: flex-end;
}
.lc-field__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ---------- Time-Input ---------- */
.lc-input--time {
  text-align: center;
  cursor: pointer;
  /* native time picker styling */
  color-scheme: dark;
}
.lc-input--time::-webkit-calendar-picker-indicator {
  filter: invert(65%) sepia(20%) saturate(400%) hue-rotate(10deg);
  cursor: pointer;
  opacity: .6;
}
.lc-input--time::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* ── Pill-Auswahl (Art + Dauer) ── */
.lc-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lc-pill {
  padding: 0.38rem 1rem;
  border: 1px solid rgba(201,149,106,.2);
  border-radius: 999px;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: #8A8580;
  cursor: pointer;
  transition: border-color 200ms, color 200ms, background 200ms;
  user-select: none;
}
.lc-pill:hover { border-color: rgba(201,149,106,.5); color: #f0ede8; }
.lc-pill.is-active {
  border-color: #C9956A;
  color: #C9956A;
  background: rgba(201,149,106,.08);
}

.lc-submit {
  margin-top: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: #C9956A;
  color: #0A0A0C;
  border: none;
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 300ms ease;
  width: 100%;
}

.lc-submit:hover {
  background: #E8C4A0;
  box-shadow: 0 0 30px rgba(201, 149, 106, 0.25);
  transform: translateY(-1px);
}

.lc-submit:active {
  transform: translateY(0);
}

.lc-submit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  background: #555;
}

/* Zeitkonflikt-Hinweis unter dem Submit-Button */
.lc-time-conflict {
  margin-top: 0.6rem;
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
  color: rgba(185, 90, 90, 0.9);
  letter-spacing: 0.02em;
}

/* Erfolgsmeldung */
.lc-success {
  text-align: center;
  padding: 1rem 0 0.5rem;
  display: none;
}

.lc-success__icon {
  font-size: 2rem;
  color: var(--lc-avail-dot);
  margin-bottom: 0.75rem;
}

.lc-success__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: #F0EDE8;
  margin-bottom: 0.5rem;
}

.lc-success__text {
  font-size: 0.85rem;
  color: #8A8580;
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .lumiere-calendar-wrap {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .lc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .lc-header__nav {
    align-self: flex-end;
  }

  .lc-day {
    min-height: 40px;
    border-radius: 6px;
  }

  .lc-day__num {
    font-size: 0.8rem;
  }

  .lc-modal {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 400px) {
  .lc-day__dot {
    display: none;
  }

  .lc-grid {
    gap: 3px;
  }
}

/* ============================================================
   HOVER-POPOVER — Tages-Zeitfenster Übersicht
   position: fixed auf <body>, kein overflow-Clip
   ============================================================ */

.lc-popover {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  background: #111114;
  border: 1px solid rgba(201, 149, 106, 0.22);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.4);
  font-family: 'Jost', system-ui, sans-serif;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.lc-popover.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gold-Linie oben */
.lc-popover::before {
  content: '';
  position: absolute;
  top: 0; left: 1.5rem; right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 149, 106, 0.4), transparent);
}

/* "Verfügbar ab X" — Kopfzeile */
.lc-pop__early {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201, 149, 106, 0.85);
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201, 149, 106, 0.1);
}

/* Einzel-Slot-Zeile */
.lc-pop__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0;
  font-size: 0.78rem;
}

.lc-pop__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lc-pop__row--free  .lc-pop__dot { background: rgba(125, 200, 125, 0.85); }
.lc-pop__row--booked .lc-pop__dot { background: rgba(180, 96, 96, 0.7); }

.lc-pop__time {
  flex: 1;
  color: #c8c3bc;
  letter-spacing: 0.02em;
}

.lc-pop__row--booked .lc-pop__time {
  color: rgba(138, 133, 128, 0.6);
  text-decoration: line-through;
  text-decoration-color: rgba(138, 133, 128, 0.3);
}

.lc-pop__tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lc-pop__row--free   .lc-pop__tag { color: rgba(125, 200, 125, 0.75); }
.lc-pop__row--booked .lc-pop__tag { color: rgba(138, 133, 128, 0.45); }
