/* CLAUDE 2026-12-01 – Warenkorb & Kasse (alle Bildschirmgrößen, Staging)
 * Eingebunden über Modul 280. Rückgängig: Link entfernen.
 */
/* ---------- Warenkorb ---------- */
.view-carts .j2store-cart { color:var(--ui-text, #f2f2f2); }
.view-carts .j2store-cart .table, .view-carts .j2store-cart .table * { color:#eee; }
.view-carts .j2store-cart-table { border:0 !important; border-collapse:separate; border-spacing:0 10px; }
.view-carts .j2store-cart-table thead th { color:var(--ui-muted, #a9a9a9) !important; font-weight:600; font-size:13px; text-transform:uppercase; letter-spacing:.06em; border:0 !important; background:transparent; }
.view-carts .j2store-cart-table tbody td { background:var(--ui-surface, #101010) !important; border:0 !important; border-top:1px solid var(--ui-line, rgba(255,255,255,.12)) !important; border-bottom:1px solid var(--ui-line, rgba(255,255,255,.12)) !important; vertical-align:middle; padding:14px !important; }
.view-carts .j2store-cart-table tbody td:first-child { border-left:1px solid var(--ui-line) !important; border-radius:14px 0 0 14px; }
.view-carts .j2store-cart-table tbody td:last-of-type { border-right:1px solid var(--ui-line) !important; border-radius:0 14px 14px 0; }
.view-carts .cart-thumb-image img { width:88px !important; height:88px; object-fit:cover; border-radius:10px; float:left; margin:0 14px 6px 0; }
.view-carts .cart-product-name { display:block; font-weight:700; font-size:16px; color:#fff !important; }
.view-carts .cart-product-unit-price, .view-carts .cart-product-sku, .view-carts .cart-product-options, .view-carts td small { font-size:13px; color:var(--ui-muted, #a9a9a9) !important; }
.view-carts .cart-product-unit-price *, .view-carts .cart-product-sku * { color:inherit !important; }
.view-carts .cart-line-subtotal { font-weight:700; font-size:16px; color:#fff !important; text-align:right; white-space:nowrap; }
.view-carts .product-qty input { width:56px !important; min-height:44px; text-align:center !important; color:#fff !important; background:#000 !important; border:1px solid var(--ui-line) !important; border-radius:10px; }
.view-carts td .product-qty { display:inline-block; vertical-align:middle; }
.view-carts .j2store-remove.btn { background:transparent !important; border:1px solid rgba(255,80,80,.5) !important; color:#ff6b6b !important; border-radius:10px; min-width:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; margin-left:8px; vertical-align:middle; }
.view-carts .j2store-cart-buttons { display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; margin:6px 0 24px; }
.view-carts .j2store-cart-buttons .btn, .view-carts .j2store-cart-buttons input[type=submit], .view-carts .j2store-cart-buttons button { min-height:46px; border-radius:999px; padding:10px 22px; background:transparent !important; color:#fff !important; border:1px solid var(--ui-line) !important; }
.view-carts .cart-update-button { display:none; } /* Menge wird automatisch übernommen (claude-shop.js); ohne JS bleibt der Knopf */
.no-js .view-carts .cart-update-button { display:inline-block; }
.view-carts .cart-footer { display:table; width:100% !important; border:0 !important; }
.view-carts .cart-footer th { padding-right:16px !important; }
.view-carts .cart-footer th, .view-carts .cart-footer td { border:0 !important; border-bottom:1px solid var(--ui-line) !important; padding:10px 0 !important; color:#ddd !important; font-weight:400; text-align:left; background:transparent !important; }
.view-carts .cart-footer td { text-align:right; }
.view-carts .cart-footer tr:last-child th, .view-carts .cart-footer tr:last-child td { font-size:20px; font-weight:700; color:#fff !important; border-bottom:0 !important; }
.view-carts .cart-checkout-button .btn, .view-carts a.btn-success { display:flex !important; align-items:center; justify-content:center; width:100%; min-height:52px; margin-top:14px; border:0 !important; border-radius:999px; background:var(--ui-accent, #ff7400) !important; color:#000 !important; font-weight:700; font-size:17px; text-decoration:none; }
.view-carts .cart-estimator-discount-block { margin-bottom:20px; }
.view-carts .cart-estimator-discount-block label { display:flex; align-items:center; gap:10px; min-height:44px; color:var(--ui-muted); }

@media (max-width: 767.98px) {
  .view-carts .j2store-cart-table, .view-carts .j2store-cart-table tbody, .view-carts .j2store-cart-table tr { display:block; width:100%; }
  .view-carts .j2store-cart-table thead { display:none; }
  .view-carts .j2store-cart-table tbody tr { position:relative; background:var(--ui-surface); border:1px solid var(--ui-line); border-radius:14px; margin:0 0 12px; padding:12px; overflow:hidden; }
  .view-carts .j2store-cart-table tbody td { display:block; border:0 !important; border-radius:0 !important; padding:0 !important; background:transparent !important; }
  .view-carts .j2store-cart-table tbody td:nth-child(2) { margin-top:10px; padding-left:102px !important; }
  .view-carts .j2store-cart-table tbody td.cart-line-subtotal { position:static; text-align:right; margin-top:10px; padding-top:10px !important; border-top:1px solid var(--ui-line) !important; font-size:18px; }
  .view-carts .cart-thumb-image img { margin-bottom:0; }
  .view-carts .j2store-cart-table br { display:none; }
  .view-carts .cart-product-unit-price, .view-carts .cart-product-sku { display:block; }
}

/* ---------- Kasse ---------- */
.view-checkout #j2store-checkout-content > h1 { font-size:clamp(1.6rem, 6vw, 2.2rem); margin:8px 0 18px; }
.view-checkout #j2store-checkout-content { counter-reset:ui-step; }
.view-checkout .checkout-heading { counter-increment:ui-step; display:flex; align-items:center; gap:12px; min-height:52px; padding:12px 16px !important;
  background:var(--ui-surface, #101010) !important; color:#fff !important; border:1px solid var(--ui-line) !important; border-radius:12px; margin:0 0 10px !important; font-weight:600; font-size:16px; }
.view-checkout .checkout-heading::before { content:counter(ui-step); flex:0 0 28px; height:28px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:#222; color:#bbb; font-size:14px; font-weight:700; }
.view-checkout .checkout-heading a { color:var(--ui-accent) !important; margin-left:auto; font-size:14px; }
.view-checkout .checkout-content { padding:6px 2px 18px !important; }
.view-checkout .checkout-content:not(:empty) + * { }
.view-checkout #j2store-checkout input:not([type=radio]):not([type=checkbox]):not([type=hidden]):not([type=submit]):not([type=button]),
.view-checkout #j2store-checkout select, .view-checkout #j2store-checkout textarea { box-sizing:border-box; width:100% !important; max-width:100%; min-height:48px; text-align:left !important; border-radius:10px; font-size:16px !important; }
.view-checkout #j2store-checkout label { color:#cfcfcf; font-weight:500; font-size:14px; margin-bottom:4px; }
.view-checkout #j2store-checkout input[type=radio], .view-checkout #j2store-checkout input[type=checkbox] { width:20px; height:20px; accent-color:var(--ui-accent, #ff7400); vertical-align:middle; margin-right:8px; }
.view-checkout #j2store-checkout .radio, .view-checkout #j2store-checkout label:has(input[type=radio]) { display:flex; align-items:center; min-height:44px; }
.view-checkout #j2store-checkout .btn, .view-checkout #j2store-checkout input[type=button], .view-checkout #j2store-checkout input[type=submit] { min-height:48px; border-radius:999px; padding:10px 26px; }
.view-checkout #j2store-checkout .j2error, .view-checkout #j2store-checkout .text-danger, .view-checkout #j2store-checkout .error { color:#ff8a80 !important; font-size:14px; margin-top:4px; display:block; }
.view-checkout #j2store-checkout .table { color:#eee; }
.view-checkout #j2store-checkout .row > [class*=col-] { margin-bottom:12px; }
@media (max-width: 767.98px) {
  .view-checkout #j2store-checkout .row > [class*=col-] { width:100%; max-width:100%; flex:0 0 100%; }
}

/* Mengen-Stepper (auch Desktop) */
.ui-qty { display:inline-flex; align-items:stretch; border:1px solid var(--ui-line, rgba(255,255,255,.12)); border-radius:12px; overflow:hidden; background:var(--ui-surface, #101010); vertical-align:middle; }
.ui-qty button { width:42px; min-height:44px; border:0; background:transparent; color:#fff; font-size:20px; line-height:1; cursor:pointer; }
.ui-qty button:hover { background:#1c1c1c; }
.ui-qty input { width:48px !important; min-height:44px; border:0 !important; border-radius:0 !important; background:transparent !important; text-align:center !important; -moz-appearance:textfield; }
.ui-qty input::-webkit-outer-spin-button, .ui-qty input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }

/* Kasse: kompaktere Formularabstände, kein Überstand rechts */
.view-checkout #j2store-checkout .control-group, .view-checkout #j2store-checkout .form-group, .view-checkout #j2store-checkout .j2store-field { margin-bottom:12px !important; }
.view-checkout #j2store-checkout br + br { display:none; }
@media (max-width: 767.98px) {
  .view-checkout #j2store-checkout .row { margin-left:0 !important; margin-right:0 !important; }
  .view-checkout #j2store-checkout .row > [class*=col-] { padding-left:0 !important; padding-right:0 !important; margin-bottom:4px; }
  .view-checkout #j2store-checkout .checkout-content { overflow-x:hidden; }
}

.ui-hint { text-align:left !important; margin:10px 0 16px; padding:12px 14px; border-left:3px solid var(--ui-accent, #ff7400); background:rgba(255,116,0,.08); border-radius:8px; color:#e8e8e8; font-size:14px; line-height:1.5; }

@media (max-width: 991.98px) {
  .task-view .j2store-single-product .j2store-cart-button { display:block; width:100% !important; max-width:none !important; }
}

/* ---------- Desktop/Tablet: Produktkarten im Shop ---------- */
@media (min-width: 992px) {
  .j2store-product-list *:has(> .j2store-products-row) { display:grid !important; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:20px; }
  .j2store-product-list *:has(> .j2store-products-row) > :not(.j2store-products-row) { grid-column:1 / -1; }
  .j2store-product-list .j2store-products-row { display:contents !important; }
  .j2store-product-list .j2store-products-row > [class*=col-] { max-width:none !important; width:auto !important; padding:0 !important; flex:none !important; display:flex; }
  .j2store-product-list .j2store-single-product { display:flex; flex-direction:column; width:100%; background:#0e0e0e; border:1px solid rgba(255,255,255,.10); border-radius:16px; padding:12px 12px 16px; transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
  .j2store-product-list .j2store-single-product:hover { transform:translateY(-3px); border-color:rgba(255,116,0,.5); box-shadow:0 10px 30px rgba(0,0,0,.45); }
  .j2store-product-list .j2store-single-product img { border-radius:10px; aspect-ratio:1/1; object-fit:cover; width:100% !important; height:auto; }
  .j2store-product-list .j2store-single-product form { margin-top:auto; }
  .j2store-product-list .j2store-single-product .btn { width:100%; border-radius:999px; min-height:42px; background:transparent !important; border:1px solid rgba(255,255,255,.18) !important; color:#fff !important; }
  .j2store-product-list .j2store-single-product .btn:hover { border-color:#ff7400 !important; color:#ff7400 !important; }
}
@media (prefers-reduced-motion: reduce) { .j2store-product-list .j2store-single-product:hover { transform:none; } }

/* =====================================================================
 * Original-Knopfstil wiederhergestellt (01.12.2026) – nur Tippfläche vergrößert und mittig
 * „Details anzeigen“: dunkel #191919 mit blauer Unterkante (aus custom.css)
 * „In den Korb“: Glow-Knopf aus templates/folium/css/j2store.css (.j2store-add-to-cart, Regenbogen-Leuchten beim Hover)
 * ===================================================================== */
.j2store-product-list .j2store-single-product .btn,
.j2store-product-list .j2store-single-product .btn.btn-success {
  display:inline-flex !important; align-items:center; justify-content:center; width:auto !important; min-width:170px; min-height:44px;
  padding:10px 22px !important; margin:12px auto 0 !important; background:#191919 !important; border:0 !important; border-radius:2px !important;
  box-shadow:0 1px #008aee !important; color:#fff !important; font-weight:400 !important; transition:all .3s; }
.j2store-product-list .j2store-single-product .btn:hover { background:#232323 !important; color:#fff !important; }
.j2store-product-list .j2store-single-product form, .j2store-product-list .j2store-single-product .j2store-addtocart-form { display:flex; justify-content:center; text-align:center; width:100%; }
@media (max-width: 599.98px) { .j2store-product-list .j2store-single-product .btn { min-width:0; width:100% !important; padding:10px 8px !important; } }

.task-view .j2store-single-product form.j2store-addtocart-form { text-align:center; }
.task-view .j2store-single-product .j2store-add-to-cart { display:inline-flex !important; align-items:center; justify-content:center; height:auto !important;
  min-height:48px; min-width:220px; max-width:none !important; flex-wrap:nowrap; gap:0; margin:22px auto 0 !important; padding:0 !important; }
.task-view .j2store-single-product .j2store-add-to-cart .j2store-cart-button { display:block !important; width:100% !important; min-height:48px; padding:0 32px !important;
  background:none !important; color:whitesmoke !important; border:0 !important; border-radius:2px !important; font-size:16px !important; font-weight:400 !important;
  max-width:none !important; flex:none !important; margin:0 !important; box-shadow:none !important; }
.task-view .j2store-single-product .j2store-add-to-cart .product-qty, .task-view .ui-qty { display:none !important; }
@media (max-width: 991.98px) { .task-view .j2store-single-product .j2store-add-to-cart { display:flex !important; width:100%; min-width:0; } }

.view-carts .cart-checkout-button .btn, .view-carts a.btn-success { background:#191919 !important; color:#fff !important; box-shadow:0 1px #008aee !important; border-radius:2px !important; font-weight:400 !important; }
.view-carts .cart-checkout-button .btn:hover, .view-carts a.btn-success:hover { background:#232323 !important; }
.ui-buybar button { background:#191919 !important; color:#fff !important; border-radius:2px !important; box-shadow:0 1px #008aee !important; font-weight:400 !important; }

.j2store-product-list .j2store-single-product form, .j2store-product-list .j2store-single-product .j2store-addtocart-form { flex-direction:column; align-items:center; }

/* Mobil-Test 01.12.: Versandhinweis, Zurück-Link, Ausverkauft, kompakter Produktkopf */
.ui-ship { color:inherit !important; text-decoration:underline; text-underline-offset:2px; white-space:nowrap; }
.ui-back { display:inline-flex; align-items:center; gap:6px; min-height:44px; margin:0 0 6px; color:#ccc !important; text-decoration:none !important; font-size:15px; }
.ui-back:hover { color:#ff7400 !important; }
.outofstock { display:inline-block; margin:6px 0 2px; padding:3px 10px; border-radius:999px; background:rgba(255,80,80,.12); border:1px solid rgba(255,80,80,.45); color:#ff8a80 !important; font-size:13px; font-weight:600; }
@media (max-width: 991.98px) {
  body.task-view #sp-title, body.task-view .sp-page-title { display:none !important; }   /* Produktseite: Produkttitel reicht, „Shop“-Kopf entfällt */
  body.task-view #sp-main-body { padding-top:4px !important; }
}

.ui-delivery { margin:6px 0 0; font-size:13px; color:#bdbdbd; line-height:1.45; }
.ui-delivery.is-dl { color:#c9b8ff; }
.ui-delivery.is-box { margin:6px 0 18px; padding:12px 14px; border-left:3px solid #ff7400; background:rgba(255,116,0,.08); border-radius:8px; color:#eee; font-size:15px; }
.view-carts .ui-delivery, .view-checkout .ui-delivery { margin:10px 0 4px; }

.ui-legal-extra a, .view-checkout #j2store-checkout a[data-ui-legal] { color:#ff7400 !important; text-decoration:underline; }
.ui-pay { color:#9e9e9e; }

html[lang^="de"] .ui-lang-en, html[lang^="en"] .ui-lang-de { display:none !important; }

.ui-dl-consent { display:flex; gap:10px; align-items:flex-start; margin:12px 0; padding:12px; border:1px solid rgba(255,255,255,.15); border-radius:10px; font-size:14px; line-height:1.45; color:#e6e6e6; }
.ui-dl-consent input { flex:0 0 20px; width:20px; height:20px; margin-top:2px; accent-color:#ff7400; }
.ui-dl-consent.is-error { border-color:#ff6b6b; background:rgba(255,80,80,.08); }

.ui-dl-consent { flex-wrap:wrap; }
.ui-dl-err { flex:1 1 100%; color:#ff8a80; font-size:13px; font-weight:600; }

/* "Mehr entdecken" unter der Produktseite (2026-12-01) */
.ui-related { margin:36px 0 12px; padding-top:22px; border-top:1px solid rgba(255,255,255,.1); clear:both; }
.ui-related-h { font-size:20px !important; margin:0 0 14px !important; color:#eee; letter-spacing:.03em; text-align:left; }
.ui-related-list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; }
@media (min-width:768px) { .ui-related-list { grid-template-columns:repeat(4, minmax(0,1fr)); gap:20px; } }
.ui-related-list a { display:block; color:#ddd !important; text-decoration:none !important; }
.ui-related-list img { display:block; width:100%; height:auto; aspect-ratio:1/1; object-fit:cover; border-radius:10px; background:#111; transition:transform .2s, opacity .2s; }
.ui-related-list a:hover img { opacity:.85; }
.ui-related-list span { display:block; margin-top:8px; font-size:15px; line-height:1.3; }

/* Widerrufsfunktion „Vertrag widerrufen“ (Plugin claudeshop, 2026-12-02) */
.ui-wr-foot { margin: 4px 0; text-align: right; }
@media (max-width: 991px) { .ui-wr-foot { text-align: center; margin-top: 10px; } }
.ui-wr-btn { display: inline-block; border: 1px solid #ff7400; color: #ff7400 !important; background: transparent; padding: 8px 14px; min-height: 44px; line-height: 26px; border-radius: 4px; text-decoration: none !important; }
.ui-wr-btn:hover, .ui-wr-btn:focus-visible { background: #ff7400; color: #000 !important; }
.ui-wr { max-width: 640px; margin: 10px 0 24px; }
.ui-wr-form .ui-wr-f { margin: 0 0 16px; }
.ui-wr-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.ui-wr-form input, .ui-wr-form select, .ui-wr-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 10px; font-size: 16px; border: 1px solid #888; border-radius: 4px; background: #fff; color: #111; }
.ui-wr-form input:focus, .ui-wr-form select:focus, .ui-wr-form textarea:focus { outline: 3px solid #ff7400; outline-offset: 1px; }
.ui-wr-hint { display: block; font-size: 14px; opacity: .8; margin-top: 4px; }
.ui-wr-f.has-err input, .ui-wr-f.has-err select { border-color: #e53935; }
.ui-wr-ferr { display: block; color: #ff6b6b; font-size: 14px; margin-top: 4px; }
.ui-wr-err { border: 2px solid #e53935; padding: 10px 14px; margin-bottom: 16px; border-radius: 4px; }
.ui-wr-err a { color: inherit; text-decoration: underline; }
.ui-wr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ui-wr-submit { min-height: 44px; }
.ui-wr-ok { border: 2px solid #43a047; padding: 14px 16px; border-radius: 4px; }
.ui-wr-ok:focus { outline: none; }
.ui-wr-sum { white-space: pre-wrap; font-family: inherit; font-size: 15px; background: rgba(255,255,255,.06); color: inherit; padding: 10px 12px; border-radius: 4px; }
.ui-wr-order { display: inline-block; margin: 6px 0; }
/* AGB-Seite (Fassung Dez. 2026) */
.claude-agb .agb-addr { margin-left: 14px; }
.claude-agb ol.agb-steps { padding-left: 22px; }
.claude-agb .agb-box { border: 1px solid #777; padding: 12px 14px; margin: 12px 0; border-radius: 4px; }
.claude-agb .agb-line { border-bottom: 1px solid #777; height: 22px; margin-bottom: 8px; }
.claude-agb .agb-small { font-size: 14px; opacity: .8; }
.claude-agb h3 { scroll-margin-top: 90px; }
.claude-agb table.agb-table { border-collapse: collapse; width: 100%; margin: 6px 0 14px; }
.claude-agb .agb-table th, .claude-agb .agb-table td { border: 1px solid #666; padding: 8px 10px; text-align: left; vertical-align: top; }
.claude-agb .agb-table th { background: rgba(255,255,255,.08); }
.claude-agb ul { padding-left: 22px; }

/* Runde 3 (03.12.2026) Barrierefreiheit – rückgängig: diesen Block löschen */
.claude-loadmore-btn.btn-primary, .claude-empty-cart .btn-primary { color:#000 !important; } /* Weiß auf Orange 2,7:1 -> Schwarz auf Orange 7,7:1 (WCAG AA) */
.ui-ship { display:inline-block; padding:3px 0; min-height:24px; } /* Zielgröße >= 24 px (WCAG 2.5.8) */
.j2store-products-row h2 a, .j2store-single-product h2 a { display:inline-block; padding:3px 0; min-height:24px; }
.ui-sr-only { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
/* Kaufweg (Warenkorb, Kasse, Konto, Login): Text auf orangefarbenen/pinken Knöpfen schwarz statt weiß (2,7:1 -> 7,7:1). Übrige Seiten unverändert (Entscheidung Inhaber). */
.view-carts .btn-primary, .view-checkout .btn-primary, .view-checkout input.button, .view-myprofile .btn-primary, .com-users .btn-primary,
.view-carts .btn-primary:hover, .view-checkout .btn-primary:hover, .view-myprofile .btn-primary:hover, .com-users .btn-primary:hover { color:#000 !important; }
