/* ============================================================
   Onyx — Gäste-Karte · Dark & Gold
   ============================================================ */

:root {
  --bg:        #0c0a08;
  --bg-soft:   #141009;
  --panel:     #1a150e;
  --panel-2:   #221b11;
  --line:      #2e2616;
  --gold:      #c9a45c;
  --gold-soft: #e3c98c;
  --gold-deep: #8c6d36;
  --text:      #f4ece0;
  --text-dim:  #b6a98f;
  --text-mute: #8a7c64;
  --danger:    #c2705c;
  --radius:    16px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", system-ui, sans-serif;
  --maxw: 720px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background:
    radial-gradient(120% 60% at 50% -10%, #1d1710 0%, var(--bg) 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 120px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Lade-Schleier ---------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .6s ease, visibility .6s;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-mark {
  font-family: var(--serif); font-size: 56px; color: var(--gold);
  letter-spacing: 2px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:.35 } 50% { opacity:1 } }

/* ---- Offline-Screen --------------------------------------- */
.offline {
  position: fixed; inset: 0; z-index: 190;
  display: grid; place-items: center; text-align: center; padding: 32px;
  background:
    radial-gradient(120% 60% at 50% 0%, #1d1710 0%, var(--bg) 60%), var(--bg);
}
.offline[hidden] { display: none; }
.offline-mark { font-size: 34px; color: var(--gold); margin-bottom: 24px; opacity: .8; }
.offline-inner h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 12vw, 60px);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold); margin-bottom: 16px;
}
.offline-inner p { color: var(--text-dim); font-size: 16px; max-width: 320px; }

/* ---- „Bestellungen geschlossen"-Banner -------------------- */
.closed-banner {
  position: sticky; top: 58px; z-index: 25;
  max-width: var(--maxw); margin: 0 auto;
  text-align: center; font-size: 13px; letter-spacing: .04em;
  color: var(--gold-soft); background: var(--panel);
  border: 1px solid var(--gold-deep); border-radius: 999px;
  padding: 9px 16px; margin-top: 6px;
}
.closed-banner[hidden] { display: none; }

/* ---- Namens-Gate ------------------------------------------ */
.name-gate {
  position: fixed; inset: 0; z-index: 195;
  display: grid; place-items: center; text-align: center; padding: 32px;
  background: radial-gradient(120% 60% at 50% 0%, #1d1710 0%, var(--bg) 60%), var(--bg);
}
.name-gate[hidden] { display: none; }
.name-gate-inner { width: 100%; max-width: 360px; animation: fade .5s ease; }
.name-gate-mark { font-size: 30px; color: var(--gold); margin-bottom: 22px; opacity: .85; }
.name-gate-inner h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 10vw, 46px);
  color: var(--text); margin-bottom: 10px;
}
.name-gate-inner p { color: var(--text-dim); font-size: 15px; margin-bottom: 26px; }
.name-gate-inner input {
  width: 100%; padding: 15px 18px; border-radius: 12px; text-align: center;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
  font-family: var(--serif); font-size: 20px; margin-bottom: 16px;
}
.name-gate-inner input:focus { outline: none; border-color: var(--gold-deep); }
.name-gate-inner .btn-primary { width: 100%; }

/* ---- Gast-Zeile im Warenkorb ------------------------------ */
.cart-guest {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 14px; color: var(--text-dim);
  padding: 12px 14px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 10px;
}
.cart-guest strong { color: var(--gold-soft); font-family: var(--serif); font-size: 18px; font-weight: 600; }
.cart-guest button {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--gold); font-size: 13px; text-decoration: underline; font-family: var(--sans);
}

/* ---- Hero ------------------------------------------------- */
.hero {
  text-align: center;
  padding: clamp(48px, 12vw, 96px) 24px clamp(20px, 5vw, 36px);
  position: relative;
}
.hero-eyebrow {
  font-size: 12px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold); font-weight: 400;
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 14vw, 76px);
  line-height: .98; letter-spacing: .5px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}
.hero-rule, .foot-rule {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-top: 22px; color: var(--gold);
  font-size: 12px;
}
.hero-rule span, .foot-rule span {
  height: 1px; width: 54px;
  background: linear-gradient(90deg, transparent, var(--gold-deep));
}
.hero-rule span:last-child, .foot-rule span:last-child {
  background: linear-gradient(90deg, var(--gold-deep), transparent);
}

/* ---- Menü-Tabs (Küche / Getränke / Shisha) ---------------- */
.menu-tabs {
  position: sticky; top: 0; z-index: 40;
  display: flex; justify-content: center; gap: 6px;
  padding: 14px 16px;
  background: linear-gradient(180deg, var(--bg) 60%, transparent);
  backdrop-filter: blur(8px);
  max-width: var(--maxw); margin: 0 auto;
}
.menu-tab {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  letter-spacing: .03em;
  color: var(--text-mute); background: none; border: none;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  transition: color .25s, background .25s;
  position: relative;
}
.menu-tab.active { color: var(--gold-soft); }
.menu-tab.active::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--gold);
}

/* ---- Kategorie-Schnellnav --------------------------------- */
.cat-nav {
  position: sticky; top: 58px; z-index: 30;
  display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 16px 12px;
  max-width: var(--maxw); margin: 0 auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, var(--bg) 70%, transparent);
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); background: var(--panel);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; white-space: nowrap;
  transition: all .2s;
}
.cat-chip.active {
  color: var(--bg); background: var(--gold);
  border-color: var(--gold); font-weight: 500;
}

/* ---- Inhalt ----------------------------------------------- */
.content { max-width: var(--maxw); margin: 0 auto; padding: 8px 16px; }

