/* ============================================================
   Zum Goldenen Hirsch — Reservierungssystem Theme
   Waldgrün + Gold | Inter + Playfair Display
   ============================================================ */

:root {
  --bg:          #0a0a0a;
  --bg2:         #1a1a1a;
  --bg3:         #2a2a2a;
  --bg4:         #333333;
  --gold:        #c8a96e;
  --gold-hover:  #d4b87a;
  --gold-subtle: rgba(200,169,110,0.1);
  --gold-border: rgba(200,169,110,0.25);
  --text:        #e0e0e0;
  --text2:       #a0a0a0;
  --text3:       #666666;
  --border:      #333;
  --ok:          #4caf50;
  --warn:        #ff9800;
  --err:         #f44336;
  --font-heading:'Oswald', sans-serif;
  --font-body:   'Inter', -apple-system, sans-serif;
  --radius:      10px;
  --shadow:      0 2px 12px rgba(0,0,0,0.3);
  --transition:  .25s cubic-bezier(.25,.8,.25,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-hover); }

/* === DEMO BANNER === */
.demo-banner {
  background: linear-gradient(135deg, var(--gold), #b8912e);
  color: #1a2e1a;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 999;
}
.demo-banner a { color: #0d1a0d; text-decoration: underline; }

/* === HEADER === */
.site-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}
.site-header .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.site-header .logo svg { height: 48px; width: auto; }
.site-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.site-header .tagline {
  color: var(--text2);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* === MAIN CONTAINER === */
.main-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* === SECTION === */
.section-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.section-card h2 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold-border);
}

/* === EVENTS BANNER === */
.events-banner {
  display: grid;
  gap: 16px;
}
.event-card {
  background: var(--bg3);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color var(--transition);
}
.event-card:hover { border-color: var(--gold); }
.event-card .event-info h3 {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}
.event-card .event-info p { color: var(--text2); font-size: .85rem; margin-top: 4px; }
.event-card .event-meta {
  text-align: right;
  font-size: .8rem;
  color: var(--text3);
  white-space: nowrap;
}
.event-card .event-meta .price {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 600;
}

/* === KALENDER === */
.calendar-wrapper { user-select: none; }
.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.calendar-nav h3 {
  font-family: var(--font-heading);
  color: var(--text);
  font-size: 1.15rem;
}
.calendar-nav button {
  background: var(--bg3);
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: .9rem;
  transition: all var(--transition);
}
.calendar-nav button:hover { background: var(--bg4); border-color: var(--gold); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-grid .day-header {
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text3);
  padding: 6px 0;
  text-transform: uppercase;
}
.calendar-grid .day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  position: relative;
}
.calendar-grid .day:hover:not(.disabled):not(.empty) {
  background: var(--gold-subtle);
  border-color: var(--gold-border);
}
.calendar-grid .day.selected {
  background: var(--gold);
  color: #0d1a0d;
  font-weight: 700;
  border-color: var(--gold);
}
.calendar-grid .day.available { color: var(--ok); }
.calendar-grid .day.few-left { color: var(--warn); }
.calendar-grid .day.full { color: var(--err); opacity: 0.5; cursor: not-allowed; }
.calendar-grid .day.disabled { color: var(--text3); opacity: 0.3; cursor: default; }
.calendar-grid .day.empty { cursor: default; }
.calendar-grid .day.today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* === TIME SLOTS === */
.timeslots-wrapper { margin-top: 16px; }
.timeslots-wrapper h3 {
  font-size: .9rem;
  color: var(--text2);
  margin-bottom: 10px;
}
.timeslots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.timeslot {
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
}
.timeslot:hover { border-color: var(--gold); background: var(--gold-subtle); }
.timeslot.selected {
  background: var(--gold);
  color: #0d1a0d;
  border-color: var(--gold);
  font-weight: 600;
}
.timeslot.disabled { opacity: 0.35; cursor: not-allowed; }

/* === BOOKING FORM === */
.booking-form { display: none; }
.booking-form.visible { display: block; animation: fadeIn .3s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-input {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 10px 14px;
  font-size: .95rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-subtle);
}
.form-input::placeholder { color: var(--text3); }
textarea.form-input { resize: vertical; min-height: 80px; }

/* Party Size Stepper */
.party-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.party-stepper button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.party-stepper button:hover { background: var(--gold); color: #0d1a0d; }
.party-stepper .count {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 30px;
  text-align: center;
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}
.checkbox-group input[type="checkbox"] {
  accent-color: var(--gold);
  width: 18px; height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.checkbox-group label {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  font-size: .85rem;
  line-height: 1.4;
}

/* Submit Button */
.btn-primary {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--gold), #b8912e);
  color: #0d1a0d;
  border: none;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(212,168,67,0.35); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* === CONFIRMATION === */
.confirmation-view {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.confirmation-view.visible { display: block; }
.confirmation-view .checkmark {
  font-size: 3rem;
  color: var(--ok);
  margin-bottom: 16px;
}
.confirmation-view h2 {
  border: none;
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.confirmation-view .details {
  background: var(--bg3);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px auto;
  max-width: 400px;
  text-align: left;
}
.confirmation-view .details p {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.confirmation-view .details p:last-child { border: none; }
.confirmation-view .details strong { color: var(--gold); }

/* === FOOTER === */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 20px 16px;
  font-size: .8rem;
  color: var(--text3);
}
.site-footer a { color: var(--text2); margin: 0 8px; }

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .main-container { padding: 16px 12px 60px; }
  .section-card { padding: 18px; }
  .calendar-grid .day { font-size: .8rem; }
  .event-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .event-card .event-meta { text-align: left; }
}

/* === LOADING SPINNER === */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === STATUS BADGES (Admin) === */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-confirmed { background: rgba(92,184,92,0.15); color: #5cb85c; }
.badge-requested { background: rgba(240,173,78,0.15); color: #f0ad4e; }
.badge-arrived { background: rgba(91,192,222,0.15); color: #5bc0de; }
.badge-done { background: rgba(150,150,150,0.15); color: #999; }
.badge-cancelled { background: rgba(217,83,79,0.15); color: #d9534f; }
.badge-no_show { background: rgba(217,83,79,0.15); color: #d9534f; }
.badge-rejected { background: rgba(217,83,79,0.15); color: #d9534f; }
.badge-neu { background: rgba(150,150,150,0.15); color: #999; }
.badge-gast { background: rgba(91,192,222,0.15); color: #5bc0de; }
.badge-stammgast { background: rgba(212,168,67,0.15); color: var(--gold); }
.badge-vip { background: rgba(212,168,67,0.25); color: var(--gold); border: 1px solid var(--gold-border); }

/* === NOTIFICATION === */
.notification {
  position: fixed;
  top: 60px;
  right: 20px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  z-index: 1000;
  animation: slideIn .3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.notification.success { background: #1a3a1a; border: 1px solid var(--ok); color: var(--ok); }
.notification.error { background: #3a1a1a; border: 1px solid var(--err); color: var(--err); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: none; opacity: 1; } }
