/* Admin-spezifische Styles */

/* === PASSWORT-GATE === */
.admin-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
}

.gate-card {
  background: var(--white);
  padding: 64px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.gate-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.06em;
  margin-bottom: 24px;
}

.gate-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.gate-card > p { color: var(--text-muted); margin-bottom: 28px; font-size: 0.9rem; }

.gate-form { display: flex; flex-direction: column; gap: 12px; }

.gate-input {
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: var(--ease);
  background: var(--bg);
  color: var(--text);
}
.gate-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(124,58,237,.10);
}

.gate-error {
  color: #DC2626;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 12px;
  min-height: 22px;
  background: #FEF2F2;
  border-left: 3px solid #DC2626;
  padding: 8px 12px;
  display: none;
}
.gate-error:not(:empty) { display: block; }

/* === ADMIN HEADER === */
.admin-header {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.admin-header-inner .nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.04em;
}

.admin-page-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* === STATS === */
.admin-main { padding: 40px 0 80px; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.admin-stat-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.admin-stat-num.pending   { background: linear-gradient(135deg,#F59E0B,#FBBF24); -webkit-background-clip: text; background-clip: text; }
.admin-stat-num.confirmed { background: linear-gradient(135deg,#10B981,#34D399); -webkit-background-clip: text; background-clip: text; }
.admin-stat-num.cancelled { background: linear-gradient(135deg,#EF4444,#F87171); -webkit-background-clip: text; background-clip: text; }

.admin-stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
}

/* === TAB BAR === */
.admin-tabs {
  display: flex;
  gap: 4px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
  width: fit-content;
  margin-bottom: 28px;
}

.tab-btn {
  padding: 10px 26px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
  color: var(--text-muted);
  font-family: inherit;
  white-space: nowrap;
}
.tab-btn.active {
  background: var(--gradient);
  color: #fff;
}
.tab-btn:not(.active):hover { color: var(--purple); }

.tab-panel.hidden { display: none; }

/* === KALENDER LAYOUT === */
.cal-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}

/* === KALENDER PANEL === */
.cal-panel {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.month-nav h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.month-btn {
  width: 38px; height: 38px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  color: var(--purple);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
  transition: var(--ease);
  line-height: 1;
}
.month-btn:hover { border-color: var(--purple); background: var(--surface); }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 3px;
}
.cal-weekdays span {
  text-align: center;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  padding: 5px 0;
}
.cal-weekdays span.weekend { color: var(--pink); }

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

.cal-cell {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  min-height: 64px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s;
}
.cal-cell:hover {
  border-color: var(--purple);
  background: var(--surface);
  transform: translateY(-1px);
}
.cal-cell.empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
  pointer-events: none;
}
.cal-cell.empty:hover { transform: none; }

.cal-cell.today {
  border-color: var(--purple);
  background: rgba(124,58,237,0.1);
}
.cal-cell.today .day-num { color: var(--purple-light); font-weight: 800; }

.cal-cell.weekend .day-num { color: var(--pink); }

.cal-cell.blocked {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.4);
}
.cal-cell.blocked .day-num { color: #EF4444; }

.cal-cell.selected {
  border-color: var(--purple);
  background: rgba(124,58,237,0.15);
  box-shadow: 0 0 0 2px rgba(124,58,237,0.25);
}

.day-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.blocked-x {
  font-size: 0.8rem;
  font-weight: 800;
  color: #EF4444;
  line-height: 1;
  margin-top: 2px;
}

.dot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.dot-pending   { background: #F59E0B; }
.dot-confirmed { background: #10B981; }
.dot-cancelled { background: #EF4444; }
.dot-extra {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* === LEGENDE === */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.legend-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 3px;
}
.legend-dot.pending   { background: #F59E0B; }
.legend-dot.confirmed { background: #10B981; }
.legend-dot.cancelled { background: #EF4444; }
.legend-dot-blocked {
  width: 9px; height: 9px;
  border-radius: 2px;
  background: rgba(239,68,68,0.6);
  display: inline-block;
  margin-right: 3px;
}
.legend-dot-recurring {
  width: 9px; height: 9px;
  border-radius: 2px;
  background: rgba(139,92,246,0.7);
  display: inline-block;
  margin-right: 3px;
}
.legend-dot-partial {
  width: 9px; height: 9px;
  border-radius: 2px;
  background: rgba(245,158,11,0.7);
  display: inline-block;
  margin-right: 3px;
}

.cal-cell.rec-blocked {
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.3);
}
.cal-cell.rec-blocked .day-num { color: #A78BFA; }

.cal-cell.rec-partial {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
}
.cal-cell.rec-partial .day-num { color: #FCD34D; }

/* === DAY DETAIL PANEL === */
.day-detail {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.day-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.day-detail-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.block-btn {
  padding: 7px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}
.block-btn:hover { border-color: #EF4444; color: #EF4444; }
.block-btn.is-blocked {
  background: rgba(239,68,68,0.1);
  border-color: #EF4444;
  color: #EF4444;
}
.block-btn.is-blocked:hover { background: rgba(239,68,68,0.2); }

.detail-hint {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 24px 0;
  text-align: center;
}

.blocked-notice {
  background: rgba(239,68,68,0.08);
  border: 1.5px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  color: #F87171;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  margin: 8px 0;
}

/* === BOOKING CARDS === */
.booking-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}
.booking-card:last-child { margin-bottom: 0; }

.status-left-pending   { border-left-color: #F59E0B; }
.status-left-confirmed { border-left-color: #10B981; }
.status-left-cancelled { border-left-color: #EF4444; }

.booking-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.booking-name {
  font-size: 0.95rem;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.booking-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--purple-light);
  white-space: nowrap;
}

.booking-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-bottom: 10px;
}

.booking-info-item label {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 2px;
}
.booking-info-item span {
  font-size: 0.82rem;
  font-weight: 500;
}
.booking-info-item a { color: var(--purple-light); text-decoration: none; }
.booking-info-item a:hover { text-decoration: underline; }
.booking-info-item.span-2 { grid-column: span 2; }

.booking-msg {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* === ACTION BUTTONS === */
.booking-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s, transform .12s;
}
.action-btn:hover:not(:disabled) { opacity: .85; transform: translateY(-1px); }
.action-btn:disabled { opacity: .35; cursor: not-allowed; }

.btn-confirm { background: #10B981; color: #fff; }
.btn-reject  { background: #EF4444; color: #fff; }
.btn-reset   { background: var(--surface); color: var(--text-muted); border: 1.5px solid var(--border); }

/* === STATUS BADGES (table + cards) === */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.status-pending   { background: #433200; color: #FBBF24; }
.status-confirmed { background: #062919; color: #34D399; }
.status-cancelled { background: #3B0707; color: #F87171; }

/* === FILTER === */
.admin-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
  font-family: inherit;
  color: var(--text-muted);
}
.filter-btn:hover { border-color: var(--purple); color: var(--purple); }
.filter-btn.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

/* === TABLE === */
.admin-table-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  overflow: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.admin-table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  font-weight: 700;
}
.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: var(--surface); }
.td-date  { white-space: nowrap; color: var(--text-muted); font-size: 0.78rem; }
.td-name  { font-weight: 600; white-space: nowrap; }
.td-center { text-align: center; }
.td-msg   { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted    { color: var(--text-muted); }
.admin-table a { color: var(--purple-light); text-decoration: none; }
.admin-table a:hover { text-decoration: underline; }

.admin-loading,
.admin-empty {
  padding: 56px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* === MOBILE BACKDROP === */
.detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 290;
  transition: opacity .2s;
}
.detail-backdrop.hidden { display: none; }

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .cal-layout { grid-template-columns: 1fr; }

  .day-detail {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    border-radius: 20px 20px 0 0;
    border: none;
    border-top: 2px solid var(--border);
    max-height: 75vh;
    z-index: 300;
    transform: translateY(100%);
    transition: transform .3s ease;
    top: auto;
  }
  .day-detail.open { transform: translateY(0); }
}

@media (max-width: 768px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .gate-card   { padding: 40px 24px; }
  .admin-tabs  { width: 100%; }
  .tab-btn     { flex: 1; padding: 10px 12px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-page-title { display: none; }
  .cal-cell { min-height: 50px; padding: 4px; }
  .day-num  { font-size: 0.68rem; }
  .dot      { width: 6px; height: 6px; }
}

/* === TABS === */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.tab-btn {
  padding: 10px 24px;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--ease);
  margin-bottom: -2px;
}

.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--purple); border-bottom-color: var(--purple); }

.tab-panel.hidden { display: none; }

/* === CALENDAR LAYOUT === */
.cal-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

.cal-panel {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* Month navigation */
.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.month-nav h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.month-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  transition: var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.month-btn:hover { border-color: var(--purple); color: var(--purple); }

/* Weekday headers */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}

.cal-weekdays span {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 4px 0;
}

.cal-weekdays .weekend { color: var(--purple); }

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

.cal-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
  min-height: 44px;
  padding: 2px;
}

.cal-cell:not(.empty):hover { background: var(--surface); }
.cal-cell.empty { cursor: default; }

.day-num {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.cal-cell.today .day-num {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.cal-cell.weekend .day-num { color: var(--purple); opacity: 0.7; }

.cal-cell.selected {
  background: var(--purple) !important;
}
.cal-cell.selected .day-num { color: white !important; -webkit-text-fill-color: white !important; }

.cal-cell.blocked {
  background: rgba(239,68,68,0.08);
}

/* Dots for bookings */
.dot-row {
  display: flex;
  gap: 2px;
  margin-top: 3px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-pending   { background: #F59E0B; }
.dot-confirmed { background: #10B981; }
.dot-cancelled { background: #EF4444; }

.dot-extra {
  font-size: 0.5rem;
  font-weight: 800;
  color: var(--text-muted);
  line-height: 6px;
}

.blocked-x {
  font-size: 0.7rem;
  color: #EF4444;
  font-weight: 800;
  margin-top: 2px;
}

/* Legend */
.cal-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.pending   { background: #F59E0B; }
.legend-dot.confirmed { background: #10B981; }
.legend-dot.cancelled { background: #EF4444; }

.legend-dot-blocked {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(239,68,68,0.25);
  border: 1px solid #EF4444;
  display: inline-block;
}

/* === DAY DETAIL PANEL === */
.day-detail {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 200px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.day-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.day-detail-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.block-btn {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: transparent;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}

.block-btn:hover { border-color: #EF4444; color: #EF4444; }
.block-btn.is-blocked { background: rgba(239,68,68,0.1); border-color: #EF4444; color: #EF4444; }

.detail-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 40px 0;
}

.blocked-notice {
  text-align: center;
  padding: 32px 16px;
  color: #EF4444;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Mobile backdrop */
.detail-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
}

.detail-backdrop:not(.hidden) { display: block; }

/* === BOOKING CARDS === */
.booking-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
  border-left-width: 4px;
}

.status-left-pending   { border-left-color: #F59E0B; }
.status-left-confirmed { border-left-color: #10B981; }
.status-left-cancelled { border-left-color: #EF4444; }

.booking-card:last-child { margin-bottom: 0; }

.booking-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 8px;
}

.booking-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.booking-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple);
  white-space: nowrap;
}

.booking-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.booking-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.booking-info-item.bii-full {
  grid-column: 1 / -1;
}

.booking-info-item label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-muted);
}

.booking-info-item span {
  font-size: 0.85rem;
  font-weight: 500;
}

.booking-info-item a { color: var(--purple); text-decoration: none; }
.booking-info-item a:hover { text-decoration: underline; }

.booking-msg {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border-left: 2px solid var(--border);
}

.booking-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
  flex: 1;
  text-align: center;
}

.action-btn:disabled { opacity: 0.35; cursor: default; }

.btn-confirm {
  background: #D1FAE5;
  color: #059669;
  border-color: #6EE7B7;
}
.btn-confirm:not(:disabled):hover { background: #059669; color: white; }

.btn-reject {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FCA5A5;
}
.btn-reject:not(:disabled):hover { background: #DC2626; color: white; }

.btn-reset {
  background: var(--surface);
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-reset:not(:disabled):hover { background: var(--border); color: var(--text); }

/* === RESPONSIVE CALENDAR === */
@media (max-width: 960px) {
  .cal-layout {
    grid-template-columns: 1fr;
  }

  .day-detail {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 300;
    transform: translateY(110%);
    transition: transform 0.3s ease;
  }

  .day-detail.open {
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .cal-panel { padding: 16px; }
  .day-num   { font-size: 0.72rem; }
  .booking-info { grid-template-columns: 1fr; }
}

/* === RANGE BLOCKING === */
.range-block-panel {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 20px;
}

.range-block-panel h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.range-block-inputs {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.range-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.range-field label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.range-date-input {
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: var(--ease);
}
.range-date-input:focus { border-color: var(--purple); }

/* === BOOKING NOTES === */
.booking-notes {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notes-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.notes-input {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: var(--ease);
  box-sizing: border-box;
}
.notes-input:focus { border-color: var(--purple); }

.btn-save-notes {
  align-self: flex-end;
  padding: 7px 18px;
  font-size: 0.78rem;
  background: var(--surface);
  color: var(--text-muted);
  border: 2px solid var(--border);
}
.btn-save-notes:hover { background: var(--purple); color: white; border-color: var(--purple); }

/* === WIEDERKEHRENDE SPERREN PANEL === */
.recurring-block-panel {
  margin-top: 24px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

.recurring-block-panel h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.recurring-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.recurring-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.rec-select {
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  transition: var(--ease);
  width: 100%;
}
.rec-select:focus { border-color: var(--purple); }

.rec-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.rec-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 140px;
}

.rec-field label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
}

/* reuse range-date-input for time/date inputs inside rec-field */

/* List of rules */
.recurring-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.recurring-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 12px 0;
}

.recurring-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.recurring-item-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.recurring-item-label {
  flex: 1;
  font-size: 0.87rem;
  font-weight: 500;
}

.rec-delete-btn {
  background: transparent;
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-sm);
  color: #F87171;
  cursor: pointer;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--ease);
  flex-shrink: 0;
}
.rec-delete-btn:hover {
  background: rgba(239,68,68,0.15);
  border-color: #EF4444;
}

@media (max-width: 600px) {
  .rec-inputs { flex-direction: column; }
  .rec-field  { min-width: 100%; }
}
