/* Heid's Heidelberg – Bestellseite. Markenkonform: Cream + Bordeaux + Heid's-Schriftzug. */
:root {
  --bg: #f7f1e3;            /* Warmes Cream wie auf der Speisekarte */
  --bg-2: #f1ead8;
  --surface: #ffffff;
  --surface-2: #fbf6ea;
  --line: #e6dcc4;
  --line-soft: #efe7d2;
  --ink: #1a1410;           /* Tiefes Schwarzbraun */
  --ink-soft: #4a4138;
  --ink-muted: #8a7e6a;
  --accent: #c8261e;        /* Heid's Markenrot */
  --accent-2: #a51817;
  --accent-dark: #7c1010;
  --gold: #a47a3a;
  --ok: #4a7a3a;
  --warn: #b35a00;
  --danger: #b73030;
  --shadow-sm: 0 4px 14px rgba(50, 30, 10, 0.07);
  --shadow-md: 0 10px 30px rgba(50, 30, 10, 0.10);
  --shadow-lg: 0 20px 50px rgba(50, 30, 10, 0.14);
  --radius: 6px;
  --radius-lg: 10px;
  --script: 'Yellowtail', 'Brush Script MT', cursive;
  --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  position: relative;
}
.header-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  line-height: 1;
}
.brand-bull {
  height: 56px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-heids {
  height: 64px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-section {
  display: inline-block;
  margin-left: 6px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
/* legacy shims */
.brand-name { display: none; }
.brand-sub { display: none; }
.brand-mark { display: none; }
.admin-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
  border: 1px solid transparent;
  padding: 10px 18px;
  border-radius: 999px;
  transition: all 0.2s;
}
.admin-link:hover { color: var(--accent); }

/* ---------- Info Banner ---------- */
.info-banner {
  grid-column: 1 / -1;        /* spannt über volle Container-Breite */
  margin: 32px 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 32px 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.page-title { grid-column: 1; }
.products-grid { grid-column: 1; }
.cart { grid-column: 2; }
.info-banner::before {
  content: '';
  position: absolute;
  top: -1px; left: 28px; right: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
}
.info-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.info-banner-col {
  text-align: center;
  position: relative;
  padding: 4px 6px;
}
.info-banner-col:first-child::after {
  content: '';
  position: absolute;
  top: 12%; bottom: 12%; right: -15px;
  width: 1px;
  background: var(--line);
}
.info-banner-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--accent);
}
.info-banner-value {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin-top: 8px;
  letter-spacing: 0.3px;
}
.info-banner-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.45;
}
.info-banner-service {
  margin-top: 20px;
  padding: 16px 22px;
  background: linear-gradient(135deg, #fdf6e6 0%, #f7ecd1 100%);
  border: 1px solid #ead9a8;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  text-align: center;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.4px;
  line-height: 1.35;
  position: relative;
}
.info-banner-service::before {
  content: '★';
  color: var(--gold);
  margin-right: 8px;
  font-size: 14px;
  vertical-align: 2px;
}
.info-banner-service.hidden { display: none; }
.info-banner-payment {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.info-banner-payment.hidden { display: none; }
.info-banner-closed {
  margin-top: 6px;
  text-align: center;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 500;
}
.info-banner-closed.hidden { display: none; }

@media (max-width: 760px) {
  .info-banner { padding: 18px 22px 14px; }
  .info-banner-grid { grid-template-columns: 1fr; gap: 0; }
  .info-banner-col { text-align: left; padding: 14px 0; }
  .info-banner-col:first-child::after { display: none; }
  .info-banner-col:first-child { border-bottom: 1px solid var(--line); padding-top: 4px; }
  .info-banner-value { font-size: 22px; }
  .info-banner-payment { font-size: 14px; }
}

.page-title {
  font-family: var(--serif);
  margin: 44px 0 8px;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--ink);
}
.page-title::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: var(--accent);
  margin-top: 14px;
}

/* ---------- Layout ---------- */
main.container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
  padding-bottom: 80px;
}
@media (max-width: 960px) {
  main.container { grid-template-columns: 1fr; }
  .info-banner, .page-title, .products-grid, .cart { grid-column: 1; }
  .page-title { font-size: 36px; }
  .brand-name { font-size: 44px; }
}

/* ---------- Products ---------- */
.products-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
}
.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 38, 30, 0.25);
  box-shadow: var(--shadow-md);
}
.product-card:hover::before { opacity: 1; }

