:root {
  --gold: #d9a441;
  --gold-light: #eab84f;
  --dark: #0d2818;
  --dark2: #123a22;
  --dark3: #184a2b;
  --border: #2d6b42;
  --text: #f5faf6;
  --text-muted: #a8c9b3;
  --green: #3d9a5c;
  --red: #c0463f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display:block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: rgba(26,18,16,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top:0; z-index: 50;
}
.site-header .inner { display:flex; align-items:center; justify-content:space-between; padding: 16px 0; }
.brand { display:flex; align-items:center; gap:10px; font-size: 22px; font-weight:800; color: var(--gold); }
.brand span.moon { font-size: 24px; }
.nav-links { display:flex; align-items:center; gap: 22px; font-size: 15px; color: var(--text-muted); }
.nav-links a:hover { color: var(--gold); }
.cart-pill {
  display:flex; align-items:center; gap:8px;
  background: var(--gold); color: var(--dark); font-weight:700;
  padding: 10px 16px; border-radius: 999px; font-size: 14px;
}
.cart-pill:hover { background: var(--gold-light); }

/* Hero */
.hero {
  background: radial-gradient(ellipse at top, #1a4a2e 0%, var(--dark) 70%);
  padding: 40px 0 24px; text-align:center; border-bottom: 1px solid var(--border);
}
.hero-compact { padding: 28px 0 20px; }
.hero h1 { font-size: 32px; margin: 0 0 6px; color: var(--gold); }
.hero p { color: var(--text-muted); font-size: 15px; max-width: 560px; margin: 0 auto 16px; }

/* Suche */
.search-bar { max-width: 480px; margin: 0 auto; position: relative; display:flex; align-items:center; gap:10px; }
.search-bar input {
  width: 100%; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--dark2); color: var(--text); font-size: 15px; outline: none;
}
.search-bar input:focus { border-color: var(--gold); }
.search-count { position:absolute; right:16px; font-size:12px; color: var(--text-muted); pointer-events:none; }

/* Categories nav */
.cat-nav { display:flex; gap:8px; overflow-x:auto; padding: 14px 0; scrollbar-width: thin; }
.cat-nav-sticky {
  position: sticky; top: 0; z-index: 40; background: rgba(13,40,24,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); margin: 0 -20px; padding-left: 20px; padding-right: 20px;
}
.cat-nav a {
  white-space: nowrap; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-muted); font-size: 13px; flex-shrink: 0;
}
.cat-nav a.active, .cat-nav a:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); font-weight:700; }

/* Product grid - dicht gepackt für hunderte Produkte */
.menu-section { margin-bottom: 28px; scroll-margin-top: 70px; }
.menu-section h2 { color: var(--gold); font-size: 18px; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin: 20px 0 12px; }
.cat-count { color: var(--text-muted); font-size: 13px; font-weight: 400; }

.product-grid-dense { display:grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 10px; }
.product-card {
  background: var(--dark2); border: 1px solid var(--border); border-radius: 10px;
  overflow:hidden; display:flex; flex-direction:column; transition: transform .12s, box-shadow .12s, border-color .12s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.product-card .img { width:100%; aspect-ratio: 1/1; object-fit:cover; background:#1a4a2e; }
.product-card .img.placeholder { display:flex; align-items:center; justify-content:center; font-size:26px; color: var(--border); }
.product-card .body { padding: 8px 10px 10px; display:flex; flex-direction:column; gap:2px; flex:1; }
.product-card h3 { margin:0; font-size:13px; line-height:1.3; font-weight:600; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.6em; }
.product-card p { display:none; }
.product-card .foot { display:flex; align-items:center; justify-content:space-between; margin-top:6px; gap:6px; }
.price { color: var(--gold); font-weight:800; font-size:13px; }
.btn-add {
  width: 30px; height: 30px; border-radius: 50%; padding: 0; font-size: 18px; line-height: 1;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.btn { border:none; border-radius:8px; padding:9px 16px; font-weight:700; cursor:pointer; font-size:14px; }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-light); }

/* Lieferzeiten-Banner */
.delivery-banner { text-align:center; font-size:13px; padding:8px 12px; font-weight:600; }
.delivery-open { background: rgba(61,154,92,.18); color:#7be0a0; border-bottom:1px solid rgba(61,154,92,.3); }
.delivery-closed { background: rgba(217,164,65,.15); color: var(--gold-light); border-bottom:1px solid rgba(217,164,65,.3); }

/* Gewichts-Schieberegler (kg-Verkauf) */
.product-card-weighted .body { padding-bottom: 10px; }
.weight-slider-wrap { display:flex; flex-direction:column; gap:6px; margin-top:4px; }
.weight-slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  background: var(--border); border-radius: 999px; outline: none; margin: 8px 0 2px;
}
.weight-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); cursor: pointer; border: 3px solid var(--dark2); box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.weight-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--gold); cursor: pointer;
  border: 3px solid var(--dark2); box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.weight-slider::-webkit-slider-runnable-track { background: var(--border); height: 4px; border-radius: 999px; }
