/* ════════════════════════════════════════════════════════════════════
   Bäckerei Wehner — Geldersheim Vorbestellshop
   Premium Redesign
   ════════════════════════════════════════════════════════════════════ */

:root {
  --cocoa: #3a2a1f;
  --cocoa-light: #4b3a2b;
  --gold: #C9A567;
  --gold-hover: #b8944e;
  --gold-light: #e8d5a8;
  --gold-glow: rgba(201,165,103,.25);
  --cream: #FFF9F1;
  --cream-dark: #f5ead8;
  --white: #ffffff;
  --text: #2b2117;
  --text-muted: #7a6f63;
  --border: #efe7dc;
  --shadow-sm: 0 2px 8px rgba(58,42,31,.06);
  --shadow-md: 0 8px 30px rgba(58,42,31,.1);
  --shadow-lg: 0 20px 60px rgba(58,42,31,.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ── Navigation ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.at-top { background: transparent; }

.nav.scrolled {
  background: rgba(255,249,241,.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 20px rgba(58,42,31,.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav-brand img {
  width: 48px; height: 48px;
  object-fit: contain;
  transition: filter var(--transition);
}

.nav.at-top .nav-brand img { filter: brightness(0) invert(1); }

.nav-brand-text { display: flex; flex-direction: column; }

.nav-brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  transition: color var(--transition);
}

.nav-brand-sub {
  font-size: .7rem;
  letter-spacing: .05em;
  transition: color var(--transition);
}

.nav.at-top .nav-brand-name { color: var(--white); }
.nav.scrolled .nav-brand-name { color: var(--cocoa); }
.nav.at-top .nav-brand-sub { color: var(--gold-light); }
.nav.scrolled .nav-brand-sub { color: var(--text-muted); }

/* Cart button in nav */
.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.nav.at-top .nav-cart {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
}

.nav.scrolled .nav-cart {
  background: var(--gold);
  color: var(--white);
  border: 1.5px solid var(--gold);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.nav-cart:hover { transform: translateY(-1px); }

.nav-cart svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

.nav-cart-count {
  min-width: 22px; height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  transition: all .2s ease;
}

.nav.at-top .nav-cart-count {
  background: var(--gold);
  color: var(--cocoa);
}

.nav.scrolled .nav-cart-count {
  background: var(--white);
  color: var(--cocoa);
}

.nav-cart-count.empty { opacity: .4; }

.nav-cart-total {
  font-weight: 600;
  font-size: .85rem;
}

/* Cart pulse animation */
@keyframes cartBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.25); }
  60% { transform: scale(.9); }
  100% { transform: scale(1); }
}
.nav-cart-count.bounce { animation: cartBounce .4s ease; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cocoa);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('img/hero-bg.jpg') center/cover no-repeat;
  opacity: .3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(58,42,31,.95) 0%,
    rgba(58,42,31,.75) 50%,
    rgba(75,58,43,.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,165,103,.15);
  border: 1px solid rgba(201,165,103,.3);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.5px;
}

.hero h1 .line { display: block; }
.hero h1 .gold { color: var(--gold-light); }
.hero h1 .serif-italic {
  font-style: italic;
  font-weight: 600;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.75);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 300;
}

/* Steps */
.hero-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.hero-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 28px;
  position: relative;
}

.hero-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(201,165,103,.25);
}

.hero-step-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(201,165,103,.12);
  border: 1px solid rgba(201,165,103,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}

.hero-step-icon svg { width: 20px; height: 20px; }

.hero-step-label {
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  letter-spacing: .02em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(201,165,103,.35);
  transition: all var(--transition);
}

.hero-cta:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201,165,103,.45);
}

.hero-cta svg { width: 18px; height: 18px; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-scroll .arrow {
  width: 16px; height: 16px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: .5; }
  50% { transform: rotate(45deg) translateY(5px); opacity: 1; }
}

/* ── Category Sections ───────────────────────────────────────────── */
.shop-section { padding: 0; }

/* Category Navigation (sticky under header) */
.cat-nav {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: rgba(255,249,241,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.cat-nav.has-shadow { box-shadow: 0 4px 20px rgba(58,42,31,.06); }

.cat-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  height: 52px;
}

.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-link {
  flex-shrink: 0;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font-body);
}

.cat-link:hover {
  color: var(--cocoa);
  background: var(--cream-dark);
}

.cat-link.active {
  color: var(--cocoa);
  background: var(--white);
  border-color: var(--gold);
  font-weight: 600;
  box-shadow: 0 2px 8px var(--gold-glow);
}

/* Category block */
.cat-block {
  padding: 80px 0 40px;
}

.cat-block:nth-child(even) {
  background: var(--white);
}

.cat-block:nth-child(odd) {
  background: var(--cream);
}

