/* ══════════════════════════════════════════════════════════════
   ATS Public Pages — Apple-Style (Booking, Calculator, Review, Status)
   ══════════════════════════════════════════════════════════════ */

:root {
  --primary: #1d1d1f;
  --accent: #e67e22;
  --accent-hover: #d35400;
  --text: #1d1d1f;
  --text-muted: #86868b;
  --bg: #f5f5f7;
  --card-bg: #ffffff;
  --border: #d2d2d7;
  --success: #34c759;
  --danger: #ff3b30;
  --radius: 16px;
  --orange: var(--accent);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 17px; line-height: 1.47; color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Back Link ─────────────────────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 500;
  color: var(--accent); text-decoration: none;
  margin-bottom: 8px;
  transition: opacity 200ms;
}
.back-link:hover { opacity: 0.7; }

/* ── Layout ────────────────────────────────────────────────── */
.booking-container {
  max-width: 560px; margin: 0 auto;
  padding: 48px 24px;
}
.booking-header {
  text-align: center; margin-bottom: 32px;
}
.booking-header h1 {
  font-size: 32px; font-weight: 600;
  letter-spacing: -0.5px; color: var(--primary);
}
.booking-header p {
  font-size: 15px; color: var(--text-muted);
  margin-top: 6px;
}

/* ── Step Indicator ────────────────────────────────────────── */
.step-indicator {
  display: flex; justify-content: center;
  gap: 8px; margin-bottom: 32px;
}
.step-dot-public, .step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
  transition: all 200ms;
}
.step-dot-public.active, .step-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ── Cards ─────────────────────────────────────────────────── */
.booking-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
  border: 1px solid rgba(0,0,0,.04);
}
.booking-card h2 {
  font-size: 20px; font-weight: 600;
  margin-bottom: 20px; letter-spacing: -0.2px;
}

/* ── Date/Time Slots ───────────────────────────────────────── */
.slot-grid, .date-grid, .time-grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
}
.slot, .date-slot {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 14px 8px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer; transition: all 200ms;
  text-decoration: none; color: var(--text);
}
.slot:hover, .date-slot:hover { border-color: var(--accent); }
.slot.selected, .date-slot.selected {
  border-color: var(--accent);
  background: rgba(230,126,34,.04);
}
.slot .day-name, .date-slot .day-name {
  font-size: 12px; color: var(--text-muted);
  font-weight: 500;
}
.slot .day-num, .date-slot .day-num {
  font-size: 22px; font-weight: 600;
  margin: 2px 0;
}
.slot .month, .date-slot .month { font-size: 12px; color: var(--text-muted); }
.slot .free-slots, .date-slot .avail, .slot .avail {
  font-size: 11px; color: var(--success);
  margin-top: 4px;
}
.slot.full, .date-slot.full {
  opacity: .35; cursor: not-allowed;
}
.time-slot {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 8px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer; transition: all 200ms;
  font-size: 15px; font-weight: 500; color: var(--text);
}
.time-slot:hover { border-color: var(--accent); }
.time-slot.selected {
  border-color: var(--accent);
  background: rgba(230,126,34,.04);
}

/* ── Form Elements ─────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block; font-size: 14px; font-weight: 500;
  color: var(--text); margin-bottom: 6px;
}
.b-input, input.b-input, select.b-input, textarea.b-input {
  width: 100%; height: 48px;
  padding: 0 16px;
  font-family: inherit; font-size: 17px; color: var(--text);
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  outline: none; transition: border-color 200ms;
  -webkit-appearance: none; appearance: none;
}
textarea.b-input {
  height: auto; min-height: 96px;
  padding: 12px 16px; resize: vertical;
}
.b-input:focus { border-color: var(--accent); }
.b-input::placeholder { color: var(--text-muted); }

select.b-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-book {
  display: block; width: 100%;
  padding: 16px;
  font-family: inherit; font-size: 17px; font-weight: 600;
  color: white; background: var(--accent);
  border: none; border-radius: 980px;
  cursor: pointer; transition: all 200ms;
}
.btn-book:hover { background: var(--accent-hover); }
.btn-book:disabled { opacity: .4; cursor: not-allowed; }

.btn-back {
  display: inline-flex; align-items: center;
  padding: 10px 0;
  font-family: inherit; font-size: 15px;
  color: var(--accent); background: none;
  border: none; cursor: pointer;
}
.btn-back:hover { opacity: .7; }

/* ── Success Message ───────────────────────────────────────── */
.success-message {
  text-align: center; padding: 48px 24px;
}
.success-message .check {
  width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--success);
  color: white; font-size: 28px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.success-message h2 {
  font-size: 24px; font-weight: 600;
  margin-bottom: 8px;
}

/* ── Star Rating (Review page) ─────────────────────────────── */
.star-rating {
  display: flex; justify-content: center;
  gap: 8px; margin: 20px 0;
}
.star-btn {
  font-size: 36px; background: none; border: none;
  color: var(--border); cursor: pointer;
  transition: color 200ms, transform 200ms;
  padding: 0; line-height: 1;
}
.star-btn.active, .star-btn:hover { color: #FFD700; }
.star-btn:active { transform: scale(1.15); }

/* ── Calculator Styles ─────────────────────────────────────── */
.calc-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px; cursor: pointer;
  transition: all 200ms; margin-bottom: 8px;
}
.calc-option:hover { border-color: var(--accent); }
.calc-option.selected {
  border-color: var(--accent);
  background: rgba(230,126,34,.04);
}
.calc-check {
  width: 22px; height: 22px; border-radius: 6px;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: white;
  flex-shrink: 0; transition: all 200ms;
}
.calc-option.selected .calc-check {
  background: var(--accent); border-color: var(--accent);
}
.calc-total {
  font-size: 40px; font-weight: 700;
  color: var(--accent); text-align: center;
  margin: 24px 0; letter-spacing: -1px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .booking-container { padding: 32px 16px; }
  .booking-header h1 { font-size: 26px; }
  .booking-card { padding: 20px; border-radius: 12px; }
  .slot { padding: 10px 6px; }
  .slot .day-num { font-size: 18px; }
  .b-input { height: 44px; font-size: 16px; }
  .btn-book { padding: 14px; font-size: 16px; }
  .calc-total { font-size: 32px; }
}

/* ══════════════════════════════════════════════════════════════
   NEU (API-Port): Auftragsstatus-Anzeige
   ══════════════════════════════════════════════════════════════ */
.status-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700;
  padding: 9px 18px; border-radius: 980px;
}
.status-badge .status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.status-badge.pending { color: var(--accent); background: rgba(230,126,34,0.12); }
.status-badge.pending .status-dot { background: var(--accent); }
.status-badge.ok { color: var(--success); background: rgba(52,199,89,0.12); }
.status-badge.ok .status-dot { background: var(--success); }
.status-badge.bad { color: var(--danger); background: rgba(255,59,48,0.12); }
.status-badge.bad .status-dot { background: var(--danger); }

.status-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.status-row:last-child { border-bottom: none; }
.status-row .label { color: var(--text-muted); }
.status-row .value { font-weight: 600; text-align: right; }
