:root {
  --bg: #0e0d0c;
  --panel: #171411;
  --panel-2: #1e1a16;
  --text: #f7f2ec;
  --muted: #c7bdb2;
  --line: rgba(255,255,255,.11);
  --accent: #d89a55;
  --accent-2: #f0c28c;
  --green: #4f8a64;
  --danger: #8d4e43;
  --shadow: 0 24px 70px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px max(24px, calc((100vw - 1180px)/2));
  background: linear-gradient(to bottom, rgba(8,7,6,.82), rgba(8,7,6,.25));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand { font-family: 'Playfair Display', serif; font-size: 24px; }
.nav { display: flex; gap: 28px; color: #e9ded3; font-size: 14px; }
.topbar > .btn { justify-self: end; }
.nav a:hover { color: white; }

.btn {
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, var(--accent), #b8753b);
  color: #170f08;
  font-weight: 700;
  padding: 13px 18px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(216,154,85,.18);
  transition: transform .2s ease, filter .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-small { padding: 10px 15px; font-size: 13px; }
.btn-ghost { background: rgba(255,255,255,.08); color: white; backdrop-filter: blur(12px); }

.hero {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/gartenlaube.png') center/cover no-repeat;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,8,7,.87) 0%, rgba(9,8,7,.58) 38%, rgba(9,8,7,.18) 67%, rgba(9,8,7,.25) 100%),
    linear-gradient(to top, #0e0d0c 0%, rgba(14,13,12,0) 27%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 70px;
  align-items: end;
  padding-top: 120px;
  padding-bottom: 90px;
}
.hero-copy { max-width: 700px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700; color: var(--accent-2); }
h1, h2 { font-family: 'Playfair Display', serif; font-weight: 500; margin: 0; }
h1 { font-size: clamp(68px, 8vw, 120px); line-height: .9; letter-spacing: -.045em; margin-top: 20px; }
h1 span { color: #fff8f0; }
.hero-subtitle { font-size: 26px; margin: 28px 0 14px; color: #fff7ef; }
.hero-text { max-width: 620px; color: #e3d9cf; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-card {
  background: rgba(19,16,13,.63);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.hero-card-kicker { margin: 0 0 16px; color: var(--accent-2); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; }
.contact-line { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); color: #f3e9df; }
.contact-line:last-of-type { border-bottom: 0; }
.contact-line span { font-size: 20px; color: var(--accent-2); }
.mini-note { margin-top: 14px; font-size: 12px; color: #a89d93; }

.section { padding: 100px 0; }
.section-dark { background: #0e0d0c; }
.section-heading { max-width: 760px; margin-bottom: 46px; }
.section-heading h2 { font-size: clamp(42px, 5vw, 66px); line-height: 1.02; margin: 12px 0 20px; }
.section-heading p { color: var(--muted); font-size: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  min-height: 240px;
}
.feature-card .icon { font-size: 30px; }
.feature-card h3 { font-size: 22px; margin: 28px 0 10px; }
.feature-card p { color: var(--muted); margin: 0; }

.calendar-section { background: #f1ede7; color: #17120e; }
.calendar-heading { max-width: none; display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.calendar-heading > div:first-child { max-width: 760px; }
.calendar-heading .eyebrow { color: #9a5e2f; }
.calendar-heading p { color: #675f58; }
.legend { display: flex; gap: 20px; white-space: nowrap; color: #6e645c; font-size: 14px; }
.legend span { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-free { background: var(--green); }
.dot-booked { background: var(--danger); }
.calendar-toolbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.calendar-toolbar > div { text-align: center; }
.calendar-toolbar strong { display: block; }
.calendar-toolbar span { color: #746b63; font-size: 13px; }
.icon-btn {
  border: 1px solid rgba(23,18,14,.12);
  background: white;
  border-radius: 14px;
  height: 44px;
  cursor: pointer;
}
.calendar-wrap { overflow-x: auto; background: white; border-radius: 22px; box-shadow: 0 20px 50px rgba(44,33,24,.10); border: 1px solid rgba(23,18,14,.09); }
.calendar {
  min-width: 1040px;
  display: grid;
  grid-template-columns: 78px repeat(7, minmax(125px, 1fr));
}
.cal-cell { border-right: 1px solid #eee8e1; border-bottom: 1px solid #eee8e1; min-height: 46px; }
.cal-head { padding: 14px 10px; text-align: center; background: #fbf9f6; position: sticky; top: 0; z-index: 3; }
.cal-head strong { display: block; font-size: 14px; }
.cal-head span { color: #8a7f75; font-size: 12px; }
.time-cell { padding: 13px 10px; text-align: right; color: #8a7f75; background: #fbf9f6; font-size: 12px; }
.slot { position: relative; cursor: pointer; background: #fff; transition: background .15s ease; }
.slot:hover { background: #faf6f1; }
.slot.booked { background: #f3e2dd; cursor: not-allowed; }
.slot.booked::after { content: 'Reserviert'; position: absolute; inset: 0; display: grid; place-items: center; color: #744338; font-size: 11px; font-weight: 700; }
.calendar-footnote { color: #746b63; font-size: 13px; margin-top: 14px; }

.cta-section { background: #171411; }
.cta-box { display: flex; justify-content: space-between; gap: 40px; align-items: center; padding: 44px; border-radius: 30px; background: linear-gradient(135deg, rgba(216,154,85,.16), rgba(255,255,255,.04)); border: 1px solid rgba(216,154,85,.22); }
.cta-box h2 { font-size: clamp(36px, 4.5vw, 56px); margin: 10px 0 14px; }
.cta-box p { color: var(--muted); max-width: 760px; }

.footer { background: #0b0a09; border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { min-height: 110px; display: flex; justify-content: space-between; align-items: center; color: #92877d; font-size: 13px; }
.footer-inner > div { display: flex; flex-direction: column; gap: 4px; }
.footer strong { color: #f0e7df; font-size: 16px; }

.chat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 17px;
  background: #f1b36e;
  color: #21150b;
  font-weight: 800;
  box-shadow: 0 16px 50px rgba(0,0,0,.35);
  cursor: pointer;
}
.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 70;
  width: min(390px, calc(100vw - 28px));
  height: 570px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #14110f;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  transform: translateY(20px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
  overflow: hidden;
}
.chat-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat-header { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.chat-header strong { display: block; }
.chat-header span { display: flex; align-items: center; gap: 6px; color: #a89d93; font-size: 12px; }
.chat-header span i { width: 8px; height: 8px; border-radius: 50%; background: #73c289; }
.chat-header button { background: transparent; border: 0; color: white; font-size: 26px; cursor: pointer; }
.chat-body { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.message { max-width: 86%; padding: 12px 14px; border-radius: 16px; font-size: 14px; }
.message.bot { align-self: flex-start; background: #211d19; color: #eee5dd; border-bottom-left-radius: 4px; }
.message.user { align-self: flex-end; background: #d99c58; color: #21150b; border-bottom-right-radius: 4px; }
.chat-input { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input input { min-width: 0; background: #211d19; color: white; border: 1px solid var(--line); border-radius: 13px; padding: 12px 13px; outline: none; }
.chat-input button { border: none; border-radius: 13px; padding: 0 14px; background: var(--accent); font-weight: 700; cursor: pointer; }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero { min-height: 900px; }
  .hero-content { grid-template-columns: 1fr; gap: 34px; align-items: start; }
  .hero-card { max-width: 520px; }
  .feature-grid { grid-template-columns: 1fr; }
  .calendar-heading { flex-direction: column; align-items: flex-start; }
  .cta-box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 24px, 1180px); }
  .topbar { padding: 14px 12px; }
  .brand { font-size: 20px; }
  .topbar .btn-small { display: none; }
  .hero { min-height: 820px; }
  .hero-content { padding-top: 105px; padding-bottom: 54px; }
  h1 { font-size: 60px; }
  .hero-subtitle { font-size: 21px; }
  .hero-text { font-size: 16px; }
  .section { padding: 72px 0; }
  .section-heading h2 { font-size: 42px; }
  .cta-box { padding: 28px; }
  .chat-fab span { display: none; }
}
