/* CLAUDE 2026-12-01 – Mobile- und UX-Optimierung (Staging)
 * Eingebunden über Modul "CLAUDE Mobile/UX-CSS". Rückgängig: Modul deaktivieren.
 * Farben aus dem bestehenden Design: Orange #ff7400, Violett #6154fd, Pink #f43482, Schwarz.
 */
:root { --ch-orange:#ff7400; --ch-violet:#6154fd; --ch-pink:#f43482; --ch-line:rgba(255,255,255,.12); }

/* ---------- Profil / Konto (alle Bildschirmgrößen) ---------- */
.view-myprofile .j2store input, .view-myprofile .j2store select, .view-myprofile .j2store textarea { box-sizing:border-box; max-width:100%; }
/* Vergessen-Links waren per custom.css ausgeblendet – Passwort/Benutzername zurücksetzen wieder anzeigen */
.view-myprofile .loginLinks { display:flex !important; flex-wrap:wrap; gap:6px 18px; list-style:none; padding:0; margin:14px 0 0; }
.view-myprofile .loginLinks li { margin:0; }
.view-myprofile .loginLinks a { display:inline-block; padding:8px 0; font-size:15px; text-decoration:underline; text-underline-offset:3px; }
/* Login-Formular: volle Breite, große Felder, Checkbox sauber */
.view-myprofile #j2storeOrderLoginForm label.j2storeUserName,
.view-myprofile #j2storeOrderLoginForm label.j2storePassword { display:block; width:100%; margin:0 0 14px; }
.view-myprofile #j2storeOrderLoginForm input[type=text],
.view-myprofile #j2storeOrderLoginForm input[type=password],
.view-myprofile #j2storeOrderGuestForm input[type=text],
.view-myprofile #j2storeOrderGuestForm input[type=email] { width:100% !important; min-height:46px; margin-top:6px; text-align:left !important; border-radius:8px; }
.view-myprofile #j2storeOrderLoginForm label[for=remember] { display:flex; align-items:center; gap:10px; margin:4px 0 16px; cursor:pointer; }
.view-myprofile #j2storeOrderLoginForm input[type=checkbox] { width:20px; height:20px; accent-color:var(--ch-orange); }
.view-myprofile .j2store_checkout_button, .view-myprofile #j2storeOrderGuestForm .btn { min-height:46px; padding:10px 28px; border-radius:8px; }
.view-myprofile .j2store > .row > [class*=col-] { margin-bottom:28px; }
.view-myprofile .j2store > .row > [class*=col-] + [class*=col-] { border-top:1px solid var(--ch-line); padding-top:24px; }
@media (min-width: 768px) {
  .view-myprofile .j2store > .row > [class*=col-] + [class*=col-] { border-top:0; padding-top:0; border-left:1px solid var(--ch-line); padding-left:32px; }
}
/* Eingeloggt: Abmelden-Knopf war per custom.css (.pull-right) versteckt */
.view-myprofile .pull-right { display:block !important; float:none !important; position:static !important; margin:0 0 14px; text-align:right; }
.view-myprofile .pull-right .logout-button { display:inline-block; }
.view-myprofile .pull-right .btn { min-height:40px; padding:8px 18px; border-radius:999px; background:transparent !important; border:1px solid var(--ch-orange) !important; color:var(--ch-orange) !important; }
/* Eingeloggt: Bereichs-Navigation (Bestellungen / Downloads / Adressen) wieder sichtbar, als Sprungleiste */
.view-myprofile #myProfileTab { display:flex; flex-wrap:wrap; overflow-x:visible; gap:8px; border:0; padding:6px 0 10px; margin:0 0 18px; position:static; scrollbar-width:none; }
.view-myprofile #myProfileTab .nav-item { display:block !important; font-size:15px; letter-spacing:.02em; flex:0 0 auto; }
.view-myprofile #myProfileTab .nav-link { display:flex; align-items:center; gap:8px; min-height:44px; padding:8px 16px; border:1px solid var(--ch-violet) !important; border-radius:999px; color:#fff !important; background:transparent; white-space:nowrap; }
.view-myprofile #myProfileTab .nav-link.active { background:var(--ch-violet) !important; }
.view-myprofile .tab-content > .tab-pane { scroll-margin-top:170px; }
.view-myprofile .claude-pane-title { font-size:22px; margin:8px 0 14px; padding-top:8px; border-top:1px solid var(--ch-line); }
.view-myprofile .table-responsive { -webkit-overflow-scrolling:touch; }

/* ---------- Produktseite: In-den-Korb deutlich ---------- */
.task-view .j2store-cart-button { display:block; width:100%; max-width:360px; margin:10px auto; min-height:50px; padding:12px 20px; font-size:17px; font-weight:600; color:#fff !important; background:var(--ch-orange) !important; border:0 !important; border-radius:10px; cursor:pointer; }
.task-view .j2store-cart-button:hover { filter:brightness(1.1); }

@media (max-width: 767.98px) {
  .view-myprofile .j2store > .row { margin-left:0; margin-right:0; }
  .view-myprofile .j2store > .row > [class*=col-] { padding-left:0; padding-right:0; }
}

/* ---------- Mobil (bis Tablet) ---------- */
@media (max-width: 991.98px) {
  /* Kopfbereich und Seitentitel kompakter -> Inhalt rückt nach oben */
  .sp-page-title { padding:16px 0 8px !important; }
  .sp-page-title .sp-page-title-heading { font-size:13px !important; letter-spacing:.25em; line-height:1.2; margin:0 0 4px; }
  .sp-page-title .sp-page-title-sub-heading { font-size:32px !important; line-height:1.15; margin:0; }

  /* Shop-Schnellnavigation: eine Zeile, mit Beschriftung, wischbar */
  #sp-top1 .sppb-section { padding:6px 0 !important; margin:0 !important; }
  #sp-top1 .sppb-addon-icons-group { margin:0 !important; }
  #sp-top1 .sppb-icons-group-list { display:flex !important; flex-wrap:nowrap; justify-content:flex-start; overflow-x:auto; gap:8px; padding:4px 2px 8px !important; margin:0 !important; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  #sp-top1 .sppb-icons-group-list::-webkit-scrollbar { display:none; }
  #sp-top1 .sppb-icons-group-list > li { flex:0 0 auto; margin:0 !important; }
  #sp-top1 .sppb-icons-group-list > li > a { display:flex !important; flex-direction:column; align-items:center; justify-content:center; gap:4px; width:auto !important; height:auto !important; min-width:66px; min-height:58px; padding:6px 10px !important; border-radius:12px !important; line-height:1; }
  #sp-top1 .sppb-icons-group-list > li > a i { font-size:20px !important; margin:0 !important; }
  #sp-top1 .sppb-icons-group-list .sppb-form-label-visually-hidden { position:static !important; width:auto !important; height:auto !important; clip:auto !important; clip-path:none !important; overflow:visible !important; margin:0 !important; padding:0 !important; white-space:nowrap; font-size:12px; text-transform:capitalize; color:#fff; }
  #sp-top1 .sppb-icons-group-list a:has(.sppb-icons-label-text) .sppb-form-label-visually-hidden { display:none !important; }
  #sp-top1 .sppb-icons-group-list .sppb-icons-label-text { font-size:15px !important; margin:0 !important; }
  #sp-top1 .sppb-icons-group-list a:has(.sppb-icons-label-text) { min-height:44px; min-width:110px; border-radius:999px !important; }
  #sp-top1 .sppb-addon-icons-group + .sppb-addon-icons-group, #sp-top1 .sppb-addon-wrapper + .sppb-addon-wrapper { margin-top:4px !important; }

  /* Shop-Liste: zwei Produkte pro Zeile statt einem */
  .j2store-product-list .j2store-products-row { display:flex; flex-wrap:wrap; margin-left:-6px; margin-right:-6px; }
  .j2store-product-list .j2store-products-row > [class*=col-] { flex:0 0 50%; max-width:50%; padding:0 6px; }
  .j2store-product-list .j2store-single-product { margin-bottom:22px; text-align:center; }
  .j2store-product-list .j2store-single-product img { width:100% !important; height:auto; aspect-ratio:1/1; object-fit:cover; border-radius:6px; }
  .j2store-product-list .j2store-single-product h2, .j2store-product-list .j2store-single-product .product-title { font-size:15px !important; line-height:1.25; margin:8px 0 4px; }
  .j2store-product-list .j2store-single-product .product-short-description, .j2store-product-list .j2store-single-product .product-sku { font-size:12px; }
  .j2store-product-list .j2store-single-product .btn { display:block; width:100%; min-height:42px; padding:9px 6px; font-size:14px; border-radius:8px; }
  .claude-loadmore-btn { min-height:48px; padding:12px 28px; border-radius:999px; }

  /* Mobilmenü (Offcanvas): dunkel wie die Seite, große Tippflächen */
  .offcanvas-menu { background:#0b0b0b !important; color:#fff; width:min(320px, 86vw) !important; }
  .offcanvas-menu .offcanvas-inner { padding:24px 22px !important; }
  .offcanvas-menu .close-offcanvas { color:#fff !important; background:rgba(255,255,255,.12) !important; }
  .offcanvas-menu .menu a, .offcanvas-menu ul.menu > li > a, .offcanvas-menu ul.menu > li > span { display:block; color:#fff !important; font-size:18px !important; letter-spacing:.04em; padding:12px 0 !important; border-bottom:1px solid var(--ch-line); }
  .offcanvas-menu ul.menu li.active > a, .offcanvas-menu ul.menu li.current > a { color:var(--ch-orange) !important; }
  .offcanvas-menu ul.menu ul a { font-size:16px !important; padding:10px 0 10px 14px !important; color:#ddd !important; }
  .offcanvas-menu .menu-toggler, .offcanvas-menu .menu-parent > .menu-toggler { color:#fff !important; }
  .offcanvas-menu .mod-languages { margin-left:0 !important; }
  .offcanvas-menu .lang-offcanvas { margin:0 0 10px !important; }

  /* Formulare: 16px verhindert Auto-Zoom auf dem iPhone, größere Felder */
  input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea { font-size:16px !important; min-height:44px; }
  .j2store .btn, .j2store input[type=submit], .j2store button { min-height:44px; }

  /* Warenkorb/Kasse: Tabellen wischbar statt abgeschnitten */
  .j2store-cart table, .j2store-checkout table, .j2store table.table { display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; }


  /* Fußzeile kompakt: Links in einer Zeile, Logos nebeneinander, Social-Icons in einer Reihe */
  #sp-bottom { padding:28px 0 10px !important; }
  #sp-bottom1 ul.menu { display:flex; flex-wrap:wrap; justify-content:center; gap:2px 22px; margin:0 0 16px; padding:0; }
  #sp-bottom1 ul.menu li { list-style:none; margin:0; }
  #sp-bottom1 ul.menu a { padding:10px 2px; font-size:15px; }
  #sp-bottom2 .sppb-section { padding:0 !important; margin:0 !important; }
  #sp-bottom2 .sppb-row { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:6px 28px; margin:0 !important; }
  #sp-bottom2 .sppb-row-column { flex:0 0 auto; width:auto !important; max-width:none !important; padding:0 !important; }
  #sp-bottom2 .sppb-row-column:last-child { flex-basis:100%; }
  #sp-bottom2 .sppb-addon-wrapper { margin:0 !important; }
  #sp-bottom2 .sppb-addon-single-image img { width:64px !important; height:auto; }
  #sp-bottom2 .sppb-icons-group-list { display:flex !important; flex-wrap:wrap; justify-content:center; gap:6px 10px; margin:10px 0 0 !important; padding:0 !important; }
  #sp-bottom2 .sppb-icons-group-list > li { margin:0 !important; width:auto !important; height:auto !important; }
  #sp-bottom2 .sppb-icons-group-list > li > a { display:flex !important; align-items:center; justify-content:center; width:48px !important; height:48px !important; padding:0 !important; margin:0 !important; }
  #sp-bottom2 .sppb-icons-group-list i { font-size:28px !important; margin:0 !important; }
  #sp-footer { padding:12px 0 18px !important; text-align:center; }

  /* Fußzeile: Links als große Tippziele */
  #sp-footer a, #sp-bottom a { display:inline-block; padding:6px 0; }
}

/* ---------- Kleine Phones ---------- */
@media (max-width: 380px) {
  .j2store-product-list .j2store-single-product h2 { font-size:14px !important; }
}

.claude-empty-cart { display:flex; flex-wrap:wrap; gap:12px; margin:22px 0 10px; }
.claude-empty-cart .btn { min-height:46px; padding:11px 22px; border-radius:999px; }

/* ---------- Konto eingeloggt: Tabellen als Karten (Handy) ---------- */
@media (max-width: 767.98px) {
  .view-myprofile table.claude-cards, .view-myprofile table.claude-cards tbody, .view-myprofile table.claude-cards tr, .view-myprofile table.claude-cards td { display:block; width:100%; }
  .view-myprofile table.claude-cards { border:0 !important; background:transparent; }
  .view-myprofile table.claude-cards > thead { display:none; }
  .view-myprofile table.claude-cards > tbody > tr { border:1px solid var(--ch-line); border-radius:12px; padding:10px 14px; margin:0 0 12px; background:#0d0d0d; }
  .view-myprofile table.claude-cards > tbody > tr > td { display:flex; justify-content:space-between; align-items:center; gap:12px; border:0 !important; padding:7px 0 !important; background:transparent !important; text-align:right; }
  .view-myprofile table.claude-cards > tbody > tr > td[data-label]::before { content:attr(data-label); color:#999; font-size:13px; text-align:left; flex:0 0 auto; }
  .view-myprofile table.claude-cards > tbody > tr.claude-full > td { justify-content:center; text-align:center; }
  .view-myprofile table.claude-cards .j2store-order-action-icons a, .view-myprofile table.claude-cards td a { display:inline-flex; align-items:center; min-height:40px; padding:6px 10px; }
  .view-myprofile .table-responsive { overflow:visible; }
  .view-myprofile .order-download-files td { display:block; text-align:right; }
  .view-myprofile .j2store-myprofile-address-list { padding:0; list-style:none; }
  .view-myprofile .j2store-myprofile-address-single-list { border:1px solid var(--ch-line); border-radius:12px; padding:12px 14px !important; margin:0 0 12px; background:#0d0d0d; }
  .view-myprofile .j2store-myprofile-address-controls { display:flex !important; gap:16px; justify-content:flex-end; list-style:none; padding:0; margin:0 0 8px; }
  .view-myprofile .j2store-myprofile-address-controls a { display:inline-block; padding:8px 4px; }
  .view-myprofile .myprofile-address-addnew a { display:inline-block; padding:10px 20px; border:1px solid var(--ch-orange); border-radius:999px; margin:6px 0 14px; }
}

/* Konto: Werte gut lesbar (Tabellenfarbe war blau) */
.view-myprofile table.claude-cards td { color:#eee !important; }
.view-myprofile .j2store-myprofile > h3 { margin-bottom:10px; }
@media (max-width: 767.98px) {
  .view-myprofile #myProfileTab .nav-link { padding:8px 14px; font-size:14px; }
  .view-myprofile #myProfileTab .nav-link i { display:none; }
}

@media (max-width: 767.98px) {
  .view-myprofile table.claude-cards > tbody > tr.claude-full > td { flex-wrap:wrap; gap:10px; }
  .view-myprofile table.claude-cards tr.claude-full select { width:auto !important; min-width:90px; display:inline-block; }
  .view-myprofile table.claude-cards .j2store-order-action-icons { display:flex; gap:6px; }
  .view-myprofile table.claude-cards .j2store-order-action-icons .fa { font-size:20px; }
}

/* Bestelldetails (Fancybox-Popup) auf dem Handy bildschirmfüllend */
@media (max-width: 767.98px) {
  .fancybox-slide--iframe { padding:0 !important; }
  .fancybox-slide--iframe .fancybox-content { width:100vw !important; height:100% !important; max-width:100vw !important; max-height:100% !important; margin:0 !important; }
  .fancybox-toolbar .fancybox-button, .fancybox-button--close { width:48px; height:48px; }
}