.cat-block-header {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.cat-block-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--cocoa);
  margin-bottom: 4px;
}

.cat-block-accent {
  width: 50px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 12px;
}

.cat-block-count {
  display: inline-block;
  margin-top: 8px;
  font-size: .8rem;
  color: var(--text-muted);
}

/* Product Grid */
.product-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ── Product Card ────────────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream-dark);
}

.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.product-card:hover .product-card-img img { transform: scale(1.08); }

/* Placeholder for products without image */
.product-card-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(145deg, var(--cream) 0%, var(--cream-dark) 100%);
  color: var(--gold);
  opacity: .5;
}

.product-card-placeholder svg { width: 40px; height: 40px; }
.product-card-placeholder span { font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

/* Seasonal badge */
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--cocoa);
  color: var(--gold-light);
  font-size: .65rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

/* Quick add overlay */
.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(58,42,31,.85) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover .product-card-overlay { opacity: 1; }

.quick-add-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--cocoa);
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transform: translateY(8px);
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

.product-card:hover .quick-add-btn { transform: translateY(0); }
.quick-add-btn:hover { background: var(--gold-hover); }
.quick-add-btn svg { width: 16px; height: 16px; }

@keyframes addedFlash {
  0% { background: var(--gold); }
  50% { background: #6ab04c; }
  100% { background: var(--gold); }
}
.quick-add-btn.added { animation: addedFlash .5s ease; }

/* Card body */
.product-card-body {
  padding: 16px 20px 20px;
}

.product-card-name {
  font-weight: 600;
  font-size: .95rem;
  color: var(--cocoa);
  margin-bottom: 2px;
  line-height: 1.3;
}

.product-card-cat {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cocoa);
}

/* Wochenangebot: durchgestrichener Normalpreis + „Angebot"-Tag */
.price-old {
  font-weight: 500;
  font-size: .85em;
  color: var(--muted, #9a8c7d);
  text-decoration: line-through;
  margin-left: .15em;
}

.offer-tag {
  display: inline-block;
  vertical-align: middle;
  margin-right: .4em;
  padding: .12em .5em;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: .62em;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-card-detail {
  font-size: .78rem;
  color: var(--gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.product-card:hover .product-card-detail { gap: 8px; }
.product-card-detail svg { width: 14px; height: 14px; }

/* Mobile: show add button always */
@media (hover: none) {
  /* Touch-Geräte: KEIN Dauer-Overlay über dem Produktfoto (verdeckte das Bild).
     Stattdessen ein kompakter runder +-Button unten rechts in der Bildecke.
     pointer-events: Overlay durchlässig (Tipp aufs Bild öffnet Details),
     nur der Button selbst fängt Taps. */
  .product-card-overlay {
    opacity: 1;
    background: none;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 10px;
    pointer-events: none;
  }
  .quick-add-btn {
    transform: translateY(0);
    pointer-events: auto;
    font-size: 0;            /* Text „Hinzufügen" ausblenden, nur das +-Icon */
    gap: 0;
    padding: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(58,42,31,.35);
  }
  .quick-add-btn svg { width: 18px; height: 18px; }
}

/* ── Product Detail Modal ────────────────────────────────────────── */
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(43,33,23,.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.detail-overlay.open { opacity: 1; pointer-events: auto; }

.detail-modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.97);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}

.detail-overlay.open .detail-modal { transform: translateY(0) scale(1); }

.detail-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--cream-dark);
  overflow: hidden;
  flex-shrink: 0;
}

.detail-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.detail-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.detail-close:hover { background: rgba(0,0,0,.7); }

.detail-body {
  padding: 24px;
  overflow-y: auto;
}

.detail-badge {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: .03em;
}

.detail-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--cocoa);
  margin-bottom: 4px;
}

.detail-desc {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.detail-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cocoa);
}

.detail-add-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.detail-add-btn:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.detail-add-btn svg { width: 18px; height: 18px; }

/* ── Cart Sidebar ────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43,33,23,.5);
  backdrop-filter: blur(3px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-sidebar {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: var(--white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(58,42,31,.15);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--cocoa);
}

.cart-header-count {
  font-family: var(--font-body);
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.cart-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream);
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

.cart-close:hover { background: var(--cream-dark); color: var(--cocoa); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}

.cart-empty {
  text-align: center;
  padding: 64px 0;
  color: var(--text-muted);
}

.cart-empty svg {
  width: 48px; height: 48px;
  color: var(--border);
  margin-bottom: 16px;
}

.cart-empty p { font-size: .9rem; line-height: 1.7; }

/* Cart item */
.cart-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 52px; height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream-dark);
  flex-shrink: 0;
}

.cart-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.cart-item-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
  color: var(--gold);
  opacity: .4;
}

.cart-item-img-placeholder svg { width: 20px; height: 20px; }

