/* ============================================================
   bestAnimalCARE — Design 2026, Stufe 2 "Medical Premium" (stufe2.css)
   Gehört zu stufe2.php. Alles unter body.bac-stufe2. Wird nach base, shop,
   chrome und geraete geladen (Priorität 102) und überschreibt dort.
   Werte: Raspberry #a81858 (nur Akzent), raspberry-dark #7c1241, Graphite #2e3640,
   Mist #eef1f3, Haarlinie rgba(46,54,64,.12). Slate #8a94a0 nie als Text.
   Kontraste: Graphite/70 auf Weiß ca. 4,8:1, Graphite/80 auf Mist ca. 6:1.
   ============================================================ */

/* ---------- P6 Fußzeile: weiß wie /praxis/ ---------- */
body.bac-stufe2 footer.main-footer[data-theme="accent"] {
  background-color: #fff;
  color: #2e3640;
  border-top: 1px solid var(--bac-line, rgba(46, 54, 64, 0.12));
}
body.bac-stufe2 footer.main-footer h4 {
  color: #2e3640;
}
body.bac-stufe2 footer.main-footer p {
  color: rgba(46, 54, 64, 0.85);
}
body.bac-stufe2 footer.main-footer a,
body.bac-stufe2 footer.main-footer .main-footer__link {
  color: rgba(46, 54, 64, 0.8);
  text-decoration: none;
}
body.bac-stufe2 footer.main-footer a:hover,
body.bac-stufe2 footer.main-footer a:focus-visible {
  color: #a81858;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
body.bac-stufe2 footer.main-footer p a { text-decoration: underline; text-underline-offset: 0.2em; }
body.bac-stufe2 footer.main-footer a:focus-visible {
  outline: 2px solid #a81858;
  outline-offset: 2px;
  border-radius: 2px;
}
/* Logo: im Footer-Markup sind alle Pfade fest weiß (fill="#fff"); CSS-fill schlägt das
   Attribut. Gleiche Farbe wie die Datei im Header (#a3195b), daher identisches Logo. */
body.bac-stufe2 footer.main-footer .invert svg path {
  fill: #a3195b;
}
/* Kleingedrucktes lesbar: mind. 13 px, Graphite 70 % */
body.bac-stufe2 footer.main-footer .text-xs {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(46, 54, 64, 0.7);
}
body.bac-stufe2 footer.main-footer .text-xs p { color: inherit; }

/* Unterer Balken: Mist, Haarlinie oben */
body.bac-stufe2 footer.main-footer + div[data-theme="primary"] {
  background-color: #eef1f3;
  border-top: 1px solid var(--bac-line, rgba(46, 54, 64, 0.12));
  color: rgba(46, 54, 64, 0.8);
}
body.bac-stufe2 footer.main-footer + div[data-theme="primary"] .color-contrast-high,
body.bac-stufe2 footer.main-footer + div[data-theme="primary"] a {
  color: rgba(46, 54, 64, 0.8);
  font-size: 0.8125rem;
}
body.bac-stufe2 footer.main-footer + div[data-theme="primary"] a:hover,
body.bac-stufe2 footer.main-footer + div[data-theme="primary"] a:focus-visible {
  color: #a81858;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
body.bac-stufe2 footer.main-footer + div[data-theme="primary"] .text-sm { font-size: 0.8125rem; }

/* S03: chrome.css setzt den Fokusring im Raspberry-Footer weiß; hier ist der Footer weiß/Mist,
   also wieder Raspberry (gleiche Spezifität wie dort, stufe2.css lädt später). */
body.bac-stufe2 :is(.main-footer, footer.main-footer + div[data-theme="primary"]) :focus-visible {
  outline-color: #a81858;
}

/* ---------- P8 Vertrauensleiste unter der Kopfzeile ---------- */
body.bac-stufe2 .bac-vertrauen {
  background: #eef1f3;
  border-bottom: 1px solid var(--bac-line, rgba(46, 54, 64, 0.12));
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(46, 54, 64, 0.85);
}
body.bac-stufe2 .bac-vertrauen__liste {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin: 0 auto;
  padding: 0 1rem;
  max-width: 75rem;
  list-style: none;
  /* Handy: Leiste scrollt in sich, die Seite nie */
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
body.bac-stufe2 .bac-vertrauen__liste::-webkit-scrollbar { display: none; }
body.bac-stufe2 .bac-vertrauen__punkt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
body.bac-stufe2 .bac-vertrauen__punkt > a:focus-visible { outline-offset: -3px; } /* Liste scrollt, Ring nicht abschneiden */
body.bac-stufe2 .bac-vertrauen__punkt > a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
body.bac-stufe2 .bac-vertrauen__icon {
  flex: 0 0 auto;
  color: #a81858;
}
body.bac-stufe2 .bac-vertrauen a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}
body.bac-stufe2 .bac-vertrauen a:hover,
body.bac-stufe2 .bac-vertrauen a:focus-visible {
  color: #a81858;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
body.bac-stufe2 .bac-vertrauen a:focus-visible {
  outline: 2px solid #a81858;
  outline-offset: 2px;
}
@media (max-width: 47.99rem) {
  body.bac-stufe2 .bac-vertrauen__liste {
    justify-content: flex-start;
    gap: 1.5rem;
    scroll-snap-type: x proximity;
  }
  body.bac-stufe2 .bac-vertrauen__punkt { scroll-snap-align: start; }
}

/* ---------- P2 Sortiment auf /shop/ ---------- */
body.bac-stufe2 .bac-sortiment { margin: 0.5rem 0 2.5rem; }
body.bac-stufe2 .bac-sortiment__titel,
body.bac-stufe2 .bac-sortiment__alle {
  margin: 0 0 1rem;
  font-family: var(--font-secondary);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-transform: none;
  color: #2e3640;
}
body.bac-stufe2 .bac-sortiment__titel { font-size: 1.5rem; }
body.bac-stufe2 .bac-sortiment__alle {
  margin-top: 0.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--bac-line, rgba(46, 54, 64, 0.12));
  font-size: 1.5rem;
}
body.bac-stufe2 .bac-sortiment__liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48rem) {
  body.bac-stufe2 .bac-sortiment__liste { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; }
}
body.bac-stufe2 .bac-sortiment__kachel { margin: 0; padding: 0; }
body.bac-stufe2 .bac-sortiment__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bac-line, rgba(46, 54, 64, 0.12));
  border-radius: 1rem;
  color: #2e3640;
  text-decoration: none;
  transition: border-color 200ms ease, transform 200ms ease;
}
body.bac-stufe2 .bac-sortiment__link:hover { border-color: #a81858; }
body.bac-stufe2 .bac-sortiment__link:active { background: #eef1f3; }
body.bac-stufe2 .bac-sortiment__link:focus-visible {
  outline: 2px solid #a81858;
  outline-offset: 2px;
}
body.bac-stufe2 .bac-sortiment__bild {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: #eef1f3;
}
body.bac-stufe2 .bac-sortiment__bild img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  box-sizing: border-box;
  mix-blend-mode: multiply; /* weiße Bildhintergründe verschwinden auf Mist */
}
body.bac-stufe2 .bac-sortiment__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem 1rem;
}
body.bac-stufe2 .bac-sortiment__name {
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
body.bac-stufe2 .bac-sortiment__link:hover .bac-sortiment__name { color: #a81858; }
body.bac-stufe2 .bac-sortiment__anzahl {
  font-size: 0.8125rem;
  color: rgba(46, 54, 64, 0.7);
}
@media (prefers-reduced-motion: no-preference) {
  body.bac-stufe2 .bac-sortiment__link:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  body.bac-stufe2 .bac-sortiment__link,
  body.bac-stufe2 .bac-vertrauen a { transition: none; }
}

/* ---------- P4 Ansprechpartner-Kasten (Produktseite Tests) ---------- */
body.bac-stufe2 .bac-kontaktkasten {
  margin: 1.5rem 0 1rem;
  padding: 1rem 1.25rem;
  background: #eef1f3;
  border: 1px solid var(--bac-line, rgba(46, 54, 64, 0.12));
  border-radius: 1rem;
  color: rgba(46, 54, 64, 0.85);
}
body.bac-stufe2 .bac-kontaktkasten p { margin: 0; }
body.bac-stufe2 .bac-kontaktkasten__titel {
  font-family: var(--font-secondary);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #2e3640;
}
body.bac-stufe2 .bac-kontaktkasten__text,
body.bac-stufe2 .bac-kontaktkasten__tel { margin-top: 0.25rem !important; font-size: 0.9375rem; }
body.bac-stufe2 .bac-kontaktkasten a {
  color: #a81858;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
body.bac-stufe2 .bac-kontaktkasten a { display: inline-block; padding: 0.4rem 0; } /* Tippfläche ab 44 px */
body.bac-stufe2 .bac-kontaktkasten a:hover,
body.bac-stufe2 .bac-kontaktkasten a:focus-visible { color: #7c1241; }
body.bac-stufe2 .bac-kontaktkasten a:focus-visible { outline: 2px solid #a81858; outline-offset: 2px; }

/* ---------- P4 Kennzahlen: Tabelle "Zusätzliche Informationen" (Tests, nicht Geräte) ----------
   Bleibt eine echte Tabelle (display: table, Zeilen und Zellen unverändert), damit die
   Tabellensemantik für Screenreader erhalten bleibt (kein Grid). Ruhig: nur Haarlinien. */
body.bac-stufe2:not(.bac-geraet) table.woocommerce-product-attributes {
  display: table;
  width: 100%;
  max-width: 44rem;
  margin: 0.5rem 0 1rem;
  border: 0;
  border-collapse: collapse;
  background: transparent;
}
body.bac-stufe2:not(.bac-geraet) table.woocommerce-product-attributes :is(tbody, tr) {
  display: table-row-group;
  background: none;
}
body.bac-stufe2:not(.bac-geraet) table.woocommerce-product-attributes tr {
  display: table-row;
  border: 0;
}
body.bac-stufe2:not(.bac-geraet) table.woocommerce-product-attributes :is(th, td) {
  display: table-cell;
  padding: 0.75rem 0;
  border: 0;
  border-top: 1px solid var(--bac-line, rgba(46, 54, 64, 0.12));
  background: none;
  text-align: left;
  vertical-align: top;
  font-style: normal;
  text-transform: none;
}
body.bac-stufe2:not(.bac-geraet) table.woocommerce-product-attributes tr:last-child :is(th, td) {
  border-bottom: 1px solid var(--bac-line, rgba(46, 54, 64, 0.12));
}
body.bac-stufe2:not(.bac-geraet) table.woocommerce-product-attributes th {
  width: 38%;
  padding-right: 1rem;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(46, 54, 64, 0.7);
}
body.bac-stufe2:not(.bac-geraet) table.woocommerce-product-attributes td,
body.bac-stufe2:not(.bac-geraet) table.woocommerce-product-attributes td p {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #2e3640;
}
body.bac-stufe2:not(.bac-geraet) table.woocommerce-product-attributes td a { color: inherit; text-decoration: none; }
body.bac-stufe2:not(.bac-geraet) table.woocommerce-product-attributes td a:hover { color: #a81858; }

/* ---------- Karten-Badge Tierart ---------- */
body.bac-stufe2 .bac-tierart {
  display: inline-block;
  align-self: flex-start;
  margin: 0.6rem 0 0.15rem;
  padding: 0.15rem 0.6rem;
  background: #eef1f3;
  border-radius: 999px;
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(46, 54, 64, 0.85);
}

/* ---------- Fußzeile: Link „Häufige Fragen“ (Tippfläche, Fokus wie die übrigen Fußzeilen-Links) ---------- */
body.bac-stufe2 footer.main-footer .bac-faq-link a { display: inline-block; padding: 0.2rem 0; }
@media (forced-colors: active) {
  body.bac-stufe2 .bac-sortiment__link,
  body.bac-stufe2 .bac-kontaktkasten { border: 1px solid CanvasText; }
}

/* Kachel ohne Bild: neutrales Piktogramm statt leerer Fläche */
body.bac-stufe2 .bac-sortiment__symbol { display: block; width: 3rem; height: 3rem; color: #8a94a0; }
