/* ======================================================
   buchen.css – Buchungsseite Kornpforte
   ====================================================== */

/* Booking page body */
.booking-page {
  background: var(--light);
}

/* ======================================================
   BOOKING HERO
   ====================================================== */
.booking-hero {
  position: relative;
  min-height: 36vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.booking-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center 40%;
  background-color: var(--dark-3);
}

.booking-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(26,22,18,.8) 0%, rgba(26,22,18,.65) 100%);
}

.booking-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 6rem 1.5rem 2.5rem;
}

/* ======================================================
   BOOKING MAIN
   ====================================================== */
.booking-main {
  padding-block: 3rem 4rem;
}

/* ===== Schritt-Anzeige ===== */
.booking-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.step {
  display: flex;
  align-items: center;
  gap: .6rem;
  opacity: .4;
  transition: opacity .3s;
}

.step--active  { opacity: 1; }
.step--done    { opacity: .75; }

.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--light-2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  border: 2px solid var(--light-2);
  transition: background .3s, color .3s, border-color .3s;
}

.step--active .step-num {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.step--done .step-num {
  background: var(--dark-3);
  color: var(--gold);
  border-color: var(--gold-dark);
}

.step-label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--text);
}

.step-divider {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--light-2);
  margin-inline: .75rem;
}

/* ===== Booking Card ===== */
.booking-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  animation: fadeUp .5s ease both;
}

.booking-card--hidden {
  display: none;
}

.booking-card-header {
  background: var(--dark);
  color: var(--white);
  padding: 1.75rem 2.5rem;
  border-bottom: 2px solid var(--gold-dark);
}

.booking-card-header--flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.booking-card-header h2 {
  font-size: 1.5rem;
  margin-bottom: .25rem;
}

.booking-card-header p {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
}

/* ===== Form Grid ===== */
.booking-form-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0;
}

.booking-field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.booking-field > label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===== Calendar Field ===== */
.booking-field--calendar {
  padding: 2rem 2rem 2rem 2.5rem;
  border-right: 1px solid var(--light-2);
}

/* Date range display bar */
.date-range-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--light);
  border: 1.5px solid var(--light-2);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  cursor: default;
  position: relative;
}

.date-box {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 1;
}

.date-box svg {
  width: 20px; height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

.date-box-label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.date-box-value {
  display: block;
  font-size: .95rem;
  color: var(--text);
  font-weight: 500;
}

.date-box-value.selected {
  color: var(--gold-dark);
  font-weight: 600;
}

.date-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.date-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: .2em .4em;
  border-radius: var(--radius);
  transition: color var(--trans), background var(--trans);
}
.date-clear:hover { color: #e05050; background: rgba(220,80,70,.08); }

/* Calendar wrap */
.calendar-wrap {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

/* Single calendar */
.calendar {
  flex: 1;
  min-width: 0;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cal-nav {
  background: none;
  border: 1px solid var(--light-2);
  border-radius: var(--radius);
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color var(--trans), color var(--trans);
}
.cal-nav:hover { border-color: var(--gold); color: var(--gold); }
.cal-nav svg { width: 16px; height: 16px; }

.cal-month-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

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

.cal-day-name {
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: .3em 0;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text);
  transition: background .15s, color .15s;
  position: relative;
}

.cal-day:hover:not(.cal-day--empty):not(.cal-day--past) {
  background: var(--light-2);
}

.cal-day--empty { cursor: default; }

.cal-day--past {
  color: var(--light-2);
  cursor: not-allowed;
}

.cal-day--today {
  font-weight: 700;
  color: var(--gold-dark);
}
.cal-day--today::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.cal-day--checkin,
.cal-day--checkout {
  background: var(--gold) !important;
  color: var(--dark) !important;
  font-weight: 700;
  border-radius: var(--radius);
}

.cal-day--in-range {
  background: rgba(184,150,90,.15);
  border-radius: 0;
  color: var(--text);
}

.cal-day--checkin { border-radius: var(--radius) 0 0 var(--radius); }
.cal-day--checkout { border-radius: 0 var(--radius) var(--radius) 0; }
.cal-day--same-day { border-radius: var(--radius) !important; }

/* ===== Right sidebar selectors ===== */
.booking-selectors {
  padding: 2rem 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Select */
.select-wrap {
  position: relative;
}

.select-wrap select {
  width: 100%;
  appearance: none;
  background: var(--light);
  border: 1.5px solid var(--light-2);
  border-radius: var(--radius);
  padding: .75em 2.5em .75em 1em;
  color: var(--text);
  font-size: .95rem;
  cursor: pointer;
  transition: border-color var(--trans);
}

.select-wrap select:focus {
  outline: none;
  border-color: var(--gold);
}

.select-arrow {
  position: absolute;
  right: .75rem;
  top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Guest counter */
.guest-counter-group {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.guest-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--light);
  border: 1.5px solid var(--light-2);
  border-radius: var(--radius);
  padding: .6em 1em;
}

.guest-label {
  font-size: .88rem;
  color: var(--text);
}

.counter {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.counter-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--light-2);
  background: var(--white);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--trans), background var(--trans);
}
.counter-btn:hover { border-color: var(--gold); background: rgba(184,150,90,.08); }
.counter-btn:disabled { opacity: .35; cursor: not-allowed; }

.counter-val {
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  color: var(--text);
}

/* Multi-room selector (Buchungsformular) */
.booking-room-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .5rem; }
.booking-room-row { display: flex; align-items: center; gap: .6rem; }
.booking-room-row .select-wrap { flex: 1; }
.btn-add-room { font-size: .82rem; padding: .45em 1em; }

