/* ── RESET & BASE ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #90B881;
  --green-dark: #7BA56E;
  --green-text: #3F6B37; /* AA-contrast green for text on light green tints */
  --teal:       #32645F;
  --teal-dark:  #274e4a;
  --black:      #000000;
  --white:      #FFFFFF;
  --gray:       #5A5A5A;
  --gray-light: #E8E8E8;
  --gray-bg:    #F7F7F5;
  --warm:       #FFBC7D;
  --error:      #c0392b;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.16);
  --radius:     2px;
  --radius-md:  8px;
  --radius-pill: 50px;
  --font: 'Poppins', sans-serif;
  --transition: 0.2s ease;
  --nav-h:      71px;
  --portion-bar-h: 6px;        /* track height of the mini portion bar */
  --portion-bar-label-h: 0px;  /* marker label row – desktop only */
  /* total height of the fixed mini bar strip, used to offset the step-2 filter bar */
  --portion-bar-mini-h: calc(var(--portion-bar-h) + var(--portion-bar-label-h));
}
@media (min-width: 1024px) {
  :root {
    --portion-bar-h: 12px;
    --portion-bar-label-h: 18px;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  overflow-x: hidden;
}

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

/* ── TYPOGRAPHY ──────────────────────────────────────────────────────────────── */
h1, h2, h3 { line-height: 1.2; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; }

/* ── BUTTONS ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background var(--transition), border-color var(--transition), transform 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  box-shadow: 4px 4px 10px -3px rgba(0,0,0,0.4);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }

.btn-ghost {
  background: transparent;
  border-color: var(--gray-light);
  color: var(--gray);
}
.btn-ghost:hover { border-color: var(--black); color: var(--black); }

.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-xl { padding: 20px 56px; font-size: 1.05rem; }

/* ── HEADER ──────────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--green);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.logo-img {
  height: 48px;
  width: auto;
  display: block;
}
.logo-img-sm {
  height: 38px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

/* Logo mark */
.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-j {
  width: 44px;
  height: 44px;
  background: var(--green);
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.logo-text { line-height: 1.1; }
.logo-text strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.logo-text span {
  display: block;
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.logo-mark-sm .logo-j { width: 34px; height: 34px; font-size: 1.2rem; }
.logo-mark-sm .logo-text strong { font-size: 0.85rem; }

.header-contact {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
}
.header-contact a {
  color: rgba(0,0,0,0.72);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}
.header-contact a:hover { color: var(--black); }

/* ── PROGRESS STEPS ──────────────────────────────────────────────────────────── */
.steps-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 12px 0;
  transition: padding 0.25s ease;
}
.steps-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
  transition: padding 0.25s ease;
}
.steps-track::-webkit-scrollbar { display: none; }

.step-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 14px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
  transition: color var(--transition), padding 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.step-pill:hover { color: var(--black); }

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--transition);
}
.step-pill.active .step-num {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.step-pill.done .step-num {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.step-pill.active { color: var(--black); }
.step-pill.done { color: var(--teal); }

.step-line {
  width: 32px;
  height: 2px;
  background: var(--gray-light);
  flex-shrink: 0;
  transition: width 0.25s ease;
}

/* ── LAYOUT (main content + basket sidebar) ───────────────────────────────────── */
.layout {
  display: flex;
  align-items: flex-start;
}
.layout-main {
  flex: 1;
  min-width: 0;
}

/* On very wide screens, balance the expanded basket with a matching gutter on
   the left so the configurator stays centred in the viewport. Only kicks in
   when there is room for the 1200px content column plus a basket-width gutter
   on each side (1200 + 2×360). Skipped when the basket is collapsed or hidden,
   since then the content is already centred. */
@media (min-width: 1920px) {
  .layout:has(.basket:not(.desktop-collapsed):not(.basket-hidden)) .layout-main {
    padding-left: clamp(280px, 22vw, 360px);
  }
}

/* ── STEP SECTIONS ───────────────────────────────────────────────────────────── */
.step-section { display: none; }
.step-section.active { display: block; }

.step-nav-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--gray-light);
  z-index: 150;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* ── FLASH MESSAGE ───────────────────────────────────────────────────────────── */
.flash {
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 500;
}
.flash-error {
  background: #fdf0f0;
  border-left: 4px solid var(--error);
  color: var(--error);
}
.step-inline-error {
  margin: 0 0 16px;
  padding: 12px 18px;
  background: #fdf0f0;
  border-left: 4px solid var(--error);
  border-radius: 0 6px 6px 0;
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ── HERO ─────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--black) url('../imgs/buffet-bg.jpeg') center/cover no-repeat;
  overflow: hidden;
  padding: 80px 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.58) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 36px;
  font-weight: 400;
  max-width: 540px;
}
.hero-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  margin-top: 14px;
}

