/* Boltze components — alle Werte aus tokens.json (tokens.css) */

/* ---------- Button ---------- */
.bz-btn {
  --bz-btn-h: 48px;
  --bz-btn-px: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--bz-btn-h);
  padding: 0 var(--bz-btn-px);
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700; /* Buttons in Bold */
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  -webkit-font-smoothing: antialiased;
}
.bz-btn svg { width: var(--icon-md); height: var(--icon-md); flex: none; }
.bz-btn__arrow { margin-left: auto; transition: transform .15s ease; }
.bz-btn:hover .bz-btn__arrow { transform: translateX(2px); }
.bz-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Hover wie bei Karten: 2px nach oben mit shadow-md. Schrift- und Flächenfarbe ändern sich nie;
   jede Variante setzt ihre Farben im Hover erneut, damit auch eine globale a:hover-Farbe sie nicht überschreibt. */
.bz-btn:hover, .bz-btn.is-hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Varianten */
.bz-btn--primary { background: var(--primary); color: var(--on-primary); }
.bz-btn--primary:hover, .bz-btn--primary.is-hover { background: var(--primary); color: var(--on-primary); }

/* Sekundär: weiß mit 2px Kontur in primary-soft (wie die Warenkorb-Fläche). Die Kontur ist dekorativ (1.2:1, bewusste Ausnahme von der 4,5:1-Regel); erkennbar ist der Button über den Text (ink 15.7:1). Hover: Fläche primary-soft. */
.bz-btn--secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--primary-soft); }
.bz-btn--secondary:hover, .bz-btn--secondary.is-hover { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--primary-soft), var(--shadow-md); }

.bz-btn--accent { background: var(--theme-petrol); color: var(--on-primary); }
.bz-btn--accent:hover, .bz-btn--accent.is-hover { background: var(--theme-petrol); color: var(--on-primary); }

.bz-btn--danger { background: var(--danger); color: var(--on-primary); }
.bz-btn--danger:hover, .bz-btn--danger.is-hover { background: var(--danger); color: var(--on-primary); }

.bz-btn--link {
  --bz-btn-h: 32px; --bz-btn-px: 0;
  background: transparent; color: var(--ink); border-radius: 0;
  box-shadow: inset 0 -1.5px 0 var(--ink);
}
/* Text-Button ohne Fläche: kein Anheben und kein Schatten, nur der Unterstrich wird kräftiger, Farbe bleibt ink */
.bz-btn--link:hover, .bz-btn--link.is-hover { transform: none; color: var(--ink); box-shadow: inset 0 -2.5px 0 var(--ink); }

/* Auf dunklen Flächen (primary, primary-strong, logo-ink) */
.bz-btn--inverse { background: var(--surface); color: var(--primary); }
.bz-btn--inverse:hover, .bz-btn--inverse.is-hover { background: var(--surface); color: var(--primary); }
.bz-btn--inverse-outline { background: transparent; color: var(--on-primary); box-shadow: inset 0 0 0 2px var(--on-primary); }
.bz-btn--inverse-outline:hover, .bz-btn--inverse-outline.is-hover { background: transparent; color: var(--on-primary); box-shadow: inset 0 0 0 2px var(--on-primary), var(--shadow-md); }
.bz-btn--inverse:focus-visible, .bz-btn--inverse-outline:focus-visible { outline-color: var(--on-primary); }

/* Größen */
.bz-btn--sm { --bz-btn-h: 36px; --bz-btn-px: 14px; }
.bz-btn--lg { --bz-btn-h: 56px; --bz-btn-px: 24px; font-size: 16px; line-height: 24px; }
/* Link-Button: ohne Fläche, nur Unterstrich, daher in jeder Größe ohne seitlichen Innenabstand */
.bz-btn--link.bz-btn--sm, .bz-btn--link.bz-btn--lg { --bz-btn-px: 0; }
.bz-btn--block { display: flex; width: 100%; justify-content: space-between; }
.bz-btn--icon { width: var(--bz-btn-h); padding: 0; }

