/* ============================================================================
   booking.css — Sportfotografie Booking-Seite
   ========================================================================== */

/* ─── Page Layout ─────────────────────────────────────────────────────────── */
.booking-page {
  background: linear-gradient(160deg, #F4F6FA 0%, #EBF0F8 60%, #F0F4FA 100%);
  min-height: 100vh;
}

.booking-header {
  padding: 120px 0 48px;
  text-align: center;
}
.booking-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-top: .5rem;
}
.booking-header .booking-subline {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 1rem auto 0;
  line-height: 1.65;
}

/* ─── Booking Container ───────────────────────────────────────────────────── */
.booking-container {
  max-width: 700px;
  padding-bottom: 80px;
}

/* ─── Booking Card ────────────────────────────────────────────────────────── */
.booking-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(14,27,51,.04), 0 20px 60px -24px rgba(14,27,51,.18);
  padding: clamp(28px, 5vw, 52px);
  position: relative;
  overflow: hidden;
}
.booking-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #2E6BC9);
  border-radius: 20px 20px 0 0;
}

/* ─── Step Indicator ──────────────────────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  border: 2px solid var(--line-strong);
  color: var(--text-dim);
  background: #fff;
  transition: all .3s var(--ease);
}
.step-item.active .step-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(20,49,94,.45);
}
.step-item.done .step-dot {
  background: #e8f0ff;
  border-color: var(--accent);
  color: var(--accent);
}
.step-item.done .step-dot::after {
  content: '✓';
  font-size: .85rem;
}
.step-item.done .step-dot > span { display: none; }
.step-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color .3s;
}
.step-item.active .step-label { color: var(--accent); }
.step-connector {
  flex: 1;
  height: 1px;
  background: var(--line-strong);
  margin: 0 8px;
  margin-bottom: 22px;
  position: relative;
}
.step-connector .step-connector-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width .4s var(--ease);
}
.step-connector.done .step-connector-fill { width: 100%; }

/* ─── Step Content ────────────────────────────────────────────────────────── */
.step-panel {
  display: none;
  animation: stepIn .3s var(--ease);
}
.step-panel.active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}
.step-subtitle {
  font-size: .9rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}

/* ─── Form Fields ─────────────────────────────────────────────────────────── */
.field-group {
  display: grid;
  gap: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field label .required {
  color: var(--accent);
  margin-left: 2px;
}
.field label .optional {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-dim);
  font-size: .72rem;
  opacity: .7;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid rgba(14,27,51,.12);
  border-radius: 10px;
  font-family: var(--font);
  font-size: .97rem;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(14,27,51,.28); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20,49,94,.08);
}
.field input.error,
.field select.error,
.field textarea.error {
  border-color: #e03e3e;
  box-shadow: 0 0 0 3px rgba(224,62,62,.08);
}
.field .field-error {
  font-size: .8rem;
  color: #e03e3e;
  display: none;
}
.field .field-error.visible { display: block; }

.field textarea { resize: vertical; min-height: 100px; line-height: 1.55; }

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7689' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ─── Checkboxes (Output-Auswahl) ─────────────────────────────────────────── */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) { .checkbox-group { grid-template-columns: 1fr; } }

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  user-select: none;
}
.checkbox-item:hover { border-color: rgba(20,49,94,.25); background: #f8faff; }
.checkbox-item.checked { border-color: var(--accent); background: #f0f4ff; }
.checkbox-item input[type="checkbox"] { display: none; }
.checkbox-box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.checkbox-item.checked .checkbox-box {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox-box::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: none;
}
.checkbox-item.checked .checkbox-box::after { display: block; }
.checkbox-text {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-soft);
}
.checkbox-item.checked .checkbox-text { color: var(--text); }

/* ─── Price Preview ───────────────────────────────────────────────────────── */
.price-preview {
  margin-top: 24px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
  border: 1.5px solid rgba(20,49,94,.14);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.price-preview-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.price-preview-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* ─── Standalone Field-Error (ausserhalb .field) ──────────────────────────── */
.field-error.standalone { display: none; margin-top: 12px; font-size: .85rem; color: #e03e3e; }
.field-error.standalone.visible { display: block; }

/* ─── Step Subhead (Trenner innerhalb eines Schritts) ─────────────────────── */
.step-subhead {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 32px 0 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(14,27,51,.08);
}

/* ─── Kalender ────────────────────────────────────────────────────────────── */
.cal {
  border: 1.5px solid rgba(14,27,51,.1);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}
.cal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cal__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-transform: capitalize;
}
.cal__nav {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(14,27,51,.12);
  background: #fff;
  border-radius: 9px;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--accent);
  cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
}
.cal__nav:hover:not(:disabled) { background: #f0f4ff; border-color: var(--accent); }
.cal__nav:disabled { opacity: .3; cursor: not-allowed; }

.cal__weekdays,
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal__weekdays {
  margin-bottom: 8px;
}
.cal__weekdays span {
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.cal__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: .92rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  background: transparent;
  font-family: var(--font);
}
.cal__day--empty { visibility: hidden; }
.cal__day.is-disabled { color: rgba(14,27,51,.22); }
.cal__day.is-free {
  color: var(--accent);
  background: #eef3fc;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.cal__day.is-free:hover { background: #dfeaff; transform: translateY(-1px); }
.cal__day.is-selected {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(20,49,94,.5);
}
.cal__hint {
  margin: 14px 2px 2px;
  font-size: .85rem;
  color: var(--text-dim);
  text-align: center;
}

/* ─── Zeit-Slots ──────────────────────────────────────────────────────────── */
.slots { margin-top: 22px; }
.slots__label {
  font-size: .9rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.slots__label strong { color: var(--text); }
.slots__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 8px;
}
.slot {
  padding: 11px 8px;
  border: 1.5px solid rgba(14,27,51,.12);
  border-radius: 9px;
  background: #fff;
  font-family: var(--font);
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .1s;
}
.slot:hover { border-color: var(--accent); background: #f0f4ff; transform: translateY(-1px); }
.slot.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ─── Übersicht / Summary ─────────────────────────────────────────────────── */
.summary {
  border: 1.5px solid rgba(14,27,51,.1);
  border-radius: 14px;
  overflow: hidden;
}
.summary__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(14,27,51,.07);
}
.summary__row:last-child { border-bottom: none; }
.summary__row:last-child {
  background: #f0f4ff;
}
.summary__key {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  align-self: center;
}
.summary__val {
  font-size: .95rem;
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}
@media (max-width: 480px) {
  .summary__row { grid-template-columns: 1fr; gap: 3px; }
}

/* ─── Step Navigation ─────────────────────────────────────────────────────── */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
}
.step-nav .btn { min-width: 130px; }
.step-nav .btn--accent { margin-left: auto; }

/* ─── Disclaimer ──────────────────────────────────────────────────────────── */
.booking-disclaimer {
  text-align: center;
  font-size: .82rem;
  color: var(--text-dim);
  margin-top: 20px;
  line-height: 1.6;
  max-width: 56ch;
  margin-inline: auto;
}

/* ─── Success State ───────────────────────────────────────────────────────── */
.booking-success {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(14,27,51,.04), 0 20px 60px -24px rgba(14,27,51,.18);
  padding: clamp(40px, 7vw, 72px) clamp(28px, 5vw, 52px);
  text-align: center;
}
.success-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.8rem;
}
.booking-success h2 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 12px;
}
.booking-success p {
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 44ch;
  margin-inline: auto;
}
.booking-success .btn { margin-top: 32px; }

.hidden { display: none !important; }