/* ── INTRO SECTION ────────────────────────────────────────────────────────────── */
.section-intro { padding: 56px 24px 64px; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.section-sub {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 40px;
  max-width: 600px;
}

/* ── CATEGORIES GRID ─────────────────────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.category-card {
  background: var(--white);
  border: 2px solid var(--gray-light);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  border-radius: var(--radius-md);
}
.category-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.cat-icon { font-size: 2.4rem; margin-bottom: 12px; }
.cat-name {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.cat-desc { font-size: 0.8rem; color: var(--gray); line-height: 1.5; margin-bottom: 12px; }
.cat-count {
  display: inline-block;
  background: var(--gray-bg);
  color: var(--gray);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.intro-cta { text-align: center; }

/* ── STEP HEADER ──────────────────────────────────────────────────────────────── */
.step-header {
  padding: 40px 0 24px;
}
@media (max-width: 700px) {
  .step-header { padding: 20px 0 12px; }
}
.step-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.step-sub {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ── FILTER BAR ───────────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: var(--nav-h);
  background: var(--white);
  z-index: 80;
  padding-top: 8px;
}
@media (min-width: 1024px) {
  /* Only step 2 has the mini portion bar underneath the nav – the drinks bar
     (step 4) must stay flush against the nav, otherwise content scrolls
     through the gap. */
  /* Offset only while the mini bar actually exists (step 2 + people set) –
     body class is toggled by syncMiniBar() in app.js. */
  body.portion-bar-active #filter-bar { top: calc(var(--nav-h) + var(--portion-bar-mini-h)); }
}
.filter-tab {
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.filter-tab:hover { border-color: var(--green); color: var(--green); }
.filter-tab.active { background: var(--green); border-color: var(--green); color: var(--white); }

/* When the bar is stuck, collapse everything except the active tab.
   Desktop keeps all pills visible – there is enough room. */
.filter-bar.is-sticky { border-bottom-color: var(--green); }
@media (max-width: 1023px) {
  .filter-bar.is-sticky > .filter-tab:not(.active) { display: none; }
  .filter-bar.is-sticky { justify-content: center; }
}

@media (max-width: 700px) {
  .filter-bar:not(.is-sticky) {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;              /* Firefox */
    /* right-edge fade as scroll hint */
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
  .filter-bar:not(.is-sticky)::-webkit-scrollbar { display: none; }
  .filter-tab { flex: 0 0 auto; }       /* prevent pill shrinking */
  .filter-bar { margin-bottom: 16px; padding-bottom: 10px; }
}

/* ── DISHES GRID ──────────────────────────────────────────────────────────────── */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  padding-bottom: 120px;
}

/* Category section headers — span the full grid width */
.dish-section-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-light);
  margin-top: 16px;
}
.dish-section-header.hidden { display: none; }
@media (max-width: 700px) {
  .dish-section-header { margin-top: 4px; padding-bottom: 8px; }
}
.dish-section-icon { font-size: 1.4rem; line-height: 1; }
.dish-section-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.dish-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
}
.dish-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.dish-card.hidden { display: none; }
.dish-card.selected { border-color: var(--green); box-shadow: 0 4px 16px rgba(144,184,129,0.3); }

.dish-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-light);
  position: relative;
}
#drinks-grid .dish-img-wrap {
  aspect-ratio: 1/1;
  background: var(--gray-bg);
}
#drinks-grid .dish-img-wrap img {
  object-fit: contain;
  padding: 8px;
}
.dish-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.dish-card:hover .dish-img-wrap img { transform: scale(1.05); }

.dish-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.dish-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.tag-vegan       { background: var(--teal); color: var(--white); }
.tag-veg         { background: var(--green); color: var(--white); }
.tag-alkoholfrei { background: #4a90d9; color: var(--white); }
.tag-alkoholisch { background: #c8860a; color: var(--white); }

.dish-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.dish-cat-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.dish-name {
  font-size: 1.0rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.25;
  color: var(--black);
}
.dish-desc {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.55;
  margin-bottom: 6px;
  flex: 1;
}
.dish-note {
  font-size: 0.74rem;
  color: var(--teal);
  background: rgba(50,100,95,0.07);
  padding: 6px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.dish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.dish-price {
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--teal);
}
.dish-unit { font-size: 0.72rem; font-weight: 400; color: var(--gray); }
.price-vat-mark { font-size: 0.72rem; font-weight: 400; color: var(--gray); margin-left: 1px; }

/* MwSt.-Fußnote am Ende der Speisen-/Getränke-Schritte */
.price-vat-note {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 4px;
  text-align: right;
}

/* Qty control */
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: border-color var(--transition);
}
.dish-card.selected .qty-control { border-color: var(--green); }

.qty-btn {
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  font-family: var(--font);
  color: var(--gray);
}
.qty-btn:hover { background: var(--green); color: var(--white); }
.qty-btn.active-plus { background: var(--green); color: var(--white); }

.qty-display {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 34px;
  text-align: center;
  color: var(--black);
}
.qty-display.qty-active { color: var(--green); }

.dish-min-note {
  font-size: 0.7rem;
  color: var(--gray);
  margin-top: 7px;
  text-align: right;
}

/* ── BASKET SIDEBAR ───────────────────────────────────────────────────────────── */
.basket {
  width: clamp(280px, 22vw, 360px);
  flex-shrink: 0;
  position: sticky;
  top: var(--nav-h);
  max-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--gray-light);
  background: var(--white);
  overflow: hidden;
  transition: width 0.3s ease;
}
.basket.desktop-collapsed {
  width: 48px;
}
.basket.desktop-collapsed .basket-panel { display: none; }

.basket-toggle-btn { display: none; }

