/*
 * Webshop – neutrale Grundgestaltung der Shop-Templates.
 * Farben und Rundungen übernimmt sie aus den CMS-Variablen des Themes, sofern vorhanden.
 * Ein Theme kann jede Regel überschreiben oder diese Datei ganz weglassen.
 */
.ws-shop {
  --ws-accent: var(--cms-color-primary, #1c4ed8);
  --ws-accent-contrast: #fff;
  --ws-text: var(--cms-color-text, #1f2937);
  --ws-muted: #6b7280;
  --ws-border: #e5e7eb;
  --ws-surface: #f9fafb;
  --ws-sale: #b91c1c;
  --ws-ok: #15803d;
  --ws-warn: #b45309;
  --ws-radius: var(--cms-radius, 0.75rem);
  color: var(--ws-text);
  padding-block: clamp(2rem, 5vw, 4rem);
}
.ws-shop *, .ws-shop *::before, .ws-shop *::after { box-sizing: border-box; }
.ws-container { max-width: 80rem; margin-inline: auto; padding-inline: 1.25rem; }
.ws-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ws-title { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; font-weight: 700; margin: 0 0 .5rem; }
.ws-lead { color: var(--ws-muted); font-size: 1.0625rem; line-height: 1.6; margin: 0; }
.ws-lead p { margin: 0; }
.ws-header { margin-bottom: 2rem; }

.ws-breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: .875rem; color: var(--ws-muted); }
.ws-breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.ws-breadcrumb a { color: inherit; text-decoration: none; }
.ws-breadcrumb a:hover { color: var(--ws-accent); }

.ws-notice { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: var(--ws-radius); padding: .75rem 1rem; font-size: .875rem; margin: 0 0 1.5rem; }

/* Layout mit Kategorien links */
.ws-layout { display: grid; gap: 2rem; }
@media (min-width: 64rem) { .ws-layout { grid-template-columns: 15rem 1fr; gap: 3rem; } }

.ws-catnav__title { font-weight: 600; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ws-muted); margin: 0 0 .75rem; }
.ws-catnav ul { list-style: none; margin: 0; padding: 0; }
.ws-catnav__list--1 { padding-left: .875rem !important; }
.ws-catnav a { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem .625rem; border-radius: calc(var(--ws-radius) * .6); color: inherit; text-decoration: none; font-size: .9375rem; }
.ws-catnav a:hover { background: var(--ws-surface); }
.ws-catnav a.is-active { background: color-mix(in srgb, var(--ws-accent) 10%, transparent); color: var(--ws-accent); font-weight: 600; }
.ws-catnav__count { color: var(--ws-muted); font-size: .8125rem; font-weight: 400; }

/* Toolbar */
.ws-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.ws-toolbar__search { flex: 1 1 14rem; }
.ws-toolbar input[type="search"], .ws-select, .ws-input, .ws-toolbar select {
  width: 100%; font: inherit; color: inherit; background: #fff; border: 1px solid var(--ws-border);
  border-radius: calc(var(--ws-radius) * .6); padding: .625rem .875rem; min-height: 2.75rem;
}
.ws-toolbar select { width: auto; }
.ws-toolbar__check, .ws-check { display: inline-flex; align-items: center; gap: .5rem; font-size: .9375rem; cursor: pointer; }
.ws-toolbar input:focus-visible, .ws-select:focus-visible, .ws-input:focus-visible { outline: 2px solid var(--ws-accent); outline-offset: 1px; }
.ws-js .ws-toolbar__submit { display: none; }
.ws-count { color: var(--ws-muted); font-size: .875rem; margin: 0 0 1.25rem; }

/* Buttons */
.ws-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: .625rem 1.25rem; border-radius: calc(var(--ws-radius) * .6); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid var(--ws-accent); background: var(--ws-accent); color: var(--ws-accent-contrast); transition: filter .15s, background .15s; }
.ws-button:hover { filter: brightness(1.08); }
.ws-button--ghost { background: transparent; color: var(--ws-accent); }
.ws-button[disabled] { opacity: .45; cursor: not-allowed; filter: none; }

