/* ═══════════════════════════════════════════════
   Das BioWerk GmbH – order.css
   3-step order page (bestellen.html)
═══════════════════════════════════════════════ */

/* ── Intro + stepper ── */
.ob { max-width: 1240px; margin: 0 auto; padding: 40px 5vw 120px; }
.ob-intro { margin-bottom: 28px; }
.ob-intro .hero-eyebrow { margin-bottom: 18px; }
.ob-intro h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; }
.ob-lead { color: #4b4535; font-size: 1.05rem; max-width: 640px; }

.ob-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  margin-bottom: 28px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.ob-step-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 10px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: .92rem;
  color: var(--gray-500);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.ob-step-btn span {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: .8rem;
  font-weight: 800;
  transition: background var(--transition), color var(--transition);
}
.ob-step-btn:hover { background: var(--cream); }
.ob-step-btn.is-current { background: var(--green-dark); color: var(--white); }
.ob-step-btn.is-current span { background: var(--yellow); color: var(--green-dark); }
.ob-step-btn.is-done { color: var(--green-dark); }
.ob-step-btn.is-done span { background: #e3f0d6; color: transparent; position: relative; }
.ob-step-btn.is-done span::after { content: '✓'; position: absolute; color: var(--green-dark); }

/* ── Layout ── */
.ob-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}
.ob-step[hidden] { display: none; }
.ob-step:not([hidden]) { animation: obIn .35s ease both; }
@keyframes obIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Category pills ── */
.ob-cats {
  position: sticky;
  top: 96px;
  z-index: 5;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: rgba(248, 245, 238, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  scrollbar-width: none;
}
.ob-cats::-webkit-scrollbar { display: none; }
.ob-cats a {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
}
.ob-cats a:hover { border-color: var(--green-light); }
.ob-cats a.is-active { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }

/* ── Category ── */
.ob-cat { margin-bottom: 32px; scroll-margin-top: 170px; }
.ob-cat-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}
.ob-cat-head img {
  width: 96px; height: 72px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.ob-cat-head h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: #1d4417;
  margin-bottom: 2px;
}
.ob-cat-head p { font-size: .9rem; color: var(--gray-500); }
.ob-cat-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff4d1;
  border: 1px solid #f3dd94;
  color: #6b4a06;
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}

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

/* ── Product card ── */
.ob-card {
  position: relative;
  padding: 18px;
  border-radius: 18px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.ob-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ob-card.has-qty { border-color: var(--green-light); box-shadow: 0 0 0 3px rgba(107, 175, 56, .15), var(--shadow-sm); }
.ob-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.ob-card-head h3 { font-size: 1.05rem; font-weight: 800; color: var(--gray-700); line-height: 1.3; }
.ob-card-head p { font-size: .8rem; color: var(--gray-500); margin-top: 2px; }
.ob-card-head .badge-sorte { flex-shrink: 0; }

.ob-row.of-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin: 0 -6px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.ob-row.of-item + .ob-row.of-item { margin-top: 4px; }
.ob-row.of-item.selected { background: #f1f8ea; border-color: rgba(143, 196, 85, .6); }
.ob-row-info { display: flex; flex-direction: column; min-width: 0; }
.ob-row-pack { font-size: .82rem; color: var(--gray-500); font-weight: 600; }
.ob-price { font-weight: 900; font-size: 1.05rem; color: var(--green-dark); }
.ob-price--ask { font-weight: 700; font-size: .85rem; color: #8a5208; }

.ob-note { font-size: .85rem; color: var(--gray-500); margin: 4px 0 8px; }
.ob-step-error { display: block; font-size: .9rem !important; font-weight: 700; color: #c43c3c; }

/* ── Panels (step 2 + 3) ── */
.ob-panel {
  padding: 28px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.ob-panel h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem;
  color: #1d4417;
  outline: none;
}
.ob-panel-sub { color: var(--gray-500); margin: 4px 0 22px; }
.ob-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ob-span-2 { grid-column: 1 / -1; }
.ob-fields[hidden] { display: none; }
.of-field label small { font-weight: 500; color: var(--gray-500); }
.ob-panel .field-error { color: #c43c3c; font-size: .78rem; }

.ob-toggle label span {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px !important;
  text-align: left !important;
}
.ob-toggle label span strong { font-size: .95rem; }
.ob-toggle label span small { font-size: .78rem; font-weight: 500; color: var(--gray-500); }
.ob-toggle label input:checked + span small { color: rgba(255, 255, 255, .88); }

/* Review */
.ob-review { display: grid; gap: 14px; margin-bottom: 18px; }
.ob-review-block { padding: 16px 18px; border-radius: 16px; background: var(--cream); }
.ob-review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ob-review-head h3 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500); }
.ob-edit {
  border: none;
  background: none;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  color: var(--green-mid);
  text-decoration: underline;
  cursor: pointer;
}
.ob-customer div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 5px 0; font-size: .92rem; }
.ob-customer dt { color: var(--gray-500); }
.ob-customer dd { font-weight: 600; color: var(--gray-700); overflow-wrap: anywhere; }

.ob-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  font-size: .85rem;
  line-height: 1.5;
  color: #4b4535;
  cursor: pointer;
}
.ob-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green-dark); flex-shrink: 0; }
.ob-consent > span > span { color: var(--yellow-dark); }