/* Slim strip shown when basket is collapsed on desktop */
.basket-collapsed-strip {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 0;
  gap: 10px;
  cursor: pointer;
  width: 100%;
  border-left: 1px solid var(--gray-light);
  flex: 1;
}
.basket-collapsed-strip:hover { background: var(--gray-bg); }
.basket.desktop-collapsed .basket-collapsed-strip { display: flex; }
.basket-collapsed-icon { font-size: 1.5rem; }
.basket-collapsed-count {
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.basket-collapsed-count.hidden { display: none; }
.basket.basket-hidden { display: none !important; }

.basket-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.basket-heading {
  padding: 12px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
  border-bottom: 1px solid var(--gray-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.basket-collapse-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--gray);
  padding: 3px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}
.basket-collapse-btn:hover { background: var(--gray-light); color: var(--black); }
.basket-items-wrap {
  flex: 1;
  overflow-y: auto;
  min-height: 80px;
}
.basket-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  color: var(--gray);
  font-size: 0.82rem;
  text-align: center;
}
.basket-group-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray);
  padding: 10px 16px 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.basket-group-total {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray);
  opacity: 0.75;
}
.basket-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 16px;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--gray-bg);
}
.basket-item:hover { background: var(--gray-bg); }
.basket-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
}
.basket-item-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.basket-item-controls {
  display: flex;
  align-items: center;
  gap: 3px;
}
.basket-qty-btn {
  width: 20px;
  height: 20px;
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background var(--transition), border-color var(--transition);
}
.basket-qty-btn:hover { border-color: var(--green); background: rgba(144,184,129,0.12); }
.basket-item-qty {
  min-width: 26px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
}
.basket-item-price {
  min-width: 46px;
  text-align: right;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--teal);
  flex-shrink: 0;
}
.basket-footer {
  flex-shrink: 0;
  border-top: 2px solid var(--gray-light);
  background: var(--gray-bg);
  padding: 12px 16px;
}
.basket-progress-track {
  height: 4px;
  background: var(--gray-light);
  border-radius: 2px;
  margin-bottom: 6px;
  overflow: hidden;
}
.basket-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}
.basket-progress-fill.done { background: var(--teal); }
.basket-progress-text {
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 10px;
  line-height: 1.4;
}
.basket-total-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 2px 0;
  color: var(--gray);
}
.basket-total-line span:last-child { font-weight: 600; white-space: nowrap; }
.basket-total-line.grand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
  border-top: 1px solid var(--gray-light);
  margin-top: 6px;
  padding-top: 7px;
}
.basket-total-line.grand span:last-child { color: var(--teal); }
.basket-total-line.vat-line {
  font-size: 0.78rem;
  color: #999;
  font-style: italic;
}
.basket-total-line.vat-line span:last-child { font-weight: 500; }

/* ── SERVICE OPTIONS ─────────────────────────────────────────────────────────── */
.service-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.service-card {
  display: block;
  cursor: pointer;
}
.service-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.service-card-body {
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  overflow: hidden;
  transition: all var(--transition);
  height: 100%;
}
.service-card:hover .service-card-body { border-color: var(--green); }
.service-card input:checked + .service-card-body {
  border-color: var(--green);
  background: rgba(144,184,129,0.06);
  box-shadow: 0 0 0 2px var(--green);
}
.service-card-img {
  width: calc(100% + 48px);
  margin: -28px -24px 20px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}
.service-card:hover .service-card-img img { transform: scale(1.03); }
.service-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.service-icon { font-size: 2rem; flex-shrink: 0; }
.service-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.service-card-body p { font-size: 0.85rem; color: var(--gray); margin-bottom: 14px; }
.service-features {
  list-style: none;
  font-size: 0.8rem;
  color: var(--gray);
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}
.service-features li::before { content: "✓  "; color: var(--green); font-weight: 700; }
.service-surcharge {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 600;
}

.service-price-preview {
  background: var(--gray-bg);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.price-breakdown { font-size: 0.9rem; }
.price-breakdown table { width: 100%; }
.price-breakdown td { padding: 5px 0; }
.price-breakdown td:last-child { text-align: right; font-weight: 600; }
.price-breakdown .total-line td { font-size: 1rem; font-weight: 700; border-top: 1px solid var(--gray-light); padding-top: 10px; }

/* ── FORM ─────────────────────────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 16px;
}
.form-fieldset-full { grid-column: 1 / -1; }

.form-fieldset {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 24px;
}
.form-fieldset legend {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
  padding: 0 8px;
}

.input-row { display: flex; gap: 14px; }
.input-row .input-group { flex: 1; }
.input-group-sm { max-width: 130px; flex: 0 0 130px !important; }

.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.input-group:last-child { margin-bottom: 0; }

.input-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray);
}
.input-hint {
  font-size: 0.73rem;
  color: var(--gray);
}

.input-group input,
.input-group textarea,
.input-group select {
  font-family: var(--font);
  font-size: 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  background: var(--white);
  color: var(--black);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(144,184,129,0.2);
}
.input-group input.error { border-color: var(--error); }
.input-group textarea { resize: vertical; min-height: 90px; }

/* Native date/time inputs: iOS centres/right-aligns the value via the
   ::-webkit-date-and-time-value pseudo, which pushes it past the right
   padding (clipped) and looks inconsistent with the left-aligned datepicker.
   Force left alignment and drop the intrinsic appearance. */
.input-group input[type="time"],
.input-group input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
}
.input-group input[type="time"]::-webkit-date-and-time-value,
.input-group input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
}

/* Delivery options */
.delivery-options { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.delivery-option { flex: 1; min-width: 200px; cursor: pointer; display: flex; flex-direction: column; }
.delivery-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.delivery-option-body {
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all var(--transition);
  flex: 1;
}
.delivery-option:hover .delivery-option-body { border-color: var(--green); }
.delivery-option input:checked + .delivery-option-body {
  border-color: var(--green);
  background: rgba(144,184,129,0.06);
}
.delivery-icon { font-size: 1.6rem; flex-shrink: 0; }
.delivery-option-body strong { font-size: 0.9rem; display: block; margin-bottom: 3px; }
.delivery-option-body p { font-size: 0.8rem; color: var(--gray); margin: 0; }

.plz-check-row { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 16px; }
.plz-check-row .input-group { max-width: 220px; margin-bottom: 0; }
.plz-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  line-height: 1.4;
}
.plz-status:empty { display: none; }
.plz-status.ok { color: var(--teal); background: rgba(50,100,95,0.1); }
.plz-status.err { color: var(--error); background: rgba(200,50,50,0.08); }
.plz-status.warn { color: #b87f00; background: rgba(255,209,102,0.18); }

#same-addr-status { display: inline-flex; margin-bottom: 10px; }
.checkbox-row { margin-bottom: 14px; }
/* Non-flex layout: the checkbox is pulled out of flow so the label text,
   links and <strong> all flow as normal inline content and wrap naturally.
   (A flex container would turn every inline child into its own flex item.) */
.checkbox-label {
  display: block;
  position: relative;
  padding-left: 28px;
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--green);
  cursor: pointer;
}