/* Produktraster */
.ws-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.ws-card { display: flex; flex-direction: column; border: 1px solid var(--ws-border); border-radius: var(--ws-radius); overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.ws-card:hover { box-shadow: 0 12px 30px -12px rgb(0 0 0 / .18); transform: translateY(-2px); }
.ws-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--ws-surface); }
.ws-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.125rem 1.25rem; flex: 1; }
.ws-card__title { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; margin: 0; }
.ws-card__title a { color: inherit; text-decoration: none; }
.ws-card__title a::after { content: ""; position: absolute; inset: 0; }
.ws-card { position: relative; }
.ws-card__text { color: var(--ws-muted); font-size: .875rem; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ws-card__footer { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .75rem; padding-top: .5rem; }

.ws-badge { position: absolute; top: .75rem; left: .75rem; padding: .25rem .625rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.ws-badge--sale { background: var(--ws-sale); color: #fff; }
.ws-badge--sub { left: auto; right: .75rem; }

.ws-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #cbd5e1; }
.ws-placeholder svg { width: 30%; max-width: 6rem; }

/* Preise und Bestand */
.ws-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; }
.ws-price__current { font-weight: 700; font-size: 1.125rem; }
.ws-price__current--sale { color: var(--ws-sale); }
.ws-price__from { font-weight: 400; font-size: .875em; color: var(--ws-muted); }
.ws-price__compare { color: var(--ws-muted); font-size: .9375rem; }
.ws-price--lg .ws-price__current { font-size: 1.875rem; }
.ws-price__note { flex-basis: 100%; color: var(--ws-muted); font-size: .8125rem; }
.ws-price__note a { color: inherit; }
.ws-stock { font-size: .8125rem; font-weight: 500; display: inline-flex; align-items: center; gap: .375rem; }
.ws-stock::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.ws-stock--in { color: var(--ws-ok); }
.ws-stock--low { color: var(--ws-warn); }
.ws-stock--out { color: var(--ws-muted); }
.ws-stock--digital { color: var(--ws-accent); }

/* Seitenumbruch */
.ws-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .375rem; margin-top: 2.5rem; }
.ws-pagination a, .ws-pagination span { min-width: 2.5rem; height: 2.5rem; display: inline-grid; place-items: center; padding: 0 .75rem; border-radius: calc(var(--ws-radius) * .6); text-decoration: none; color: inherit; border: 1px solid var(--ws-border); }
.ws-pagination a:hover { border-color: var(--ws-accent); color: var(--ws-accent); }
.ws-pagination .is-current { background: var(--ws-accent); border-color: var(--ws-accent); color: var(--ws-accent-contrast); font-weight: 600; }
.ws-pagination__gap { border: 0 !important; }

.ws-empty { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--ws-border); border-radius: var(--ws-radius); color: var(--ws-muted); }
.ws-unavailable { text-align: center; max-width: 40rem; }
.ws-unavailable .ws-lead { margin-bottom: 2rem; }

/* Produktseite */
.ws-product { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .ws-product { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: start; } }
.ws-gallery__main { aspect-ratio: 1; border-radius: var(--ws-radius); overflow: hidden; background: var(--ws-surface); }
.ws-gallery__main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ws-gallery__thumbs { display: flex; gap: .625rem; margin-top: .75rem; overflow-x: auto; }
.ws-gallery__thumb { flex: 0 0 4.5rem; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: calc(var(--ws-radius) * .6); overflow: hidden; background: var(--ws-surface); cursor: pointer; }
.ws-gallery__thumb.is-active { border-color: var(--ws-accent); }
.ws-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 56rem) { .ws-gallery { position: sticky; top: 6rem; } }