/* Deaktiviert */
.bz-btn:disabled, .bz-btn.is-disabled {
  background: var(--surface-alt); color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--border); cursor: not-allowed;
}
.bz-btn:disabled .bz-btn__arrow, .bz-btn.is-disabled .bz-btn__arrow { transform: none; }
.bz-btn:disabled:hover, .bz-btn.is-disabled:hover { transform: none; background: var(--surface-alt); color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--border); }

/* Lädt */
.bz-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.bz-btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--on-primary); border-right-color: transparent;
  animation: bz-spin .7s linear infinite;
}
.bz-btn--secondary.is-loading::after { border-color: var(--ink); border-right-color: transparent; }
@keyframes bz-spin { to { transform: rotate(360deg); } }
/* TEST Prism-Rahmen im Hover (wunderui.com/motion/card/prism-card), nur Primär-Button mit bz-btn--prism. Farben und Zeiten sind Testwerte, noch keine Tokens.
   Der Button gibt im Hover seine Fläche an ::after ab (primary als Fläche, Verlauf als 2px-Rahmen außen); ::before ist der unscharfe Schein. */
.bz-btn--prism { position: relative; isolation: isolate; }
.bz-btn--prism::before, .bz-btn--prism::after { content: ""; position: absolute; z-index: -1; pointer-events: none; opacity: 0; background-size: 300% 300%; }
.bz-btn--prism::after { inset: -2px; border: 2px solid transparent; border-radius: calc(var(--radius-sm) + 2px); background-image: linear-gradient(var(--primary), var(--primary)), linear-gradient(120deg, #12aff0, #fe6bba, #555cf3, #12aff0); background-origin: border-box; background-clip: padding-box, border-box; background-size: auto, 300% 300%; }
.bz-btn--prism::before { inset: -4px; border-radius: calc(var(--radius-sm) + 4px); background-image: linear-gradient(120deg, #12aff0, #fe6bba, #555cf3, #12aff0); filter: blur(10px); }
.bz-btn--prism:hover:not(:disabled), .bz-btn--prism.is-hover { background: transparent; }
.bz-btn--prism:hover:not(:disabled)::after, .bz-btn--prism.is-hover::after { opacity: 1; animation: bz-prism-rim 4s cubic-bezier(.65, 0, .35, 1) infinite; }
.bz-btn--prism:hover:not(:disabled)::before, .bz-btn--prism.is-hover::before { opacity: .38; animation: bz-prism-glow 4s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes bz-prism-rim { 0%, 100% { background-position: 0 0, 0% center; } 50% { background-position: 0 0, 100% center; } }
@keyframes bz-prism-glow { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }
@media (prefers-reduced-motion: reduce) { .bz-btn--prism::before, .bz-btn--prism::after { animation: none !important; } }
@media (prefers-reduced-motion: reduce) { .bz-btn, .bz-btn__arrow { transition: none; } .bz-btn:hover, .bz-btn.is-hover { transform: none; } .bz-btn.is-loading::after { animation-duration: 2s; } }

/* ---------- Formularfelder: gemeinsamer Rahmen ---------- */
.bz-field { display: flex; flex-direction: column; gap: var(--space-2); font-family: var(--font-sans); color: var(--ink); }
.bz-label { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); }
.bz-label__req { color: var(--danger); margin-left: 2px; }
.bz-label__opt { color: var(--ink-muted); font-weight: 400; margin-left: var(--space-1); }
.bz-help { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin: 0; }
.bz-error { display: flex; gap: var(--space-1); align-items: flex-start; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--danger); margin: 0; }
.bz-error svg { width: var(--icon-sm); height: var(--icon-sm); flex: none; margin-top: 2px; }

/* ---------- Input und Textarea ---------- */
/* Buttons und Formularfelder haben immer radius-sm */
.bz-input {
  box-sizing: border-box; width: 100%; height: 48px; padding: 0 var(--space-4);
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--gray-300); /* Formularfelder: 2px gray-300 (Entscheidung 30.11.2026; 1,9:1, unter WCAG 1.4.11) */ border-radius: var(--radius-sm);
  font: 400 16px/24px var(--font-sans);
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.bz-input::placeholder { color: var(--ink-muted); opacity: 1; }
.bz-input:hover, .bz-input.is-hover { border-color: var(--ink); }
.bz-input:focus, .bz-input.is-focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.bz-input--sm { height: 36px; padding: 0 12px; font-size: 14px; line-height: 20px; }
textarea.bz-input { height: auto; min-height: 120px; padding: 12px var(--space-4); resize: vertical; }
.bz-input[aria-invalid="true"], .bz-input.is-invalid { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.bz-input:disabled, .bz-input.is-disabled { background: var(--surface-alt); color: var(--ink-muted); border-style: dashed; cursor: not-allowed; }
.bz-input[readonly] { background: var(--surface-alt); }

/* Eingabe mit Einheit oder Icon (z. B. Stück, €, Suche) */
.bz-input-group { position: relative; display: flex; align-items: center; }
.bz-input-group .bz-input { padding-right: 56px; }
.bz-input-group__addon { position: absolute; right: var(--space-4); font: 400 14px/20px var(--font-sans); color: var(--ink-muted); pointer-events: none; }

/* ---------- Select ---------- */
.bz-select {
  box-sizing: border-box; width: 100%; height: 48px; padding: 0 44px 0 var(--space-4);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23232A40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px 18px;
  color: var(--ink); border: 2px solid var(--gray-300); border-radius: var(--radius-sm);
  font: 400 16px/24px var(--font-sans); cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.bz-select:hover, .bz-select.is-hover { border-color: var(--ink); }
.bz-select:focus, .bz-select.is-focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.bz-select--sm { height: 36px; padding: 0 36px 0 12px; font-size: 14px; line-height: 20px; background-position: right 10px center; }
.bz-select[aria-invalid="true"], .bz-select.is-invalid { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.bz-select:disabled { background-color: var(--surface-alt); color: var(--ink-muted); border-style: dashed; cursor: not-allowed; }

/* ---------- Checkbox und Radio ---------- */
.bz-check { display: inline-flex; align-items: flex-start; gap: 12px; font: 400 16px/24px var(--font-sans); color: var(--ink); cursor: pointer; }
.bz-check__input {
  -webkit-appearance: none; appearance: none; flex: none; margin: 2px 0 0;
  width: 20px; height: 20px; background: var(--surface);
  border: 2px solid var(--gray-300); border-radius: var(--radius-sm); /* wie alle Formularfelder, Entscheidung 30.11.2026 */
  display: grid; place-content: center; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.bz-check__input::before { content: ""; width: 12px; height: 12px; transform: scale(0); transition: transform .1s ease; }
.bz-check__input[type="checkbox"]::before {
  background: var(--on-primary);
  clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 22%, 85% 8%, 40% 69%);
}
.bz-check__input[type="checkbox"]:indeterminate::before { clip-path: inset(40% 0 40% 0); transform: scale(1); }
.bz-check__input:checked, .bz-check__input[type="checkbox"]:indeterminate { background: var(--primary); border-color: var(--primary); }
.bz-check__input:checked::before { transform: scale(1); }
.bz-check__input[type="radio"] { border-radius: 50%; }
.bz-check__input[type="radio"]::before { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.bz-check__input[type="radio"]:checked { background: var(--surface); border-color: var(--primary); }
.bz-check:hover .bz-check__input:not(:checked):not(:disabled) { border-color: var(--ink); }
.bz-check__input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bz-check__input[aria-invalid="true"] { border-color: var(--danger); }
.bz-check__input:disabled { background: var(--surface-alt); border-style: dashed; cursor: not-allowed; }
.bz-check__input:disabled:checked { background: var(--ink-muted); border: 2px solid var(--ink-muted); }
.bz-check__input[type="radio"]:disabled:checked { background: var(--surface-alt); }
.bz-check__input[type="radio"]:disabled:checked::before { background: var(--ink-muted); }
.bz-check:has(.bz-check__input:disabled) { color: var(--ink-muted); cursor: not-allowed; }
.bz-check__hint { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.bz-fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bz-fieldset > legend { padding: 0; margin-bottom: var(--space-2); }
@media (prefers-reduced-motion: reduce) { .bz-input, .bz-check__input, .bz-check__input::before { transition: none; } }

/* ---------- Select aufgeklappt (eigene Liste, Combobox-Muster) ---------- */
.bz-select-wrap { position: relative; }
button.bz-select { text-align: left; display: flex; align-items: center; }
.bz-select[aria-expanded="true"] {
  border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23232A40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E");
}
.bz-select__placeholder { color: var(--ink-muted); }
.bz-listbox {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
  box-sizing: border-box; margin: 0; padding: var(--space-1) 0; list-style: none;
  max-height: 288px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font: 400 16px/24px var(--font-sans); color: var(--ink);
}
.bz-listbox__option {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  min-height: 44px; box-sizing: border-box; padding: 10px var(--space-4); cursor: pointer;
}
.bz-listbox__option:hover, .bz-listbox__option.is-hover { background: var(--primary-soft); }
.bz-listbox__option.is-active { background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--focus); }
.bz-listbox__option[aria-selected="true"] { font-weight: 600; color: var(--primary); }
.bz-listbox__option[aria-selected="true"]::after {
  content: ""; flex: none; width: 16px; height: 16px; background: var(--primary);
  clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 22%, 85% 8%, 40% 69%);
}
.bz-listbox__option[aria-disabled="true"] { color: var(--ink-muted); cursor: not-allowed; background: none; }
.bz-listbox__hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); font-weight: 400; }
.bz-listbox__group { padding: 12px var(--space-4) var(--space-1); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-muted); }
.bz-listbox__sep { height: 1px; margin: var(--space-1) 0; background: var(--border); }
.bz-select--sm + .bz-listbox { font-size: 14px; line-height: 20px; }
.bz-select--sm + .bz-listbox .bz-listbox__option { min-height: 36px; padding: 8px 12px; }

/* ---------- Badge ---------- */
.bz-badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  height: 24px; padding: 0 var(--space-2); box-sizing: border-box;
  border-radius: var(--radius-sm);
  font: 600 12px/16px var(--font-sans); letter-spacing: 0.02em; white-space: nowrap;
  background: var(--fill-neutral); color: var(--ink);
}
.bz-badge svg { width: var(--icon-xs); height: var(--icon-xs); flex: none; }
.bz-badge--lg { height: 28px; padding: 0 10px; font-size: 14px; line-height: 20px; letter-spacing: 0.01em; }
.bz-badge--lg svg { width: var(--icon-sm); height: var(--icon-sm); }
/* Drei Stufen: die Füllstärke zeigt die Wichtigkeit.
   Stufe 1 satt: nur Neu und Sale. Stufe 2 getönt: nur Status, immer mit Icon und Wort.
   Stufe 3 neutral: Merkmale (mit Icon) und Themenwelten = Standard bz-badge (ink auf fill-neutral, 13.6:1). */
/* Stufe 1: Verkaufsanlass */
.bz-badge--new { background: var(--primary); color: var(--on-primary); }
.bz-badge--sale { background: var(--danger); color: var(--on-primary); }
/* Stufe 2: Status. Grün, Gelb, Rot und Blau nur für Status */
.bz-badge--success { background: var(--success-soft); color: var(--success); }
.bz-badge--warning { background: var(--warning-soft); color: var(--warning); }
.bz-badge--danger { background: var(--danger-soft); color: var(--danger); }
.bz-badge--info { background: var(--info-soft); color: var(--info); }
/* Stufe 3 (neutral) überall, auch auf Produktbildern: hellblaue Fläche primary-soft mit ink-Text (13:1) */
.bz-badge--on-image { background: var(--primary-soft); }
/* Zähler, z. B. Anzahl am Warenkorb-Icon */
.bz-count {
  display: inline-grid; place-content: center; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box;
  border-radius: var(--radius-full); background: var(--primary); color: var(--on-primary);
  font: 600 12px/16px var(--font-sans); font-variant-numeric: tabular-nums;
}
.bz-count--inverse { background: var(--surface); color: var(--primary); }

/* ---------- Card ---------- */
.bz-card {
  position: relative; display: flex; flex-direction: column; box-sizing: border-box;
  background: var(--surface); color: var(--ink);
  border: 0; border-radius: var(--radius-md); overflow: hidden;
  font-family: var(--font-sans); box-shadow: var(--shadow-md);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.bz-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--fill-neutral); overflow: hidden; }
.bz-card__media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-card__media .bz-badge { position: absolute; top: var(--space-2); left: var(--space-2); }
.bz-card__body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); flex: 1; }
.bz-card__eyebrow { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.bz-card__title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--ink); }
.bz-card__text { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink); }
.bz-card__meta { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.bz-card__footer { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; padding: 0 var(--space-4) var(--space-4); }
.bz-card--pad-lg .bz-card__body { padding: var(--space-6); }
.bz-card--pad-lg .bz-card__footer { padding: 0 var(--space-6) var(--space-6); }

/* Ganze Karte klickbar: Link im Titel, Fläche über ::after */
.bz-card__link { color: inherit; text-decoration: none; }
.bz-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bz-card--link:hover, .bz-card--link.is-hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.bz-card--link:hover .bz-card__link, .bz-card--link.is-hover .bz-card__link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.bz-card--link:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.bz-card--link .bz-card__link:focus-visible { outline: none; }
.bz-card__footer .bz-btn, .bz-card__footer a { position: relative; z-index: 2; }

/* Flächen-Varianten */
.bz-card--alt { background: var(--surface-alt); border-color: transparent; }
.bz-card--petrol { background: var(--theme-petrol); border-color: transparent; color: var(--on-primary); }
.bz-card--berry { background: var(--theme-berry); border-color: transparent; color: var(--on-primary); }
.bz-card--gold { background: var(--theme-gold); border-color: transparent; }
.bz-card--sage { background: var(--accent-sage-soft); border-color: transparent; }
.bz-card--petrol .bz-card__title, .bz-card--petrol .bz-card__text, .bz-card--petrol .bz-card__eyebrow, .bz-card--petrol .bz-card__meta,
.bz-card--berry .bz-card__title, .bz-card--berry .bz-card__text, .bz-card--berry .bz-card__eyebrow, .bz-card--berry .bz-card__meta { color: var(--on-primary); }
.bz-card--petrol.bz-card--link:focus-within, .bz-card--berry.bz-card--link:focus-within { outline-color: var(--primary); }
/* Horizontal (z. B. Merkliste, Suchergebnis) */
.bz-card--row { flex-direction: row; }
.bz-card--row .bz-card__media { aspect-ratio: 1; width: 120px; flex: none; }
@media (prefers-reduced-motion: reduce) { .bz-card { transition: none; } .bz-card--link:hover, .bz-card--link.is-hover { transform: none; } }

/* ---------- Hero und Bild-Teaser: Bild + image-scrim, Text unten ---------- */
.bz-hero {
  position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 480px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  background: var(--primary-strong); color: var(--on-primary); font-family: var(--font-sans);
}
.bz-hero__media { position: absolute; inset: 0; z-index: -2; }
.bz-hero__media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--image-scrim); pointer-events: none; }
.bz-hero__content { display: flex; flex-direction: column; gap: var(--space-4); max-width: 640px; padding: var(--space-8); text-shadow: var(--shadow-text); }
.bz-hero__eyebrow { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.01em; }
.bz-hero__title { margin: 0; font-size: 56px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; }
.bz-hero__text { margin: 0; font-size: 18px; line-height: 28px; }
.bz-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-2); text-shadow: none; }
.bz-hero a:not(.bz-btn) { color: var(--on-primary); text-decoration: underline; text-underline-offset: 3px; }
.bz-hero :focus-visible { outline: 2px solid var(--on-primary); outline-offset: 2px; }
/* Bild-Teaser (Kategorie, Themenwelt) */
.bz-hero--tile { min-height: 320px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); transition: box-shadow .2s ease, transform .2s ease; }
.bz-hero--tile .bz-hero__content { padding: var(--space-6); gap: var(--space-2); }
.bz-hero--tile .bz-hero__title { font-size: 24px; line-height: 32px; letter-spacing: 0; }
.bz-hero--tile .bz-hero__media > img { transition: transform .4s ease; }
.bz-hero--tile:hover, .bz-hero--tile:focus-within { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.bz-hero--tile:hover .bz-hero__media > img { transform: scale(1.03); }
.bz-hero__link { color: inherit; text-decoration: none; }
.bz-hero__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .bz-hero--tile, .bz-hero--tile .bz-hero__media > img { transition: none; } .bz-hero--tile:hover, .bz-hero--tile:focus-within, .bz-hero--tile:hover .bz-hero__media > img { transform: none; } }