.cart-item-info {
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: .85rem;
  color: var(--cocoa);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-unit {
  font-size: .75rem;
  color: var(--text-muted);
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cart-item-total {
  font-weight: 700;
  font-size: .9rem;
  color: var(--cocoa);
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 28px; height: 28px;
  background: var(--cream);
  border: none;
  color: var(--cocoa);
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.qty-btn:hover { background: var(--cream-dark); }
.qty-btn.remove { color: #c0392b; }

.qty-val {
  width: 30px;
  text-align: center;
  font-weight: 600;
  font-size: .8rem;
  color: var(--cocoa);
  background: var(--white);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 28px;
}

/* Cart footer */
.cart-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}

.cart-limit-warning {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .8rem;
  color: #92400e;
  margin-bottom: 14px;
  line-height: 1.5;
}

.cart-limit-warning a { color: #92400e; font-weight: 600; }

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cart-subtotal-label { color: var(--text-muted); font-size: .9rem; }

.cart-subtotal-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cocoa);
}

.cart-checkout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.cart-checkout-btn:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--gold-glow);
}

.cart-checkout-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
}

.cart-checkout-btn svg { width: 18px; height: 18px; }

/* ── Checkout Modal ──────────────────────────────────────────────── */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43,33,23,.6);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.checkout-overlay.open { opacity: 1; pointer-events: auto; }

.checkout-modal {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 0;
  transform: translateY(20px);
  transition: transform .3s ease;
}

.checkout-overlay.open .checkout-modal { transform: translateY(0); }

.checkout-top {
  background: var(--cocoa);
  padding: 28px 32px;
  color: var(--white);
  position: relative;
}

.checkout-top h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.checkout-top p {
  font-size: .85rem;
  color: var(--gold-light);
  opacity: .8;
}

.checkout-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--gold-light);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-close:hover { background: rgba(255,255,255,.2); }

.checkout-body { padding: 28px 32px 32px; }

/* Form */
.form-section { margin-bottom: 22px; }

.form-label {
  display: block;
  font-weight: 600;
  font-size: .82rem;
  color: var(--cocoa);
  margin-bottom: 8px;
  letter-spacing: .02em;
}

.optional { font-weight: 400; color: var(--text-muted); }

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-input.error { border-color: #e74c3c; }

/* Date Picker */
.date-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 8px;
}

