/* X-Hunter Design – gemeinsame Bausteine: Abschnittsköpfe, Knöpfe, Produktkarte (Startseite, Kategorie, Produktseite). */

.xh-start, .xh-raster { font-family: var(--font-sans); }
.xh-start a { text-decoration: none; }
.xh-eyebrow { color: var(--brand-red); font-weight: 600; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.xh-h2 { margin: 6px 0 0; font-size: 32px; line-height: 1.1; font-weight: 700; font-style: italic; text-transform: uppercase; color: var(--heading); font-family: var(--font-sans); }
.xh-kopfzeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 28px; }
.xh-kopfzeile-text { margin: 0; font-size: 16px; line-height: 1.5; }
.xh-fussnote { font-size: 12px; color: var(--text-muted); margin-top: 14px; line-height: 1.5; }
.xh-rotlink { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--brand-red); }

.xh-knopf-rot { display: inline-flex; align-items: center; background: var(--brand-red); color: #ffffff !important; font-weight: 700; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; padding: 15px 28px; }
.xh-knopf-rot:hover { background: #b30b0b; }
.xh-knopf-hell { display: inline-flex; align-items: center; border: 1px solid #ffffff; color: #ffffff !important; font-weight: 700; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; padding: 14px 26px; transition: background .15s, border-color .15s; }
.xh-knopf-hell:hover { background: var(--brand-red); border-color: var(--brand-red); }
.xh-knopf-umriss { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid var(--heading); color: var(--heading) !important; padding: 10px 16px; font-weight: 700; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.xh-knopf-umriss:hover { background: var(--brand-red); border-color: var(--brand-red); color: #ffffff !important; }
/* Umriss-Knöpfe „Alle … →“ / „… entdecken →“ einheitlich 44 px hoch (Grundstil in xh-kopf-fuss.css bzw. xh-start.css) */
.xh-more, .xh-tuer-knopf { min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }

/* Produktraster */
.xh-raster { display: grid; gap: 32px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.xh-raster-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.xh-raster-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.xh-raster-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Produktkarte */
.xh-karte { display: flex; flex-direction: column; background: #ffffff; border: 1px solid var(--border); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.xh-karte:hover { border-color: var(--brand-red); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.xh-karte-link { display: flex; flex-direction: column; flex: 1; color: var(--text) !important; text-decoration: none !important; }
.xh-karte-bild { position: relative; height: 260px; border-bottom: 1px solid #ececec; display: flex; align-items: center; justify-content: center; padding: 14px 14px 40px; box-sizing: border-box; overflow: hidden; background: #ffffff; }
.xh-karte-bild img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.xh-karte:hover .xh-karte-bild img { transform: scale(1.05); }
.xh-zustand-weg .xh-karte-bild img { opacity: .45; }
.xh-plakette { position: absolute; left: 0; top: 14px; color: #ffffff; font-size: 13px; font-weight: 700; padding: 5px 10px; }
.xh-plakette-rot { background: var(--brand-red); }
.xh-plakette-dunkel { background: var(--ink); text-transform: uppercase; font-size: 12px; letter-spacing: .5px; }
.xh-karte-band { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ink); color: #ffffff; font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; padding: 7px 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.xh-karte-band.xh-band-orange { background: #b45309; }
.xh-karte-text { padding: 14px 16px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.xh-karte-marke { text-transform: uppercase; font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: .6px; }
.xh-karte-name { font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--heading); min-height: 44px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xh-karte:hover .xh-karte-name { color: var(--brand-red); }
.xh-karte-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; } /* Platz auch ohne Merkmale → Lieferzeit-Kästchen bleibt auf einer Linie */
.xh-karte-chips span { min-width: 0; max-width: 100%; background: var(--surface-alt); color: var(--text-strong); font-size: 12px; font-weight: 600; padding: 3px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* zu langes Merkmal endet mit „…“ statt hart abgeschnitten */

/* Lieferzeit-Kästchen */
.xh-lager { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-left: 3px solid; }
.xh-lager svg { flex: none; }
.xh-lager strong { display: block; font-size: 14px; line-height: 1.25; }
.xh-lager span { display: block; font-size: 12px; line-height: 1.3; color: var(--text-strong); }
.xh-lager-auf { background: #e9f6ed; border-color: var(--stock-green); color: var(--stock-green); }
.xh-lager-vor { background: #fdf1e2; border-color: #b45309; color: #b45309; }
.xh-lager-weg { background: #f1f1f1; border-color: #6b6b6b; color: #6b6b6b; }
.xh-lager-dienst { background: #eef1f5; border-color: #3a4652; color: #3a4652; } /* Werkstatt/Service (27.10.) */
.xh-lager-korb { background: #f1f1f1; border-color: var(--heading); color: var(--heading); } /* ganzer Bestand liegt schon im eigenen Warenkorb */

.xh-karte-preis { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.xh-preis { font-size: 20px; font-weight: 700; color: var(--brand-red); white-space: nowrap; } /* Betrag und € nie trennen */
.xh-preis sup, .xh-slide-preis sup { font-size: .6em; vertical-align: .5em; top: 0; margin-left: 1px; }
.xh-preis-alt { font-size: 14px; color: var(--text-muted); }
.xh-preis-alt s { white-space: nowrap; }
/* B2B (xh_gruppenpreise): normaler Endkundenpreis als „Empfohlener UVP“ */
.xh-preis-uvp { display: block; font-size: 12.5px; line-height: 1.35; color: var(--text-muted); }
.xh-karte-steuer { font-size: 12px; color: var(--text-muted); margin-top: -6px; }
.xh-karte-knopf { padding: 14px 16px 16px; }
.xh-karte-knopf form { margin: 0; }
.xh-knopf { width: 100%; height: 44px; border: 1px solid var(--brand-red); background: #ffffff; color: var(--brand-red); font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none !important; }
.xh-knopf:hover { background: var(--brand-red); color: #ffffff; }
.xh-knopf-voll { background: var(--brand-red); color: #ffffff; }
.xh-knopf-voll:hover { background: #b30b0b; }
.xh-knopf-grau { border-color: #9a9a9a; color: #555555; font-size: 11.5px; letter-spacing: 0; line-height: 1.2; padding: 0 6px; gap: 8px; text-align: left; }
.xh-knopf-grau svg { flex: none; }
.xh-knopf-grau:hover { background: #262626; border-color: #262626; color: #ffffff; }

@media (max-width: 1199px) {
  .xh-raster-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xh-raster-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .xh-h2 { font-size: 24px; }
  .xh-kopfzeile .xh-more { order: 3; width: 100%; justify-content: center; text-align: center; } /* „Alle … →“ auf allen Seiten voll breit wie auf der Startseite */
  .xh-raster, .xh-raster-5, .xh-raster-4, .xh-raster-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .xh-raster-5 > :nth-child(5) { display: none; } /* Handy: 4 Karten im 2er-Raster wie im Entwurf */
  .xh-karte-bild { height: 150px; padding: 10px 6px 30px; }
  .xh-karte-band { padding: 6px 8px; letter-spacing: .3px; }
  .xh-plakette { top: 8px; font-size: 12px; padding: 4px 7px; }
  .xh-karte-text { padding: 10px 10px 0; gap: 6px; }
  .xh-karte-name { font-size: 14px; min-height: 38px; }
  .xh-karte-chips { min-height: 20px; }
  .xh-karte-chips span { padding: 2px 6px; }
  .xh-lager { padding: 6px 8px; }
  .xh-lager strong { font-size: 13px; }
  .xh-preis { font-size: 18px; }
  .xh-preis-alt { font-size: 12px; }
  .xh-karte-knopf { padding: 8px 8px 10px; }
  .xh-knopf { font-size: 12px; letter-spacing: .4px; gap: 6px; }
}
@media (max-width: 420px) {  /* schmale Handys: Band darf zweizeilig werden (Schrift bleibt lesbar), Knopf einzeilig */
  .xh-karte-bild { padding-bottom: 38px; }
  .xh-karte-band { letter-spacing: 0; padding: 5px 4px; gap: 4px; text-align: center; line-height: 1.2; }
  .xh-karte-band svg { display: none; }
  .xh-knopf { font-size: 11px; letter-spacing: 0; gap: 4px; padding: 0 4px; }
  .xh-knopf svg { display: none; }  /* Symbol weg, damit „In den Warenkorb“ in eine Zeile passt */
}
@media (max-width: 340px) {
  .xh-karte-band { padding: 5px 2px; }  /* „ERWERBSBERECHTIGUNG“ passt auch in die 139 px schmale Karte */
}

/* Bestätigung „Artikel im Warenkorb“ */
.xh-toast { position: fixed; right: 24px; bottom: 24px; z-index: 3000; background: var(--heading); color: #ffffff; font-family: var(--font-sans); font-size: 15px; padding: 14px 18px; display: flex; gap: 16px; align-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); border-left: 4px solid var(--brand-red); transition: opacity .5s; }
.xh-toast a { color: #ffffff !important; font-weight: 700; text-decoration: underline !important; white-space: nowrap; }
.xh-toast.xh-weg { opacity: 0; }
.xh-toast-fehler { background: var(--danger-bg); color: var(--danger); border-left-color: var(--danger); }
.xh-toast-fehler a { color: var(--danger) !important; } /* weißer Link war auf Hellrot unsichtbar */
.xh-toast a { display: inline-flex; align-items: center; min-height: 44px; }
.xh-toast a:hover, .xh-toast a:focus-visible { color: var(--brand-red-auf-dunkel) !important; } /* Marcus 27.10.: beim Drüberfahren rot (helleres Rot – auf dem dunklen Grund lesbar) */
.xh-toast-fehler a:hover, .xh-toast-fehler a:focus-visible { color: var(--brand-red-dunkel) !important; }
@media (max-width: 767px) { .xh-toast { left: 12px; right: 12px; bottom: 12px; font-size: 14px; } }
/* Produktseite Handy/Tablet: unten liegen Kaufbereich und mitlaufende Kaufleiste – Einblendung oben unter dem Kopf
   (!important gegen die Handy-Regel bottom: 76px in xh-seiten.css) */
@media (max-width: 991px) {
  body#product .xh-toast { top: calc(var(--xh-kopf-hoehe, 120px) + var(--space-7)); bottom: auto !important; /* +40: ganz oben ist der Kopf 28 px höher (Vertrauensleiste) */ left: var(--space-4); right: var(--space-4); }
}
/* altes Warenkorb-Fenster des Themes nicht zeigen (Bestätigung kommt als .xh-toast) */
#blockcart-modal { visibility: hidden !important; }

/* Kompakte Produktkarte (karte-kompakt.tpl) – Kategorie-/Listenseiten und Produktseite (Zubehör, Ähnliche Artikel) */
.xh-raster-liste { gap: 16px !important; }
.xh-karte-kompakt .xh-karte-bild { height: 190px; padding: 12px; }
.xh-karte-kompakt .xh-karte-bild:has(.xh-karte-band) { padding-bottom: 36px; } /* Erwerbs-Band (wie große Karte) verdeckt das Bild nicht */
.xh-karte-kompakt .xh-karte-text { padding: 12px 14px 0; gap: 6px; }
.xh-karte-kompakt .xh-karte-marke { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* lange Marke einzeilig → Reihen bleiben auf einer Höhe */
.xh-karte-kompakt .xh-karte-name { font-size: 15px; line-height: 1.35; min-height: 40px; }
.xh-karte-kompakt .xh-karte-chips { min-height: 0; } /* umbrechen statt „.223 Remington (5,5…“ – das Kaliber ist Kerninformation */
.xh-karte-kompakt .xh-karte-chips span { padding: 2px 7px; }
.xh-karte-kompakt .xh-karte-chips span:not(:last-child) { flex-shrink: 0; } /* nur ein einzelnes überlanges Merkmal endet mit „…“ */
/* Lagerzeile immer unten im Textblock; passt der Zusatz (Lieferzeit, „Benachrichtigung möglich“) nicht daneben, rutscht er ganz in Zeile 2 */
.xh-lagerzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 12.5px; line-height: 1.3; min-width: 0; background: none; border: 0; padding: 0; }
.xh-karte-kompakt .xh-lagerzeile { margin-top: auto; }
.xh-lagerzeile i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.xh-lagerzeile strong { font-weight: 700; white-space: nowrap; }
.xh-lagerzeile span { color: var(--text-muted); }
.xh-lagerzeile.xh-lager-auf { color: var(--stock-green); background: none; }
.xh-lagerzeile.xh-lager-vor { color: #b45309; background: none; }
.xh-lagerzeile.xh-lager-dienst { color: #3a4652; background: none; }
.xh-lagerzeile.xh-lager-weg, .xh-lagerzeile.xh-lager-korb { color: #6b6b6b; background: none; }
/* Preis oben bündig; reicht der Platz nicht, rutscht der Knopf unter den Preis statt ihn zu überdecken */
.xh-karte-fuss { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 14px 14px; }
.xh-karte-fuss form { margin: 0; }
.xh-karte-preisblock { flex: 1 1 0; display: flex; flex-direction: column; min-width: min-content; } /* Breite nach Preis, nicht nach der Steuerzeile */
.xh-karte-preisblock .xh-preis { line-height: 1.1; }
.xh-karte-preisblock .xh-preis-alt { font-size: 12.5px; }
.xh-karte-preisblock .xh-karte-steuer { order: 2; margin: 2px 0 0; }
.xh-knopf-symbol { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--brand-red); background: #ffffff; color: var(--brand-red) !important; cursor: pointer; padding: 0; transition: background .15s, color .15s; }
.xh-knopf-symbol:hover, .xh-knopf-symbol:focus-visible { background: var(--brand-red); color: #ffffff !important; }
.xh-knopf-symbol-grau { border-color: #9a9a9a; color: #555555 !important; }
.xh-knopf-symbol-grau:hover { background: #262626; border-color: #262626; color: #ffffff !important; }

@media (max-width: 1199px) and (min-width: 768px) {
  .xh-karte-kompakt .xh-karte-bild { height: 170px; }
}
@media (max-width: 767px) {
  .xh-karte-kompakt .xh-karte-bild { height: 180px; padding: 12px; }
  .xh-karte-kompakt .xh-karte-text { padding: 12px 14px 0; gap: 6px; }
  .xh-karte-kompakt .xh-karte-name { font-size: 16px; min-height: 0; }
  .xh-karte-kompakt .xh-lagerzeile { font-size: 13px; }
  .xh-karte-kompakt .xh-lagerzeile span { display: inline; }
  .xh-karte-kompakt .xh-karte-fuss { padding: 10px 14px 14px; }
  .xh-karte-kompakt .xh-preis { font-size: 20px; }
}
@media (max-width: 480px) {  /* Produktseite (Zubehör, Ähnliche) und Startseite: 2er-Raster mit 139–220 px schmalen Karten */
  :is(.xh-raster-4, .xh-raster-5) .xh-karte-kompakt .xh-karte-bild:has(.xh-karte-band) { padding-bottom: 42px; }  /* Band hier zweizeilig */
  :is(.xh-raster-4, .xh-raster-5) .xh-karte-kompakt .xh-karte-text { padding: 10px 10px 0; }
  :is(.xh-raster-4, .xh-raster-5) .xh-karte-kompakt .xh-karte-fuss { gap: 6px; padding: 10px 10px 12px; }
  :is(.xh-raster-4, .xh-raster-5) .xh-karte-kompakt .xh-preis { font-size: 17px; }
  :is(.xh-raster-4, .xh-raster-5) .xh-karte-kompakt .xh-preis sup { font-size: 11px; }  /* .6em wären 10 px */
  /* Knopf in allen Karten unter dem Preis, volle Breite → Reihen bleiben gleich (sonst brach er je nach Preislänge um) */
  :is(.xh-raster-4, .xh-raster-5) .xh-karte-kompakt .xh-karte-fuss { flex-direction: column; align-items: stretch; }
  :is(.xh-raster-4, .xh-raster-5) .xh-karte-kompakt .xh-knopf-symbol { width: 100%; }
}

/* Produktbewertungen (xh_produktbewertung, 27.10.2026): Sterne über Farbverlauf, --w = 0…5 */
.xh-sterne { --w: 0; display: inline-block; letter-spacing: 1px; font-size: 15px; line-height: 1; background: linear-gradient(90deg, #e0a100 calc(var(--w) / 5 * 100%), #d4d4d4 calc(var(--w) / 5 * 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xh-sterne-gross { font-size: 26px; }
.xh-karte-sterne { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 13px; color: var(--text-muted); }
.xh-kauf-sterne { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 8px; color: var(--text-muted); font-size: 14px; text-decoration: none; }
.xh-kauf-sterne:hover span:last-child { text-decoration: underline; }
/* Kopf (31.10.): Note links, Sterne-Verteilung rechts; mobil untereinander */
.xh-bew-summe { display: grid; grid-template-columns: auto minmax(0, 360px); gap: 16px 64px; align-items: center; justify-content: start; padding: 22px 24px; background: var(--surface-alt); margin-bottom: 14px; }
.xh-bew-note { display: grid; justify-items: start; gap: 6px; }
.xh-bew-note strong { font-size: 44px; line-height: 1; color: var(--heading); }
.xh-bew-note > span:last-child { font-size: 14px; color: var(--text-muted); }
.xh-bew-balken { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.xh-bew-balken li { display: grid; grid-template-columns: 34px 1fr 28px; gap: 10px; align-items: center; font-size: 13px; color: var(--text-muted); }
.xh-bew-balken li > span:last-child { text-align: right; }
.xh-bew-balken-spur { height: 8px; background: #dedede; overflow: hidden; }
.xh-bew-balken-spur > span { display: block; height: 100%; background: #e0a100; }
.xh-bew-hinweis, .xh-bew-klein { font-size: 13px; color: var(--text-muted); }
.xh-bew-hinweis { margin: 0 0 6px; line-height: 1.5; }
.xh-bew-eintrag { border-top: 1px solid #e5e5e5; padding: 20px 0; display: grid; gap: 8px; }
.xh-bew-eintrag p { margin: 0; line-height: 1.55; color: var(--heading); }
.xh-bew-wer { display: flex; align-items: center; gap: 12px; }
.xh-bew-wer > span:last-child { display: grid; line-height: 1.3; }
.xh-bew-wer strong { font-size: 15px; color: var(--heading); }
.xh-bew-wer small { font-size: 13px; color: var(--text-muted); }
.xh-bew-initial { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--heading); color: #fff; font-weight: 700; font-size: 16px; }
.xh-bew-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.xh-bew-kopf strong { font-size: 15px; color: var(--heading); }
.xh-bew-marken { display: flex; flex-wrap: wrap; gap: 8px; }
.xh-bew-marken > span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; font-size: 12px; font-weight: 600; background: var(--surface-alt); color: var(--text-muted); }
.xh-bew-marken .xh-bew-geprueft { background: #e8f4ec; color: #1b6e34; }
.xh-bew-mehr > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 14px; padding: 11px 20px; border: 1px solid var(--heading); font-weight: 700; font-size: 14px; color: var(--heading); }
.xh-bew-mehr > summary::-webkit-details-marker { display: none; }
.xh-bew-mehr > summary::after { content: "▾"; }
.xh-bew-mehr > summary:hover, .xh-bew-mehr > summary:focus-visible { background: var(--heading); color: #fff; }
.xh-bew-mehr[open] > summary { display: none; }
@media (max-width: 575px) {
  .xh-bew-summe { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
  .xh-bew-note { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
  .xh-bew-note strong { grid-row: span 2; font-size: 40px; }
}
.xh-bew-form { border-top: 1px solid #e5e5e5; padding-top: 16px; margin-top: 8px; }
.xh-bew-form form { display: grid; gap: 12px; max-width: 640px; }
.xh-bew-form label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.xh-bew-form input[type=text], .xh-bew-form textarea { border: 1px solid #bbb; padding: 10px; font: inherit; font-weight: 400; }
.xh-bew-wahl { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; flex-wrap: wrap; }
.xh-bew-wahl legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; width: 100%; }
.xh-bew-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.xh-bew-wahl label { font-size: 32px; color: #d4d4d4; cursor: pointer; padding: 0 2px; font-weight: 400; }
.xh-bew-wahl label:hover, .xh-bew-wahl label:hover ~ label, .xh-bew-wahl input:checked ~ label { color: #e0a100; }
.xh-bew-wahl input:focus-visible + label { outline: 2px solid var(--brand-red); }