.weight-slider-info { display:flex; justify-content:space-between; align-items:center; }
.weight-value { font-size: 12px; color: var(--text-muted); font-weight:600; }
.weight-price { font-size: 13px; color: var(--gold); font-weight:800; }
.btn-block-sm { width:100%; padding:7px; font-size:12px; border-radius:6px; margin-top:2px; }
@media (max-width: 900px) {
  .product-grid-dense { grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); gap: 8px; }
  .hero h1 { font-size: 26px; }
}
/* Responsive: Handy */
@media (max-width: 560px) {
  .container { padding: 0 12px; }
  .hero-compact { padding: 20px 0 14px; }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 13px; margin-bottom: 12px; }
  .product-grid-dense { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-card h3 { font-size: 12px; }
  .cat-nav-sticky { margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
  .menu-section h2 { font-size: 16px; }
}
/* Sehr kleine Geräte (z.B. Sunmi Handterminal) */
@media (max-width: 380px) {
  .product-grid-dense { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .product-card .body { padding: 6px 8px 8px; }
}
.btn-outline { background:transparent; border:1px solid var(--gold); color: var(--gold); }
.btn-block { width:100%; }
.btn-danger { background: var(--red); color:#fff; }
.btn-green { background: var(--green); color: #fff; }
.btn:disabled { opacity:.5; cursor:not-allowed; }

/* Cart drawer */
.cart-drawer {
  position: fixed; top:0; right:-420px; width: 400px; max-width: 92vw; height:100vh;
  background: var(--dark2); border-left:1px solid var(--border); z-index: 100;
  transition: right .25s ease; display:flex; flex-direction:column; box-shadow: -10px 0 40px rgba(0,0,0,.5);
}
.cart-drawer.open { right:0; }
.cart-drawer .head { padding:20px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.cart-drawer .items { flex:1; overflow-y:auto; padding: 10px 20px; }
.cart-item { display:flex; gap:12px; padding:14px 0; border-bottom:1px solid var(--border); align-items:center; }
.cart-item img { width:56px;height:56px;object-fit:cover;border-radius:8px; background:#1a4a2e; }
.cart-item .info { flex:1; }
.cart-item .qty-ctrl { display:flex; align-items:center; gap:8px; }
.cart-item .qty-ctrl button { width:26px;height:26px;border-radius:6px;border:1px solid var(--border); background:var(--dark); color:var(--text); cursor:pointer; }
.cart-drawer .foot { padding: 18px 20px; border-top:1px solid var(--border); }
.cart-drawer .total-row { display:flex; justify-content:space-between; font-size:18px; font-weight:800; margin-bottom:14px; }
.overlay { position:fixed; inset:0; background: rgba(0,0,0,.5); z-index:90; display:none; }
.overlay.show { display:block; }
.close-x { background:none; border:none; color:var(--text-muted); font-size:22px; cursor:pointer; }
.empty-msg { text-align:center; color: var(--text-muted); padding: 40px 0; }

/* Forms */
.form-card { background: var(--dark2); border:1px solid var(--border); border-radius: var(--radius); padding: 28px; max-width: 620px; margin: 0 auto; }
.form-group { margin-bottom: 16px; }
.form-group label { display:block; margin-bottom:6px; font-size:14px; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select {
  width:100%; padding: 11px 14px; border-radius:8px; border:1px solid var(--border);
  background: var(--dark); color: var(--text); font-size:14px;
}
.pay-options { display:flex; gap:12px; margin-top:6px; }
.pay-option { flex:1; border:1px solid var(--border); border-radius:10px; padding:14px; text-align:center; cursor:pointer; }
.pay-option.selected { border-color: var(--gold); background: rgba(217,164,65,.1); }
.pay-option input { display:none; }

/* Order summary sidebar */
.checkout-grid { display:grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items:start; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } }
.summary-card { background: var(--dark2); border:1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 90px; }
.summary-row { display:flex; justify-content:space-between; padding: 6px 0; color: var(--text-muted); font-size:14px; }
.summary-row.total { color: var(--text); font-weight:800; font-size:18px; border-top:1px solid var(--border); margin-top:8px; padding-top:12px; }

/* Tracking */
.track-wrap { max-width: 640px; margin: 0 auto; }
.progress-track { display:flex; justify-content:space-between; margin: 34px 0; position:relative; }
.progress-track::before { content:''; position:absolute; top:16px; left:0; right:0; height:3px; background: var(--border); z-index:0; }
.progress-track .step { flex:1; text-align:center; position:relative; z-index:1; }
.progress-track .dot { width:34px; height:34px; border-radius:50%; background: var(--dark2); border:3px solid var(--border); margin:0 auto 8px; display:flex; align-items:center; justify-content:center; font-size:14px; }
.progress-track .step.done .dot { background: var(--gold); border-color: var(--gold); color: var(--dark); font-weight:800; }
.progress-track .step span.label { font-size: 12px; color: var(--text-muted); }
.progress-track .step.done span.label { color: var(--gold); }
.status-banner { text-align:center; padding: 18px; border-radius: 10px; background: var(--dark2); border:1px solid var(--border); margin-bottom: 20px; font-size: 16px; }

footer.site-footer { border-top:1px solid var(--border); margin-top: 60px; padding: 30px 0; text-align:center; color: var(--text-muted); font-size:13px; }

.badge { display:inline-block; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:700; }
.badge-unpaid { background:#4a1c1c; color:#f2a; color:#ff8b8b; }
.badge-paid { background:#1c4a2c; color:#7be0a0; }
.alert { padding:14px 18px; border-radius:10px; margin-bottom:16px; font-size:14px; }
.alert-error { background:#4a1c1c; border:1px solid #7a2a2a; }
.alert-success { background:#1c4a2c; border:1px solid #2a7a45; }