/* Override room-qty/remove colors for light theme */
.booking-room-row .room-qty-btn {
  border-color: var(--light-2);
  background: var(--white);
  color: var(--text);
}
.booking-room-row .room-qty-btn:hover { border-color: var(--gold); background: rgba(184,150,90,.08); color: var(--text); }
.booking-room-row .room-qty-val { color: var(--text); }
.booking-room-row .room-remove-btn {
  border-color: var(--light-2);
  color: var(--text-muted);
  background: var(--white);
}
.booking-room-row .room-remove-btn:hover { border-color: #cc3333; color: #cc3333; }

/* Nights badge */
.nights-badge {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--dark);
  border-radius: var(--radius);
  padding: .75em 1em;
  color: rgba(255,255,255,.7);
  font-size: .88rem;
}
.nights-badge svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

/* Submit button */
.booking-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .9em 1.5em;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background var(--trans), opacity var(--trans), transform var(--trans);
}
.booking-submit-btn svg { width: 18px; height: 18px; }
.booking-submit-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
}

/* Hint */
.booking-hint {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--text-muted);
}
.booking-hint svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }

/* ======================================================
   SWOPPEN SOFERU PLACEHOLDER
   ====================================================== */
.soferu-placeholder {
  padding: 3rem 2.5rem;
  text-align: center;
}

.soferu-placeholder-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.soferu-placeholder-inner svg {
  color: var(--gold);
  opacity: .7;
}

.soferu-placeholder-inner h3 {
  font-size: 1.4rem;
  color: var(--text);
}

.soferu-placeholder-inner p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
}

.soferu-placeholder-inner code {
  background: var(--light-2);
  padding: .15em .45em;
  border-radius: 4px;
  font-size: .85em;
  font-family: monospace;
  color: var(--gold-dark);
}

.soferu-params {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-family: monospace;
  font-size: .82rem;
  line-height: 1.8;
  text-align: left;
  width: 100%;
  white-space: pre-wrap;
  word-break: break-all;
}

.soferu-hint {
  font-size: .85rem !important;
  color: var(--text-muted) !important;
  margin-top: .5rem;
}

/* ======================================================
   PERKS STRIP
   ====================================================== */
.booking-perks {
  background: var(--dark);
  padding-block: 2rem;
  border-top: 1px solid rgba(184,150,90,.15);
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.perk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
  color: var(--white);
}

.perk-item svg {
  width: 32px; height: 32px;
  color: var(--gold);
}

.perk-item strong {
  font-size: .9rem;
  font-weight: 600;
}

.perk-item span {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
}

/* Nav active CTA on booking page */
.nav-links .nav-cta.active {
  background: var(--gold-dark) !important;
}

/* "Neue Suche"-Button im dunklen Header */
.booking-card-header .btn-outline {
  color: var(--gold-light);
  border-color: rgba(184,150,90,.5);
  white-space: nowrap;
}
.booking-card-header .btn-outline:hover {
  background: rgba(184,150,90,.12);
  border-color: var(--gold-light);
  color: var(--white);
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 960px) {
  .booking-form-grid {
    grid-template-columns: 1fr;
  }
  .booking-field--calendar {
    border-right: none;
    border-bottom: 1px solid var(--light-2);
  }
  .calendar-wrap {
    gap: 1rem;
  }
  .perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .booking-steps { gap: 0; }
  .step-label { display: none; }
  .step-divider { max-width: 40px; }
  .booking-card-header { padding: 1.25rem 1.25rem; }
  .booking-field--calendar { padding: 1.25rem; }
  .booking-selectors { padding: 1.25rem; }
  .calendar-wrap { flex-direction: column; }
  .date-range-display { flex-wrap: wrap; }
  .perks-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

@media (max-width: 420px) {
  .perks-grid { grid-template-columns: 1fr; }
}