.ob-send {
  width: 100%;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 20px;
  border: none;
  border-radius: 14px;
  background: #15803d;
  color: var(--white);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -6px rgba(21, 128, 61, .5);
  transition: background var(--transition), transform var(--transition);
}
.ob-send:hover, .ob-send:focus-visible { background: #116b33; transform: translateY(-2px); }
.ob-send-label { margin-top: 20px; font-size: .85rem; font-weight: 700; color: var(--gray-500); text-align: center; }
.ob-send-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ob-send-group .ob-send { margin-top: 10px; padding: 16px 14px; font-size: 1rem; }
.ob-send--mail { background: #1d4417; box-shadow: 0 10px 24px -6px rgba(29, 68, 23, .45); }
.ob-send--mail:hover, .ob-send--mail:focus-visible { background: #12300e; }
.ob-copy {
  width: 100%;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--cream);
  font-size: .85rem;
  color: #4b4535;
}
.ob-copy p { margin-bottom: 10px !important; }
.ob-copy a { color: #3f7a26; font-weight: 700; overflow-wrap: anywhere; }
.ob-copy .ob-btn-back { padding: 10px 16px; font-size: .9rem; }
.ob-fineprint { text-align: center; font-size: .82rem; color: var(--gray-500); margin-top: 12px; }
.ob-fineprint a { color: #3f7a26; font-weight: 700; overflow-wrap: anywhere; }

/* Step navigation */
.ob-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.ob-nav .ob-btn-next { margin-left: auto; border: none; cursor: pointer; font: inherit; font-weight: 700; }
.ob-btn-back {
  padding: 15px 22px;
  border-radius: 12px;
  border: 1.5px solid #cfc7b5;
  background: var(--white);
  color: var(--green-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ob-btn-back:hover { border-color: var(--green-dark); }

/* ── Cart sidebar ── */
.ob-cart {
  position: sticky;
  top: 108px;
  padding: 22px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 20px 40px -24px rgba(29, 68, 23, .35);
}
.ob-cart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ob-cart-head h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.35rem; color: #1d4417; }
.ob-count {
  min-width: 30px; height: 30px;
  padding: 0 9px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green-dark);
  color: var(--yellow);
  font-weight: 800;
  font-size: .85rem;
}
.is-bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.25); } }
.ob-empty {
  padding: 22px 12px;
  text-align: center;
  border-radius: 14px;
  border: 1.5px dashed var(--gray-200);
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: 14px;
}
.ob-empty small { font-weight: 500; }
.ob-empty[hidden] { display: none; }

.ob-lines { list-style: none; }
.ob-lines--cart { max-height: 320px; overflow-y: auto; margin-bottom: 8px; }
.ob-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  animation: obIn .25s ease both;
}
.ob-lines--cart .ob-line { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.ob-line-qty {
  min-width: 34px;
  padding: 3px 6px;
  border-radius: 8px;
  background: #e3f0d6;
  color: var(--green-dark);
  font-weight: 800;
  font-size: .82rem;
  text-align: center;
}
.ob-line-info { display: flex; flex-direction: column; min-width: 0; }
.ob-line-name { font-size: .85rem; font-weight: 700; color: var(--gray-700); line-height: 1.3; }
.ob-line-pack { font-size: .75rem; color: var(--gray-500); }
.ob-line-price { font-weight: 800; font-size: .88rem; color: var(--green-dark); white-space: nowrap; }
.ob-line-price.is-ask { font-weight: 600; font-size: .75rem; color: #8a5208; }
.ob-line-rm {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.ob-line-rm:hover { background: #fde2e2; color: #c43c3c; }

.ob-totals div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .9rem; }
.ob-totals dt { color: var(--gray-500); }
.ob-totals dt small { font-size: .75rem; }
.ob-totals dd { font-weight: 700; color: var(--gray-700); white-space: nowrap; }
.ob-totals .ob-total { margin-top: 6px; padding-top: 12px; border-top: 2px solid var(--gray-100); font-size: 1.15rem; }
.ob-totals .ob-total dt { color: var(--gray-700); font-weight: 800; }
.ob-totals .ob-total dd { color: var(--green-dark); font-weight: 900; }
.ob-totals--review { padding: 4px 18px; border-radius: 16px; border: 1px solid var(--gray-200); }
.ob-vat { font-size: .75rem; color: var(--gray-500); margin-top: 6px; }
.ob-trust { list-style: none; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--gray-100); display: grid; gap: 6px; }
.ob-trust li { font-size: .8rem; font-weight: 600; color: var(--green-dark); }
.ob-soon {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff4d1;
  border: 1px solid #f3dd94;
  color: #6b4a06;
  font-size: .7rem;
  font-weight: 800;
}

/* ── Success ── */
.ob-success {
  max-width: 620px;
  margin: 20px auto;
  padding: 48px 32px;
  text-align: center;
  border-radius: 26px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  outline: none;
  animation: obIn .4s ease both;
}
.ob-success-icon {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e3f0d6;
  color: var(--green-dark);
  font-size: 2rem;
  font-weight: 900;
  animation: bump .6s ease .2s;
}
.ob-success h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; color: #1d4417; margin-bottom: 10px; }
.ob-success p { color: #4b4535; margin-bottom: 18px; }
.ob-success-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ob-success-actions .ob-send { max-width: 340px; }

/* ── Mobile bottom bar ── */
.ob-bar { display: none; }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .ob-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .ob-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .ob-layout { grid-template-columns: minmax(0, 1fr); }
  .ob-cart { display: none; }
  .ob-nav { display: none; }
  .ob-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ob-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -10px 30px -12px rgba(29, 68, 23, .3);
  }
  body[data-step="done"] .ob-bar { display: none; }
  .ob-bar-sum { display: flex; flex-direction: column; line-height: 1.2; }
  .ob-bar-sum span { font-size: .78rem; color: var(--gray-500); font-weight: 600; }
  .ob-bar-sum b { display: inline-block; color: var(--green-dark); }
  .ob-bar-sum strong { font-size: 1.2rem; font-weight: 900; color: var(--green-dark); }
  .ob-bar .btn-hero { padding: 14px 22px; border: none; font: inherit; font-weight: 700; cursor: pointer; }
  body[data-step="3"] .ob-bar .btn-hero { background: #15803d; }
  .ob { padding-bottom: 130px; }
}
@media (max-width: 640px) {
  .ob-send-group { grid-template-columns: 1fr; gap: 0; }
  .ob { padding: 24px 16px 130px; }
  .ob-steps { gap: 4px; padding: 4px; }
  .ob-step-btn { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: .74rem; }
  .ob-cats { top: 78px; margin: 0 -16px 16px; border-radius: 0; padding: 8px 16px; }
  .ob-cat { scroll-margin-top: 140px; }
  .ob-cat-head { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .ob-cat-head img { width: 64px; height: 64px; }
  .ob-cat-head h2 { font-size: 1.25rem; }
  .ob-cat-chip { grid-column: 1 / -1; justify-self: start; }
  .ob-grid { grid-template-columns: 1fr; }
  .ob-panel { padding: 20px 16px; }
  .ob-fields { grid-template-columns: 1fr; }
  .ob-customer div { grid-template-columns: 1fr; gap: 0; }
}
