:root {
  --bg: #fff8ef;
  --surface: #ffffff;
  --surface-2: #fff2df;
  --ink: #24160f;
  --muted: #6f625b;
  --primary: #e64517;
  --primary-dark: #bd330f;
  --accent: #ffb000;
  --border: #f0dcc9;
  --success: #167a3d;
  --shadow: 0 18px 50px rgba(50, 24, 8, .14);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

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

.site-header {
  min-height: 520px;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 176, 0, .32), transparent 34%),
    linear-gradient(135deg, #2b130a 0%, #7b220b 50%, #e64517 100%);
  color: #fff;
  border-bottom-left-radius: 42px;
  border-bottom-right-radius: 42px;
  overflow: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: 1.1rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
}

.admin-link {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, .7fr);
  gap: 46px;
  align-items: center;
  padding: 55px 0 74px;
}

.hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: .94;
  letter-spacing: -.06em;
  max-width: 820px;
}

.hero p {
  margin: 0;
  max-width: 720px;
  color: rgba(255,255,255,.84);
  font-size: clamp(1.06rem, 2.4vw, 1.35rem);
  line-height: 1.55;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.eyebrow.dark {
  background: #fff0d5;
  color: var(--primary-dark);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

.hero-facts span {
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.17);
  color: rgba(255,255,255,.92);
  font-weight: 700;
}

.hero-card {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 34px;
  border-radius: 38px;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.20), 0 30px 90px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
}

.hero-card .plate {
  font-size: 7.2rem;
  filter: drop-shadow(0 18px 14px rgba(0,0,0,.18));
}

.hero-card strong { display: block; font-size: 1.4rem; }
.hero-card span { color: rgba(255,255,255,.76); font-weight: 700; }

.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(230,69,23,.25); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-light { background: #fff; color: var(--primary-dark); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.btn.full { width: 100%; padding: 15px 18px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.notice {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #eaf8ef;
  border: 1px solid #bde9cb;
  color: var(--success);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 26px;
  align-items: start;
  padding: 44px 0 70px;
}

.section-heading h2 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -.05em;
}

.category-title {
  margin: 34px 0 14px;
  font-size: 1.15rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.menu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(61, 34, 17, .08);
  overflow: hidden;
}

