/* booking_public – ME.CTC Branding */
/* Farben: #149879 (Grün), #d65003 (Orange), #981424 (Rot) · Font: Inter */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --green:  #149879;
  --orange: #d65003;
  --red:    #981424;
  --bg:     #f5f7f9;
  --white:  #ffffff;
  --text:   #1a1a2e;
  --muted:  #6b7280;
  --border: #e2e6ea;
  --radius: 10px;
  --shadow: 0 2px 20px rgba(0,0,0,0.09);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 64px;
}

/* ── Layout-Wrapper ──────────────────────────────────────────────────────── */
#booking-form {
  width: 100%;
  max-width: 900px;
}

/* ── 2-Spalten-Grid (Desktop) ────────────────────────────────────────────── */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  align-items: start;
}

.error-card {
  width: 100%;
  max-width: 900px;
  margin-bottom: 0;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  width: 100%;
  max-width: 900px;
  background: #040d1a;
  border-radius: var(--radius);
  padding: 20px 32px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.site-logo {
  max-height: 100px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.site-header-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ddeeff;
  letter-spacing: 0.01em;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  width: 100%;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--green);
  flex-shrink: 0;
}

/* ── Dauer-Auswahl ────────────────────────────────────────────────────────── */
.duration-group {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
.duration-btn {
  flex: 1;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  text-decoration: none;
}
.duration-btn:hover,
.duration-btn.active {
  border-color: var(--green);
  color: var(--green);
  background: #f0faf7;
}

/* ── Slot-Liste ───────────────────────────────────────────────────────────── */
.slot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}
.slot-list::-webkit-scrollbar { width: 4px; }
.slot-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.slot-option {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.slot-option:hover { border-color: var(--green); background: #f0faf7; }
.slot-option input[type=radio] { accent-color: var(--green); width: 18px; height: 18px; flex-shrink: 0; }
.slot-option.selected { border-color: var(--green); background: #f0faf7; }

.slot-date { font-weight: 600; font-size: 0.92rem; }
.slot-time { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.slot-tageszeit { display: inline-block; margin-left: 8px; font-size: 0.75rem; color: #ddeeff; background: #0d1b2a; border-radius: 4px; padding: 1px 6px; vertical-align: middle; }

.no-slots {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: #fafafa;
  border-radius: 8px;
  border: 1px dashed var(--border);
}

/* ── Formular ─────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}
.char-count {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
}
.char-count.warn { color: var(--orange); }
.char-count.over { color: var(--red); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--green);
  color: var(--white);
  width: 100%;
  margin-top: 8px;
}
.btn-primary:hover { background: #107a62; }
.btn-primary:disabled { background: #9ec5bb; cursor: not-allowed; }

.btn-meet {
  background: var(--orange);
  color: var(--white);
}
.btn-meet:hover { background: #b54502; }

/* ── Fehler / Validierung ─────────────────────────────────────────────────── */
.error-list {
  background: #fdf2f2;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
  color: var(--red);
  font-size: 0.88rem;
}
.error-list li { margin-left: 18px; margin-bottom: 4px; }
.error-list li:last-child { margin-bottom: 0; }

/* ── Bestätigung ──────────────────────────────────────────────────────────── */
.confirm-box {
  background: #f0faf7;
  border: 1px solid #a7d7c8;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 20px 0;
}
.confirm-box table { width: 100%; border-collapse: collapse; }
.confirm-box td { padding: 8px 6px; vertical-align: top; font-size: 0.92rem; }
.confirm-box td:first-child { font-weight: 600; width: 110px; color: var(--text); }

.success-icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 12px;
}

/* ── QR-Code-Seite ────────────────────────────────────────────────────────── */
.qr-wrap {
  text-align: center;
  padding: 20px 0;
}
.qr-wrap img { max-width: 220px; border: 1px solid var(--border); border-radius: 8px; padding: 8px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 40px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  width: 100%;
  max-width: 900px;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--green); }

hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

@media (max-width: 700px) {
  .booking-grid { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  .duration-group { flex-direction: column; }
}