/* ---------- Choice: kompakter Chip-Radio, einzeilig, z. B. Mengenrabatt ---------- */
.bz-choice-group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); font-family: var(--font-sans); }
.bz-choice-group > legend { padding: 0; margin-bottom: var(--space-2); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.bz-choice-group__list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bz-choice { position: relative; display: inline-flex; }
.bz-choice__input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.bz-choice__label {
  display: inline-flex; align-items: center; gap: var(--space-2); height: 40px; box-sizing: border-box;
  padding: 0 11px; white-space: nowrap;
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--gray-300); border-radius: var(--radius-sm); /* wie alle Formularfelder, Entscheidung 30.11.2026 */
  font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums;
  transition: border-color .15s ease, background-color .15s ease;
}
.bz-choice__save { display: inline-flex; align-items: center; height: 24px; padding: 0 6px; border-radius: var(--radius-sm); background: var(--danger); color: var(--on-primary); font-weight: 600; }
.bz-choice__title { font-weight: 400; }
.bz-choice__meta { font-weight: 600; }
.bz-choice:hover .bz-choice__label { border-color: var(--ink); }
.bz-choice__input:checked + .bz-choice__label { border: 2px solid var(--primary); padding: 0 11px; background: var(--primary-soft); }
.bz-choice__input:checked + .bz-choice__label .bz-choice__title { font-weight: 600; }
.bz-choice__input:focus-visible + .bz-choice__label { outline: 2px solid var(--focus); outline-offset: 2px; }
.bz-choice__input:disabled + .bz-choice__label { background: var(--surface-alt); color: var(--ink-muted); border-style: dashed; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .bz-choice__label { transition: none; } }

