/* ==========================================================================
   WMS Kalibrierung – Katalog, Warenkorb, Checkout, Hero-Band, Split-Layouts
   Ergänzt kalibrierung.css (gleiche Tokens, Präfix .wk-)
   ========================================================================== */

/* --- Hero-Erweiterungen --- */
.wk-hero__card { background: var(--wk-black); color: var(--wk-text-on-dark); border-radius: 10px; padding: 24px 22px; box-shadow: var(--wk-shadow); }
.wk-hero__card .wk-h3 { margin-top: 0; color: var(--wk-yellow); }
.wk-steps--hero { gap: 12px; margin: 0 0 18px; padding-left: 1.2em; }
.wk-steps--hero > li { color: var(--wk-text-on-dark); }
.wk-hero__card-note { margin: 14px 0 0; font-size: 0.95rem; }
.wk-hero__card-note a { color: var(--wk-yellow); }
.wk-hero__band { margin: 40px 0 0; }
.wk-hero__band img { display: block; width: 100%; height: clamp(160px, 22vw, 320px); object-fit: cover; }

/* --- Split-Layouts (Text + Bild / Text + Formular) --- */
.wk-split { display: grid; gap: 28px; align-items: center; }
.wk-split__media { margin: 0; }
.wk-split__media img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: var(--wk-shadow); }
.wk-ticks { display: grid; gap: 10px; margin: 1rem 0 1.25rem; }
.wk-ticks > li { display: flex; gap: 12px; align-items: flex-start; }
.wk-ticks .wk-icon { color: var(--wk-yellow-dark); margin-top: 3px; }
.wk-notice { padding: 14px 18px; background: #FFF7CC; border-left: 4px solid var(--wk-yellow-dark); border-radius: var(--wk-radius); }

/* --- Kacheln als Links --- */
.wk-tile--link { padding: 0; }
.wk-tile--link > a { display: block; padding: 20px; color: inherit; text-decoration: none; height: 100%; border-radius: var(--wk-radius); }
.wk-tile--link > a:hover { background: #FFFBE0; }
.wk-tile__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 44px; font-family: var(--wk-font-head); font-weight: 600; color: var(--wk-black); text-decoration: underline; text-underline-offset: 3px; }

/* --- Katalog --- */
.wk-katalog__toolbar { display: grid; gap: 14px; margin-bottom: 20px; }
.wk-katalog__search { margin: 0; }
.wk-chip--btn { background: var(--wk-white); border: 2px solid var(--wk-border); cursor: pointer; font: inherit; font-weight: 600; color: var(--wk-text); }
.wk-chip--btn:hover { border-color: var(--wk-black); }
.wk-chip--btn.is-active { background: var(--wk-black); color: var(--wk-yellow); border-color: var(--wk-black); }
.wk-katalog__count { margin: 0; color: var(--wk-text-muted); }
.wk-katalog__results { display: grid; gap: 16px; }
.wk-katalog__results > * { min-width: 0; } /* Tabellen-Mindestbreite darf die Karte nicht aufweiten */
.wk-katalog__more { text-align: center; margin: 20px 0 0; }
.wk-katalog__legend { margin-top: 16px; font-size: 0.95rem; }
.wk-katalog__legend .wk-icon { vertical-align: -4px; }

.wk-geraet { background: var(--wk-white); border: 1px solid var(--wk-border); border-radius: var(--wk-radius); padding: 0 18px; }
.wk-geraet__head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 14px 28px 14px 0; min-height: 56px; cursor: pointer; list-style: none; position: relative; }
.wk-geraet__head::-webkit-details-marker { display: none; }
.wk-geraet__head::after { content: ""; position: absolute; right: 6px; top: 22px; width: 11px; height: 11px; border-right: 2px solid var(--wk-black); border-bottom: 2px solid var(--wk-black); transform: rotate(45deg); transition: transform .15s; }
.wk-geraet[open] > .wk-geraet__head::after { transform: rotate(-135deg); top: 28px; }
.wk-geraet[open] > .wk-geraet__head { border-bottom: 1px solid var(--wk-border); margin-bottom: 10px; }
.wk-geraet__ab { margin-left: auto; font-family: var(--wk-font-head); font-weight: 700; white-space: nowrap; }
.wk-geraet__scroll { padding-bottom: 14px; }
.wk-geraet__name { margin: 0; font-size: 1.15rem; }
.wk-geraet__kapitel { font-size: 0.95rem; color: var(--wk-text-muted); }
.wk-geraet__norm { margin: 0 0 10px; font-size: 0.95rem; color: var(--wk-text-muted); }
.wk-geraet__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.wk-preise { width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 420px; }
.wk-preise th, .wk-preise td { padding: 8px 10px; border-bottom: 1px solid var(--wk-border); text-align: left; vertical-align: middle; }
.wk-preise th { font-family: var(--wk-font-head); font-weight: 600; background: var(--wk-grey-bg); white-space: nowrap; }
.wk-preise td.wk-preise__bereich { font-weight: 600; white-space: nowrap; }
.wk-preise__add {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px;
  font: inherit; font-weight: 700; color: var(--wk-black); background: var(--wk-white);
  border: 2px solid var(--wk-black); border-radius: var(--wk-radius); cursor: pointer; white-space: nowrap;
}
.wk-preise__add:hover { background: var(--wk-yellow); border-color: var(--wk-yellow); }
.wk-preise__add.is-added { background: var(--wk-yellow); border-color: var(--wk-yellow); }
.wk-preise__add .wk-added { display: none; font-size: 0.9em; }
.wk-preise__add.is-added .wk-added { display: inline; }
.wk-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wk-preise__add .wk-icon { width: 18px; height: 18px; color: var(--wk-text-muted); }
.wk-preise__na { color: var(--wk-text-muted); }
.wk-preise__anfrage { font-size: 0.95rem; }