.product-origin {
  font-size: 10.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 700;
}
.product-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}
.product-desc { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.product-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--accent);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 4px;
}
.product-price small {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.portion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.portion-btn {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 12px;
  cursor: pointer;
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s, background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.portion-btn:hover {
  background: var(--surface);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.portion-btn:active { transform: translateY(0); }
.portion-btn .portion-grams {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.portion-btn .portion-price {
  font-size: 13.5px;
  color: var(--accent);
  font-weight: 600;
}
.portion-btn.just-added {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px) scale(1.02);
}
.portion-btn.just-added .portion-grams,
.portion-btn.just-added .portion-price,
.portion-btn.just-added .portion-name,
.portion-btn.just-added .portion-detail {
  color: #fff;
}

/* Benannte Portion – z.B. "Ganzes Filet" */
.portion-btn-named {
  grid-column: span 2;       /* volle Breite im 2-Spalten-Grid */
  background: var(--bg-2);
  border-color: var(--accent);
  padding: 16px 14px;
}
.portion-btn-named .portion-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  text-align: center;
}
.portion-btn-named .portion-detail {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 2px;
  text-align: center;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--sans);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  max-width: calc(100vw - 40px);
}
.toast.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast::before {
  content: '';
  display: inline-block; width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%; margin-right: 10px; vertical-align: middle;
}

/* ---------- Mobile Cart Badge ---------- */
.cart-badge {
  display: none;
  position: fixed;
  bottom: 16px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 40;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.3px;
}
.cart-badge .cart-badge-icon { font-size: 16px; }
.cart-badge .cart-badge-total {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  padding-left: 6px;
  border-left: 1px solid rgba(255,255,255,0.4);
  margin-left: 4px;
}
.cart-badge .cart-badge-hint {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.85;
  margin-left: 4px;
}
.cart-badge.hidden { display: none !important; }
@media (max-width: 960px) {
  .cart-badge:not(.hidden) { display: inline-flex; }
}

/* ---------- Cart ---------- */
.cart {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: sticky;
  top: 22px;
  box-shadow: var(--shadow-sm);
}
.cart h2 {
  font-family: var(--serif);
  margin: 0 0 14px;
  font-size: 24px;
  color: var(--ink);
  font-weight: 700;
}
.cart h2::after {
  content: '';
  display: block;
  width: 40px; height: 2px;
  background: var(--accent);
  margin-top: 8px;
}
.cart-items { min-height: 60px; max-height: 280px; overflow-y: auto; padding-right: 4px; }
.cart-items::-webkit-scrollbar { width: 6px; }
.cart-items::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.cart-empty {
  color: var(--ink-muted);
  font-size: 14px;
  font-family: var(--serif);
  font-style: italic;
  margin: 14px 0;
}
.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.cart-row:last-child { border-bottom: none; }
.cart-row strong { font-family: var(--serif); font-weight: 700; color: var(--ink); }
.cart-row .meta { color: var(--ink-muted); font-size: 12px; margin-top: 2px; }
.cart-row button {
  background: none; border: none; color: var(--accent);
  cursor: pointer; font-size: 22px; padding: 0 4px; line-height: 1;
}
.cart-row button:hover { color: var(--accent-2); }

.cart-total {
  display: flex; justify-content: space-between;
  border-top: 2px solid var(--accent);
  margin-top: 14px; padding-top: 14px;
  font-size: 18px;
  font-family: var(--serif);
  color: var(--ink);
}
.cart-total strong { color: var(--accent); font-size: 22px; font-weight: 700; }

/* ---------- Checkout form ---------- */
.checkout { margin-top: 18px; }
.checkout h3 {
  font-family: var(--sans);
  margin: 18px 0 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--ink);
  font-weight: 700;
}
.checkout label {
  display: block;
  margin: 10px 0;
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 600;
}
.checkout input, .checkout select, .checkout textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  font-size: 14px;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 5px;
  font-family: var(--sans);
}
.checkout input:focus, .checkout select:focus, .checkout textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(200, 38, 30, 0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn-primary {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 15px 14px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  margin-top: 18px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: var(--sans);
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-primary:disabled { background: #d8c8b3; color: #fff; border-color: #d8c8b3; cursor: not-allowed; }

.checkout-hint {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 12px;
  font-family: var(--sans);
  text-align: center;
}
.checkout-legal {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 8px;
  font-family: var(--sans);
  text-align: center;
  line-height: 1.5;
}
.checkout-legal a { color: var(--accent); text-decoration: underline; }
.checkout-legal a:hover { color: var(--accent-2); }

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  margin: 0 4px;
}
.site-footer a:hover { color: var(--accent); }
.deadline-warning {
  margin: 8px 0 0;
  background: #fdecec;
  border: 1px solid #f4b9b9;
  color: #8b1e1e;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px;
}
.hidden { display: none !important; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0;
  background: rgba(20, 12, 8, 0.55);
  display: flex; justify-content: center; align-items: center;
  padding: 20px;
  z-index: 50;
  backdrop-filter: blur(3px);
}
.modal-card {
  background: var(--surface);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  max-width: 480px;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.modal-card h2 {
  font-family: var(--script);
  color: var(--accent);
  margin: 0 0 6px;
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
}
.modal-card h2::after {
  content: '';
  display: block;
  width: 50px; height: 2px;
  background: var(--accent);
  margin: 14px auto 0;
}
.modal-card > p {
  color: var(--ink-soft);
  margin: 16px 0;
}
.modal-card dl {
  margin: 22px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 14px;
  text-align: left;
  background: var(--bg);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.modal-card dt { color: var(--ink-muted); text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; font-weight: 600; }
.modal-card dd { margin: 0; color: var(--ink); }
.modal-card dd strong { color: var(--accent); font-family: var(--serif); }
.modal-hint { font-size: 12.5px; color: var(--ink-muted); margin-top: 6px !important; font-family: var(--sans); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--bg-2);
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .brand-bull { height: 40px; }
  .brand-heids { height: 46px; }
  .brand-section { display: none; }
  .product-name { font-size: 22px; }
  .info-banner { padding: 16px 18px; font-size: 13.5px; }
  .form-row { grid-template-columns: 1fr; }
}