/* Rabatt-Badge: gleicher Abstand oben, links und unten (space-1) */
.bz-choice__label:has(.bz-choice__save) { padding-left: var(--space-1); }
.bz-choice__input:checked + .bz-choice__label:has(.bz-choice__save) { padding-left: var(--space-1); }
.bz-choice__save { align-self: stretch; height: auto; margin: var(--space-1) 0; padding: 0 var(--space-2); }

/* ---------- Tabs (ARIA-Tabs-Muster) ---------- */
.bz-tabs { display: flex; flex-direction: column; font-family: var(--font-sans); }
.bz-tabs__list { display: flex; gap: var(--space-2); overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: thin; }
.bz-tabs__tab {
  flex: none; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-4);
  border: 0; background: none; color: var(--ink); cursor: pointer; white-space: nowrap;
  font-size: 16px; line-height: 24px; font-weight: 400; box-shadow: inset 0 -3px 0 transparent;
}
.bz-tabs__tab:hover { color: var(--primary); box-shadow: inset 0 -3px 0 var(--ink-muted); }
.bz-tabs__tab[aria-selected="true"] { color: var(--primary); font-weight: 600; box-shadow: inset 0 -3px 0 var(--primary); }
.bz-tabs__tab:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius-md); }
.bz-tabs__count { font-size: 14px; line-height: 20px; color: var(--ink-muted); font-weight: 400; }
.bz-tabs__panel { padding: var(--space-8) 0 0; }
.bz-tabs__panel:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Subnav: In-Page-Navigation für Unterkategorien (Listing) ---------- */
.bz-subnav { display: flex; flex-direction: column; gap: var(--space-2); font-family: var(--font-sans); }
/* Fußzeile: Fortschrittsleiste füllt die Breite, Pfeile rechts daneben, vertikal zentriert */
.bz-subnav__foot { display: flex; align-items: center; gap: var(--space-4); }
.bz-subnav__foot .bz-subnav__bar { flex: 1 1 auto; }
.bz-subnav__arrows { display: flex; gap: var(--space-2); }
.bz-subnav__arrow { width: 32px; height: 32px; display: grid; place-content: center; padding: 0; border: 0; border-radius: var(--radius-sm); background: var(--secondary-soft); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.bz-subnav__arrow:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bz-subnav__arrow:disabled { color: var(--gray-700); cursor: not-allowed; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .bz-subnav__arrow { transition: none; } .bz-subnav__arrow:hover:not(:disabled) { transform: none; } }
.bz-subnav__arrow:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Die Leiste scrollt waagerecht und schneidet damit alles ab, was über sie hinausragt. Das Padding gibt dem
   Hover-Schatten (shadow-lg, 2px angehoben) Raum, negative Ränder halten die Kacheln an derselben Stelle.
   Die Fläche ragt dadurch über Nachbarn; pointer-events nur auf den Kacheln, damit sie nichts verdeckt. */
.bz-subnav__strip { display: flex; gap: var(--space-4); overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; list-style: none; margin: calc(var(--space-2) - var(--space-6)) calc(var(--space-6) * -1) calc(var(--space-4) - var(--space-16)); padding: var(--space-6) var(--space-6) var(--space-16); pointer-events: none; }
.bz-subnav__strip > * { pointer-events: auto; }
@media (max-width: 767px) { .bz-subnav__strip { margin-left: calc(var(--space-4) * -1); margin-right: calc(var(--space-4) * -1); padding-left: var(--space-4); padding-right: var(--space-4); } }
.bz-subnav__strip::-webkit-scrollbar { display: none; }
.bz-subnav__strip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bz-subnav__chip { flex: none; display: flex; align-items: center; gap: var(--space-4); padding: 4px var(--space-6) 4px 4px; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-md); color: var(--ink); text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; transition: transform .15s cubic-bezier(.4, 0, 1, 1), box-shadow .15s cubic-bezier(.4, 0, 1, 1); }
/* TEST Buoy-Effekt (wunderui.com/motion/card/buoy): Testwerte, noch keine Tokens. Heben 0,25 s, Absetzen schneller in 0,15 s */
.bz-subnav__chip:hover, .bz-subnav__chip:active { transform: translateY(-8px); transition-duration: .25s; transition-timing-function: cubic-bezier(.22, 1, .36, 1); box-shadow: 0 14px 28px -12px #10182847, 0 2px 6px -2px #1018281f; text-decoration: underline; text-underline-offset: 3px; }
.bz-subnav__chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Kachel mit 3px Innenabstand oben, links, unten wie die Produktkarte; Bild nach der Regel für verschachtelte Radien: radius-md minus 3px */
.bz-subnav__img { width: 74px; height: 74px; flex: none; display: grid; place-content: center; overflow: hidden; border-radius: calc(var(--radius-md) - 4px); background: var(--fill-neutral); color: var(--ink-muted); }
.bz-subnav__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-subnav__count { font-weight: 400; color: var(--ink-muted); }
.bz-subnav__bar { height: 4px; background: var(--border); border-radius: var(--radius-full); overflow: hidden; }
.bz-subnav__bar span { display: block; height: 100%; background: var(--primary); border-radius: var(--radius-full); transition: width .2s ease; }
@media (prefers-reduced-motion: reduce) { .bz-subnav__strip { scroll-behavior: auto; } .bz-subnav__chip, .bz-subnav__bar span { transition: none; } .bz-subnav__chip:hover, .bz-subnav__chip:active { transform: none; } }