/* Keyboard focus ring for card-style radio inputs */
.service-card input:focus-visible + .service-card-body {
  box-shadow: 0 0 0 3px var(--teal);
}
.delivery-option input:focus-visible + .delivery-option-body {
  box-shadow: 0 0 0 3px var(--teal);
}

.delivery-fee-info {
  background: rgba(50,100,95,0.08);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 500;
}

.alert {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.88rem;
}
.alert-warning {
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #795500;
}

/* ── INLINE FIELD ERRORS ──────────────────────────────────────────────────────── */
.field-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 2px;
  display: none;
}
.field-error:not(:empty) { display: block; }
.input-group.has-error input,
.input-group.has-error textarea,
.input-group.has-error select {
  border-color: var(--error);
}
.delivery-error {
  font-size: 0.82rem;
  color: var(--error);
  font-weight: 600;
  margin-bottom: 8px;
  display: none;
}
.delivery-error:not(:empty) { display: block; }

/* ── DATE PREVIEW ─────────────────────────────────────────────────────────────── */
.date-preview {
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 600;
  margin-top: 6px;
  min-height: 1.2em;
}

/* ── DATEPICKER ───────────────────────────────────────────────────────────────── */
.datepicker { position: relative; }

.datepicker-trigger {
  font-family: var(--font);
  font-size: 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  background: var(--white);
  color: var(--black);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}
.datepicker-trigger:hover { border-color: var(--green); }
.datepicker-trigger:focus-visible,
.datepicker.open .datepicker-trigger {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(144,184,129,0.2);
}
.datepicker-trigger i { color: var(--teal); font-size: 1.1rem; flex-shrink: 0; }
.datepicker-value { color: var(--gray); }
.datepicker-trigger.has-value .datepicker-value { color: var(--black); }
.input-group.has-error .datepicker-trigger { border-color: var(--error); }

.datepicker-popover {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-width: 100%;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px;
  animation: dp-fade 0.15s ease;
}
@keyframes dp-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.dp-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--black);
  letter-spacing: 0.02em;
}
.dp-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  color: var(--teal);
  cursor: pointer;
  font-size: 1.2rem;
  transition: background var(--transition), color var(--transition);
}
.dp-nav:hover:not(:disabled) { background: rgba(144,184,129,0.15); }
.dp-nav:disabled { color: var(--gray-light); cursor: default; }

.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.dp-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray);
  padding: 6px 0;
  text-transform: uppercase;
}
.dp-day {
  aspect-ratio: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--black);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.dp-day.dp-outside { color: var(--gray-light); }
.dp-day:hover:not(:disabled):not(.dp-selected) { background: rgba(144,184,129,0.18); }
.dp-day:disabled {
  color: var(--gray-light);
  cursor: default;
  text-decoration: line-through;
  opacity: 0.6;
}
.dp-day.dp-today:not(.dp-selected) {
  box-shadow: inset 0 0 0 1.5px var(--green);
  font-weight: 600;
}
.dp-day.dp-selected {
  background: var(--green);
  color: var(--white);
  font-weight: 600;
}

@media (max-width: 480px) {
  .datepicker-popover { width: 100%; }
}

/* ── ANSPRECHPARTNER INLINE ───────────────────────────────────────────────────── */
.ap-section {
  border-top: 1px solid var(--gray-light);
  margin-top: 20px;
  padding-top: 16px;
}
.ap-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.ap-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
  margin: 0;
}