.date-btn {
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.date-btn:hover { border-color: var(--gold); }

.date-btn.selected {
  border-color: var(--gold);
  background: rgba(201,165,103,.08);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.date-btn .day-name {
  display: block;
  font-weight: 700;
  font-size: .85rem;
  color: var(--cocoa);
  margin-bottom: 2px;
}

.date-btn .day-date {
  font-size: .72rem;
  color: var(--text-muted);
}

/* Slot Picker */
.slot-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.slot-btn {
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  color: var(--cocoa);
  transition: all var(--transition);
}

.slot-btn:hover { border-color: var(--gold); }

.slot-btn.selected {
  border-color: var(--gold);
  background: rgba(201,165,103,.08);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* Summary */
.checkout-summary {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: .85rem;
  color: var(--text-muted);
}

.summary-row.total {
  font-weight: 700;
  font-size: 1rem;
  color: var(--cocoa);
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 10px;
}

.form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #991b1b;
  font-size: .85rem;
  margin-bottom: 16px;
}

.pay-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.pay-btn:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}

.pay-btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.checkout-hint {
  text-align: center;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.5;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  background: var(--cocoa);
  color: var(--cream-dark);
  padding: 56px 0 0;
  font-size: .85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.footer-brand-desc {
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  line-height: 1.6;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.footer a { color: rgba(255,255,255,.6); transition: color .2s; }
.footer a:hover { color: var(--gold-light); }
.footer p { margin-bottom: 6px; }

.footer-bottom {
  border-top: 1px solid rgba(201,165,103,.12);
  padding: 16px 24px;
  text-align: center;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
}

.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { min-height: 90vh; }
  .hero-steps { flex-direction: column; gap: 4px; }
  .hero-step::after { display: none; }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product-card-body { padding: 12px 14px 14px; }
  .product-card-name { font-size: .85rem; }
  .product-card-price { font-size: .95rem; }
  .product-card-detail { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .checkout-body { padding: 24px 20px; }
  .checkout-top { padding: 24px 20px; }

  .nav-cart-total { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: .9rem; }
  .cat-block { padding: 56px 0 32px; }
  .product-grid { gap: 10px; }
}

/* ── Utilities ───────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Smooth reveal animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp .5s ease forwards;
}

/* ── Hinweis „nicht täglich gebacken" (Detail-Modal + Checkout) ────── */
.avail-note {
  background: var(--cream-dark, #f3e9dc);
  border-left: 3px solid var(--gold, #C9A567);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--cocoa-light, #6b5a4e);
  margin: 14px 0 0;
}
.avail-note strong { color: var(--cocoa, #3a2a1f); }
.checkout-body .avail-note { margin: 14px 0; }

/* Auffällige Hinweis-Karte vor Kaufabschluss für „nicht täglich"-Artikel */
.avail-callout {
  margin: 16px 0 4px;
  border: 1.5px solid var(--gold, #C9A567);
  border-radius: 12px;
  background: var(--cream-dark, #f3e9dc);
  padding: 14px 16px;
}
.avail-callout-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .01em;
  color: var(--cocoa, #3a2a1f);
  margin-bottom: 8px;
}
.avail-callout-head svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--gold, #C9A567);
}
.avail-callout-body {
  font-size: .85rem;
  line-height: 1.55;
  color: var(--cocoa, #3a2a1f);
  margin: 4px 0;
}
.avail-callout-items {
  font-weight: 700;
  font-size: .9rem;
  color: var(--cocoa, #3a2a1f);
  margin: 8px 0;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .55);
  border-radius: 8px;
}
.avail-callout-ack {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(58, 42, 31, .14);
  font-size: .85rem;
  line-height: 1.5;
  color: var(--cocoa, #3a2a1f);
  cursor: pointer;
}
.avail-callout-ack input {
  margin-top: 2px;
  width: 18px; height: 18px;
  flex-shrink: 0;
  accent-color: var(--gold, #C9A567);
  cursor: pointer;
}

/* ════════════════════════════════════════════════════════════════════
   Checkout-Wizard (Abholung → Daten → Bezahlen) — portiert aus dem
   Standalone-Shop + Fixes für die Website-Integration
   ════════════════════════════════════════════════════════════════════ */

/* Overlay ÜBER der Website-Navigation (.nav hat z-index 1000) und Modal
   zuverlässig mittig: außen Padding, innen eigene Scroll-Fläche. */
.checkout-overlay { z-index: 1200; padding: 20px; }
.checkout-modal {
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
}
.checkout-body { overflow-y: auto; }
.cart-overlay { z-index: 1190; }
.cart-sidebar { z-index: 1195; }
.detail-overlay { z-index: 1180; }

/* Logo + Schritt-Anzeige im Kopf */
.checkout-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 4px auto 12px;
  display: block;
  filter: brightness(0) invert(1);
}
.checkout-top h2 { margin-bottom: 18px; text-align: center; }

.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.cstep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.cstep-num {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  border: 1.5px solid rgba(201,165,103,.4);
  color: var(--gold-light);
  background: transparent;
  transition: all var(--transition);
}
.cstep-label {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.cstep.active .cstep-num {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cocoa);
  box-shadow: 0 0 0 4px rgba(201,165,103,.18);
}
.cstep.active .cstep-label { color: var(--white); }
.cstep.done .cstep-num {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cocoa);
}
.cstep.done .cstep-label { color: var(--gold-light); }
.cstep-line {
  width: 48px;
  height: 1.5px;
  background: rgba(201,165,103,.25);
  margin: 0 6px 22px;
  flex-shrink: 0;
  transition: background var(--transition);
}

/* Abholungs-Recap auf Schritt 3 */
.checkout-recap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.checkout-recap-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(201,165,103,.14);
  color: var(--gold-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.checkout-recap-icon svg { width: 19px; height: 19px; }
.checkout-recap-text { display: flex; flex-direction: column; }
.checkout-recap-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.checkout-recap-value { font-size: .92rem; font-weight: 600; color: var(--cocoa); }

/* Wizard-Navigation */
.checkout-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.checkout-back:hover { border-color: var(--gold); color: var(--cocoa); }
.checkout-back svg { width: 16px; height: 16px; }
.checkout-next {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px var(--gold-glow);
}
.checkout-next:hover { background: var(--gold-hover); transform: translateY(-2px); }
.checkout-next svg { width: 18px; height: 18px; }
.checkout-nav .pay-btn { flex: 1; margin-top: 0; }

/* CTA-Button im Großbestellungs-Hinweis (Warenkorb) */
.cart-limit-cta {
  display: block;
  margin-top: 10px;
  text-align: center;
  background: var(--gold);
  color: var(--white);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: .88rem;
  transition: background var(--transition);
}
.cart-limit-cta:hover { background: var(--gold-hover); }

/* ── PayPal-Bereich im Checkout (Schritt 3) ─────────────────────────── */
.pay-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 12px;
  color: var(--text-muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pay-divider::before,
.pay-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.paypal-buttons { min-height: 48px; }

/* Fix: SVG-Icon im Bezahlen-Button hatte keine Größenbegrenzung und
   blähte den Button zu einem riesigen Klumpen auf. */
.pay-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
