/* ============================================================
   bestAnimalCARE, Design 2026, Merkliste (merkliste.css)
   Knopf auf Produktseite/Karte und Seite mit [bac_merkliste]. Alles unter .bac-ml.
   Tippflaechen ab 44 px, 375 px ohne Ueberlauf. Keine Preise, keine externen Ressourcen.
   ============================================================ */

.bac-ml { color: #2e3640; }
.bac-ml *, .bac-ml *::before, .bac-ml *::after { box-sizing: border-box; }
.bac-ml [hidden] { display: none !important; }
.bac-ml__sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.bac-ml__link { color: #a81858; font-weight: 700; text-decoration: underline; text-underline-offset: 0.15em; }
.bac-ml__link:hover { color: #7c1241; }
.bac-ml a:focus-visible, .bac-ml button:focus-visible, .bac-ml input:focus-visible {
  outline: 3px solid #2e3640; outline-offset: 2px;
}

/* Knopf */
.bac-ml--knopf { margin: 1rem 0 0; }
.bac-ml--karte { margin: 0.5rem 0 0; }
.bac-ml__form { margin: 0; }
.bac-ml__knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; min-width: 2.75rem; padding: 0.5rem 1.4rem; border-radius: 999px; cursor: pointer;
  border: 2px solid #a81858; background: #fff; color: #a81858; font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none;
}
.bac-ml__knopf::before { content: "+"; content: "+" / ""; font-weight: 700; }
.bac-ml__knopf:hover { background: #fbf2f6; color: #7c1241; border-color: #7c1241; }
.bac-ml__knopf[aria-pressed="true"] { background: #a81858; color: #fff; }
.bac-ml__knopf[aria-pressed="true"]::before { content: "\2713"; content: "\2713" / ""; }
.bac-ml__knopf[aria-pressed="true"]:hover { background: #7c1241; border-color: #7c1241; }
.bac-ml__knopf--gast::before { content: none; }
.bac-ml__knopf[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.bac-ml__status { margin: 0.5rem 0 0; min-height: 1.25rem; font-size: 0.95rem; }
.bac-ml--seite > .bac-ml__status { margin-top: 1rem; }

/* Hinweis */
.bac-ml--hinweis, .bac-ml--leer { background: #eef1f3; border-radius: 1rem; padding: 1.25rem 1.5rem; margin: 0 0 2rem; }
.bac-ml__hinweis { margin: 0; line-height: 1.5; }

/* Seite */
.bac-ml--seite { margin: 0 0 2rem; }
.bac-ml__anzahl { margin: 0 0 1rem; font-family: var(--font-secondary, inherit); font-weight: 600; font-size: 1.1rem; }
.bac-ml__liste { list-style: none; margin: 0; padding: 0; }
.bac-ml__eintrag {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.5rem 1rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid rgba(46, 54, 64, 0.12);
}
.bac-ml__eintrag:first-child { border-top: 1px solid rgba(46, 54, 64, 0.12); }
.bac-ml__bild { display: block; width: 4.5rem; height: 4.5rem; border-radius: 0.75rem; overflow: hidden; background: #eef1f3; }
.bac-ml__bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bac-ml__info { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.bac-ml__name {
  display: inline-block; padding: 0.35rem 0; color: #2e3640; font-family: var(--font-secondary, inherit);
  font-weight: 600; text-decoration: none; overflow-wrap: anywhere;
}
.bac-ml__name:hover { color: #a81858; text-decoration: underline; }
.bac-ml__packung { font-size: 0.95rem; }
.bac-ml__menge { grid-column: 2; display: flex; align-items: center; gap: 0.5rem; }
.bac-ml__label { font-weight: 600; }
.bac-ml__feld {
  width: 5rem; min-height: 2.75rem; padding: 0.4rem 0.75rem; text-align: center;
  border: 1px solid rgba(46, 54, 64, 0.55); border-radius: 999px; background: #fff; color: #2e3640; font: inherit;
}
.bac-ml__nicht { font-size: 0.95rem; }
.bac-ml__entfernen {
  grid-column: 2; justify-self: start; min-height: 2.75rem; padding: 0.4rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(46, 54, 64, 0.45); background: #fff; color: #2e3640; font: inherit; font-weight: 600;
}
.bac-ml__entfernen:hover { border-color: #a81858; color: #a81858; }
.bac-ml__leiste { margin: 1.25rem 0 0; }
.bac-ml__alle {
  min-height: 2.75rem; padding: 0.6rem 1.75rem; border-radius: 999px; cursor: pointer; width: 100%;
  border: 0; background: #a81858; color: #fff; font: inherit; font-weight: 700;
}
.bac-ml__alle:hover { background: #7c1241; }
.bac-ml__alle[disabled] { opacity: 0.6; cursor: progress; }

@media (min-width: 48rem) {
  .bac-ml__eintrag { grid-template-columns: 5rem 1fr auto auto; }
  .bac-ml__bild { width: 5rem; height: 5rem; }
  .bac-ml__menge, .bac-ml__entfernen { grid-column: auto; }
  .bac-ml__alle { width: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .bac-ml__knopf, .bac-ml__alle, .bac-ml__entfernen { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
}