.ws-product__info { display: flex; flex-direction: column; gap: 1.25rem; }
.ws-product__title { margin: 0; }
.ws-buy { display: flex; flex-direction: column; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--ws-border); }
.ws-field { display: flex; flex-direction: column; gap: .375rem; border: 0; padding: 0; margin: 0; }
.ws-field__label { font-weight: 600; font-size: .9375rem; padding: 0; }
.ws-field__hint { color: var(--ws-muted); font-size: .8125rem; }
.ws-required { color: var(--ws-sale); }
.ws-options { gap: .5rem; }
.ws-option { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border: 1px solid var(--ws-border); border-radius: calc(var(--ws-radius) * .6); cursor: pointer; }
.ws-option:has(input:checked) { border-color: var(--ws-accent); background: color-mix(in srgb, var(--ws-accent) 6%, transparent); }
.ws-option input { accent-color: var(--ws-accent); }
.ws-option__label { flex: 1; }
.ws-option__price { font-weight: 600; }
.ws-buy__row { display: flex; flex-wrap: wrap; gap: .75rem; }
.ws-qty { display: inline-flex; border: 1px solid var(--ws-border); border-radius: calc(var(--ws-radius) * .6); overflow: hidden; }
.ws-qty input { width: 3.5rem; text-align: center; border: 0; font: inherit; -moz-appearance: textfield; }
.ws-qty input::-webkit-inner-spin-button, .ws-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ws-qty__step { width: 2.75rem; border: 0; background: var(--ws-surface); font-size: 1.25rem; cursor: pointer; color: inherit; }
.ws-qty__step:hover { background: var(--ws-border); }
.ws-buy__submit { flex: 1 1 12rem; }
.ws-buy__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; }
.ws-sku { color: var(--ws-muted); font-size: .8125rem; }
.ws-buy__message { margin: 0; padding: .75rem 1rem; border-radius: calc(var(--ws-radius) * .6); background: var(--ws-surface); font-size: .9375rem; }

.ws-section { margin-top: clamp(3rem, 6vw, 5rem); }
.ws-section__title { font-size: 1.5rem; font-weight: 700; margin: 0 0 1.25rem; }
.ws-prose { max-width: 48rem; line-height: 1.7; }
.ws-prose > :first-child { margin-top: 0; }

