/* ═══════════════════════════════════════════
   Conrad KI — Natives Buchungs-Widget CSS
   Nahtlos ins CI integriert (Cream #fbfaf8,
   Waldgrün #2c4a2e, Orange #c8531a, Ink #12110e)
   ═══════════════════════════════════════════ */

/* ── Floating Action Button ── */
.ck-fab {
  position: fixed;
  bottom: 100px;
  right: 100px;
  z-index: 9992;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent, #2c4a2e);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 24px 14px 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(44, 74, 46, 0.35);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ck-fab:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 16px 48px rgba(44, 74, 46, 0.5);
  background: #1e3520;
}
.ck-fab-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.ck-fab-label {
  line-height: 1;
}

/* ── Overlay ── */
.ck-booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 9991;
  background: rgba(18, 17, 14, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ck-booking-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── Drawer ── */
.ck-booking-drawer {
  position: fixed;
  top: 0;
  right: -520px;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  z-index: 9993;
  background: #fff;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.ck-booking-drawer.active {
  right: 0;
}

.ck-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(18, 17, 14, 0.08);
  flex-shrink: 0;
}
.ck-drawer-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink, #12110e);
}
.ck-drawer-icon {
  font-size: 1.5rem;
}
.ck-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt, #f3f1eb);
  color: var(--ink-muted, #5e5a52);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ck-drawer-close:hover {
  background: var(--accent, #2c4a2e);
  color: #fff;
  transform: rotate(90deg);
}

/* ── Step Indicator ── */
.ck-drawer-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  background: var(--bg, #fbfaf8);
  border-bottom: 1px solid rgba(18, 17, 14, 0.08);
  flex-shrink: 0;
}
.ck-step {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted, #5e5a52);
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.3s;
}
.ck-step.active {
  background: var(--accent, #2c4a2e);
  color: #fff;
}
.ck-step-divider {
  width: 16px;
  height: 1px;
  background: var(--border, rgba(18,17,14,0.08));
}

/* ── Body ── */
.ck-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.ck-step-content {
  padding: 32px 28px 28px;
}

.ck-step-heading {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink, #12110e);
  margin-bottom: 8px;
  line-height: 1.2;
}
.ck-step-sub {
  font-size: 0.95rem;
  color: var(--ink-muted, #5e5a52);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* ── Option Cards (Terminart) ── */
.ck-option-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}
.ck-option-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 2px solid var(--border, rgba(18,17,14,0.08));
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  background: var(--bg, #fbfaf8);
}
.ck-option-card:hover {
  border-color: var(--accent, #2c4a2e);
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(44, 74, 46, 0.08);
}
.ck-option-card.selected {
  border-color: var(--accent, #2c4a2e);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(44, 74, 46, 0.1);
}
.ck-option-icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
}
.ck-option-card strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink, #12110e);
}
.ck-option-desc {
  font-size: 0.9rem;
  color: var(--ink-muted, #5e5a52);
}
.ck-option-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-soft, rgba(44,74,46,0.08));
  color: var(--accent, #2c4a2e);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── Kalender ── */
.ck-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.ck-cal-month {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink, #12110e);
}
.ck-cal-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border, rgba(18,17,14,0.08));
  background: #fff;
  color: var(--ink, #12110e);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ck-cal-btn:hover {
  background: var(--accent, #2c4a2e);
  color: #fff;
  border-color: var(--accent, #2c4a2e);
}

.ck-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 24px;
}
.ck-cal-weekday {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted, #5e5a52);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 0;
}
.ck-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink, #12110e);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.ck-cal-day:hover:not(.empty):not(.past) {
  background: var(--accent-soft, rgba(44,74,46,0.08));
  transform: scale(1.1);
}
.ck-cal-day.selected {
  background: var(--accent, #2c4a2e);
  color: #fff;
  box-shadow: 0 4px 12px rgba(44, 74, 46, 0.3);
}
.ck-cal-day.past {
  color: var(--border, rgba(18,17,14,0.15));
  cursor: not-allowed;
}
.ck-cal-day.empty {
  cursor: default;
}
.ck-cal-day:focus-visible {
  outline: 2px solid var(--accent-cta, #c8531a);
  outline-offset: 2px;
}

/* ── Time Slots ── */
.ck-time-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink, #12110e);
  margin-bottom: 12px;
}
.ck-time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
@media (max-width: 400px) {
  .ck-time-grid { grid-template-columns: repeat(2, 1fr); }
}
.ck-time-slot {
  padding: 12px 8px;
  text-align: center;
  border: 2px solid var(--border, rgba(18,17,14,0.08));
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink, #12110e);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.ck-time-slot:hover {
  border-color: var(--accent, #2c4a2e);
  background: rgba(44, 74, 46, 0.04);
}
.ck-time-slot.selected {
  border-color: var(--accent, #2c4a2e);
  background: var(--accent, #2c4a2e);
  color: #fff;
  box-shadow: 0 4px 12px rgba(44, 74, 46, 0.2);
}
.ck-time-slot.booked {
  text-decoration: line-through;
}
.ck-check {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--accent-cta, #c8531a);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.ck-no-slots {
  font-size: 0.9rem;
  color: var(--ink-muted, #5e5a52);
  font-style: italic;
  margin-bottom: 24px;
}

/* ── Booking Summary ── */
.ck-booking-summary {
  background: var(--bg, #fbfaf8);
  border: 1px solid var(--border, rgba(18,17,14,0.08));
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}
.ck-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft, rgba(18,17,14,0.04));
  font-size: 0.9rem;
}
.ck-summary-item:last-child {
  border-bottom: none;
}
.ck-summary-label {
  color: var(--ink-muted, #5e5a52);
  font-weight: 500;
}
.ck-summary-item span:last-child {
  font-weight: 700;
  color: var(--ink, #12110e);
}

/* ── Form Fields ── */
.ck-form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.ck-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ck-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink, #12110e);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ck-field input,
.ck-field textarea {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  padding: 14px 16px;
  border: 2px solid var(--border, rgba(18,17,14,0.08));
  border-radius: 10px;
  background: var(--bg, #fbfaf8);
  color: var(--ink, #12110e);
  transition: all 0.3s;
  outline: none;
  width: 100%;
}
.ck-field input:focus,
.ck-field textarea:focus {
  border-color: var(--accent, #2c4a2e);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(44, 74, 46, 0.08);
}
.ck-field input::placeholder,
.ck-field textarea::placeholder {
  color: var(--ink-muted, #5e5a52);
  opacity: 0.4;
}

/* ── Buttons ── */
.ck-step-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.ck-btn {
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ck-btn-primary {
  background: var(--accent, #2c4a2e);
  color: #fff;
  box-shadow: 0 8px 20px rgba(44, 74, 46, 0.2);
  flex: 1;
  justify-content: center;
}
.ck-btn-primary:hover:not(:disabled) {
  background: #1e3520;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(44, 74, 46, 0.3);
}
.ck-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.ck-btn-ghost {
  background: transparent;
  color: var(--ink-muted, #5e5a52);
  border: 2px solid var(--border, rgba(18,17,14,0.08));
}
.ck-btn-ghost:hover {
  border-color: var(--accent, #2c4a2e);
  color: var(--accent, #2c4a2e);
  background: rgba(44, 74, 46, 0.04);
}

/* ── Confirmation Step ── */
.ck-confirm-step {
  text-align: center;
}
.ck-confirm-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.ck-confirm-note {
  background: var(--accent-soft, rgba(44,74,46,0.08));
  border: 1px solid var(--accent, #2c4a2e);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}
.ck-confirm-note strong {
  font-size: 0.9rem;
  color: var(--accent, #2c4a2e);
  display: block;
  margin-bottom: 6px;
}
.ck-confirm-note p {
  font-size: 0.9rem;
  color: var(--ink-muted, #5e5a52);
  line-height: 1.5;
}

/* ── Scrollbar ── */
.ck-drawer-body::-webkit-scrollbar {
  width: 6px;
}
.ck-drawer-body::-webkit-scrollbar-track {
  background: transparent;
}
.ck-drawer-body::-webkit-scrollbar-thumb {
  background: var(--border, rgba(18,17,14,0.08));
  border-radius: 3px;
}

/* ── Responsive: Mobile ── */
@media (max-width: 540px) {
  .ck-booking-drawer {
    max-width: 100%;
    right: -100%;
  }
  .ck-drawer-header {
    padding: 18px 20px;
  }
  .ck-step-content {
    padding: 24px 20px;
  }
  .ck-fab {
    bottom: 100px;
    right: 100px;
    padding: 12px 18px 12px 16px;
    font-size: 0.9rem;
  }
  .ck-option-card {
    padding: 18px;
  }
}
