/* ==========================================================================
   Bestellstrecke (vorbestellen.html, gastro.html) — baut auf styles.css auf
   ========================================================================== */

[hidden] { display: none !important; }
body.bestellseite { background: var(--papier); }
.bestellseite .nav { background: rgba(23,18,16,.96); box-shadow: 0 1px 0 rgba(200,154,94,.18); padding-top: 12px; padding-bottom: 12px; }

/* ---------- Kopf ---------- */
.b-kopf {
  background:
    radial-gradient(ellipse 80% 90% at 85% 120%, #33261b 0%, transparent 60%),
    var(--rauch);
  color: var(--hell); padding: 118px 0 34px;
}
.b-kopf h1 { font-size: clamp(38px, 5.4vw, 64px); color: var(--hell); }
.b-kopf h1 em { color: var(--gold); }
.b-kopf .lead { max-width: 640px; margin-top: 14px; color: rgba(248,243,232,.82); font-size: clamp(15px, 1.6vw, 17px); line-height: 1.7; }

.schritt-anzeige { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; counter-reset: s; }
.schritt-anzeige li {
  counter-increment: s; display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: .03em; color: rgba(248,243,232,.5);
  padding: 7px 14px 7px 7px; border: 1px solid rgba(200,154,94,.2); border-radius: 999px;
}
.schritt-anzeige li::before {
  content: counter(s); width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px;
  background: rgba(248,243,232,.1); color: rgba(248,243,232,.6);
}
.schritt-anzeige li.an { color: var(--hell); border-color: var(--gold); }
.schritt-anzeige li.an::before { background: var(--gold); color: var(--rauch); }
.schritt-anzeige li.fertig { color: rgba(248,243,232,.8); }
.schritt-anzeige li.fertig::before { content: "✓"; background: var(--tanne-hell); color: var(--tanne-tief); }

.demo-hinweis {
  background: var(--papier-2); border-bottom: 1px solid rgba(36,28,21,.12);
  font-size: 12.5px; color: var(--tinte-soft); padding: 9px 0;
}
.demo-hinweis b { color: var(--schinken); }

/* ---------- Auswahl ---------- */
.b-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px;
  padding-top: 30px; padding-bottom: 80px; align-items: start;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(36,28,21,.22); background: var(--hell); color: var(--tinte);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--schinken); }
.chip.an { background: var(--tinte); color: var(--papier); border-color: var(--tinte); }
.chip-saison { border-color: rgba(156,51,35,.5); color: var(--schinken); }
.chip-saison::before { content: "★ "; }