/* ── Warenkorb ─────────────────────────────────────── */
.ws-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ws-topbar .ws-breadcrumb { flex: 1; }
.ws-topbar > .ws-cart-link { margin-left: auto; margin-bottom: 1rem; }
.ws-cart-link[hidden] { display: none !important; }
.ws-cart-link { position: relative; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; color: inherit; text-decoration: none; border: 1px solid var(--ws-border, #e5e7eb); background: #fff; }
.ws-cart-link:hover { border-color: var(--ws-accent, #1c4ed8); color: var(--ws-accent, #1c4ed8); }
.ws-cart-link svg { width: 1.375rem; height: 1.375rem; }
.ws-cart-link__count { position: absolute; top: -.25rem; right: -.25rem; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; border-radius: 999px; background: var(--ws-accent, #1c4ed8); color: #fff; font-size: .6875rem; font-weight: 700; line-height: 1.25rem; text-align: center; }

.ws-alert { border-radius: var(--ws-radius); padding: .75rem 1rem; font-size: .9375rem; margin: 0 0 1.25rem; border: 1px solid; }
.ws-alert--ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.ws-alert--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.ws-alert--info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

.ws-link { background: none; border: 0; padding: 0; font: inherit; color: var(--ws-accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ws-js .ws-js-hidden { display: none; }
.ws-icon-button { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 999px; background: transparent; color: var(--ws-muted); cursor: pointer; }
.ws-icon-button:hover { background: #fef2f2; color: var(--ws-sale); }
.ws-icon-button svg { width: 1.125rem; height: 1.125rem; }

.ws-cart { transition: opacity .15s; }
.ws-cart.is-busy { opacity: .55; pointer-events: none; }
.ws-cart__layout { display: grid; gap: 2rem; }
@media (min-width: 64rem) { .ws-cart__layout { grid-template-columns: 1fr 22rem; gap: 3rem; align-items: start; } }
.ws-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ws-border); }
.ws-line { display: grid; grid-template-columns: 5rem 1fr auto; grid-template-areas: "thumb info remove" "thumb qty total"; gap: .5rem 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--ws-border); align-items: center; }
@media (min-width: 40rem) { .ws-line { grid-template-columns: 6rem 1fr auto 7rem auto; grid-template-areas: "thumb info qty total remove"; } }
.ws-line__thumb { grid-area: thumb; aspect-ratio: 1; border-radius: calc(var(--ws-radius) * .6); overflow: hidden; background: var(--ws-surface); display: block; align-self: start; }
.ws-line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ws-line__info { grid-area: info; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.ws-line__name { font-weight: 600; color: inherit; text-decoration: none; }
.ws-line__name:hover { color: var(--ws-accent); }
.ws-line__unit { color: var(--ws-muted); font-size: .875rem; }
.ws-line__qty { grid-area: qty; }
.ws-line__qty .ws-qty input { width: 3rem; }
.ws-line__qty .ws-qty__step { width: 2.25rem; }
.ws-line__total { grid-area: total; font-weight: 700; text-align: right; }
.ws-line__remove { grid-area: remove; justify-self: end; }
.ws-item-meta { list-style: none; margin: 0; padding: 0; color: var(--ws-muted); font-size: .8125rem; line-height: 1.5; }
.ws-cart__continue { display: inline-block; margin-top: 1.25rem; font-size: .9375rem; }

.ws-cart__summary { background: var(--ws-surface); border-radius: var(--ws-radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 64rem) { .ws-cart__summary { position: sticky; top: 6rem; } }
.ws-cart__summary-title { font-size: 1.125rem; font-weight: 700; margin: 0; }
.ws-coupon summary { cursor: pointer; color: var(--ws-accent); font-size: .9375rem; }
/* Aufklapp-Elemente: Chevron statt des Browser-Dreiecks */
.ws-coupon summary, .ws-legal summary { list-style: none; display: flex; align-items: center; gap: .5rem; }
.ws-coupon summary::-webkit-details-marker, .ws-legal summary::-webkit-details-marker { display: none; }
.ws-coupon summary::after, .ws-legal summary::after {
  content: ""; flex: none; width: 1rem; height: 1rem; background: currentColor; transition: transform .2s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 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='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ws-coupon[open] > summary::after, .ws-legal[open] > summary::after { transform: rotate(180deg); }
.ws-legal summary { justify-content: space-between; }
.ws-coupon__form { display: flex; gap: .5rem; margin-top: .75rem; }
.ws-coupon--applied { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .9375rem; }
.ws-shipping { display: flex; flex-direction: column; gap: .5rem; }
.ws-shipping .ws-options { margin-top: .5rem; border: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.ws-shipping .ws-option { background: #fff; }
.ws-option__label small { display: block; color: var(--ws-muted); font-size: .8125rem; }
.ws-shipping__hint, .ws-free-shipping { font-size: .875rem; color: var(--ws-muted); margin: 0; }
.ws-free-shipping strong { color: var(--ws-text); }
.ws-totals { margin: 0; display: flex; flex-direction: column; gap: .5rem; border-top: 1px solid var(--ws-border); padding-top: 1rem; }
.ws-totals__row { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; }
.ws-totals__row dt, .ws-totals__row dd { margin: 0; }
.ws-totals__row dd { white-space: nowrap; }
.ws-totals__row--total { font-size: 1.125rem; font-weight: 700; border-top: 1px solid var(--ws-border); padding-top: .75rem; margin-top: .25rem; }
.ws-totals__row--muted { color: var(--ws-muted); font-size: .8125rem; }
.ws-cart__checkout { width: 100%; }
.ws-cart__checkout[aria-disabled="true"] { opacity: .45; cursor: not-allowed; filter: none; }
.ws-cart__checkout-note { margin: -.5rem 0 0; font-size: .8125rem; color: var(--ws-muted); text-align: center; }

/* Produktseite: Fehler und Ladezustand */
.ws-field--error .ws-input, .ws-field--error .ws-select { border-color: var(--ws-sale); }
.ws-field__error { color: var(--ws-sale); font-size: .8125rem; }
.ws-buy__message--error { background: #fef2f2; color: #991b1b; }
.ws-button.is-busy { position: relative; color: transparent !important; }
.ws-button.is-busy::after { content: ""; position: absolute; width: 1.125rem; height: 1.125rem; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: ws-spin .7s linear infinite; }
@keyframes ws-spin { to { transform: rotate(360deg); } }

/* Mini-Warenkorb */
.ws-mini { position: fixed; z-index: 1000; top: 0; right: 0; bottom: 0; width: min(24rem, 100%); background: #fff; box-shadow: -20px 0 50px -20px rgb(0 0 0 / .3); padding: 1.5rem !important; display: flex; flex-direction: column; gap: 1rem; transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; }
.ws-mini.is-open { transform: none; }
.ws-mini__head { display: flex; justify-content: space-between; align-items: center; }
.ws-mini__title { font-weight: 700; font-size: 1.125rem; margin: 0; }
.ws-mini__close { border: 0; background: none; font-size: 1.75rem; line-height: 1; cursor: pointer; color: var(--ws-muted); padding: .25rem .5rem; }
.ws-mini__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.ws-mini__item { display: grid; grid-template-columns: 3.5rem 1fr auto; gap: .75rem; align-items: start; }
.ws-mini__thumb { aspect-ratio: 1; border-radius: .5rem; overflow: hidden; background: var(--ws-surface); display: block; }
.ws-mini__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ws-mini__info { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.ws-mini__name { font-weight: 600; font-size: .9375rem; color: inherit; text-decoration: none; }
.ws-mini__qty { color: var(--ws-muted); font-size: .8125rem; }
.ws-mini__price { font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.ws-mini__total { display: flex; justify-content: space-between; border-top: 1px solid var(--ws-border); padding-top: 1rem; margin: 0; }
.ws-mini__note { color: var(--ws-muted); font-size: .8125rem; margin: -.5rem 0 0; }
.ws-mini__actions { display: flex; flex-direction: column; gap: .5rem; }
.ws-mini__empty { color: var(--ws-muted); }

/* Kurzmeldung */
.ws-toast { position: fixed; z-index: 1001; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%); background: #111827; color: #fff; padding: .75rem 1.25rem; border-radius: 999px; font-size: .9375rem; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .4); transition: transform .3s; max-width: calc(100% - 2rem); text-align: center; }
.ws-toast.is-visible { transform: translate(-50%, 0); }
.ws-toast--error { background: #991b1b; }
@media (prefers-reduced-motion: reduce) { .ws-mini, .ws-toast, .ws-card { transition: none; } }

/* ── Kasse ─────────────────────────────────────────── */
.ws-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ws-checkout { display: grid; gap: 2rem; }
@media (min-width: 64rem) { .ws-checkout { grid-template-columns: 1fr 24rem; gap: 3rem; align-items: start; } }
.ws-checkout__main { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }
@media (min-width: 64rem) { .ws-checkout__aside { position: sticky; top: 6rem; } }
.ws-fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.ws-fieldset__title { display: flex; align-items: center; gap: .625rem; font-size: 1.125rem; font-weight: 700; margin: 0 0 .25rem; padding: 0; }
.ws-step { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--ws-accent); color: var(--ws-accent-contrast); font-size: .875rem; }
.ws-optional { font-weight: 400; color: var(--ws-muted); font-size: .9375rem; }
.ws-form-grid { display: grid; gap: .875rem 1rem; grid-template-columns: 1fr; }
@media (min-width: 36rem) { .ws-form-grid { grid-template-columns: 1fr 1fr; } .ws-form-grid__full { grid-column: 1 / -1; } }
.ws-shipping-address { border: 0; padding: 1rem 0 0; margin: 0; min-width: 0; }
.ws-check--toggle { margin-top: .25rem; }
.ws-check input, .ws-check--terms input { accent-color: var(--ws-accent); width: 1.125rem; height: 1.125rem; flex: none; }
.ws-check--terms { align-items: flex-start; font-size: .875rem; line-height: 1.5; }
.ws-check--terms input { margin-top: .15rem; }
.ws-check--terms a, .ws-checkout__privacy a { color: var(--ws-accent); }
.ws-option--stacked { align-items: flex-start; }
.ws-option--stacked input { margin-top: .2rem; }
.ws-checkout-options { display: flex; flex-direction: column; gap: 1.5rem; }
.ws-checkout-options .ws-fieldset__title { font-size: 1rem; }
.ws-checkout-summary { transition: opacity .15s; }
.ws-checkout-summary.is-busy { opacity: .5; }
.ws-checkout__submit { width: 100%; min-height: 3.25rem; font-size: 1.0625rem; }
.ws-checkout__privacy { font-size: .8125rem; color: var(--ws-muted); margin: -.5rem 0 0; line-height: 1.5; }
.ws-summary-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .875rem; }
.ws-summary-item { display: grid; grid-template-columns: 3.25rem 1fr auto; gap: .75rem; align-items: start; }
.ws-summary-item--plain { grid-template-columns: 1fr auto; }
.ws-summary-item__thumb { position: relative; aspect-ratio: 1; border-radius: .5rem; background: #fff; border: 1px solid var(--ws-border); display: block; }
.ws-summary-item__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ws-summary-item__qty { position: absolute; top: -.4rem; right: -.4rem; min-width: 1.25rem; height: 1.25rem; border-radius: 999px; background: var(--ws-muted); color: #fff; font-size: .6875rem; font-weight: 700; display: grid; place-items: center; padding: 0 .25rem; }
.ws-summary-item__info { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.ws-summary-item__name { font-weight: 600; font-size: .9375rem; }
.ws-summary-item__price { font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.ws-summary-note { font-size: .8125rem; color: var(--ws-muted); margin: 0; }
.ws-legal { margin-top: 2rem; border-top: 1px solid var(--ws-border); padding-top: 1rem; }
.ws-legal summary { cursor: pointer; font-weight: 600; }
.ws-legal .ws-prose { margin-top: 1rem; font-size: .9375rem; }

/* Bestellstatus */
.ws-narrow { max-width: 44rem; }
.ws-order__header { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.ws-order__header--left { text-align: left; align-items: flex-start; margin: 0 0 1.5rem; }
.ws-order__icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 999px; background: #dcfce7; color: var(--ws-ok); }
.ws-order__icon svg { width: 1.75rem; height: 1.75rem; }
.ws-order__icon--wait { background: transparent; border: 3px solid var(--ws-border); border-top-color: var(--ws-accent); animation: ws-spin 1s linear infinite; }
.ws-order__instructions { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--ws-radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.ws-order__instructions .ws-section__title { font-size: 1.0625rem; margin-bottom: .5rem; }
.ws-order__grid { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .ws-order__grid { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }
.ws-order__facts { margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: .625rem; }
.ws-order__facts > div { display: flex; gap: 1rem; justify-content: space-between; border-bottom: 1px solid var(--ws-border); padding-bottom: .625rem; }
.ws-order__facts dt { color: var(--ws-muted); margin: 0; }
.ws-order__facts dd { margin: 0; font-weight: 500; text-align: right; }
.ws-order__addresses { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.ws-order__addresses h3 { font-size: .875rem; color: var(--ws-muted); font-weight: 600; margin: 0 0 .375rem; }
.ws-order__addresses p { margin: 0; line-height: 1.6; }
.ws-order__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 2rem; }

/* Widerruf */
.ws-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.ws-form .ws-button { align-self: flex-start; }
.ws-form__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.ws-review { margin-top: 1.5rem; }
.ws-review__declaration { background: var(--ws-surface); border-left: 3px solid var(--ws-accent); padding: 1rem 1.25rem; border-radius: 0 calc(var(--ws-radius) * .6) calc(var(--ws-radius) * .6) 0; }

/* ── Kundenkonto ───────────────────────────────────── */
.ws-topbar__icons { display: flex; gap: .5rem; margin-left: auto; margin-bottom: 1rem; }
.ws-topbar__icons .ws-cart-link { margin: 0; }
.ws-account-link[hidden] { display: none !important; }
.ws-account-link { position: relative; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; color: inherit; text-decoration: none; border: 1px solid var(--ws-border, #e5e7eb); background: #fff; }
.ws-account-link:hover { border-color: var(--ws-accent, #1c4ed8); color: var(--ws-accent, #1c4ed8); }
.ws-account-link svg { width: 1.375rem; height: 1.375rem; }
.ws-account-link.is-signed-in::after { content: ""; position: absolute; right: .3rem; bottom: .3rem; width: .55rem; height: .55rem; border-radius: 999px; background: #16a34a; box-shadow: 0 0 0 2px #fff; }

.ws-account { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .ws-account { grid-template-columns: 15rem 1fr; gap: 3rem; align-items: start; } }
.ws-account__main { min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.ws-account-nav { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 56rem) { .ws-account-nav { position: sticky; top: 6rem; } }
.ws-account-nav__hello { margin: 0 0 .25rem; font-weight: 700; display: flex; flex-direction: column; }
.ws-account-nav__hello small { font-weight: 400; color: var(--ws-muted); font-size: .8125rem; overflow-wrap: anywhere; }
.ws-account-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .125rem; }
@media (max-width: 55.99rem) { .ws-account-nav ul { flex-direction: row; flex-wrap: wrap; gap: .375rem; } }
.ws-account-nav a { display: block; padding: .5rem .75rem; border-radius: calc(var(--ws-radius) * .6); color: inherit; text-decoration: none; font-weight: 500; }
.ws-account-nav a:hover { background: var(--ws-surface); }
.ws-account-nav a.is-active { background: color-mix(in srgb, var(--ws-accent) 10%, transparent); color: var(--ws-accent); font-weight: 600; }
.ws-account-nav__logout { padding: .5rem .75rem; color: var(--ws-muted); text-decoration: none; }
.ws-account-nav__logout:hover { color: var(--ws-sale); }
.ws-account-card { background: #fff; border: 1px solid var(--ws-border); border-radius: var(--ws-radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .875rem; }
.ws-account-card p { margin: 0; line-height: 1.6; }
.ws-account-card .ws-section__title { font-size: 1.0625rem; margin: 0; }
.ws-account-card .ws-button { align-self: flex-start; }
.ws-account-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.ws-section--tight { margin-top: 0; }
.ws-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.ws-section__head .ws-section__title { margin: 0; }
.ws-muted { color: var(--ws-muted); }
.ws-account__email-note { font-size: .875rem; margin: 0; }
.ws-checkout__signed-in { margin: -.25rem 0 .25rem; font-size: .9375rem; color: var(--ws-muted); }

.ws-table-wrap { overflow-x: auto; border: 1px solid var(--ws-border); border-radius: var(--ws-radius); background: #fff; }
.ws-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ws-table th { text-align: left; font-size: .8125rem; font-weight: 600; color: var(--ws-muted); padding: .75rem 1rem; border-bottom: 1px solid var(--ws-border); white-space: nowrap; }
.ws-table td { padding: .875rem 1rem; border-bottom: 1px solid var(--ws-border); white-space: nowrap; }
.ws-table tr:last-child td { border-bottom: 0; }
.ws-table tbody tr:hover { background: var(--ws-surface); }
.ws-table__num { text-align: right !important; }
.ws-table__link { font-weight: 600; color: var(--ws-accent); text-decoration: none; }
.ws-status { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--ws-surface); color: var(--ws-muted); }
.ws-status--paid, .ws-status--fulfilled { background: #dcfce7; color: #166534; }
.ws-status--pending, .ws-status--unpaid, .ws-status--awaiting_payment, .ws-status--partially_paid { background: #fef3c7; color: #92400e; }
.ws-status--overdue, .ws-status--cancelled, .ws-status--refunded { background: #fee2e2; color: #991b1b; }

.ws-auth { max-width: 30rem; }
.ws-auth .ws-header { text-align: center; }
.ws-auth__card { background: #fff; border: 1px solid var(--ws-border); border-radius: var(--ws-radius); padding: clamp(1.25rem, 4vw, 2rem); }
.ws-auth__card .ws-form { margin-top: 0; }
.ws-auth__submit { width: 100%; align-self: stretch !important; }
.ws-auth__forgot { margin: -.5rem 0 0; text-align: right; font-size: .875rem; }
.ws-auth__switch { text-align: center; margin-top: 1.5rem; color: var(--ws-muted); }
.ws-auth__intro { font-size: .9375rem; margin-bottom: 1.25rem; }

/* Informationsseiten (Zahlungsarten, Versand, Rechtstexte) */
.ws-info-list { list-style: none; margin: 1.5rem 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.ws-info-item { border: 1px solid var(--ws-border); border-radius: var(--ws-radius); padding: 1rem 1.25rem; background: #fff; }
.ws-info-item--price { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.ws-info-item__title { display: block; font-weight: 600; }
.ws-info-item__text { margin: .25rem 0 0; font-size: .9375rem; color: var(--ws-muted); }
.ws-info-item__price { font-weight: 600; white-space: nowrap; }
.ws-info-text { margin-top: 1.5rem; }
.ws-info-action { margin-top: 2rem; }
.ws-info-nav { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--ws-border); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9375rem; }
.ws-info-nav a { color: var(--ws-accent); text-decoration: none; }
.ws-info-nav a:hover { text-decoration: underline; }