.cat-section { padding: 24px 0 8px; scroll-margin-top: 120px; }
.cat-head {
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.cat-head h2 {
  font-family: var(--serif); font-weight: 500; font-size: 30px;
  color: var(--text); white-space: nowrap; letter-spacing: .02em;
}
.cat-head .cat-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ---- Speise-Eintrag --------------------------------------- */
.item {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: opacity .2s;
}
.item:last-child { border-bottom: none; }
.item.sold { opacity: .5; }
.item-thumb {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px;
  object-fit: cover; background: var(--panel-2);
  border: 1px solid var(--line);
}
.item-body { flex: 1; min-width: 0; }
.item-row1 {
  display: flex; align-items: baseline; gap: 12px;
}
.item-name {
  font-family: var(--serif); font-size: 21px; font-weight: 600;
  color: var(--text); letter-spacing: .01em;
}
.item-dots {
  flex: 1; border-bottom: 1px dotted var(--gold-deep);
  transform: translateY(-4px); opacity: .5;
}
.item-price {
  font-family: var(--serif); font-size: 19px; font-weight: 500;
  color: var(--gold-soft); white-space: nowrap;
}
.item-desc {
  font-size: 13.5px; color: var(--text-dim); margin-top: 4px;
  line-height: 1.5;
}
.item-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tag {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-deep);
  border-radius: 999px; padding: 3px 9px;
}
.tag.sold-tag { color: var(--danger); border-color: var(--danger); }

/* ---- Floating Cart Button --------------------------------- */
.cart-fab {
  position: fixed; right: 18px; bottom: 22px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-soft), var(--gold-deep));
  color: #1a130a; border: none; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(201,164,92,.3);
  transition: transform .2s;
}
.cart-fab[hidden] { display: none; }
.cart-fab:active { transform: scale(.92); }
.cart-count {
  position: absolute; top: -2px; right: -2px;
  min-width: 22px; height: 22px; padding: 0 5px;
  background: var(--bg); color: var(--gold-soft);
  border: 1px solid var(--gold); border-radius: 999px;
  font-size: 12px; font-weight: 500;
  display: grid; place-items: center;
}

/* ---- Sheets (Bottom Drawer) ------------------------------- */
.sheet { position: fixed; inset: 0; z-index: 100; }
.sheet[hidden] { display: none; }
.sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6); backdrop-filter: blur(3px);
  animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0 } }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: var(--maxw); margin: 0 auto;
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line); border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow-y: auto;
  animation: slideUp .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes slideUp { from { transform: translateY(100%); } }
.sheet-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text-dim); cursor: pointer; font-size: 14px;
}
.sheet-title {
  font-family: var(--serif); font-size: 28px; font-weight: 500;
  margin-bottom: 18px; color: var(--text);
}

/* ---- Item-Detail im Sheet --------------------------------- */
.detail-photo {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: 14px; margin-bottom: 18px; border: 1px solid var(--line);
}
.detail-name {
  font-family: var(--serif); font-size: 32px; font-weight: 600;
  color: var(--text); line-height: 1.05;
}
.detail-price {
  font-family: var(--serif); font-size: 24px; color: var(--gold-soft);
  margin: 6px 0 14px;
}
.detail-desc { color: var(--text-dim); font-size: 15px; margin-bottom: 22px; }
.qty-row {
  display: flex; align-items: center; gap: 18px; margin-bottom: 22px;
}
.qty-row span { color: var(--text-dim); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.qty-ctrl { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.qty-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--gold-soft); font-size: 22px; cursor: pointer;
  display: grid; place-items: center;
}
.qty-val { font-family: var(--serif); font-size: 24px; min-width: 26px; text-align: center; }

/* ---- Buttons ---------------------------------------------- */
.btn-primary {
  width: 100%; padding: 16px; border: none; border-radius: 12px;
  background: linear-gradient(160deg, var(--gold-soft), var(--gold-deep));
  color: #1a130a; font-family: var(--sans); font-weight: 500;
  font-size: 15px; letter-spacing: .04em; cursor: pointer;
  transition: filter .2s, transform .1s;
}
.btn-primary:active { transform: scale(.99); filter: brightness(1.08); }
.btn-primary:disabled { opacity: .5; cursor: default; }

/* ---- Warenkorb-Liste -------------------------------------- */
.cart-line {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name { font-family: var(--serif); font-size: 18px; color: var(--text); }
.cart-line-price { font-size: 13px; color: var(--text-mute); }
.cart-line .qty-ctrl { margin-left: 0; }
.cart-line .qty-btn { width: 32px; height: 32px; font-size: 18px; }
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0; margin-bottom: 8px;
  font-family: var(--serif);
}
.cart-total span:first-child { font-size: 16px; color: var(--text-dim); }
.cart-total span:last-child { font-size: 26px; color: var(--gold-soft); }
.cart-form { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.cart-form input, .cart-form textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--text); font-family: var(--sans); font-size: 15px;
  resize: none;
}
.cart-form input::placeholder, .cart-form textarea::placeholder { color: var(--text-mute); }
.cart-form input:focus, .cart-form textarea:focus { outline: none; border-color: var(--gold-deep); }
.cart-empty { text-align: center; color: var(--text-mute); padding: 30px 0; }

/* ---- Toast ------------------------------------------------ */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 150; max-width: 90%;
  background: var(--panel); border: 1px solid var(--gold-deep);
  color: var(--text); padding: 14px 22px; border-radius: 12px;
  font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: toastIn .3s ease;
}
.toast[hidden] { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---- Footer ----------------------------------------------- */
.foot {
  text-align: center; padding: 50px 24px 20px;
  color: var(--text-mute); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase;
}
.foot-rule { margin-bottom: 16px; }