.produkte { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.produkt {
  background: #fffdf8; border: 1px solid rgba(36,28,21,.12); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.produkt:hover { box-shadow: 0 12px 30px rgba(36,28,21,.12); transform: translateY(-2px); }
.produkt-bild { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--rauch-2); }
.produkt-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.merkmal {
  position: absolute; top: 10px; left: 10px;
  background: var(--schinken); color: var(--papier);
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.produkt-text { padding: 16px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.produkt h3 { font-family: 'Old Standard TT', Georgia, serif; font-weight: 400; font-size: 23px; line-height: 1.1; }
.produkt p { font-size: 13.5px; line-height: 1.55; color: var(--tinte-soft); }

/* Nährwerte: wie das Regal-Schild im Supermarkt, auf einen Blick */
.naehrwerte {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; gap: 5px 12px;
  background: var(--papier); border-radius: 8px; padding: 10px 12px; margin-top: auto;
}
.nw { grid-column: 1; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 8px; font-size: 12px; }
.nw-name { font-weight: 600; color: var(--tinte-soft); }
.nw-balken { height: 6px; background: rgba(36,28,21,.1); border-radius: 3px; overflow: hidden; }
.nw-balken i { display: block; height: 100%; border-radius: 3px; }
.nw-e .nw-balken i { background: var(--tanne); }
.nw-f .nw-balken i { background: var(--gold); }
.nw b { font-size: 12.5px; min-width: 34px; text-align: right; }
.nw-kcal {
  grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: center;
  border-left: 1px solid rgba(36,28,21,.15); padding-left: 12px; font-size: 11px; color: var(--tinte-soft); line-height: 1.1;
}
.nw-kcal b { display: block; font-size: 20px; color: var(--tinte); }
.nw-hinweis { grid-column: 1 / -1; font-size: 10.5px; color: var(--tinte-soft); letter-spacing: .04em; }

.varianten { display: flex; gap: 6px; }
.variante {
  flex: 1; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  padding: 7px 0; border-radius: 6px; border: 1px solid rgba(36,28,21,.2); background: var(--hell); color: var(--tinte);
}
.variante.an { background: var(--tanne); color: var(--hell); border-color: var(--tanne); }

.produkt-fuss { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.preis { font-weight: 800; font-size: 14.5px; }
.menge { display: flex; align-items: center; border: 1px solid rgba(36,28,21,.2); border-radius: 999px; background: var(--hell); }
.m-btn {
  width: 34px; height: 34px; border: 0; background: none; cursor: pointer;
  font-size: 18px; font-weight: 700; color: var(--tinte); border-radius: 50%;
}
.m-btn:hover { background: var(--papier-2); }
.menge output { min-width: 70px; text-align: center; font-weight: 700; font-size: 13.5px; }
.in-korb {
  font: inherit; font-weight: 800; font-size: 14px; letter-spacing: .03em; cursor: pointer;
  border: 0; border-radius: 6px; padding: 12px; background: var(--schinken); color: var(--papier);
  transition: background .15s ease;
}
.in-korb:hover { background: var(--schinken-hell); }
.in-korb.ok { background: var(--tanne); }

/* ---------- Warenkorb ---------- */
.korb {
  position: sticky; top: 86px;
  background: #fffdf8; border: 1px solid rgba(36,28,21,.14); border-radius: 12px;
  padding: 20px; box-shadow: 0 10px 30px rgba(36,28,21,.08);
}
.korb h2 { font-size: 28px; margin-bottom: 12px; }
.korb-liste { list-style: none; display: grid; gap: 10px; max-height: 46vh; overflow: auto; }
.korb-liste li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.korb-liste img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.korb-liste b { display: block; font-size: 13.5px; line-height: 1.25; }
.korb-liste span { color: var(--tinte-soft); }
.korb-rechts { text-align: right; }
.korb-rechts span { display: block; font-weight: 700; color: var(--tinte); }
.korb-rechts button { font: inherit; font-size: 11.5px; border: 0; background: none; color: var(--schinken); cursor: pointer; text-decoration: underline; padding: 0; }
.korb-liste li.korb-leer { display: block; color: var(--tinte-soft); font-style: italic; }
.korb-summe { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid rgba(36,28,21,.14); margin-top: 14px; padding-top: 14px; }
.korb-summe b { font-size: 22px; }
.korb-klein { font-size: 11.5px; color: var(--tinte-soft); margin-top: 6px; line-height: 1.5; }
.weiter {
  width: 100%; margin-top: 14px; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer;
  border: 0; border-radius: 6px; padding: 14px; background: var(--tinte); color: var(--papier);
}
.weiter:disabled { opacity: .35; cursor: default; }
.wiederholen {
  width: 100%; margin-bottom: 14px; font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer;
  border: 1px dashed rgba(34,57,43,.6); border-radius: 6px; padding: 11px; background: rgba(143,191,106,.12); color: var(--tanne);
}

/* Aktionskasten (Gastro) */
.aktion {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center;
  background: var(--tanne); color: var(--hell); border-radius: 12px; padding: 16px 20px; margin-bottom: 22px;
}
.aktion-zeichen { font-size: 30px; }
.aktion b { color: var(--tanne-hell); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.aktion p { font-size: 14px; line-height: 1.55; color: rgba(248,243,232,.88); }

/* Leiste unten (nur schmal) */
.leiste { display: none; }

/* ---------- Abschluss ---------- */
.abschluss { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding-top: 30px; padding-bottom: 80px; align-items: start; }
.feld-gruppe { background: #fffdf8; border: 1px solid rgba(36,28,21,.12); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.feld-gruppe h2 { font-size: 26px; margin-bottom: 4px; }
.feld-gruppe > p { font-size: 13.5px; color: var(--tinte-soft); margin-bottom: 14px; }
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feld { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; }
.feld.breit { grid-column: 1 / -1; }
.feld input, .feld textarea {
  font: inherit; font-weight: 400; font-size: 15px; padding: 11px 12px;
  border: 1px solid rgba(36,28,21,.25); border-radius: 6px; background: var(--hell); color: var(--tinte);
}
.feld input:focus, .feld textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.wahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.wahl { cursor: pointer; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl span {
  display: block; height: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1px solid rgba(36,28,21,.2); background: var(--hell);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wahl b { display: block; font-size: 14.5px; }
.wahl em { display: block; font-style: normal; font-size: 12.5px; color: var(--tinte-soft); margin-top: 2px; }
.wahl input:checked + span { border-color: var(--schinken); box-shadow: inset 0 0 0 1px var(--schinken); background: #fff; }
.wahl input:focus-visible + span { outline: 2px solid var(--gold); }
.hinweis { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--tinte-soft); background: var(--papier); border-radius: 8px; padding: 10px 12px; }

.zusammenfassung { position: sticky; top: 86px; }
.zusammenfassung ul { list-style: none; display: grid; gap: 8px; }
.zusammenfassung li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.zusammenfassung li em { font-style: normal; color: var(--tinte-soft); }
.zurueck { font: inherit; font-size: 13px; font-weight: 700; border: 0; background: none; color: var(--schinken); cursor: pointer; margin-top: 12px; text-decoration: underline; padding: 0; }

/* ---------- Fertig ---------- */
.fertig { max-width: 720px; padding-top: 40px; padding-bottom: 90px; }
.fertig h2 { font-size: clamp(34px, 4.6vw, 52px); }
.fertig-nummer {
  display: inline-flex; flex-direction: column; margin: 22px 0 14px;
  background: var(--tinte); color: var(--papier); border-radius: 12px; padding: 16px 26px;
}
.fertig-nummer span { font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.fertig-nummer b { font-family: 'Old Standard TT', Georgia, serif; font-weight: 400; font-size: 54px; line-height: 1; margin-top: 6px; }
.fertig-text { font-size: 16px; line-height: 1.7; color: #3d342a; }
.fertig-kanal { margin-top: 30px; font-size: 13px; font-weight: 700; color: var(--tinte-soft); }
.nachricht {
  margin-top: 10px; white-space: pre-wrap; font-size: 14px; line-height: 1.55;
  background: #dcf8c6; color: #1f2c1a; border-radius: 4px 14px 14px 14px; padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08); max-width: 460px;
}
.nachricht.als-mail { background: #fff; border: 1px solid rgba(36,28,21,.15); border-radius: 8px; }
.fertig .hinweis { margin-top: 22px; }
.fertig-knoepfe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Impressum ---------- */
.textseite { max-width: 760px; padding-top: 30px; padding-bottom: 90px; }
.textseite h2 { font-size: 30px; margin: 34px 0 10px; }
.textseite p { font-size: 15px; line-height: 1.75; color: #3d342a; margin-bottom: 10px; }

/* ---------- Schmal ---------- */
@media (max-width: 980px) {
  .b-layout, .abschluss { grid-template-columns: 1fr; }
  .korb { display: none; }
  .zusammenfassung { position: static; order: -1; }
  .leiste {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--rauch); color: var(--hell);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 20px rgba(0,0,0,.25);
    transform: translateY(110%); transition: transform .25s ease;
  }
  body.hat-korb[data-schritt="1"] .leiste { transform: none; }
  .leiste.puls { animation: puls .5s ease; }
  .leiste div { display: flex; flex-direction: column; line-height: 1.2; }
  .leiste span { font-size: 12px; color: rgba(248,243,232,.7); }
  .leiste b { font-size: 18px; }
  .leiste .weiter { width: auto; margin: 0; background: var(--gold); color: var(--rauch); padding: 12px 20px; }
  body.hat-korb .b-layout { padding-bottom: 110px; }
}
@keyframes puls { 50% { background: var(--tanne); } }
@media (max-width: 640px) {
  .b-kopf { padding-top: 96px; }
  .felder { grid-template-columns: 1fr; }
  .produkte { grid-template-columns: 1fr; }
}

/* ---------- Bestellzettel (Format aus Meis Excel-Vorlage) ---------- */
.zettel-bereich { margin-top: 30px; }
.zettel {
  background: #fff; color: #111; border: 2px solid #111; margin-top: 10px; max-width: 520px;
  font-family: 'Lato', Arial, sans-serif; box-shadow: 0 10px 30px rgba(36,28,21,.12);
}
.z-markt { color: #c8361f; font-weight: 900; font-size: clamp(30px, 6vw, 44px); line-height: 1.1; padding: 10px 14px; border-bottom: 2px solid #111; }
.z-kunde { display: flex; justify-content: space-between; align-items: end; padding: 8px 14px; border-bottom: 2px solid #111; }
.z-kunde b { font-size: clamp(26px, 5vw, 36px); font-weight: 900; }
.z-kunde span { font-weight: 700; font-size: 14px; }
.z-nr { display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; border-bottom: 2px solid #111; }
.z-nr b { font-size: clamp(26px, 5vw, 38px); font-weight: 900; padding: 6px 14px; }
.z-nr strong { background: #111; color: #fff; font-size: clamp(30px, 6vw, 44px); font-weight: 900; display: grid; place-items: center; }
.z-nr span { font-size: 11.5px; font-weight: 700; text-align: center; padding: 8px 10px; align-self: center; }
.zettel table { width: 100%; border-collapse: collapse; }
.zettel td { border-bottom: 1px solid #111; padding: 7px 14px; font-size: 14px; font-weight: 700; }
.zettel td + td { border-left: 1px solid #111; width: 110px; font-weight: 400; }
