/* Bestandsliste, Warenkorb und Reservierung auf /wildbret-bestand/ – im Stil der Divi-Seite */
.wildbestand { --wb-gruen: #364F00; --wb-gruen-dunkel: #263800; --wb-hell: #eef3e4; --wb-linie: #d9dccf; margin-bottom: 2em; }
.wildbestand .wb-gruppe { margin-bottom: 1.2em; }
.wildbestand .wb-wildart {
  color: var(--wb-gruen); font-weight: 700; font-size: 1.15em;
  padding-bottom: 4px; margin-bottom: 6px; border-bottom: 2px solid rgba(54, 79, 0, .25);
}
.wildbestand .wb-artikel {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 18px;
  padding: 10px 0; border-bottom: 1px solid var(--wb-linie);
}
.wildbestand .wb-artikel:last-child { border-bottom: 0; }
.wildbestand .wb-text { display: grid; gap: 2px; min-width: 0; padding: 0; }
.wildbestand .wb-name { font-size: 1.05em; line-height: 1.3; }
.wildbestand .wb-details { font-size: .9em; color: #666; line-height: 1.3; }
.wildbestand .wb-preis { display: grid; gap: 1px; text-align: right; white-space: nowrap; min-width: 84px; }
.wildbestand .wb-gesamt { font-size: 1.1em; line-height: 1.3; color: var(--wb-gruen-dunkel); font-variant-numeric: tabular-nums; }
.wildbestand .wb-anfrage { font-size: .95em; font-weight: 600; }
.wildbestand .wb-grundpreis { font-size: .8em; color: #666; line-height: 1.3; font-variant-numeric: tabular-nums; }
.wildbestand .wb-leer { font-weight: 600; }

/* Knöpfe */
.wildbestand .wb-knopf {
  flex-shrink: 0; cursor: pointer; border: 2px solid var(--wb-gruen); background: var(--wb-gruen); color: #fff;
  border-radius: 100px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.4;
  white-space: nowrap; transition: background .2s;
}
.wildbestand .wb-knopf:hover:not(:disabled) { background: var(--wb-gruen-dunkel); border-color: var(--wb-gruen-dunkel); }
.wildbestand .wb-knopf.wb-im-korb { background: #fff; color: var(--wb-gruen); }
.wildbestand .wb-knopf.wb-im-korb:hover:not(:disabled) { background: var(--wb-hell); }
.wildbestand .wb-knopf:disabled { opacity: .55; cursor: default; }
.wildbestand button:focus-visible, .wildbestand input:focus-visible, .wildbestand textarea:focus-visible {
  outline: 3px solid #9bbf4a; outline-offset: 2px;
}

/* Warenkorb */
.wildbestand .wb-korb {
  margin-top: 1.6em; padding: 20px; border: 2px solid var(--wb-gruen); border-radius: 12px; background: #fff;
  scroll-margin-top: 120px;
}
.wildbestand .wb-korb[hidden] { display: none; }
.wildbestand .wb-titel { color: var(--wb-gruen); font-weight: 700; font-size: 1.35em; padding-bottom: 10px; }
.wildbestand .wb-schritt { color: var(--wb-gruen); font-weight: 700; font-size: 1.05em; margin: 18px 0 8px; padding: 0; }
.wildbestand .wb-position {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px 12px;
  padding: 8px 0; border-bottom: 1px solid var(--wb-linie);
}
.wildbestand .wb-pos-text strong { display: block; }
.wildbestand .wb-pos-text span { font-size: .9em; color: #666; }
.wildbestand .wb-pos-preis { font-weight: 700; white-space: nowrap; text-align: right; min-width: 70px; }
.wildbestand .wb-menge { display: flex; align-items: center; gap: 4px; }
.wildbestand .wb-rund {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--wb-gruen); background: #fff;
  color: var(--wb-gruen); font-size: 18px; line-height: 1; cursor: pointer; padding: 0;
}
.wildbestand .wb-rund:disabled { opacity: .35; cursor: default; }
.wildbestand .wb-zahl { min-width: 22px; text-align: center; font-weight: 700; }
.wildbestand .wb-summe { display: flex; justify-content: space-between; padding: 10px 0 0; font-size: 1.1em; }
.wildbestand .wb-klein { font-size: .9em; color: #666; padding: 0; }
.wildbestand .wb-hinweis { background: #fdf5e6; padding: 10px 12px; border-radius: 8px; }

/* Termine */
.wildbestand .wb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.wildbestand .wb-chip {
  border: 2px solid var(--wb-linie); background: #fff; color: #333; border-radius: 100px;
  padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.wildbestand .wb-chip:hover { border-color: var(--wb-gruen); color: var(--wb-gruen); }
.wildbestand .wb-chip.aktiv { background: var(--wb-gruen); border-color: var(--wb-gruen); color: #fff; }

/* Formular */
.wildbestand .wb-formular { display: grid; gap: 10px; }
.wildbestand .wb-feld { display: grid; gap: 3px; font-weight: 600; font-size: 14px; }
.wildbestand .wb-feld input, .wildbestand .wb-feld textarea {
  width: 100%; padding: 10px 12px; border: 2px solid var(--wb-linie); border-radius: 8px;
  background: #f7f7f5; font: inherit; font-weight: 400; color: #333; box-sizing: border-box;
}
.wildbestand .wb-feld textarea { min-height: 80px; resize: vertical; }
.wildbestand .wb-feld input:focus, .wildbestand .wb-feld textarea:focus { border-color: var(--wb-gruen); background: #fff; }
.wildbestand .wb-haken { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.wildbestand .wb-haken input { margin-top: 4px; accent-color: var(--wb-gruen); width: 18px; height: 18px; flex-shrink: 0; }
.wildbestand .wb-falle { position: absolute; left: -9999px; width: 1px; height: 1px; }
.wildbestand .wb-meldung { background: #fbe9e7; color: #8a1c0b; padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.wildbestand .wb-meldung[hidden] { display: none; }
.wildbestand .wb-senden { font-size: 16px; padding: 12px 24px; justify-self: start; }
.wildbestand .wb-danke { padding: 20px; margin-bottom: 1.5em; border-radius: 12px; background: var(--wb-hell); }
.wildbestand .wb-danke p { padding-bottom: .4em; }

/* schwebende Leiste */
.wb-leiste {
  position: fixed; right: 16px; bottom: 16px; z-index: 9998;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 18px; border: 0; border-radius: 16px; cursor: pointer;
  background: #364F00; color: #fff; font: inherit; font-size: 14px; text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: opacity .2s, transform .2s;
}
.wb-leiste[hidden] { display: none; }
.wb-leiste.wb-versteckt { opacity: 0; transform: translateY(20px); pointer-events: none; }
.wb-leiste strong { font-size: 15px; }

@media (max-width: 600px) {
  .wildbestand .wb-artikel { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .wildbestand .wb-artikel .wb-knopf { grid-column: 1 / -1; width: 100%; padding: 9px 14px; font-size: 14px; }
  .wildbestand .wb-preis { min-width: 0; }
  .wildbestand .wb-korb { padding: 14px; }
  .wildbestand .wb-position { grid-template-columns: 1fr auto; }
  .wildbestand .wb-pos-preis { grid-column: 2; grid-row: 1; }
  .wildbestand .wb-menge { grid-column: 1; }
  .wb-leiste { left: 90px; right: 12px; bottom: 14px; }
}
.wildbestand .wb-zeit-titel { margin: 4px 0 6px; font-weight: 600; }

/* Dunkelmodus */
html[data-dunkel] .wildbestand { --wb-gruen: #9ccc65; --wb-gruen-dunkel: #c5e3a5; --wb-hell: #1f2619; --wb-linie: #3a4230; }
html[data-dunkel] .wildbestand .wb-wildart { border-bottom-color: rgba(156, 204, 101, .3); }
html[data-dunkel] .wildbestand .wb-details, html[data-dunkel] .wildbestand .wb-grundpreis, html[data-dunkel] .wildbestand .wb-klein, html[data-dunkel] .wildbestand .wb-pos-text span { color: #a9ae9f; }
html[data-dunkel] .wildbestand .wb-gesamt { color: #e6e8e1; }
html[data-dunkel] .wildbestand .wb-korb { background: #1a1e15; }
html[data-dunkel] .wildbestand .wb-knopf { background: #4f7a12; border-color: #4f7a12; color: #fff; }
html[data-dunkel] .wildbestand .wb-knopf.wb-im-korb { background: transparent; color: #c5e3a5; border-color: #6f9a2e; }
html[data-dunkel] .wildbestand .wb-rund { background: transparent; color: #c5e3a5; border-color: #6f9a2e; }
html[data-dunkel] .wildbestand .wb-chip { background: #1a1e15; color: #dfe2d8; border-color: #3a4230; }
html[data-dunkel] .wildbestand .wb-chip.aktiv { background: #4f7a12; border-color: #4f7a12; color: #fff; }
html[data-dunkel] .wildbestand .wb-feld input, html[data-dunkel] .wildbestand .wb-feld textarea { background: #23281d; color: #e6e8e1; border-color: #3a4230; }
html[data-dunkel] .wildbestand .wb-hinweis { background: #2b2616; color: #efe2b8; }
html[data-dunkel] .wildbestand .wb-meldung { background: #3a1d17; color: #ffcdc2; }
html[data-dunkel] .wb-leiste { background: #4f7a12; }