/* --- Warenkorb-Leiste (fixiert) --- */
.wk-cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--wk-black); color: var(--wk-text-on-dark); box-shadow: 0 -6px 24px rgba(13, 10, 11, 0.25); }
.wk-cartbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.wk-cartbar__summary { font-size: 1.05rem; }
body.wk-has-cart { padding-bottom: 84px; }

/* --- Checkout --- */
.wk-checkout { margin-top: 32px; padding: 24px 20px; background: var(--wk-grey-bg); border-radius: 10px; }
.wk-cart { display: grid; gap: 8px; margin-bottom: 16px; }
.wk-cart__line { display: grid; grid-template-columns: 1fr; gap: 8px 14px; align-items: center; padding: 10px 12px; background: var(--wk-white); border: 1px solid var(--wk-border); border-radius: var(--wk-radius); min-width: 0; }
.wk-cart__title { font-weight: 600; }
.wk-cart__meta { font-size: 0.95rem; color: var(--wk-text-muted); }
.wk-cart__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wk-cart__qty { width: 68px; min-height: 44px; padding: 6px; text-align: center; font: inherit; border: 2px solid var(--wk-input-border); border-radius: var(--wk-radius); }
.wk-cart__btn { min-width: 44px; min-height: 44px; font: inherit; font-weight: 700; font-size: 1.2rem; background: var(--wk-white); border: 2px solid var(--wk-black); border-radius: var(--wk-radius); cursor: pointer; color: var(--wk-black); }
.wk-cart__btn:hover { background: var(--wk-yellow); border-color: var(--wk-yellow); }
.wk-cart__btn--remove { border-color: var(--wk-border); color: var(--wk-text-muted); }
.wk-cart__btn--remove:hover { background: var(--wk-error); border-color: var(--wk-error); color: var(--wk-white); }
.wk-cart__sum { font-weight: 700; text-align: right; grid-column: 1 / -1; }
.wk-cart__options { margin: 8px 0 14px; }
.wk-check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 6px 0; cursor: pointer; }
.wk-check input { width: 24px; height: 24px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--wk-black); }
.wk-cart__totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; margin: 0 0 24px; padding: 14px 16px; background: var(--wk-white); border-radius: var(--wk-radius); border: 1px solid var(--wk-border); }
.wk-cart__totals dt, .wk-cart__totals dd { margin: 0; }
.wk-cart__totals dd { text-align: right; font-variant-numeric: tabular-nums; }
.wk-cart__grand { font-family: var(--wk-font-head); font-weight: 700; font-size: 1.2rem; padding-top: 8px; border-top: 2px solid var(--wk-black); }
.wk-form--order { box-shadow: none; border-top: 0; padding: 0; background: transparent; }
.wk-fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.wk-fieldset legend { font-weight: 600; margin-bottom: 4px; }

@media (min-width: 640px) {
  .wk-form__row--3 { grid-template-columns: 1fr 1fr 1fr; }
  .wk-cart__line { grid-template-columns: 1fr auto; }
  .wk-cart__sum { grid-column: auto !important; }
  .wk-katalog__toolbar { grid-template-columns: minmax(260px, 420px) 1fr; align-items: start; }
  .wk-katalog__count { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .wk-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 420px); }
  .wk-split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .wk-split--form { grid-template-columns: minmax(0, 1fr) minmax(380px, 520px); align-items: start; }
  .wk-split--tight { grid-template-columns: 1.3fr 1fr; }
  .wk-checkout { padding: 32px; }
  .wk-steps--single { grid-template-columns: 1fr !important; }
}

/* Hinweis zur Abholpauschale im Checkout (Live-Berechnung nach PLZ) */
.wk-field__hint { margin: 8px 0 0; font-size: 0.95rem; line-height: 1.5; color: var(--wk-text-muted); }
.wk-field__hint.is-error { color: var(--wk-error, #B00020); font-weight: 600; }
.wk-cart__totals small { font-weight: 400; color: var(--wk-text-muted); }