.menu-image {
  width: 100%;
  height: 185px;
  object-fit: cover;
  background: linear-gradient(135deg, #ffedd2, #ffd27c);
}

.menu-image.placeholder {
  display: grid;
  place-items: center;
}

.menu-image.placeholder span { font-size: 4rem; }

.menu-body { padding: 18px; }
.menu-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.menu-title-row h4 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.menu-title-row strong {
  white-space: nowrap;
  color: var(--primary-dark);
}

.menu-body p {
  min-height: 44px;
  margin: 9px 0 16px;
  color: var(--muted);
  line-height: 1.45;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.qty-btn,
.cart-remove {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff7ea;
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 900;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 900;
}

.add-btn { margin-left: auto; background: #24160f; color: #fff; padding: 10px 14px; }

.cart-panel {
  position: sticky;
  top: 18px;
}

.order-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.order-form h2 {
  margin: 0 0 16px;
  letter-spacing: -.04em;
}

.cart-items.empty {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--muted);
}

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-line strong { display: block; }
.cart-line span { color: var(--muted); font-size: .9rem; }

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0;
  padding: 16px;
  border-radius: 18px;
  background: #24160f;
  color: #fff;
}

.cart-total strong { font-size: 1.35rem; }

.order-form label {
  display: grid;
  gap: 7px;
  margin: 13px 0;
  color: #3e3029;
  font-weight: 800;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fffdf9;
  padding: 12px 13px;
  color: var(--ink);
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(230,69,23,.10);
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.small { font-size: .86rem; }
.muted { color: var(--muted); }
.empty-state {
  padding: 25px;
  border-radius: 20px;
  background: #fff;
  border: 1px dashed var(--border);
}

.site-footer {
  padding: 26px 0;
  background: #24160f;
  color: rgba(255,255,255,.78);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* Admin */
.admin-body { background: #f7f2ec; }
.admin-shell { display: grid; grid-template-columns: 245px 1fr; min-height: 100vh; }
.admin-sidebar { background: #24160f; color: #fff; padding: 24px; }
.admin-sidebar .brand { margin-bottom: 26px; }
.admin-nav { display: grid; gap: 8px; }
.admin-nav a {
  padding: 12px 13px;
  border-radius: 14px;
  color: rgba(255,255,255,.78);
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.admin-main { padding: 28px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 8px 28px rgba(61,34,17,.07);
  margin-bottom: 18px;
}
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat-card strong { display: block; font-size: 1.8rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: .86rem; text-transform: uppercase; letter-spacing: .06em; }
.admin-img { width: 62px; height: 46px; border-radius: 10px; object-fit: cover; background: #ffeed7; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: .82rem; font-weight: 900; background: #fff0d5; color: var(--primary-dark); }
.badge.ok { background: #eaf8ef; color: #167a3d; }
.badge.warn { background: #fff3cd; color: #7a4f00; }
.badge.off { background: #f4eeee; color: #756a66; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #2b130a, #e64517); }
.login-card { width: min(420px, 100%); background: #fff; border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
.error { padding: 13px 15px; border-radius: 15px; background: #ffe7e0; color: #9e260b; margin-bottom: 14px; }
.help-box { background: #fff8eb; border: 1px solid var(--border); border-radius: 18px; padding: 15px; color: var(--muted); line-height: 1.55; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-card { min-height: 230px; }
  .layout { grid-template-columns: 1fr; }
  .cart-panel { position: static; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: sticky; top: 0; z-index: 10; }
  .admin-nav { grid-template-columns: repeat(4, auto); overflow-x: auto; }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 22px, 1180px); }
  .site-header { border-bottom-left-radius: 26px; border-bottom-right-radius: 26px; }
  .topbar { padding: 16px 0; }
  .admin-link { display: none; }
  .hero { gap: 22px; padding-bottom: 42px; }
  .hero h1 { font-size: clamp(2.35rem, 13vw, 4rem); }
  .hero-facts { display: grid; }
  .hero-card .plate { font-size: 4.8rem; }
  .layout { padding-top: 30px; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-body p { min-height: auto; }
  .two-cols { grid-template-columns: 1fr; }
  .footer-inner { display: grid; }
  .admin-main { padding: 18px 12px; }
  .admin-top { display: grid; }
  .form-grid { grid-template-columns: 1fr; }
  .actions { min-width: 150px; }
}

.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

/* ==========================================================
   Smash n' Bun Theme - angepasst an das rote/schwarze Logo
   ========================================================== */
:root {
  --bg: #070707;
  --surface: #111111;
  --surface-2: #1b1b1b;
  --ink: #fff7ef;
  --muted: #c9c0b6;
  --primary: #f01822;
  --primary-dark: #b80e17;
  --accent: #ffffff;
  --border: rgba(255,255,255,.12);
  --success: #28c76f;
  --shadow: 0 22px 70px rgba(0,0,0,.45);
  --radius: 26px;
}

body {
  background:
    radial-gradient(circle at 14% 8%, rgba(240,24,34,.22), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(255,255,255,.07), transparent 24%),
    linear-gradient(180deg, #050505 0%, #101010 46%, #070707 100%);
  color: var(--ink);
}

.site-header {
  min-height: 560px;
  background:
    radial-gradient(circle at 16% 44%, rgba(240,24,34,.50), transparent 17%),
    radial-gradient(circle at 84% 12%, rgba(255,255,255,.13), transparent 19%),
    linear-gradient(135deg, #000 0%, #111 46%, #390006 74%, #f01822 145%);
  border-bottom: 1px solid rgba(255,255,255,.10);
  border-bottom-left-radius: 54px;
  border-bottom-right-radius: 54px;
}

.topbar {
  padding-top: 18px;
}

.brand {
  color: #fff;
  font-size: 1.2rem;
  text-transform: none;
}

.brand > span:last-child {
  text-shadow: 0 3px 14px rgba(0,0,0,.45);
}

.brand-mark.logo-mark {
  width: 56px;
  height: 56px;
  padding: 3px;
  border-radius: 999px;
  background: #000;
  border: 2px solid rgba(255,255,255,.88);
  box-shadow: 0 12px 30px rgba(240,24,34,.25);
  overflow: hidden;
}

.brand-mark.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.admin-link {
  background: #fff;
  color: #111;
  border: 0;
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
}

.hero h1,
.section-heading h2,
.order-form h2,
.admin-top h1,
.login-card h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 900;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 12px 34px rgba(0,0,0,.46);
}

.hero p {
  color: rgba(255,255,255,.86);
}

.eyebrow {
  background: rgba(240,24,34,.22);
  border: 1px solid rgba(240,24,34,.46);
  color: #fff;
}

.eyebrow.dark {
  background: rgba(240,24,34,.12);
  color: #fff;
  border: 1px solid rgba(240,24,34,.36);
}

.hero-facts span {
  background: rgba(0,0,0,.36);
  border-color: rgba(255,255,255,.18);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 28px rgba(240,24,34,.28);
}

.btn-primary:hover {
  background: #ff2630;
}

.btn-light {
  background: #fff;
  color: #000;
  border: 2px solid rgba(255,255,255,.9);
}

.logo-hero-card {
  min-height: 390px;
  background:
    radial-gradient(circle at 18% 22%, rgba(240,24,34,.40), transparent 26%),
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.18);
}

.hero-logo-img {
  width: min(290px, 78vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 999px;
  border: 4px solid #fff;
  box-shadow: 0 26px 80px rgba(0,0,0,.46), 0 0 0 10px rgba(240,24,34,.13);
  margin-bottom: 18px;
}

.logo-hero-card strong {
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
}

.logo-hero-card span {
  color: rgba(255,255,255,.78);
}

.notice {
  background: rgba(40,199,111,.13);
  border-color: rgba(40,199,111,.35);
  color: #d7ffe6;
}

.layout {
  padding-top: 54px;
}

.section-heading h2,
.category-title {
  color: #fff;
}

.menu-card,
.order-form,
.admin-card,
.login-card {
  background: linear-gradient(180deg, #151515 0%, #0d0d0d 100%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}

.menu-card {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.menu-card:hover {
  transform: translateY(-3px);
  border-color: rgba(240,24,34,.55);
  box-shadow: 0 28px 80px rgba(0,0,0,.50), 0 0 0 1px rgba(240,24,34,.18);
}

.menu-image {
  background:
    radial-gradient(circle at 28% 35%, rgba(240,24,34,.34), transparent 24%),
    linear-gradient(135deg, #080808, #2b0004);
}

.menu-image.placeholder {
  color: #fff;
}

.menu-image.placeholder span {
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.38));
}

.menu-title-row h4,
.order-form h2 {
  color: #fff;
}

.menu-title-row strong {
  color: #fff;
  background: var(--primary);
  padding: 7px 10px;
  border-radius: 999px;
}

.menu-body p,
.cart-line span,
.muted,
.small.muted {
  color: var(--muted);
}

.qty-btn,
.cart-remove {
  background: #1d1d1d;
  border-color: rgba(255,255,255,.14);
  color: #fff;
}

.qty-btn:hover,
.cart-remove:hover {
  background: var(--primary);
}

.add-btn {
  background: #fff;
  color: #000;
}

.add-btn:hover {
  background: var(--primary);
  color: #fff;
}

.cart-total {
  background: linear-gradient(135deg, #f01822, #87070d);
  color: #fff;
  box-shadow: 0 18px 44px rgba(240,24,34,.22);
}

.cart-items.empty,
.empty-state {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  color: var(--muted);
}

.cart-line {
  border-bottom-color: rgba(255,255,255,.10);
}

.order-form label {
  color: #fff;
}

input,
textarea,
select {
  background: #060606;
  border-color: rgba(255,255,255,.15);
  color: #fff;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,.42);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(240,24,34,.16);
}

.site-footer {
  background: #000;
  border-top: 1px solid rgba(255,255,255,.10);
}

/* Backend im gleichen Branding */
.admin-body {
  background: #080808;
  color: #fff;
}

.admin-sidebar {
  background:
    radial-gradient(circle at 0% 0%, rgba(240,24,34,.28), transparent 34%),
    #000;
  border-right: 1px solid rgba(255,255,255,.10);
}

.admin-nav a:hover,
.admin-nav a.active {
  background: var(--primary);
  color: #fff;
}

.admin-main {
  background:
    radial-gradient(circle at 88% 8%, rgba(240,24,34,.12), transparent 28%),
    #080808;
}

table,
th,
td {
  color: #fff;
}

th,
td {
  border-bottom-color: rgba(255,255,255,.10);
}

th {
  color: #d7cec4;
}

.admin-img {
  background: #171717;
  border: 1px solid rgba(255,255,255,.10);
}

.badge {
  background: rgba(240,24,34,.18);
  color: #fff;
}

.badge.ok {
  background: rgba(40,199,111,.16);
  color: #9dffc3;
}

.badge.warn {
  background: rgba(255,193,7,.16);
  color: #ffe3a0;
}

.badge.off {
  background: rgba(255,255,255,.10);
  color: #d1d1d1;
}

.help-box {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: var(--muted);
}

.login-page {
  background:
    radial-gradient(circle at 18% 18%, rgba(240,24,34,.36), transparent 28%),
    linear-gradient(135deg, #000, #170002 50%, #f01822 180%);
}

.login-brand {
  color: #fff;
  margin-bottom: 18px;
}

.error {
  background: rgba(240,24,34,.16);
  color: #ffd4d7;
  border: 1px solid rgba(240,24,34,.30);
}

@media (max-width: 680px) {
  .site-header {
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
  }

  .brand-mark.logo-mark {
    width: 48px;
    height: 48px;
  }

  .hero-logo-img {
    width: min(230px, 76vw);
  }

  .logo-hero-card {
    min-height: 300px;
  }
}

.order-link{font-weight:800;color:var(--primary);text-decoration:none}.order-link:hover{text-decoration:underline}.inline-status-form{margin:0}.inline-status-form select{min-width:150px;padding:8px 10px}.timeline{display:grid;gap:10px;margin-top:12px}.timeline-item{border:1px solid var(--border);border-radius:14px;padding:12px 14px;background:rgba(255,255,255,.03);display:grid;gap:4px}.timeline-item strong{font-size:.9rem}.timeline-item span{color:var(--muted)}

/* V7 Erweiterungen */
.menu-details { margin: 10px 0; }
.menu-details summary { cursor: pointer; display: inline-flex; padding: 8px 12px; border-radius: 999px; background: rgba(239,35,42,.12); color: var(--accent, #ef232a); font-weight: 800; }
.menu-details p { margin: 8px 0 0; font-size: .92rem; }
.extras-box { margin: 12px 0; padding: 12px; border-radius: 16px; background: rgba(0,0,0,.04); display: grid; gap: 6px; }
.extras-box strong { display: block; margin-bottom: 3px; }
.extras-box label { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; font-size: .92rem; }
.extras-box input { width: auto; }
.cart-line small { display: block; color: var(--muted, #777); margin-top: 3px; }
.btn.danger { background: #441114; color: #fff; border-color: #6f1d23; }
.notice.error { background: #ffe8e8; border: 1px solid #ffb3b3; color: #7a1010; }
canvas { max-width: 100%; }

/* V8 */
.hidden-field { display: none !important; }
.cart-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.72); display: none; align-items: center; justify-content: center; padding: 20px; }
.cart-modal.open { display: flex; }
.cart-modal-box { width: min(420px, 100%); background: var(--card, #fff); color: var(--text, #111); border-radius: 24px; padding: 24px; box-shadow: 0 24px 80px rgba(0,0,0,.35); border: 1px solid var(--border, rgba(0,0,0,.12)); }
.cart-modal-box h3 { margin: 0 0 8px; }
.menu-details .extras-box { margin-top: 14px; }
.extra-choice + span { margin-left: 4px; }

/* V9 settings hub */
.settings-hub .inner-card { box-shadow: none; margin: 0; }
.compact-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
