/* =========================================================
   Blaze Burger – Design System (helles Theme, an das Original angelehnt)
   ========================================================= */

:root {
  --bg: #fffdfb;
  --bg-alt: #fbf3ea;
  --surface: #ffffff;
  --surface-2: #f6ede2;
  --border: #ece0d3;
  --ink: #17110d;
  --text: #1c1512;
  --text-dim: #6b5d52;
  --text-faint: #9c8c7e;
  --flame-1: #ff5b1f;
  --flame-2: #ffb020;
  --flame-3: #ff2f4e;
  --green: #2f9e5c;
  --gradient: linear-gradient(120deg, var(--flame-3) 0%, var(--flame-1) 45%, var(--flame-2) 100%);
  --shadow-lg: 0 24px 60px -24px rgba(23, 17, 13, 0.28);
  --shadow-sm: 0 8px 22px -12px rgba(23, 17, 13, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.5px; line-height: 1.05; margin: 0 0 .4em; color: var(--ink); }
h1 { text-transform: uppercase; }
h2 { text-transform: uppercase; font-size: clamp(28px, 4vw, 44px); }
p { color: var(--text-dim); }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: translateY(0); }
  .reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
  .reveal-stagger.in > *:nth-child(1) { transition-delay: .03s; }
  .reveal-stagger.in > *:nth-child(2) { transition-delay: .09s; }
  .reveal-stagger.in > *:nth-child(3) { transition-delay: .15s; }
  .reveal-stagger.in > *:nth-child(4) { transition-delay: .21s; }
  .reveal-stagger.in > *:nth-child(5) { transition-delay: .27s; }
  .reveal-stagger.in > *:nth-child(n+6) { transition-delay: .32s; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--flame-1);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 12px rgba(255,91,31,.55); animation: pulseDot 1.8s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { transform: scale(1); } 50% { transform: scale(1.35); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 999px; padding: 15px 28px; font-weight: 700;
  font-size: 15px; letter-spacing: .3px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .15s ease, background .2s ease;
  min-height: 48px;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--gradient); background-size: 180% 180%; color: #1a0a03; box-shadow: 0 12px 28px -10px rgba(255, 91, 31, .55); }
.btn-primary:hover { box-shadow: 0 16px 34px -8px rgba(255, 91, 31, .65); transform: translateY(-2px); background-position: 100% 0; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #ddccba; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn-sm { padding: 10px 18px; font-size: 13px; min-height: 38px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px) saturate(160%);
  background: rgba(255, 253, 251, 0.86);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; letter-spacing: 1px; color: var(--ink); }
