/* X-Hunter Design – Produktseite (Schritt 5). Nur auf Produktseiten geladen. */

/* Theme-Kopfbild mit Brotkrumen ausblenden (eigene Brotkrumenleiste in produkt.tpl) */
body#product #wrapper .breadcrumb-bg { display: none !important; }
body#product #wrapper > .container { max-width: none; width: 100%; padding: 0; }
body#product #wrapper > .container > .row { margin: 0; }
body#product #content-wrapper { padding: 0; flex: 0 0 100%; max-width: 100%; }

.xh-produkt { font-family: var(--font-sans); color: var(--text); }
.xh-produkt a { text-decoration: none; }

.xh-pkrumen { background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.xh-pkrumen nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 44px; font-size: 13px; color: var(--text-muted); }
.xh-pkrumen a { color: var(--text-muted) !important; }
.xh-pkrumen a:hover { color: var(--brand-red) !important; }
/* Artikelname: Grundbreite 0, damit er nie allein in eine 2. Zeile rutscht; lange Namen enden mit „…“ (voller Name steht als H1 darunter) */
.xh-pkrumen-aktiv { color: var(--heading); font-weight: 600; flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xh-pzurueck { display: none; }

.xh-pkopf { padding-top: 32px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }

/* Galerie */
.xh-galerie { position: sticky; top: 176px; }
.xh-galerie-gross { position: relative; border: 1px solid var(--border); background: #ffffff; height: 520px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.xh-galerie-gross img { max-width: 94%; max-height: 94%; object-fit: contain; }
.xh-galerie-plaketten { position: absolute; left: 0; top: 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.xh-plakette-p { color: #ffffff; font-size: 14px; font-weight: 700; padding: 6px 12px; }
.xh-plakette-p.xh-rot { background: var(--brand-red); }
.xh-plakette-p.xh-dunkel { background: var(--ink); text-transform: uppercase; font-size: 12px; letter-spacing: .5px; }
.xh-plakette-p.xh-orange { background: #b45309; text-transform: uppercase; font-size: 12px; letter-spacing: .5px; }
.xh-garrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 1px solid #d6d6d6; background: rgba(255, 255, 255, .9); color: #262626; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.xh-garrow:hover { background: var(--brand-red); border-color: var(--brand-red); color: #ffffff; }
.xh-garrow-l { left: 12px; }
.xh-garrow-r { right: 12px; }
.xh-galerie-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.xh-galerie-thumbs button { width: 120px; height: 76px; padding: 4px; background: #ffffff; border: 2px solid #e6e6e6; cursor: pointer; }
.xh-galerie-thumbs button.xh-an { border-color: var(--brand-red); }
.xh-galerie-thumbs img { width: 100%; height: 100%; object-fit: contain; }

/* Kaufbereich */
.xh-kauf { display: flex; flex-direction: column; gap: 16px; }
/* Marke und Art.-Nr.: bei Platzmangel rutscht die Art.-Nr. geschlossen in eine eigene Zeile (nie am Bindestrich getrennt) */
.xh-kauf-oben { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-1) 12px; }
.xh-kauf-marke { display: flex; align-items: center; gap: 10px; }
/* Logo: Höhe fest, Breite begrenzt – quer liegende, randlose Logos (künftig) passen ohne Verzerrung; die heutigen 130×130-Dateien bleiben quadratisch */
.xh-kauf-marke img { height: 34px; width: auto; max-width: 110px; object-fit: contain; flex: none; }
.xh-kauf-marke img[src*="/quer/"] { height: auto; max-height: 30px; max-width: 140px; }
.xh-kauf-marke span { font-size: 13px; color: var(--text-muted); text-decoration: underline; }
.xh-kauf-artnr { font-size: 13px; color: var(--text-muted); white-space: nowrap; flex: none; }
.xh-kauf-titel { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 700; color: var(--heading); font-family: var(--font-sans); text-transform: none; font-style: normal; }
.xh-kauf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.xh-kauf-chips span { background: var(--surface-alt); color: #1f1f1f; font-size: 13px; font-weight: 600; padding: 5px 10px; }
.xh-kauf-kurz { font-size: 16px; line-height: 1.6; }
.xh-kauf-kurz p { margin: 0 0 8px; }
.xh-kauf-preis { border-top: 1px solid var(--border); padding-top: 18px; }
.xh-kauf-preis > div:first-child { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.xh-kauf-betrag { font-size: 40px; font-weight: 700; color: var(--brand-red); line-height: 1; }
.xh-kauf-betrag sup { font-size: .6em; vertical-align: .5em; top: 0; margin-left: 1px; }
.xh-kauf-alt { font-size: 17px; color: var(--text-muted); }
.xh-kauf-uvp { display: block; font-size: 15px; color: var(--text-muted); margin-top: 2px; }
.xh-kauf-steuer { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.xh-kauf-steuer a { color: var(--text-muted) !important; text-decoration: underline !important; }
.xh-lager-gross { padding: 12px 14px; gap: 12px; border-left-width: 4px; }
.xh-lager-gross strong { font-size: 16px; }
.xh-lager-gross span { font-size: 14px; }
.xh-hinweis-dunkel, .xh-hinweis-orange { padding: 16px 18px; display: flex; gap: 14px; font-size: 14px; line-height: 1.55; }
.xh-hinweis-dunkel svg, .xh-hinweis-orange svg { flex: none; margin-top: 2px; }
/* Hinweiskästen einheitlich: Fläche + 4-px-Leiste links (Rot = Pflicht, Orange = Warnung; Marcus 26.10.) */
.xh-hinweis-dunkel { background: var(--danger-bg); border-left: 4px solid var(--brand-red); color: var(--text-strong); }
.xh-hinweis-dunkel strong { color: var(--heading); }
.xh-hinweis-dunkel strong, .xh-hinweis-orange strong { display: block; text-transform: uppercase; letter-spacing: .4px; }
.xh-hinweis-dunkel a { color: var(--heading) !important; text-decoration: underline !important; white-space: nowrap; }
.xh-hinweis-orange { background: var(--warning-bg); border-left: 4px solid var(--stock-amber-fill); color: var(--text-strong); }
.xh-hinweis-orange svg, .xh-hinweis-orange strong { color: #7a3a06; }

.xh-produkt .product-actions form { margin: 0; }
.xh-kaufzeile { display: flex; gap: 10px; align-items: stretch; }
.xh-menge { display: flex; border: 1px solid var(--field-border); height: 54px; flex: none; }
.xh-menge button { width: 44px; border: 0; background: #ffffff; font-size: 20px; cursor: pointer; color: var(--heading); }
.xh-menge input { width: 44px; border: 0; text-align: center; font-weight: 700; font-size: 16px; font-family: var(--font-sans); -moz-appearance: textfield; }
.xh-menge input::-webkit-outer-spin-button, .xh-menge input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Theme-JS (TouchSpin) packt das Feld ein und hängt eigene Pfeile an → ausblenden, nur unsere − / + bleiben */
.xh-menge .bootstrap-touchspin { display: flex !important; width: auto !important; border: 0 !important; margin: 0 !important; box-shadow: none !important; }
.xh-menge .bootstrap-touchspin .input-group-btn-vertical,
.xh-menge .bootstrap-touchspin .input-group-addon,
.xh-menge .bootstrap-touchspin .btn-touchspin { display: none !important; }
.xh-menge .bootstrap-touchspin input { width: 44px !important; height: 100% !important; padding: 0 !important; border: 0 !important; background: #ffffff; box-shadow: none !important; float: none !important; }
/* einzeilig („In den / Warenkorb“ zerreißt sonst bei 992 px); gesperrt: einheitliche Regel in xh-design.css */
.xh-kaufknopf { flex: 1; height: 54px; border: 0; background: var(--brand-red); color: #ffffff; font-family: var(--font-sans); font-weight: 700; font-size: 15px; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.xh-kaufknopf:hover { background: #b30b0b; }
.xh-merkliste:empty { display: none; }
.xh-merkliste .leo-wishlist-button, .xh-merkliste a, .xh-merkliste button { width: 54px; height: 54px; border: 1px solid var(--field-border); background: #ffffff; color: #262626; display: flex; align-items: center; justify-content: center; }
.xh-zusatz:empty { display: none; }
.xh-zusatz { margin-top: 12px; font-size: 14px; }
.xh-varianten { margin-bottom: 12px; }
.xh-vorteile { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 14px; }
.xh-vorteile li { display: flex; gap: 8px; align-items: flex-start; }
.xh-vorteile svg { flex: none; color: var(--brand-red); margin-top: 1px; }
.xh-zahlarten { font-size: 13px; color: var(--text-muted); }

/* Sprungleiste */
.xh-sprung { position: sticky; top: 156px; z-index: 10; background: #ffffff; border-bottom: 1px solid var(--border); margin-top: 56px; }
.xh-sprung .xh-wrap { display: flex; gap: 32px; overflow-x: auto; }
.xh-sprung a { padding: 16px 0 13px; font-weight: 700; font-size: 14px; letter-spacing: .4px; text-transform: uppercase; color: var(--text-muted) !important; border-bottom: 3px solid transparent; white-space: nowrap; }
.xh-sprung a:hover, .xh-sprung a.xh-an { color: var(--heading) !important; border-bottom-color: var(--brand-red); }
.xh-produkt section[id^="xh-"] { scroll-margin-top: 230px; }

/* Abschnitte */
.xh-pteil { padding-top: 48px; }
/* Seitenende: 40 px bis zum Fuß, auch ohne „Ähnliche Artikel“; das Theme-Polster unter #wrapper (70/50/30 px) kam sonst noch dazu */
body#product #wrapper { padding-bottom: 0; }
.xh-produkt { padding-bottom: var(--space-7); }
.xh-pzwei { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.xh-pkaesten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.xh-h2-klein { font-size: 26px; }
.xh-h2-kasten { font-size: 22px; }
/* Überschriften-System Stufe A (Marcus 26.10.): Zusatzblöcke 26 px, der Artikelname (H1) bleibt nie kleiner */
@media (min-width: 768px) { .xh-pteil .xh-h2 { font-size: 26px; } }
@media (min-width: 768px) and (max-width: 991px) { .xh-kauf-titel { font-size: 26px; } }
.xh-ptext { font-size: 16px; line-height: 1.7; margin-top: 16px; }
.xh-ptext table { max-width: 100%; }
.xh-ptext-klein { font-size: 15px; line-height: 1.65; }
/* Beschreibung und Herstellerangaben: Absätze, Listen und Zwischenüberschriften (Theme setzt p/ul auf 0 zurück).
   Listen wie auf den Infoseiten: eingerückt, rote Quadrate (!important schlägt das alte Inline-list-style der Live-Texte).
   Die Überschrifts-Absätze des Herstellerangaben-Moduls (xh_gpsr) behalten ihre eigenen Abstände. */
.xh-ptext p:not(.xh-gpsr-title, .xh-gpsr-subtitle) { margin: 0 0 var(--space-3); }
.xh-ptext p:last-child { margin-bottom: 0; }
.xh-ptext ul, .xh-ptext ol { padding-left: 22px; margin: 0 0 var(--space-4); }
.xh-ptext ul { list-style-type: square !important; }
.xh-ptext ul > li::marker { color: var(--brand-red); }
.xh-ptext li { margin-bottom: 4px; }
.xh-ptext :is(h2, h3, h4, h5) { line-height: 1.3; margin: var(--space-5) 0 var(--space-2); }
.xh-ptext h2 { font-size: 20px; }
.xh-ptext h3 { font-size: 17px; }
.xh-ptext h4 { font-size: 16px; }
.xh-ptext > :is(h2, h3, h4, h5):first-child, .xh-ptext > div:first-child > :is(h2, h3, h4, h5):first-child { margin-top: 0; }
/* Lesebreite (≈ 90–95 Zeichen): ganzer Text, außer er enthält eine breite Tabelle (3+ Spalten) – dann nur die Textblöcke */
#xh-beschreibung .xh-ptext:not(:has(td:nth-child(3))),
#xh-beschreibung .xh-ptext :is(p, ul, ol, h2, h3, h4, h5) { max-width: var(--lesebreite); }
.xh-daten { margin-top: 18px; font-size: 15px; border-top: 1px solid var(--border); }
.xh-daten > div { display: grid; grid-template-columns: 44% 1fr; border-bottom: 1px solid var(--border); }
.xh-daten span { padding: 11px 12px 11px 0; }
.xh-daten span:first-child { font-weight: 600; color: var(--text-muted); }
.xh-daten span:last-child { color: var(--heading); font-weight: 600; }
.xh-pkasten { border: 1px solid var(--border); padding: 24px 26px; }
.xh-pschritte { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.xh-pschritte li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.xh-pschritte li > span { font-size: 26px; font-weight: 700; font-style: italic; color: var(--brand-red); line-height: 1; width: 20px; flex: none; }
.xh-pschritte strong { display: block; color: var(--heading); }
.xh-downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.xh-download { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); padding: 14px 16px; color: var(--heading) !important; }
.xh-download:hover { border-color: var(--brand-red); }
.xh-download span { flex: 1; min-width: 0; }
.xh-download strong { display: block; font-size: 15px; }
.xh-download small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Ähnliche Artikel / Zubehör (meist 4 Karten): Tablet 2×2, ab 992 vier nebeneinander statt 3 + 1 einzelne Karte (Start/Kategorie unverändert) */
@media (min-width: 768px) and (max-width: 991px) {
  .xh-produkt .xh-raster-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .xh-produkt .xh-raster-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Schmaler PC (992–1199): Kaufspalte breiter, damit Kaufknopf und Titel nicht gequetscht sind; Vorteile untereinander */
@media (min-width: 992px) and (max-width: 1199px) {
  .xh-pkopf { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .xh-galerie-gross img { max-width: calc(100% - 116px); } /* schmalere Bühne: Bild nicht unter die Blätter-Pfeile (je 12 + 42 px) */
  .xh-kauf-titel { font-size: 26px; }
  .xh-kauf .xh-vorteile { grid-template-columns: 1fr; }
}

/* Handy */
@media (max-width: 991px) {
  .xh-pkopf { grid-template-columns: 1fr; gap: 16px; padding-top: 0; }
  .xh-pkrumen nav > a, .xh-pkrumen nav > span { display: none; }
  /* Zurück-Link: Tippfläche über die ganze Leistenhöhe */
  .xh-pzurueck { display: inline-flex !important; align-items: center; gap: 4px; align-self: stretch; min-height: 44px; padding-right: var(--space-4); }
  .xh-galerie { position: static; margin: 0 -16px; }
  /* Bühne wächst mit der Breite: Handy bis ca. 464 px unverändert 260 px (Preis bleibt im ersten Bildschirm), Tablet bis 460 px */
  .xh-galerie-gross { height: clamp(260px, 56vw, 460px); border-width: 0 0 1px; }
  .xh-galerie-thumbs { display: none; }
  .xh-garrow { width: 40px; height: 40px; }
  .xh-garrow-l { left: 6px; }
  .xh-garrow-r { right: 6px; }
  .xh-plakette-p { font-size: 12px; padding: 5px 9px; }
  .xh-kauf { gap: 14px; }
  .xh-kauf-marke { min-height: 40px; }
  .xh-kauf-marke img { height: 28px; }
  .xh-kauf-marke img[src*="/quer/"] { height: auto; max-height: 26px; max-width: 120px; }
  .xh-kauf-marke span, .xh-kauf-artnr { font-size: 12px; }
  .xh-kauf-titel { font-size: 22px; line-height: 1.25; }
  .xh-kauf-chips span { font-size: 12px; padding: 4px 8px; }
  .xh-kauf-betrag { font-size: 32px; }
  .xh-kauf-alt { font-size: 15px; }
  .xh-kaufzeile { flex-wrap: wrap; }
  .xh-kaufknopf { flex: 1 1 100%; order: 3; }
  .xh-merkliste { margin-left: auto; }
  .xh-vorteile { grid-template-columns: 1fr; }
  .xh-sprung { top: 115px; margin-top: 32px; }
  .xh-sprung .xh-wrap { gap: 20px; }
  .xh-sprung a { font-size: 13px; padding: 14px 0 11px; }
  .xh-pzwei, .xh-pkaesten { grid-template-columns: 1fr; gap: 24px; }
  .xh-pteil { padding-top: 32px; }
  .xh-downloads { grid-template-columns: 1fr; }
  .xh-pkasten { padding: 18px; }
  /* Zwischenüberschriften im Text deutlich kleiner als der Artikeltitel (22 px) */
  .xh-ptext h2 { font-size: 18px; }
  .xh-ptext h3 { font-size: 16px; }
}
/* Großes Handy / Tablet: Menge, Kaufknopf und Merkliste in einer Zeile wie am PC (statt Lücke + Knopf darunter) */
@media (min-width: 600px) and (max-width: 991px) {
  .xh-kaufzeile { flex-wrap: nowrap; }
  .xh-kaufknopf { flex: 1 1 auto; order: 0; }
  .xh-merkliste { margin-left: 0; }
}

/* Beschreibungstexte aus dem Shop (alte Tabellen mit fester Breite, Bilder) dürfen nicht über den Rand ragen */
.xh-pzwei > *, .xh-pkopf > * { min-width: 0; }
.xh-ptext img { max-width: 100%; height: auto; }
.xh-ptext table { width: 100% !important; max-width: 100%; display: block; overflow-x: auto; }
/* Alte Inline-Schriften der Live-Texte (Roboto Condensed, Lato, 11/13 px) → Designschrift und Textgröße */
.xh-ptext [style*="font-family"], .xh-ptext [style*="font-family"] *, .xh-kauf-kurz [style*="font-family"], .xh-kauf-kurz [style*="font-family"] *,
.xh-ptext table, .xh-ptext table * { font-family: inherit !important; }
.xh-ptext [style*="font-size"] { font-size: inherit !important; }
/* Farbige Hervorhebungen (z. B. grelles #fb0202) entfallen, Betonung nur noch fett (Marcus 25.10.) */
.xh-ptext [style*="color"], .xh-kauf-kurz [style*="color"] { color: inherit !important; }
/* Merkliste-Knopf (leofeature): nur das Herz-Symbol */
.xh-merkliste .name-btn-product, .xh-merkliste .text-add, .xh-merkliste .text-remove { display: none !important; }
.xh-merkliste .leo-wishlist-bt-content { display: flex; align-items: center; justify-content: center; }

/* „Benachrichtigen, wenn verfügbar“ (ps_emailalerts im Hook displayProductAdditionalInfo) */
.xh-zusatz .js-mailalert { text-align: left !important; display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.xh-zusatz .js-mailalert input[type="email"] { height: 48px; border: 1px solid var(--field-border); border-radius: var(--radius-field); padding: 0 14px; font-size: 16px; background: #ffffff; }
.xh-zusatz .js-mailalert .gdpr_consent_wrapper { margin: 0 !important; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.xh-zusatz .js-mailalert .gdpr_consent_wrapper a { color: var(--heading); font-weight: 700; text-decoration: underline; }
.xh-zusatz .js-mailalert .gdpr_consent_wrapper a:hover { color: var(--brand-red); }
/* Schrift und Höhe wie der Kaufknopf; zweizeilig ausgeglichen statt „verfügbar“ allein. Gesperrt (vor dem Häkchen): einheitlich grau, Regel in xh-design.css */
.xh-zusatz .js-mailalert .js-mailalert-add { width: 100%; height: auto; min-height: 54px; margin: 0 !important; white-space: normal; text-wrap-style: balance; line-height: 1.25; padding: 12px 16px;
  font-size: 15px; letter-spacing: .6px; background: var(--brand-red) !important; border-color: var(--brand-red) !important; color: #ffffff !important; }
.xh-zusatz .js-mailalert .js-mailalert-add:hover:not(:disabled) { background: #b30b0b !important; border-color: #b30b0b !important; }
.xh-zusatz .js-mailalert-alerts:empty { display: none; }

/* ===== Produktseite Runde 2 (Marcus 24.10.): echte Reiter (PC) / Klapp-Abschnitte (Handy), Herstellerangaben gekürzt,
   Tabellen ohne inneren Scrollbalken, mitlaufende Kaufleiste ===== */

/* Reiter + Abschnitte */
.xh-abschnitte { margin-top: 56px; }
.xh-reiterleiste { display: flex; gap: 32px; border-bottom: 1px solid var(--border); }
.xh-reiterleiste button { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 16px 0 13px; font-family: var(--font-sans); font-weight: 700; font-size: 14px; letter-spacing: .4px; text-transform: uppercase; color: var(--text-muted); cursor: pointer; white-space: nowrap; }
.xh-reiterleiste button:hover { color: var(--heading); }
.xh-reiterleiste button[aria-selected="true"] { color: var(--heading); border-bottom-color: var(--brand-red); }
.xh-reiterleiste button:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 2px; }
.xh-abschnitt-kopf { display: none; }
.xh-abschnitt-inhalt { padding: 28px 0 0; max-width: 980px; }
.xh-abschnitt .xh-ptext { margin-top: 0; }
.xh-abschnitt .xh-daten { margin-top: 0; max-width: 640px; }
.xh-abschnitt .xh-pschritte { margin-top: 0; max-width: 640px; }
.xh-abschnitt .xh-rotlink { margin-top: 16px; }
.xh-abschnitt .xh-downloads { margin-top: 0; }
/* PC: nur der gewählte Reiter ist sichtbar (JS setzt .xh-reiter-an; ohne JS bleibt alles offen) */
.xh-abschnitte.xh-reiter-an .xh-abschnitt { display: none; }
.xh-abschnitte.xh-reiter-an .xh-abschnitt.xh-aktiv { display: block; }

/* Lange Herstellerangaben: erst gekürzt, „Alle anzeigen“ klappt auf */
[data-xh-kuerzen].xh-gekuerzt { max-height: 260px; overflow: hidden; position: relative; }
[data-xh-kuerzen].xh-gekuerzt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(rgba(255, 255, 255, 0), #ffffff); }
.xh-kuerzen-knopf { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 0; background: none; border: 0; font-family: var(--font-sans); font-weight: 700; font-size: 14px; color: var(--brand-red); text-decoration: underline; cursor: pointer; text-align: left; }
/* Herstellerangaben (xh_gpsr): Theme-p (16 px) schlug die 14 px des Kastens → überall 14 px */
.xh-gpsr-box p { font-size: inherit; }

/* Tabellen aus den Beschreibungen: volle Breite, kein eigener Scrollbalken, keine feste Höhe; ohne Außenrahmen wie „Technische Daten“ */
.xh-ptext table { display: table !important; width: 100% !important; max-width: 100%; height: auto !important; border-collapse: collapse; margin: 16px 0; overflow: visible !important; table-layout: auto;
  border: 0 !important; border-top: 1px solid var(--border) !important; color: inherit !important; }
.xh-ptext table td, .xh-ptext table th { width: auto !important; height: auto !important; padding: 10px 12px !important; border: 0 !important; border-bottom: 1px solid var(--border) !important; vertical-align: top; overflow-wrap: anywhere; font-size: 15px; }
.xh-ptext table tr td:first-child { font-weight: 600; color: var(--text-muted); width: 40% !important; hyphens: auto; } /* „Magazin-/kapazität“ statt hart „Magazinkapazi|tät“ */
/* Zweispaltige Datentabellen (Bezeichnung | Wert) so schmal und fett wie die Liste „Technische Daten“ (!important: Live-Tabellen haben Inline-max-width 100 %);
   breitere Tabellen bleiben voll breit */
.xh-ptext table:not(:has(td:nth-child(3))) { max-width: 640px !important; }
.xh-ptext table:not(:has(td:nth-child(3))) td + td { color: var(--heading); font-weight: 600; }
.xh-ptext [style*="overflow"], .xh-ptext [style*="height"] { overflow: visible !important; height: auto !important; max-height: none !important; }

/* Mitlaufende Kaufleiste */
.xh-kaufleiste { position: fixed; left: 0; right: 0; z-index: 990; background: #ffffff; box-shadow: 0 6px 18px rgba(0, 0, 0, .16); transition: transform .22s ease, opacity .22s ease; opacity: 0; pointer-events: none; font-family: var(--font-sans); }
.xh-kaufleiste.xh-sichtbar { opacity: 1; pointer-events: auto; }
.xh-kaufleiste-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.xh-kaufleiste-bild { width: 72px; height: 56px; object-fit: contain; flex: none; }
.xh-kaufleiste-name { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xh-kaufleiste-preis { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; flex: none; }
.xh-kaufleiste-betrag { font-size: 22px; font-weight: 700; color: var(--brand-red); }
.xh-kaufleiste-betrag sup { font-size: .6em; vertical-align: .5em; top: 0; }
.xh-kaufleiste-zeit { font-size: 12px; font-weight: 600; margin-top: 3px; background: none !important; border: 0 !important; padding: 0 !important; }
.xh-kaufleiste-zeit.xh-lager-auf { color: var(--stock-green); }
.xh-kaufleiste-zeit.xh-lager-vor { color: #b45309; }
.xh-kaufleiste-zeit.xh-lager-dienst { color: #3a4652; }
.xh-kaufleiste-knopf { flex: none; height: 46px; padding: 0 26px; border: 0; background: var(--brand-red); color: #ffffff !important; font-family: var(--font-sans); font-weight: 700; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; display: inline-flex; align-items: center; cursor: pointer; text-decoration: none !important; }
.xh-kaufleiste-knopf:hover { background: #b30b0b; }
@media (min-width: 992px) {
  .xh-kaufleiste { top: var(--xh-kopf-hoehe, 117px); transform: translateY(-12px); }
  .xh-kaufleiste.xh-sichtbar { transform: none; }
}

/* Handy / Tablet */
@media (max-width: 991px) {
  .xh-abschnitte { margin-top: 28px; border-top: 1px solid var(--border); }
  .xh-reiterleiste { display: none; }
  .xh-abschnitt { border-bottom: 1px solid var(--border); }
  .xh-abschnitt-kopf { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; background: none; border: 0; font-family: var(--font-sans); font-weight: 700; font-size: 15px; letter-spacing: .4px; text-transform: uppercase; color: var(--heading); cursor: pointer; text-align: left; }
  .xh-abschnitt-kopf::after { content: ""; flex: none; width: 12px; height: 12px; background: var(--text-muted); transition: transform .15s;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
  .xh-abschnitt-kopf[aria-expanded="true"]::after { transform: rotate(180deg); }
  .xh-abschnitt-inhalt { padding: 0 0 20px; }
  .xh-abschnitte.xh-klapp-an .xh-abschnitt-kopf[aria-expanded="false"] + .xh-abschnitt-inhalt { display: none; }
  .xh-abschnitte.xh-reiter-an .xh-abschnitt { display: block; }
  .xh-ptext table td, .xh-ptext table th { padding: 8px 6px !important; font-size: 14px; }
  /* Kaufleiste unten, kompakt */
  .xh-kaufleiste { bottom: 0; box-shadow: 0 -6px 18px rgba(0, 0, 0, .16); transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom); }
  .xh-kaufleiste.xh-sichtbar { transform: none; }
  .xh-kaufleiste-in { gap: 10px; min-height: 64px; }
  .xh-kaufleiste-bild, .xh-kaufleiste-name { display: none; }
  .xh-kaufleiste-preis { align-items: flex-start; flex: 1; }
  .xh-kaufleiste-knopf { flex: 1.3; justify-content: center; padding: 0 12px; }
  body.xh-kaufleiste-da #xh-cc-reopen, body.xh-kaufleiste-da .scroll-to-top, body.xh-kaufleiste-da #back-top { bottom: 80px !important; }
  /* Am Seitenende kein Zusatzpolster: die Leiste blendet sich vor dem Fuß aus (xh-design.js), ein Polster ließ den Fuß dabei springen */
}

/* Theme setzt #page auf overflow: hidden → das „Mitlaufen“ der Galerie rechnete falsch und schob das Bild 90 px nach unten (Leerraum über dem Bild) */
body#product #page { overflow: clip; }
.xh-galerie { top: calc(var(--xh-kopf-hoehe, 117px) + 16px); }

/* ===== Produktbilder (Marcus 24.10.): eine Vorschaureihe, Lupe, Punkte, Vollbild-Großansicht ===== */
.xh-galerie-gross { cursor: zoom-in; }
.xh-galerie-gross img { transition: transform .12s ease-out; will-change: transform; }
.xh-galerie-gross:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 2px; }
/* Vorschaubilder: immer eine Reihe, höchstens 5, aktive rot */
.xh-galerie-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; flex-wrap: nowrap; }
.xh-galerie-thumbs button { position: relative; width: auto; height: 88px; padding: 4px; border: 1px solid #e2e2e2; outline: none; transition: border-color .15s; }
.xh-galerie-thumbs button:hover { border-color: #9a9a9a; }
.xh-galerie-thumbs button.xh-an { border: 2px solid var(--brand-red); padding: 3px; }
.xh-galerie-thumbs button:focus-visible { box-shadow: 0 0 0 2px var(--brand-red); }
.xh-galerie-thumbs button:nth-child(n+6) { display: none; }
/* „+3“-Abdeckung neutral dunkel (#262626 = --heading, 75 %) statt Marineblau */
.xh-galerie-mehr { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(38, 38, 38, .75); color: #ffffff; font-family: var(--font-sans); font-size: 18px; font-weight: 700; }
/* Punkte (nur Handy) */
.xh-galerie-punkte { display: none; }

/* Großansicht */
html.xh-lb-sperre, html.xh-lb-sperre body { overflow: hidden !important; }
.xh-lb { position: fixed; inset: 0; z-index: 5000; display: none; background: rgba(10, 10, 10, .96); color: #ffffff; font-family: var(--font-sans); }
.xh-lb.xh-offen { display: block; }
.xh-lb-kopf { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.xh-lb-zahl { font-size: 15px; font-weight: 600; letter-spacing: .5px; color: #d0d0d0; }
.xh-lb-zu { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: #ffffff; cursor: pointer; }
.xh-lb-zu:hover, .xh-lb-zu:focus-visible { color: #ff6b6b; outline: none; }
.xh-lb-buehne { position: absolute; left: 0; right: 0; top: 64px; bottom: 112px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0 84px; }
.xh-lb-buehne img { max-width: 100%; max-height: 100%; object-fit: contain; background: #ffffff; cursor: zoom-in; transition: transform .18s ease-out; user-select: none; }
.xh-lb.xh-lb-zoom .xh-lb-buehne img { transform: scale(2.4); cursor: zoom-out; }
.xh-lb-pfeil { position: absolute; top: calc(50% - 24px); z-index: 2; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: #ffffff; cursor: pointer; transition: background .15s; }
.xh-lb-pfeil:hover, .xh-lb-pfeil:focus-visible { background: var(--brand-red); border-color: var(--brand-red); outline: none; }
.xh-lb-zurueck { left: 16px; }
.xh-lb-vor { right: 16px; }
.xh-lb-leiste { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; justify-content: center; gap: 8px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.xh-lb-leiste::-webkit-scrollbar { display: none; }
.xh-lb-leiste button { flex: none; width: 84px; height: 60px; padding: 3px; background: #ffffff; border: 2px solid transparent; opacity: .55; cursor: pointer; transition: opacity .15s, border-color .15s; }
.xh-lb-leiste button:hover { opacity: .85; }
.xh-lb-leiste button.xh-an { opacity: 1; border-color: var(--brand-red); }
.xh-lb-leiste img { width: 100%; height: 100%; object-fit: contain; }
.xh-lb-hinweis { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12px; color: #8a8a8a; }
.xh-lb.xh-lb-zoom .xh-lb-hinweis { visibility: hidden; }

@media (max-width: 991px) {
  .xh-galerie-gross { cursor: pointer; }
  .xh-galerie-punkte { display: flex; justify-content: center; gap: 6px; padding: 10px 0 2px; }
  .xh-galerie-punkte i { width: 7px; height: 7px; border-radius: 50%; background: #cfcfcf; transition: background .15s, transform .15s; }
  .xh-galerie-punkte i.xh-an { background: var(--brand-red); transform: scale(1.2); }
  .xh-lb-kopf { padding: 8px 10px 8px 16px; }
  .xh-lb-buehne { top: 56px; bottom: 96px; padding: 0 8px; }
  .xh-lb-pfeil { display: none; }
  .xh-lb-leiste { bottom: 28px; justify-content: flex-start; }
  .xh-lb-leiste button { width: 64px; height: 48px; }
  .xh-lb-hinweis { bottom: 6px; }
  .xh-lb-hinweis::after { content: " · Wischen zum Blättern"; }
}

/* Reiter: kein oranger Theme-Fokusrahmen beim Klicken; bei Tastaturbedienung roter Rahmen mit Abstand */
.xh-reiterleiste button:focus, .xh-galerie-thumbs button:focus, .xh-lb button:focus { outline: none !important; box-shadow: none !important; }
.xh-reiterleiste button:focus-visible { outline: 2px solid var(--brand-red) !important; outline-offset: 4px; border-radius: 2px; }
.xh-galerie-thumbs button:focus-visible { box-shadow: 0 0 0 2px var(--brand-red) !important; }
html.xh-lb-sperre #xh-cc-reopen, html.xh-lb-sperre .xh-kaufleiste { display: none !important; }  /* nichts über der Großansicht */
@media (max-width: 991px) { .xh-galerie-thumbs { display: none; } }  /* Handy: Punkte statt Vorschaureihe */

/* Merkliste-Knopf: Theme-Innenabstand (8px 20px) und Lade-Kreis schoben das Herz aus der Mitte */
.xh-merkliste .leo-wishlist-button { padding: 0 !important; margin: 0 !important; line-height: 1; position: relative; }
.xh-merkliste .leo-wishlist-bt-loading { position: absolute !important; inset: 0; margin: auto !important; }
.xh-merkliste .leo-wishlist-button:not(.active) .leo-wishlist-bt-loading { display: none; }
.xh-merkliste .leo-wishlist-bt-content { width: 100%; height: 100%; margin: 0 !important; padding: 0 !important; }
/* Herz als Umriss wie im Kopf (gefülltes Material-Herz wirkte wie „schon gemerkt“); gemerkt (.added, rote Fläche aus xh-seiten.css) = gefüllt weiß.
   Das Zeichen im Template wird per Schriftgröße 0 ausgeblendet, das Herz kommt aus ::before */
.xh-merkliste .icon-wishlist { margin: 0 !important; font-size: 0; width: 22px; height: 22px; line-height: 1; }
.xh-merkliste .icon-wishlist::before { content: "\e87e"; display: block; font-size: 22px; line-height: 1; }
.xh-merkliste .leo-wishlist-button.added .icon-wishlist::before { content: "\e87d"; color: var(--on-dark); }