/* ── ORDER SUMMARY ────────────────────────────────────────────────────────────── */
#order-summary {
  background: var(--gray-bg);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 32px;
}
#order-summary h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal);
  border-bottom: 2px solid var(--green);
  padding-bottom: 6px;
  margin-bottom: 16px;
}
.summary-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.summary-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-bottom: 16px; }
.summary-table th {
  text-align: left;
  padding: 8px 12px;
  background: rgba(0,0,0,0.04);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray);
}
.summary-table td { padding: 9px 12px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.summary-table .num { text-align: right; }
.summary-table .sub-row td { color: var(--gray); font-size: 0.83rem; }
.summary-table .vat-row td { color: #999; font-size: 0.78rem; font-style: italic; }
.summary-table .total-row td { font-weight: 700; font-size: 0.98rem; border-top: 2px solid var(--black); border-bottom: none; }
.summary-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 0.85rem; margin-bottom: 16px; }
.summary-meta-item label { font-size: 0.72rem; color: var(--gray); display: block; }
.summary-meta-item span { font-weight: 600; }

/* Mobile: tighten the summary so the 5-column table fits the viewport
   instead of overflowing/clipping (with .summary-scroll as a safety net). */
@media (max-width: 700px) {
  #order-summary { padding: 16px 14px; }
  .summary-meta { grid-template-columns: 1fr; gap: 8px; }
  .summary-table { font-size: 0.8rem; }
  .summary-table th,
  .summary-table td { padding: 7px 8px; }
  .summary-table .num { white-space: nowrap; }
}

/* ── AGB SECTION ──────────────────────────────────────────────────────────────── */
.agb-section {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
}
.agb-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.checkbox-group { display: flex; flex-direction: column; gap: 14px; }

.submit-section { text-align: center; padding: 8px 0 20px; }
.submit-note { font-size: 0.8rem; color: var(--gray); margin-top: 12px; }

/* ── FOOTER ───────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--green);
  color: rgba(0,0,0,0.72);
  border-top: 4px solid var(--green-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 24px 40px;
  align-items: start;
}

.footer-areas-bar {
  border-bottom: 1px solid rgba(0,0,0,0.12);
  padding: 20px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(0,0,0,0.72);
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0,0,0,0.65);
  margin-bottom: 10px;
  margin-top: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(0,0,0,0.72);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--black); text-decoration: underline; }

.footer-address {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-contact-link {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(0,0,0,0.8);
  text-decoration: none;
  margin-bottom: 6px;
  transition: color var(--transition);
}
.footer-contact-link:hover { color: var(--black); text-decoration: underline; }

.footer-response-time {
  font-size: 0.78rem;
  color: rgba(0,0,0,0.55);
  margin: 6px 0 0;
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.12);
  padding: 14px 24px;
  font-size: 0.78rem;
  color: rgba(0,0,0,0.65);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.footer-bottom-logo {
  height: 26px;
  width: auto;
  display: block;
  opacity: 0.85;
}
.footer-version {
  text-align: center;
  opacity: 0.55;
  margin-top: 6px;
}

/* ── CONFIRM PAGE ─────────────────────────────────────────────────────────────── */
.confirm-page { min-height: 60vh; display: flex; align-items: center; padding: 60px 0; }
.confirm-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.confirm-icon {
  width: 72px;
  height: 72px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 24px;
}
.confirm-card h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.confirm-greeting { font-size: 1rem; color: var(--gray); margin-bottom: 20px; }
.confirm-text { font-size: 0.9rem; color: var(--gray); margin-bottom: 20px; line-height: 1.7; }
.confirm-ref {
  background: var(--gray-bg);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.confirm-ref span { font-size: 0.72rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.08em; }
.confirm-ref strong { font-family: monospace; font-size: 1.1rem; letter-spacing: 0.05em; }

/* ── VIEW TOGGLE ─────────────────────────────────────────────────────────────── */
.view-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.view-toggle-btn.layout-btn { padding: 7px 11px; font-size: 1.05rem; letter-spacing: 0; }
@media (max-width: 700px) {
  .view-toggle { gap: 10px; margin-bottom: 14px; justify-content: space-between; }
  .view-toggle-btn { padding: 6px 12px; font-size: 0.78rem; }
  /* labels dropped on phones so both toggles fit one row */
  .view-toggle-label, .price-mode-label { display: none; }
}
.view-toggle-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
}
.view-toggle-btns {
  display: flex;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: border-color var(--transition);
}
.view-toggle-btn {
  background: none;
  border: none;
  padding: 7px 18px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.view-toggle-btn + .view-toggle-btn {
  border-left: 2px solid var(--gray-light);
}
.view-toggle-btn.active {
  background: rgba(144,184,129,0.18);
  color: var(--green-text);
}
.view-toggle-btn:not(.active):hover {
  background: rgba(144,184,129,0.12);
  color: var(--green-dark);
}
@media (max-width: 700px) {
  .view-toggle-btns:has(.layout-btn) { display: none; }
}

/* ── DRINKS STEP ─────────────────────────────────────────────────────────────── */
.drinks-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(50,100,95,0.07);
  border: 1px solid rgba(50,100,95,0.2);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--teal);
  margin-bottom: 28px;
}
.drinks-note-icon { font-size: 1.2rem; flex-shrink: 0; }

