/* ── Grundlayout ──────────────────────────────────────────────────────────── */
.buchung-form-wrap {
  max-width: 800px;
  margin: 0 auto;
  font-family: Georgia, 'Times New Roman', serif;
  color: #1a1a1a;
}

.buchung-step { }

.buchung-step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--buchung-primary, #1B3068);
  margin: 0 0 20px;
  font-family: Georgia, serif;
}

/* ── Buchungstyp-Karten ───────────────────────────────────────────────────── */
.buchung-type-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.buchung-type-card {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.buchung-type-card:hover {
  border-color: var(--buchung-primary, #1B3068);
  box-shadow: 0 2px 10px rgba(27,48,104,.08);
}
.buchung-type-card.selected {
  border-color: var(--buchung-primary, #1B3068);
  box-shadow: 0 0 0 2px rgba(27,48,104,.15);
}
.buchung-type-card.selected .buchung-type-radio {
  border-color: var(--buchung-primary, #1B3068);
  background: var(--buchung-primary, #1B3068);
  box-shadow: inset 0 0 0 3px #fff;
}

/* Inneres Layout: Text links, Radio rechts */
.buchung-type-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.buchung-type-card-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.buchung-type-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: Georgia, serif;
}
.buchung-type-desc {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
  font-family: Georgia, serif;
}
.buchung-type-meta {
  font-size: 13px;
  color: #6b7280;
  font-family: Georgia, serif;
}

/* Radio-Kreis */
.buchung-type-radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
}

.buchung-no-types {
  font-family: Georgia, serif;
  color: #6b7280;
  font-style: italic;
}

/* ── Formular-Navigation ──────────────────────────────────────────────────── */
.buchung-back-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
  transition: color 0.15s;
}
.buchung-back-btn:hover { color: var(--buchung-primary, #1B3068); }

.buchung-selected-type {
  font-size: 20px;
  font-weight: 700;
  color: var(--buchung-primary, #1B3068);
  font-family: Georgia, serif;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--buchung-accent, #c9a96e);
}

/* ── Formular ─────────────────────────────────────────────────────────────── */
.buchung-form { display: flex; flex-direction: column; gap: 0; }

.buchung-form-group {
  margin-bottom: 18px;
}
.buchung-form-group label {
  display: block;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.buchung-required { color: var(--buchung-accent, #c9a96e); }

.buchung-form-group input[type="text"],
.buchung-form-group input[type="email"],
.buchung-form-group input[type="tel"],
.buchung-form-group select,
.buchung-form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  font-family: Georgia, serif;
  font-size: 14px;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.buchung-form-group input:focus,
.buchung-form-group select:focus,
.buchung-form-group textarea:focus {
  border-color: var(--buchung-primary, #1B3068);
  outline: none;
}

.buchung-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.buchung-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .buchung-form-row { grid-template-columns: 1fr; }
}

.buchung-date-display {
  margin-top: 6px;
  font-size: 14px;
  color: var(--buchung-primary, #1B3068);
  font-weight: 600;
  font-family: Georgia, serif;
}

/* ── Submit-Button ────────────────────────────────────────────────────────── */
.buchung-submit-btn {
  background: var(--buchung-primary, #1B3068);
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-family: Georgia, serif;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.15s;
  align-self: flex-start;
  margin-top: 8px;
}
.buchung-submit-btn:hover   { opacity: 0.88; }
.buchung-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.buchung-btn-secondary {
  background: #fff;
  color: var(--buchung-primary, #1B3068);
  border: 1px solid var(--buchung-primary, #1B3068);
  padding: 10px 24px;
  font-family: Georgia, serif;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.buchung-btn-secondary:hover { background: #f0f4ff; }

/* ── Fehlermeldung ────────────────────────────────────────────────────────── */
.buchung-error {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-family: Georgia, serif;
  font-size: 13px;
}

/* ── Erfolgs-Seite ────────────────────────────────────────────────────────── */
.buchung-success {
  text-align: center;
  padding: 48px 24px;
  background: #f8f4ef;
  border: 1px solid #e5e7eb;
}

.buchung-success-icon {
  width: 60px; height: 60px;
  background: var(--buchung-primary, #1B3068);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.buchung-success h3 {
  font-size: 24px;
  color: var(--buchung-primary, #1B3068);
  font-family: Georgia, serif;
  margin: 0 0 12px;
}

.buchung-success p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.7;
  font-family: Georgia, serif;
  max-width: 480px;
  margin: 0 auto 24px;
}

/* ── Kalender-Picker ──────────────────────────────────────────────────────── */
.buchung-calendar-picker {
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  margin-bottom: 4px;
}

.bcp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.bcp-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--buchung-primary, #1B3068);
  font-family: Georgia, serif;
}

.bcp-nav-group { display: flex; gap: 4px; }

.bcp-nav {
  width: 30px; height: 30px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  color: #555;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.bcp-nav:hover { background: #f3f4f6; color: var(--buchung-primary, #1B3068); }

.bcp-dayrow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px 12px 2px;
}
.bcp-dayname {
  text-align: center;
  font-size: 11px;
  font-family: Georgia, serif;
  padding: 4px 0;
}
.bcp-dayname-available   { color: var(--buchung-primary, #1B3068); font-weight: 700; }
.bcp-dayname-unavailable { color: #d1d5db; }

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

.bcp-cell {
  min-height: 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 13px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  color: #374151;
  transition: background 0.15s, color 0.15s;
}
.bcp-cell:not(.bcp-cell-disabled):not(.bcp-cell-empty):hover {
  background: #f0f4ff;
  color: var(--buchung-primary, #1B3068);
}

.bcp-cell-empty    { cursor: default; min-height: 40px; }
.bcp-cell-disabled {
  cursor: not-allowed;
  color: #d1d5db;
  text-decoration: line-through;
}

.bcp-cell-today {
  outline: 2px solid var(--buchung-accent, #c9a96e);
  color: var(--buchung-primary, #1B3068);
  font-weight: 700;
}

.bcp-cell-selected {
  background: var(--buchung-primary, #1B3068) !important;
  color: #fff !important;
  font-weight: 700;
  outline: none;
}

.bcp-legend {
  padding: 8px 16px 12px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid #f3f4f6;
}

.bcp-legend-item {
  font-size: 11px;
  font-family: Georgia, serif;
}
.bcp-legend-available { color: var(--buchung-primary, #1B3068); }
.bcp-legend-disabled  { color: #d1d5db; }
.bcp-legend-blocked   { color: #dc2626; }
.bcp-legend-selected  { color: var(--buchung-accent, #c9a96e); }

.bcp-cell-blocked {
  color: #dc2626 !important;
  text-decoration: line-through;
  opacity: 0.6;
}