.brand .flame-dot { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; overflow: hidden; }
.brand .flame-dot img { width: 100%; height: 100%; object-fit: contain; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-weight: 600; font-size: 14.5px; color: var(--text-dim); transition: color .15s; position: relative; }
.main-nav a::after { content:""; position:absolute; left:0; right:100%; bottom:-4px; height:2px; background: var(--gradient); transition: right .25s var(--ease); }
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
  padding: 7px 12px; border-radius: 999px; background: rgba(47,158,92,.12); color: #1f7a44; border: 1px solid rgba(47,158,92,.3);
}
.status-pill.closed { background: rgba(226, 50, 28, .1); color: #c62710; border-color: rgba(226,50,28,.3); }
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulseDot 1.8s ease-in-out infinite; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -8px; right: -8px; background: var(--flame-3); color: #fff;
  font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--bg);
  animation: popIn .25s var(--ease);
}
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
.burger-toggle { display: none; background: #fff; border: 1px solid var(--border); border-radius: 10px; width: 44px; height: 44px; color: var(--ink); font-size: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 80px; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(100px); opacity: .35; z-index: 0;
}
.hero::before { width: 520px; height: 520px; background: var(--flame-2); top: -220px; right: -140px; }
.hero::after { width: 420px; height: 420px; background: var(--flame-1); bottom: -200px; left: -120px; opacity: .22; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); margin-bottom: 18px; }
.hero h1 .accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; max-width: 480px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-meta { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-meta div { font-size: 13px; color: var(--text-faint); }
.hero-meta strong { display: block; font-size: 20px; color: var(--ink); font-family: var(--font-display); letter-spacing: .5px; }

.hero-art {
  position: relative; aspect-ratio: 1/1.05; border-radius: 32px; overflow: hidden;
  box-shadow: var(--shadow-lg); animation: floatY 6s ease-in-out infinite;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .badge {
  position: absolute; bottom: 18px; left: 18px; background: rgba(23,17,13,.72); backdrop-filter: blur(6px);
  color: #fff; font-size: 12.5px; font-weight: 700; padding: 10px 16px; border-radius: 999px;
  display: flex; align-items: center; gap: 8px;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .hero-art { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.section-head p { margin-top: 10px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.perk-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.perk-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.perk-card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--gradient); display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; }
.perk-card h3 { font-family: var(--font-body); font-weight: 800; font-size: 17px; text-transform: none; margin-bottom: 6px; color: var(--ink); }
.perk-card p { font-size: 14.5px; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 14px; }
.gallery-grid a, .gallery-grid .g-item { border-radius: 16px; overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-grid .g-item:hover img { transform: scale(1.08); }
.gallery-grid .g-big { grid-column: span 2; grid-row: span 2; }

/* ---------- Menu ---------- */
.category-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; position: sticky; top: 88px; z-index: 20; background: linear-gradient(var(--bg) 75%, transparent); padding: 10px 0; }
.category-tab {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-weight: 700; font-size: 14px; color: var(--text-dim); min-height: 42px; transition: transform .2s var(--ease), background .2s;
}
.category-tab:hover { transform: translateY(-2px); }
.category-tab.active { background: var(--gradient); color: #1a0a03; border-color: transparent; }

.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.menu-card {
  display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease); box-shadow: var(--shadow-sm);
}
.menu-card:hover { border-color: rgba(255,91,31,.4); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.menu-thumb {
  width: 92px; height: 92px; border-radius: 14px; flex: none; background: var(--surface-2);
  display: grid; place-items: center; font-size: 34px; border: 1px solid var(--border); overflow: hidden;
  background-image: var(--gradient); background-size: 220% 220%; background-position: var(--pos, 0% 0%);
}
.menu-thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-body { flex: 1; min-width: 0; }
.menu-body h4 { font-family: var(--font-body); font-weight: 800; font-size: 16px; margin: 0 0 4px; text-transform: none; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.menu-body p { font-size: 13.5px; margin: 0 0 10px; }
.menu-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.menu-tag.beliebt { background: rgba(255,176,32,.16); color: #a15c00; }
.menu-tag.scharf { background: rgba(255,47,78,.14); color: #c21c3a; }
.menu-tag.vegetarisch { background: rgba(47,158,92,.14); color: #1f7a44; }
.menu-foot { display: flex; align-items: center; justify-content: space-between; }
.menu-price { font-weight: 800; font-size: 16px; font-family: var(--font-display); letter-spacing: .5px; color: var(--ink); }
.add-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--gradient); color: #1a0a03;
  font-size: 20px; font-weight: 900; display: grid; place-items: center; line-height: 1; transition: transform .2s var(--ease);
}
.add-btn:hover { transform: scale(1.12) rotate(90deg); }
.add-btn:active { transform: scale(.9); }

/* ---------- Cart Drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(23,17,13,.45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(2px); }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(430px, 100%); background: var(--surface);
  border-left: 1px solid var(--border); z-index: 95; transform: translateX(100%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 22px 22px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { margin: 0; font-family: var(--font-body); text-transform: none; font-weight: 800; }
.drawer-close { background: none; border: none; color: var(--text-dim); font-size: 24px; width: 40px; height: 40px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer-foot { padding: 18px 22px 24px; border-top: 1px solid var(--border); background: var(--surface); }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); animation: popIn .2s var(--ease); }
.cart-line-info { flex: 1; }
.cart-line-info h5 { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.cart-line-info .price { font-size: 13px; color: var(--text-faint); }
.qty-ctrl { display: flex; align-items: center; gap: 10px; }
.qty-ctrl button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-alt); color: var(--ink); font-size: 16px; transition: transform .15s; }
.qty-ctrl button:active { transform: scale(.85); }
.cart-empty { text-align: center; padding: 50px 10px; color: var(--text-faint); }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-dim); margin-bottom: 6px; }
.summary-row.total { font-size: 18px; font-weight: 800; color: var(--ink); margin-top: 10px; }

/* ---------- Checkout ---------- */
.checkout-modal { position: fixed; inset: 0; z-index: 110; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 16px; background: rgba(23,17,13,.35); backdrop-filter: blur(3px); }
.checkout-modal.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.checkout-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); max-width: 560px; width: 100%; padding: 30px; box-shadow: var(--shadow-lg); animation: riseIn .3s var(--ease); }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.checkout-card h3 { text-transform: none; font-weight: 800; }
.type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 22px; }
.type-switch label {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; text-align: center; font-weight: 700; font-size: 14px;
  background: var(--bg-alt); position: relative; transition: border-color .2s, background .2s;
}
.type-switch input { position: absolute; opacity: 0; }
.type-switch label.checked { border-color: var(--flame-1); background: linear-gradient(180deg, rgba(255,91,31,.12), transparent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .3px; }
.field input, .field select, .field textarea {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; color: var(--text);
  font-family: inherit; font-size: 15px; min-height: 46px;
}
.field textarea { min-height: 70px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--flame-1); outline-offset: 1px; }
.pay-switch { display: flex; gap: 10px; }
.pay-switch label { flex: 1; }
.form-error { background: rgba(226,50,28,.1); border: 1px solid rgba(226,50,28,.3); color: #b8230e; padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; display: none; }
.form-error.show { display: block; }
.closed-banner { background: rgba(226,50,28,.08); border: 1px solid rgba(226,50,28,.25); color: #b8230e; padding: 14px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #f3e9dd; border-top: 1px solid var(--border); padding: 60px 0 30px; }
.site-footer h4 { color: #f3e9dd; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #cbb8a4; font-family: var(--font-body); font-weight: 800; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a, .footer-grid p { color: #cbb8a4; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #a4917d; }

/* ---------- Order status / confirmation ---------- */
.order-status-wrap { max-width: 560px; margin: 80px auto; padding: 0 20px; text-align: center; }
.status-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--gradient); display: grid; place-items: center; margin: 0 auto 20px; font-size: 40px; animation: popIn .35s var(--ease); }
.status-timeline { display: flex; justify-content: space-between; margin: 40px 0; position: relative; }
.status-timeline::before { content: ""; position: absolute; top: 16px; left: 0; right: 0; height: 2px; background: var(--border); }
.status-step { position: relative; z-index: 1; text-align: center; flex: 1; }
.status-step .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); margin: 0 auto 8px; display: grid; place-items: center; font-size: 14px; transition: background .3s, border-color .3s; }
.status-step.done .dot { background: var(--gradient); border-color: transparent; color: #1a0a03; }
.status-step span { font-size: 12px; color: var(--text-faint); }
.status-step.done span { color: var(--ink); font-weight: 700; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%); background: var(--ink); border: 1px solid var(--border); color: #fff; padding: 14px 22px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 200; transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .main-nav { display: none; }
  .burger-toggle { display: grid; place-items: center; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .perks { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery-grid .g-big { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .category-tabs { top: 76px; }
}

/* Mobile nav sheet */
.mobile-nav { position: fixed; inset: 0; background: var(--bg); z-index: 80; display: none; flex-direction: column; padding: 100px 30px 30px; gap: 4px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 16px 4px; font-family: var(--font-display); font-size: 24px; text-transform: uppercase; border-bottom: 1px solid var(--border); color: var(--ink); }