.drinks-order-info {
  background: rgba(50,100,95,0.07);
  border: 1px solid rgba(50,100,95,0.18);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .service-options { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-fieldset-full { grid-column: auto; }
  .summary-meta { grid-template-columns: 1fr; }
}

/* Netto/Brutto toggle inside the basket — desktop keeps it in the step controls */
.basket-price-mode { display: none; }

/* ── BASKET MOBILE ────────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .layout { display: block; }

  /* Netto/Brutto moves from the step controls into the basket panel */
  .view-toggle .price-mode-toggle { display: none; }
  .basket-price-mode {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-light);
    flex-shrink: 0;
  }
  .basket-price-mode-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
    margin-right: auto;
  }
  .basket-price-mode .price-mode-hint { display: inline; }

  .basket {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 75vh;
    top: auto;
    border-left: none;
    border-top: 2px solid var(--gray-light);
    z-index: 200;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  }
  .basket-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 56px;
    padding: 0 20px;
    background: var(--black);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-family: var(--font);
    flex-shrink: 0;
  }
  .basket-toggle-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
  }
  .basket-badge {
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  .basket-badge.hidden { display: none; }
  .basket-header-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--green);
    flex: 1;
    text-align: right;
    margin-right: 10px;
  }
  .basket-chevron {
    font-size: 0.75rem;
    opacity: 0.7;
    transition: transform var(--transition);
  }
  .basket.open .basket-chevron { transform: rotate(180deg); }

  .basket-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: var(--white);
  }
  .basket.open .basket-panel {
    max-height: calc(75vh - 56px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .basket-heading { display: none; }
  .basket-items-wrap { overflow-y: auto; }
  .basket-collapsed-strip { display: none !important; }
  .basket-collapse-btn { display: none; }
  .basket.desktop-collapsed { width: 100%; }
  .basket.desktop-collapsed .basket-panel { display: flex; }

  body { padding-bottom: 56px; }
  body.basket-visible .step-nav-btns { bottom: 56px; }
}

@media (max-width: 700px) {
  .header-contact { display: none; }
  .logo-img { height: 38px; }
  .header-inner { padding-top: 10px; padding-bottom: 10px; }
  .step-nav-btns { padding-top: 8px; padding-bottom: 8px; }
  .step-label { display: none; }
  .step-pill { padding: 4px 3px; }
  .step-line { flex: 1; min-width: 4px; }
  .hero { padding: 56px 0 80px; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .dishes-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .dish-body { padding: 12px 14px 14px; }
  .dish-name { font-size: 0.82rem; }
  .dish-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .input-row { flex-direction: column; }
  .input-group-sm { max-width: 100%; flex: 1 !important; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .categories-grid { grid-template-columns: 1fr; }
  .dishes-grid { grid-template-columns: 1fr; }
  .service-card-body { padding: 14px 16px; }
  .service-card-img { aspect-ratio: 3 / 1; margin: -14px -16px 14px; width: calc(100% + 32px); }
  .service-icon { font-size: 1.5rem; }
  .service-card-body p { margin-bottom: 10px; }
  .service-features { margin-bottom: 10px; }
}

.btn-label-short { display: none; }
@media (max-width: 600px) {
  .btn-label-full { display: none; }
  .btn-label-short { display: inline; }
}

/* ── TOUCH TARGETS ───────────────────────────────────────────────────────────── */
@media (pointer: coarse) {
  .qty-btn { width: 40px; height: 40px; }
  .basket-qty-btn { width: 36px; height: 36px; font-size: 1.1rem; }
  /* Prevent iOS Safari from zooming in on input focus */
  input, select, textarea { font-size: 16px !important; }
}

/* ── FILTER DROPDOWN (sticky mode, only below desktop) ──────────────────────── */
@media (max-width: 1023px) {
  .filter-bar.is-sticky > .filter-tab:not(.active) { display: none; }
  .filter-bar.is-sticky { border-bottom-color: var(--green); justify-content: flex-start; }
  .filter-bar.is-sticky .filter-tab.active::after { content: " ▾"; }
}

.filter-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 95;
  min-width: 210px;
  padding: 6px;
  flex-direction: column;
  gap: 3px;
}
@media (max-width: 1023px) {
  .filter-bar.is-sticky.filter-open .filter-dropdown { display: flex; }
}
.filter-dropdown .filter-tab {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  border-radius: 6px;
  border-color: transparent;
  padding: 9px 14px;
}
.filter-dropdown .filter-tab:hover { border-color: var(--green); background: rgba(144,184,129,0.06); }
.filter-dropdown .filter-tab.active { background: var(--green); border-color: var(--green); color: var(--white); }

/* ── LIST VIEW ───────────────────────────────────────────────────────────────── */
.dishes-grid.list-view {
  grid-template-columns: 1fr;
  gap: 8px;
}
.dishes-grid.list-view .dish-card {
  flex-direction: row;
  align-items: stretch;
}
.dishes-grid.list-view .dish-img-wrap {
  width: 88px;
  min-width: 88px;
  aspect-ratio: unset;
  flex-shrink: 0;
  cursor: zoom-in;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.dishes-grid.list-view .dish-img-wrap img { height: 100%; }
.dishes-grid.list-view .dish-body { padding: 10px 14px; }
.dishes-grid.list-view .dish-cat-label { margin-bottom: 2px; }
.dishes-grid.list-view .dish-name { font-size: 0.9rem; margin-bottom: 3px; }
.dishes-grid.list-view .dish-desc {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.dishes-grid.list-view .dish-note { display: none; }
.dishes-grid.list-view .dish-footer {
  flex-direction: row;
  align-items: center;
  margin-top: auto;
}
.dishes-grid.list-view .dish-min-note { display: none; }
#drinks-grid.list-view .dish-img-wrap img,
#cart-view-grid.list-view .dish-card[data-cat-drinks] .dish-img-wrap img,
#cart-view-grid.list-view .is-drink .dish-img-wrap img { object-fit: contain; padding: 6px; }

/* Uniform fixed row height inside the cart modal */
#cart-view-grid.list-view .dish-card {
  height: 96px;
  min-height: 96px;
  max-height: 96px;
  overflow: hidden;
}
#cart-view-grid.list-view .dish-img-wrap {
  height: 96px;
  cursor: default;
}
#cart-view-grid.list-view .dish-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#cart-view-grid.list-view .dish-card.anfrage-card {
  height: 96px;
}
#cart-view-grid.list-view .dish-card.anfrage-card .anfrage-icon { display: none; }

/* ── LIGHTBOX ────────────────────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: min(90vw, 700px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 60px rgba(0,0,0,0.5);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.28); }

/* ── CART VIEW MODAL ─────────────────────────────────────────────────────────── */
.cart-view {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cart-view.open { display: flex; }
.cart-view-panel {
  background: var(--white, #fff);
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 8px 60px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cart-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-light, #eee);
}
.cart-view-title { margin: 0; font-size: 1.2rem; }
.cart-view-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-light, #eee);
  border: none;
  color: var(--black, #111);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
.cart-view-close:hover { background: #ddd; }
.cart-view-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.cart-view-empty {
  text-align: center;
  color: #888;
  padding: 40px 10px;
}
.cart-view-group-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 12px 0 8px;
}
.cart-view-group-label:first-child { margin-top: 0; }
.cart-view-footer {
  border-top: 1px solid var(--gray-light, #eee);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cart-view-totals { flex: 1; min-width: 220px; }
.basket-show-all-btn {
  width: 100%;
  margin-top: 10px;
}
body.no-scroll { overflow: hidden; }

@media (max-width: 700px) {
  .cart-view { padding: 0; }
  .cart-view-panel { max-height: 100vh; height: 100vh; border-radius: 0; }
}

/* ── COMPACT STEPS NAV (on scroll, mobile only) ──────────────────────────────── */
@media (max-width: 700px) {
  .steps-nav--compact { padding: 5px 0; }
  .steps-nav--compact .steps-track { padding: 1px 0; }
  .steps-nav--compact .step-pill { padding: 3px 3px; }
  .steps-nav--compact .step-num { width: 22px; height: 22px; font-size: 0.7rem; }
}

/* ── AUF ANFRAGE CARDS ───────────────────────────────────────────────────────── */
.anfrage-card {
  border: 2px dashed var(--teal);
  background: var(--gray-bg);
}
.anfrage-card .dish-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 1.25rem 1rem 1rem;
}
.anfrage-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 4px;
}
.anfrage-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
}
.anfrage-toggle-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border: 2px solid var(--teal);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--teal);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.anfrage-toggle-btn:hover { background: var(--teal); color: var(--white); }
.anfrage-toggle-btn.active { background: var(--teal); color: var(--white); }

.anfrage-card .dish-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  border-top: none;
  margin-top: 8px;
}

/* Basket: auf anfrage items */
.basket-item.anfrage-item .anfrage-label {
  font-size: 0.7rem;
  font-style: italic;
  color: var(--teal);
}

/* Summary: auf anfrage note */
.anfrage-summary-note {
  font-size: 0.78rem;
  color: var(--gray);
  font-style: italic;
  margin-top: 6px;
}

/* ── SAVE CONFIG SECTION (Step 6) ────────────────────────────────────────────── */
.save-config-section {
  background: var(--gray-bg);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.save-config-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.save-config-desc {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0 0 0.85rem;
}
.save-config-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.save-config-row input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.save-config-row input[type="email"]:focus { border-color: var(--teal); }
.save-config-msg {
  font-size: 0.82rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}
.save-config-msg.success { color: var(--green-dark); font-weight: 500; }
.save-config-msg.error   { color: var(--error); }

/* ── LIEFERGEBIETE MODAL ─────────────────────────────────────────────────────── */
.zones-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.zones-modal.open { display: flex; }
.zones-modal-panel {
  background: var(--white);
  border-radius: var(--radius-lg, 12px);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
}
.zones-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}
.zones-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}
.zones-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--gray);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background var(--transition);
}
.zones-modal-close:hover { background: var(--surface); color: var(--text); }
.zones-modal-body { padding: 20px 24px 24px; }
.zones-modal-intro {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 18px;
  line-height: 1.5;
}
.zones-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.zones-table th {
  text-align: left;
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  border-bottom: 2px solid var(--border);
}
.zones-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.zones-table tr:last-child td { border-bottom: none; }
.zones-plz {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  width: 90px;
}
.zones-region { color: var(--text); }
.zones-fee { text-align: right; font-weight: 500; white-space: nowrap; }
.zones-fee-free {
  color: var(--green-dark, #2d6a4f);
  font-weight: 600;
}
.zones-modal-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--gray);
  font-style: italic;
  line-height: 1.5;
}
.hero-zones-inline {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: inherit;
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
  display: inline;
}
.hero-zones-inline:hover { color: var(--white); }
.hero-zones-inline:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 2px; }

/* ── PRICE MODE TOGGLE (Netto / Brutto, step 2 controls) ─────────────────────── */
.price-mode-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.view-toggle .price-mode-toggle { margin-left: auto; }
.price-mode-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
}
.price-mode-btns {
  display: flex;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: border-color var(--transition);
}
.price-mode-btn {
  background: none;
  border: none;
  padding: 7px 18px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.price-mode-btn + .price-mode-btn {
  border-left: 2px solid var(--gray-light);
}
.price-mode-btn.active {
  background: rgba(144,184,129,0.18);
  color: var(--green-text);
}
.price-mode-btn:not(.active):hover {
  background: rgba(144,184,129,0.12);
  color: var(--green-dark);
}
.price-mode-hint {
  font-size: 0.75rem;
  color: var(--gray);
  font-style: italic;
}
@media (max-width: 700px) {
  .price-mode-hint { display: none; }
  .price-mode-btns { border-width: 1.5px; }
  .price-mode-btn  { padding: 6px 12px; font-size: 0.78rem; }
}

/* ── HERO QUICK-ENTRY ────────────────────────────────────────────────────────── */
.hero-quick-entry {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.hero-quick-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hero-field-question {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  cursor: default;
}
.hero-field-desc {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  margin-top: 2px;
}
.hero-field-sublabel {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.hero-quick-field input {
  padding: 11px 15px;
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.14);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  backdrop-filter: blur(4px);
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
}
.hero-quick-field input::placeholder { color: rgba(255,255,255,0.55); }
.hero-quick-field input:focus {
  border-color: var(--green);
  background: rgba(255,255,255,0.18);
}
.hero-quick-field input:focus-visible,
.price-mode-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
/* Visible focus ring that reads on both the dark hero and light step backgrounds */
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--green);
}
.step1-plz-status {
  font-size: 0.82rem;
  font-weight: 500;
  min-height: 1.2em;
  transition: color var(--transition);
}
.step1-plz-status.ok   { color: #7cda9a; }
.step1-plz-status.warn { color: #ffd166; }
.step1-plz-status i { vertical-align: -0.12em; margin-right: 2px; }

/* ── HERO TRUST LINE ─────────────────────────────────────────────────────────── */
.hero-trust-line {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-trust-line i { color: var(--green); font-size: 1.1rem; flex-shrink: 0; }

/* ── PORTION HINT & BAR ──────────────────────────────────────────────────────── */
.portion-hint-box {
  background: var(--gray-bg, #F7F7F5);
  border: 1px solid var(--gray-light, #E8E8E8);
  border-radius: var(--radius-md, 8px);
  padding: 18px 20px 16px;
  margin-bottom: 20px;
}
.portion-hint-text {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 14px;
  line-height: 1.5;
}
.portion-hint-text strong { color: var(--text); }
.portion-hint-link {
  color: var(--teal);
  text-decoration: none;
  white-space: nowrap;
}
.portion-hint-link:hover { text-decoration: underline; }
.portion-hint-info {
  background: none;
  border: none;
  color: var(--teal);
  cursor: pointer;
  padding: 0 4px;
  vertical-align: middle;
}
.portion-hint-detail {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 8px;
  line-height: 1.5;
}
/* min-height reserves room for the absolutely-positioned marker labels
   (Snack/Mahlzeit) so they never spill past the box when the count row is
   hidden (i.e. before any dishes are selected). */
.portion-bar-wrap { display: flex; flex-direction: column; gap: 6px; min-height: 46px; }
.portion-bar-track {
  position: relative;
  height: 12px;
  background: var(--gray-light, #E8E8E8);
  border-radius: 6px;
  overflow: visible;
}
.portion-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: #f4a261;
  transition: width 0.35s ease, background 0.35s ease;
  min-width: 0;
}
.portion-bar-fill.tier-snack { background: var(--green, #90B881); }
.portion-bar-fill.tier-meal  { background: var(--green-dark, #7BA56E); }
.portion-bar-marker {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.portion-bar-marker-line {
  width: 2px;
  height: 20px;
  background: var(--gray-light, #aaa);
  border-radius: 1px;
}
.portion-bar-marker-label {
  font-size: 0.7rem;
  color: var(--gray);
  white-space: nowrap;
  margin-top: 3px;
  font-weight: 500;
}
.portion-bar-count {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
  margin-top: 22px;
}

@media (max-width: 700px) {
  .portion-hint-box  { padding: 12px 14px 10px; margin-bottom: 14px; }
  .portion-hint-text { margin-bottom: 10px; }
  .portion-bar-wrap { min-height: 38px; }
  .portion-bar-track { height: 8px; border-radius: 4px; }
  .portion-bar-marker-line { height: 14px; }
  .portion-bar-count { margin-top: 16px; font-size: 0.75rem; }
}

/* ── MINI PORTION BAR (fixed strip, step 2 only) ─────────────────────────────── */
.portion-bar-mini {
  position: fixed;
  top: var(--nav-h);          /* desktop: just below steps-nav */
  left: 0;
  right: 0;
  z-index: 85;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-100%);   /* slides in from behind the nav */
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.portion-bar-mini.visible {
  opacity: 1;
  transform: translateY(0);
}
.portion-bar-mini-track {
  position: relative;
  height: var(--portion-bar-h);   /* 6px mobile / 12px desktop – see :root */
  background: var(--gray-light);
  overflow: hidden;
}

/* Mobile: anchor above the basket bar instead */
@media (max-width: 1023px) {
  .portion-bar-mini {
    top: auto;
    bottom: 56px;             /* sits on top of the 56px basket toggle */
    z-index: 201;             /* above basket (200) and step-nav-btns (150) */
    transform: translateY(100%);  /* slides in from below when visible */
    opacity: 0;
  }
  .portion-bar-mini.visible {
    transform: translateY(0);
    opacity: 1;
  }
}

.portion-bar-mini-fill {
  height: 100%;
  background: #f4a261;
  transition: width 0.35s ease, background 0.35s ease;
  min-width: 0;
}
.portion-bar-mini-fill.tier-snack { background: var(--green); }
.portion-bar-mini-fill.tier-meal  { background: var(--green-dark); }
.portion-bar-mini-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
}

/* Marker labels: hidden by default – on mobile the strip sits above the basket
   bar where there is no room. Shown on desktop underneath the track. */
.portion-bar-mini-labels { display: none; }
@media (min-width: 1024px) {
  .portion-bar-mini-labels {
    display: block;
    position: relative;
    height: var(--portion-bar-label-h);
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
  }
  .portion-bar-mini-label {
    position: absolute;
    top: 1px;
    transform: translateX(-50%);
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--gray);
    white-space: nowrap;
  }
}

/* ── CLEAR CART BUTTON ───────────────────────────────────────────────────────── */
.btn-clear-cart {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.78rem;
  color: var(--gray);
  padding: 6px 0;
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
.btn-clear-cart:hover { color: var(--error); }
.cart-view-footer-btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.cart-view-footer-btns .btn-clear-cart {
  width: auto;
  text-align: left;
}

/* ── CONFIRM MODAL ───────────────────────────────────────────────────────────── */
.confirm-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.confirm-modal.open { display: flex; }
.confirm-modal-panel {
  background: var(--white);
  border-radius: var(--radius-lg, 12px);
  max-width: 400px;
  width: 100%;
  padding: 28px 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.confirm-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.confirm-modal-body {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.55;
  margin-bottom: 22px;
}
.confirm-modal-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.btn-danger {
  background: var(--error, #e53e3e);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition);
}
.btn-danger:hover { opacity: 0.85; }

/* ── DISABLED DELIVERY OPTION ────────────────────────────────────────────────── */
.delivery-option.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── DISH DETAIL MODAL ───────────────────────────────────────────────────────── */
.dish-detail-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1100;
  align-items: flex-end;
  justify-content: center;
}
.dish-detail-modal.open { display: flex; }
.dish-detail-panel {
  background: var(--white);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.22);
}
@media (min-width: 600px) {
  .dish-detail-modal { align-items: center; padding: 20px; }
  .dish-detail-panel { border-radius: 12px; max-height: 85vh; }
}
.dish-detail-img-wrap {
  position: relative;
  height: 220px;
  flex-shrink: 0;
  background: var(--gray-light);
  overflow: hidden;
}
.dish-detail-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dish-detail-img-wrap.drink-img img {
  object-fit: contain;
  padding: 20px;
  background: var(--gray-bg);
}
.dish-detail-img-wrap .dish-tags { position: absolute; bottom: 10px; left: 10px; top: auto; }
.dish-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: var(--white);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.dish-detail-close:hover { background: rgba(0,0,0,0.7); }
.dish-detail-body {
  padding: 16px 20px 12px;
  overflow-y: auto;
  flex: 1;
}
.dish-detail-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 4px 0 8px;
  color: var(--black);
  line-height: 1.25;
}
.dish-detail-desc {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 10px;
}
.dish-detail-body .dish-note { margin-bottom: 0; }
.dish-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--gray-light);
  gap: 12px;
  flex-shrink: 0;
}
/* Clickable hint on list cards (everywhere except buttons/image) */
.dishes-grid.list-view .dish-card .dish-body { cursor: pointer; }
