:root{--bg:#050505;--panel:#111;--soft:#1b1b1b;--text:#f7f7f7;--muted:#b9b9b9;--yellow:#ffd333;--line:#2c2c2c;--green:#34d399;--red:#fb7185}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top right,#2b2507,transparent 28%),var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}.topbar{display:flex;gap:22px;align-items:center;padding:12px 5vw;border-bottom:1px solid var(--line);font-size:14px;color:var(--muted);flex-wrap:wrap}.header{display:flex;align-items:center;justify-content:space-between;padding:22px 5vw;border-bottom:1px solid var(--line);gap:18px}.brand{display:flex;align-items:center;gap:14px}.logo{width:62px;height:62px;border:2px solid var(--yellow);border-radius:50%;background:linear-gradient(150deg,var(--yellow) 0 35%,#000 35% 58%,var(--yellow) 58%);box-shadow:0 0 25px rgba(255,211,51,.35)}.brand small{color:var(--yellow);font-weight:800;letter-spacing:.08em}.brand h1{margin:.15rem 0 0;font-size:28px}.actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.pill,.btn{border:1px solid var(--line);border-radius:999px;padding:11px 16px;background:var(--soft);font-weight:700}.btn{background:var(--yellow);border-color:var(--yellow);color:#111;display:inline-block}.btn.secondary{background:transparent;color:var(--text);border-color:#555}.nav{position:sticky;top:0;z-index:5;background:rgba(5,5,5,.96);border-bottom:2px solid rgba(255,211,51,.5);padding:10px 5vw;overflow-x:auto;white-space:nowrap}.nav a{display:inline-block;margin-right:14px;padding:10px 12px;font-weight:800}.wrap{padding:38px 5vw}.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:45px}.eyebrow{color:var(--yellow);font-weight:900;letter-spacing:.15em}.hero h2{font-size:48px;line-height:1.02;margin:14px 0}.hero p{color:var(--muted);font-size:18px;line-height:1.55}.glow{min-height:320px;border:1px solid rgba(255,211,51,.25);border-radius:28px;background:radial-gradient(circle,rgba(255,211,51,.5),rgba(255,211,51,.08) 35%,transparent 60%);display:flex;align-items:center;justify-content:center}.glow .logo{width:170px;height:170px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px}.card{background:linear-gradient(180deg,#1b1b1b,#0d0d0d);border:1px solid var(--line);border-radius:18px;padding:20px}.card h3{margin-top:0}.muted{color:var(--muted)}input,select,textarea{width:100%;background:#0b0b0b;color:var(--text);border:1px solid #444;border-radius:12px;padding:13px;margin:6px 0 14px}label{font-weight:700}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.notice{padding:15px;border-radius:14px;margin:14px 0}.ok{background:rgba(52,211,153,.12);border:1px solid var(--green)}.err{background:rgba(251,113,133,.12);border:1px solid var(--red)}table{width:100%;border-collapse:collapse;background:#101010;border-radius:14px;overflow:hidden}th,td{padding:12px;border-bottom:1px solid var(--line);text-align:left}.qty{max-width:90px}.price{font-weight:900;color:var(--yellow)}footer{padding:35px 5vw;color:var(--muted);border-top:1px solid var(--line);margin-top:40px}@media(max-width:760px){.topbar{font-size:12px;padding:10px 20px}.header{padding:16px 20px;align-items:flex-start}.brand h1{font-size:22px}.logo{width:52px;height:52px}.actions{justify-content:flex-start}.nav{padding:8px 20px}.nav a{font-size:14px;margin-right:6px;padding:10px}.wrap{padding:26px 20px}.hero{grid-template-columns:1fr}.hero h2{font-size:34px}.formgrid{grid-template-columns:1fr}.glow{min-height:220px}.glow .logo{width:120px;height:120px}}

/* Finale Anpassungen: einheitliches Header-Logo und aufgeräumte Händler-Navigation */
.header{padding:22px 5vw;align-items:center;background:rgba(0,0,0,.90)}
.brand{min-width:320px}.header-logo-img{width:330px;max-width:34vw;height:auto;display:block;object-fit:contain;image-rendering:auto}
.actions{margin-left:auto;flex-wrap:nowrap;white-space:nowrap}.pill{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:11px 17px;color:#fff}.pill:hover{background:rgba(255,211,51,.14);border-color:rgba(255,211,51,.35)}
.nav{display:none!important}.wrap{border-top:2px solid rgba(255,211,51,.55)}
@media(max-width:900px){.header{flex-direction:column;align-items:flex-start}.brand{min-width:0}.header-logo-img{width:285px;max-width:92vw}.actions{overflow-x:auto;max-width:100%;padding-bottom:4px}}
@media(max-width:640px){.pill{font-size:12px;padding:9px 11px}.header-logo-img{width:285px}}


/* Änderungsrunde 2: Header auf Unterseiten konsistent zum Startmenü */
.header-logo-img{width:330px;max-width:34vw;height:auto;display:block;object-fit:contain;image-rendering:auto}.actions .cart-pill::before{content:'🛒';}.actions{flex-wrap:nowrap;white-space:nowrap}.pill{box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
@media(max-width:900px){.actions{overflow-x:auto;max-width:100%;padding-bottom:4px}}

/* Fix: nur ein Warenkorb-Symbol und Maßskizzen immer vollständig sichtbar */
.actions .cart-pill{display:inline-flex;align-items:center;gap:6px}
.actions .cart-pill::before{content:'🛒';display:inline-block}
.gallery-main{overflow:visible!important}
.gallery-main img[src^="data:image/svg+xml"],.gallery-main img.measure-sketch-img{display:block!important;width:100%!important;height:auto!important;max-width:100%!important;max-height:none!important;object-fit:contain!important}

/* FINALER FIX: Warenkorb-Button nur ein Icon */
.actions .pill[href="cart.php"]::before{content:none!important;display:none!important}
.actions .cart-pill::before{content:'🛒'!important;display:inline-block!important}

/* Finale Maßskizzen: vollständige Ansicht, keine Beschneidung */
.gallery-main img[src*='massskizzen']{object-fit:contain!important;max-width:100%!important;max-height:100%!important;}
.thumbs img[src*='massskizzen']{object-fit:contain!important;}
#cartBtn{white-space:nowrap;}

/* Fix: ein Warenkorb-Symbol, neue Massskizzen-PNG sauber darstellen */
.cart-pill::before,.pill.cart-pill::before,#cartBtn::before{content:none!important;display:none!important}
.gallery-main img.measure-sketch-img,.gallery-main img[src*='assets/massskizzen']{width:100%!important;height:100%!important;object-fit:contain!important;background:#050505!important;border-radius:18px!important}
.thumbs img[src*='assets/massskizzen']{object-fit:cover!important;background:#050505!important}


/* Finale Ergänzungen: Warenkorb, Rechtliches, Maßskizzen */
.cart-remove{margin-top:10px;border:1px solid #d33;background:#fff;color:#b00000;border-radius:999px;padding:7px 12px;font-weight:800;cursor:pointer}
.cart-remove:hover{background:#ffecec}.cart-legal-check{display:flex;gap:9px;align-items:flex-start;margin-top:14px;color:#111;font-weight:700}.cart-legal-check input{margin-top:4px}.footer-link-btn{border:0;background:rgba(255,255,255,.08);color:#fff;border-radius:999px;padding:8px 12px;font-weight:800;text-decoration:none;display:inline-flex;align-items:center}.footer-link-btn:hover{background:#f7c600;color:#000}.measure-sketch-img,.gallery-main img[src*="massskizzen"]{width:100%;height:100%;object-fit:contain;background:#000;border-radius:16px}.legal-text ul{padding-left:22px}.legal-text strong{font-weight:900}


/* === Finale saubere Batteriehuus-Anpassungen === */
.gallery-main{background:#050505!important;border:1px solid rgba(247,198,0,.34)!important;border-radius:24px!important;padding:16px!important;height:460px!important;position:relative;overflow:hidden!important}.gallery-main img{max-width:100%!important;max-height:100%!important;object-fit:contain!important}.gallery-stage{width:100%;height:100%;display:grid;place-items:center}.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:46px;height:46px;border-radius:50%;border:1px solid rgba(247,198,0,.6);background:rgba(0,0,0,.72);color:#f7c600;font-size:32px;line-height:1;font-weight:900;cursor:pointer}.gallery-arrow.left{left:14px}.gallery-arrow.right{right:14px}.gallery-arrow:hover{background:#f7c600;color:#000}.gallery-tabs{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:12px}.gallery-tab{border:1px solid rgba(247,198,0,.35);background:rgba(255,255,255,.06);color:#fff;border-radius:999px;padding:8px 12px;font-weight:800;cursor:pointer}.gallery-tab.is-active,.gallery-tab:hover{background:#f7c600;color:#000;border-color:#f7c600}.pdf-preview-card{width:100%;height:100%;display:grid;place-items:center;text-align:center;color:#fff;padding:24px}.pdf-preview-card .pdf-icon{font-size:70px;margin-bottom:12px}.pdf-preview-card h3{color:#fff;margin:0 0 8px}.pdf-preview-card p{color:#d9dde5}.pdf-preview-card .btn{margin-top:14px}.measure-sketch-img{background:#000!important;border-radius:18px!important}
#cartModal .modal-panel{background:linear-gradient(145deg,#050505,#111)!important;color:#fff!important;border:1px solid rgba(247,198,0,.42);box-shadow:0 28px 90px rgba(0,0,0,.65);max-width:1120px}#cartModal .modal-panel h2,#cartModal .modal-panel p{color:#fff!important}.cart-lines p{border:0}.cart-empty{color:#d8d8d8!important;padding:10px 0 22px}.cart-table{border:1px solid rgba(255,255,255,.14);border-radius:18px;overflow:hidden;margin:14px 0 18px}.cart-head,.cart-row{display:grid;grid-template-columns:1.3fr .55fr .55fr .55fr .3fr;gap:10px;align-items:center}.cart-head{background:rgba(247,198,0,.12);color:#f7c600;font-weight:900;padding:12px 14px;border-bottom:1px solid rgba(247,198,0,.25)}.cart-row{padding:14px;border-bottom:1px solid rgba(255,255,255,.10)}.cart-row:last-child{border-bottom:0}.cart-prod{display:flex;gap:14px;align-items:center}.cart-prod img{width:76px;height:58px;object-fit:contain;background:#fff;border-radius:10px}.cart-prod strong{display:block}.cart-prod small{color:#cbd5e1}.qtybox{display:inline-flex;align-items:center;border:1px solid rgba(247,198,0,.45);border-radius:10px;overflow:hidden}.qtybox button{background:transparent;color:#f7c600;border:0;width:32px;height:32px;font-weight:900;cursor:pointer}.qtybox span{min-width:36px;text-align:center;font-weight:900}.cart-remove{border:0!important;background:transparent!important;color:#f7c600!important;font-size:20px;padding:5px!important;margin:0!important}.cart-summary{margin-left:auto;max-width:420px;border:1px solid rgba(247,198,0,.35);border-radius:18px;padding:18px;background:rgba(247,198,0,.06)}.cart-summary-line{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;color:#fff}.cart-summary-line strong{font-size:28px;color:#f7c600}.cart-note{width:100%;min-height:106px;margin-top:16px;border-radius:16px;padding:14px;background:#090909;color:#fff;border:1px solid rgba(255,255,255,.22)}.cart-order-row{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:18px}.cart-legal-check{color:#fff!important;display:flex;gap:10px;align-items:center;font-weight:700}.cart-legal-check input{width:auto!important;margin:0!important;accent-color:#f7c600}.cart-legal-check a{color:#f7c600;text-decoration:underline}.cart-submit-wrap{text-align:right}.cart-success-box{display:none;border:1px solid #f7c600;background:linear-gradient(145deg,rgba(247,198,0,.20),rgba(247,198,0,.08));color:#fff;border-radius:22px;padding:28px;text-align:center;margin-top:10px}.cart-success-box h3{font-size:28px;margin:0 0 10px;color:#f7c600}.cart-success-box .order-number{font-size:24px;font-weight:900;color:#fff;margin:10px 0}.cart-success-box .btn{margin-top:16px}.footer-link-btn{background:transparent!important;border:1px solid rgba(247,198,0,.5)!important;color:#f7c600!important}.footer-link-btn:hover{background:#f7c600!important;color:#000!important}.footer-layout{align-items:center}.footer-buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.footer-buttons .home-final{margin-left:18px;border-color:#f7c600!important;background:rgba(247,198,0,.08)!important;color:#f7c600!important}
@media(max-width:760px){.detail-grid{grid-template-columns:1fr}.gallery-main{height:330px!important}.cart-head{display:none}.cart-row{grid-template-columns:1fr;gap:8px}.cart-summary{max-width:none}.cart-order-row{align-items:flex-start;flex-direction:column}.cart-submit-wrap{text-align:left;width:100%}.cart-submit-wrap .btn{width:100%}.modal-panel{padding:22px!important}}


/* Batteriehuus – saubere Erweiterungen */
:root{--yellow:#f7c600;--yellow2:#ffdc38;--text:#f7f7f5;--muted:#cfd5dd;--line:rgba(255,255,255,.14);--panel:rgba(255,255,255,.07)}
body{background:#000;color:#fff;font-family:"Segoe UI",Roboto,Arial,sans-serif}.wrap{width:min(1120px,calc(100% - 40px));margin:42px auto 70px}.card, form:not(.inline-form){background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);border-radius:24px;padding:26px}table{width:100%;border-collapse:separate;border-spacing:0;background:rgba(255,255,255,.055);border-radius:18px;overflow:hidden}th,td{padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.12);text-align:left}th{color:var(--yellow);background:rgba(247,198,0,.10);font-weight:900}tr:last-child td{border-bottom:0}.btn,.pill,button{font-family:"Segoe UI",Roboto,Arial,sans-serif}.order-link{color:#fff;font-weight:900;text-decoration:none}.order-link:hover{color:var(--yellow)}.account-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.account-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.account-edit-grid label{font-weight:850}.account-edit-grid input{width:100%;margin-top:7px;background:#050505;color:#fff;border:1px solid rgba(255,255,255,.22);border-radius:14px;padding:12px 14px}.notice{margin:12px 0}.order-detail-table .right{text-align:right}.reorder-box{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-top:20px}.footer-link-btn.home-final{margin-left:18px;border-color:var(--yellow)!important;background:rgba(247,198,0,.08)!important;color:var(--yellow)!important}.footer-link-btn.home-final:hover{background:var(--yellow)!important;color:#000!important}
@media(max-width:720px){.account-edit-grid{grid-template-columns:1fr}th,td{padding:11px 10px;font-size:13px}.header{align-items:flex-start}.actions{white-space:normal;flex-wrap:wrap}}


/* Batteriehuus Fix 2026-07-08: Detail-Buttons lesbar, Maßskizzen vollständig, Produktbilder einheitlich */
.gallery-tabs{display:flex!important;gap:10px!important;justify-content:center!important;flex-wrap:wrap!important;margin-top:16px!important;position:relative!important;z-index:6!important}
.gallery-tab{min-width:132px!important;border:1px solid rgba(247,198,0,.55)!important;background:#fff!important;color:#050505!important;border-radius:999px!important;padding:12px 18px!important;font-weight:900!important;line-height:1.1!important;box-shadow:none!important;opacity:1!important}
.gallery-tab.is-active,.gallery-tab:hover{background:#f7c600!important;color:#000!important;border-color:#f7c600!important}
.gallery-main{overflow:hidden!important}
.gallery-stage{width:100%!important;height:100%!important;display:grid!important;place-items:center!important}
.gallery-stage img.measure-sketch-img,.gallery-stage img[src*="assets/massskizzen"]{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center center!important;background:#050505!important;border-radius:18px!important}
.prod-img{height:245px!important;display:grid!important;place-items:center!important;padding:12px!important;overflow:hidden!important;background:#fff!important}
.prod-img img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center center!important;transform:none!important;filter:none!important;box-shadow:none!important}
.product[data-brand="LIONTRON"] .prod-img img{transform:scale(1.18)!important;filter:none!important;box-shadow:none!important}
@media(max-width:640px){.prod-img{height:205px!important}.gallery-tab{min-width:116px!important;padding:11px 14px!important}.product[data-brand="LIONTRON"] .prod-img img{transform:scale(1.16)!important}}


/* Batteriehuus Änderungsrunde: Bestellhistorie, Sortiment, Maßskizzen, Produktbilder */
.order-detail-cart-table th{white-space:nowrap}.order-product-cell{display:flex;gap:14px;align-items:center}.order-product-cell img{width:86px;height:64px;object-fit:contain;background:#fff;border-radius:10px;flex:0 0 auto}.order-product-cell strong{display:block;color:#fff}.order-product-cell small{display:block;color:#cbd5e1;margin-top:4px}.order-detail-cart-table td{vertical-align:middle}.intro-cards{grid-template-columns:repeat(3,1fr)!important}.purpose-note{display:none!important}.prod-img img{object-fit:contain!important;object-position:center center!important;filter:none!important;box-shadow:none!important}.product[data-brand="LIONTRON"] .prod-img img{transform:scale(1.16)!important;filter:none!important;box-shadow:none!important}.gallery-stage img.measure-sketch-img[src^="data:image/svg+xml"]{object-fit:contain!important;background:#050505!important;border-radius:18px!important}
@media(max-width:900px){.intro-cards{grid-template-columns:1fr!important}.order-detail-cart-table tr,.order-detail-cart-table td,.order-detail-cart-table th{font-size:13px}.order-product-cell{align-items:flex-start}.order-product-cell img{width:72px;height:54px}}


/* Korrektur: Bestellhistorie optisch wie Warenkorb + Maßskizze ohne Pfeil-Überlappung */
.order-product-cell{display:flex!important;gap:14px!important;align-items:center!important;min-width:310px!important}
.order-product-cell img{width:76px!important;height:58px!important;object-fit:contain!important;background:#fff!important;border-radius:10px!important;flex:0 0 76px!important;max-width:76px!important;max-height:58px!important}
.order-product-cell strong{display:block!important;color:#fff!important;line-height:1.25!important}
.order-product-cell small{display:block!important;color:#cbd5e1!important;margin-top:4px!important}
.order-detail-cart-table td,.order-detail-cart-table th{vertical-align:middle!important}
.gallery-stage img.measure-sketch-img[src^="data:image/svg+xml"]{padding:0!important;object-fit:contain!important;object-position:center center!important}
@media(max-width:900px){.order-product-cell{min-width:240px!important}.order-product-cell img{width:76px!important;height:58px!important;flex-basis:76px!important}}

/* Finale Vereinheitlichung Produktkarten */
:root{--max:1760px!important}.products{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;align-items:stretch}.product{display:flex!important;flex-direction:column!important;height:100%!important}.prod-img{height:220px!important;min-height:220px!important;padding:14px!important}.prod-img img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;transform:none!important}.product:hover .prod-img img{transform:scale(1.025)!important}.prod-body{display:flex!important;flex-direction:column!important;flex:1!important;padding:17px!important}.prod-body h4{min-height:44px!important;font-size:17px!important;line-height:1.28!important;margin:0 0 8px!important}.prod-body>p:not(.sku){min-height:58px!important;margin:0 0 10px!important;display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important}.prod-specs{margin:10px 0 12px!important}.hidden-price,.price{margin:10px 0!important}.card-actions{margin-top:auto!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.card-actions .btn{width:100%!important;min-height:40px!important;padding:9px 10px!important;font-size:12px!important}.action-badge{display:inline-block;margin-left:8px;background:#f7c600;color:#000;border-radius:999px;padding:3px 8px;font-size:10px;font-weight:900}.product[data-brand="LIONTRON"] .prod-img img,.product[data-brand="AMPSTAR"] .prod-img img{transform:none!important}@media(max-width:1320px){.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}}@media(max-width:930px){.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:640px){.products{grid-template-columns:1fr!important}.prod-body h4,.prod-body>p:not(.sku){min-height:0!important}}


/* Änderungsupdate 2026-08-03: klar erkennbare Bestellhistorie */
.orders-table-wrap{overflow-x:auto;border-radius:20px;border:1px solid rgba(247,198,0,.22);margin-top:14px}.orders-table{min-width:920px;border-radius:0}.orders-table th{background:rgba(247,198,0,.14);color:#f7c600;font-weight:900}.orders-table td{vertical-align:middle}.order-number-link{display:inline-flex;flex-direction:column;gap:3px;border:1px dashed #f7c600;border-radius:13px;padding:9px 12px;color:#f7c600;background:rgba(247,198,0,.055);transition:.18s ease;cursor:pointer}.order-number-link:hover{background:rgba(247,198,0,.15);transform:translateY(-1px)}.order-number-main{font-weight:950;font-size:15px;white-space:nowrap}.order-number-link small{font-size:11px;color:#e5e7eb;font-weight:600}.order-view-link{display:inline-flex;align-items:center;gap:7px;color:#f7c600;text-decoration:underline;font-weight:900;white-space:nowrap}.order-view-link:hover{color:#ffe36c}.order-status{display:inline-block;border-radius:999px;padding:5px 10px;background:#203449;color:#e7f4ff;font-weight:800}.order-help-box{display:flex;gap:14px;align-items:flex-start;margin:18px 0 32px;padding:17px 20px;border:1px solid rgba(247,198,0,.55);border-radius:18px;background:rgba(247,198,0,.07);line-height:1.55}.order-help-box strong{color:#f7c600;font-size:16px}.order-help-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:#f7c600;color:#000;font-size:20px;font-weight:950}@media(max-width:760px){.order-help-box{padding:15px}.orders-table{min-width:800px}}

/* Korrektur 2026-08-03: kleinere Produktbilder und strikt funktionierende Kategorien */
.product[hidden],.product.is-filtered-out{display:none!important}
.prod-img{
  height:220px!important;
  min-height:220px!important;
  padding:26px!important;
  background:#fff!important;
  overflow:hidden!important;
  display:grid!important;
  place-items:center!important;
}
.prod-img img,
.product[data-brand="LIONTRON"] .prod-img img,
.product[data-brand="AMPSTAR"] .prod-img img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:68%!important;
  max-height:68%!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
  filter:none!important;
  box-shadow:none!important;
  background:#fff!important;
}
.product:hover .prod-img img,
.product[data-brand="LIONTRON"]:hover .prod-img img,
.product[data-brand="AMPSTAR"]:hover .prod-img img{
  transform:none!important;
  filter:none!important;
  box-shadow:none!important;
}
@media(max-width:640px){
  .prod-img{height:196px!important;min-height:196px!important;padding:24px!important}
  .prod-img img,.product[data-brand="LIONTRON"] .prod-img img,.product[data-brand="AMPSTAR"] .prod-img img{max-width:72%!important;max-height:72%!important}
}

/* Finale Bild- und Laptop-Korrektur 2026-08-03 */
.prod-img{
  height:220px!important;
  min-height:220px!important;
  padding:16px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  background:#fff!important;
}
.prod-img img,
.product[data-brand="LIONTRON"] .prod-img img,
.product[data-brand="AMPSTAR"] .prod-img img{
  display:block!important;
  width:82%!important;
  height:82%!important;
  max-width:82%!important;
  max-height:82%!important;
  margin:auto!important;
  object-fit:contain!important;
  object-position:50% 50%!important;
  transform:none!important;
  filter:none!important;
  box-shadow:none!important;
  background:#fff!important;
}
.product:hover .prod-img img,
.product[data-brand="LIONTRON"]:hover .prod-img img,
.product[data-brand="AMPSTAR"]:hover .prod-img img{
  transform:none!important;
  filter:none!important;
  box-shadow:none!important;
}
@media (min-width:901px) and (max-width:1800px){
  body{zoom:.90}
}
@media(max-width:640px){
  .prod-img{height:196px!important;min-height:196px!important;padding:14px!important}
  .prod-img img,.product[data-brand="LIONTRON"] .prod-img img,.product[data-brand="AMPSTAR"] .prod-img img{width:84%!important;height:84%!important;max-width:84%!important;max-height:84%!important}
}

/* Finale Korrektur 2026-08-03: Produktbilder höher, LIONTRON größer */
.prod-img{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#fff!important;
  overflow:hidden!important;
}
.prod-img img,
.product[data-brand="AMPSTAR"] .prod-img img{
  width:84%!important;
  height:84%!important;
  max-width:84%!important;
  max-height:84%!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:translateY(-5%)!important;
  transform-origin:center center!important;
  filter:none!important;
  box-shadow:none!important;
  background:transparent!important;
}
.product[data-brand="LIONTRON"] .prod-img img{
  width:94%!important;
  height:94%!important;
  max-width:94%!important;
  max-height:94%!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:translateY(-5%) scale(1.06)!important;
  transform-origin:center center!important;
  filter:none!important;
  box-shadow:none!important;
  background:transparent!important;
}
.product:hover .prod-img img,
.product[data-brand="AMPSTAR"]:hover .prod-img img{
  transform:translateY(-5%)!important;
}
.product[data-brand="LIONTRON"]:hover .prod-img img{
  transform:translateY(-5%) scale(1.06)!important;
}
@media(max-width:640px){
  .prod-img img,.product[data-brand="AMPSTAR"] .prod-img img{
    width:86%!important;height:86%!important;max-width:86%!important;max-height:86%!important;
    transform:translateY(-4%)!important;
  }
  .product[data-brand="LIONTRON"] .prod-img img{
    width:94%!important;height:94%!important;max-width:94%!important;max-height:94%!important;
    transform:translateY(-4%) scale(1.04)!important;
  }
}

/* ==========================================================
   Laptop-Finalkorrektur 2026-08-04
   100-%-Browseransicht entspricht optisch der bisherigen 90-%-Ansicht
   ========================================================== */
@media (min-width: 1000px) {
  :root { --max: 1880px !important; }
  body { zoom: 1 !important; font-size: 12.6px !important; }
  .container { width: calc(100% - 28px) !important; max-width: 1880px !important; }
  .top { font-size: 11px !important; }
  .header { padding-top: 14px !important; padding-bottom: 14px !important; }
  .logo { width: 274px !important; }
  nav button, nav a, .filters button { padding: 8px 12px !important; font-size: 12px !important; }
  .toolbar .container { padding: 7px 0 !important; }
  #search { height: 39px !important; font-size: 13px !important; }

  .products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  .product { border-radius: 20px !important; }
  .prod-img { height: 198px !important; min-height: 198px !important; padding: 16px !important; }
  .prod-body { padding: 15px !important; }
  .prod-body h4 { font-size: 15.5px !important; min-height: 39px !important; }
  .prod-body p { font-size: 12.2px !important; }
  .sku { font-size: 12px !important; }
  .label, .tech-badge { font-size: 10px !important; }
  .brand-logo-small { max-width: 82px !important; max-height: 27px !important; }
  .prod-specs { gap: 6px !important; }
  .prod-specs span { min-height: 34px !important; padding: 7px !important; font-size: 11.5px !important; }
  .card-actions .btn { min-height: 36px !important; padding: 8px 9px !important; font-size: 11px !important; }
}

/* Bei kleineren Laptops weiterhin vier Karten, erst unter 900 px zwei Karten */
@media (min-width: 1000px) and (max-width: 1320px) {
  .products { grid-template-columns: repeat(4, minmax(0,1fr)) !important; }
}

/* Individuelle Produktbild-Korrekturen */
.product[id$="-104727"] .prod-img img,
.product[id$="-104727"]:hover .prod-img img {
  transform: translateY(-14px) scale(.92) !important;
  transform-origin: center center !important;
}
.product[id$="-104728"] .prod-img img,
.product[id$="-104728"]:hover .prod-img img {
  transform: translateY(-14px) scale(.92) !important;
  transform-origin: center center !important;
}
.product[id$="-104458"] .prod-img img,
.product[id$="-104458"]:hover .prod-img img {
  transform: translateY(-7px) scale(.82) !important;
  transform-origin: center center !important;
}
.product[id$="-104733"] .prod-img img,
.product[id$="-104733"]:hover .prod-img img {
  transform: translateY(-14px) scale(.88) !important;
  transform-origin: center center !important;
}

/* ==========================================================
   Finale Mobile- und Maßskizzen-Korrektur 2026-08-05
   ========================================================== */
.gallery-stage img.measure-sketch-img,
.gallery-stage img[src*="assets/massskizzen/"]{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:0!important;
  margin:0 auto!important;
  background:#000!important;
  border-radius:14px!important;
}
.gallery-tabs{
  display:flex!important;
  gap:8px!important;
  overflow-x:auto!important;
  scrollbar-width:thin;
  padding:10px 2px 2px!important;
  -webkit-overflow-scrolling:touch;
}
.gallery-tab{flex:0 0 auto!important;white-space:nowrap!important}

@media(max-width:760px){
  html,body{max-width:100%!important;overflow-x:hidden!important}
  .container{width:calc(100% - 20px)!important}
  .header .container{gap:10px!important}
  nav{width:100%!important;display:flex!important;gap:7px!important;overflow-x:auto!important;padding-bottom:3px!important;-webkit-overflow-scrolling:touch}
  nav button,nav a,.filters button,.btn{
    min-height:44px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    line-height:1.2!important;
  }
  .toolbar .container{gap:8px!important;flex-wrap:wrap!important}
  #search{width:100%!important;min-width:0!important;height:46px!important;font-size:16px!important}
  .filters{width:100%!important;display:flex!important;gap:7px!important;overflow-x:auto!important;padding-bottom:4px!important;-webkit-overflow-scrolling:touch}
  .filters button{flex:0 0 auto!important;white-space:nowrap!important}
  .products{grid-template-columns:1fr!important;gap:16px!important}
  .product{width:100%!important;min-width:0!important}
  .prod-img{height:205px!important;min-height:205px!important}
  .prod-body{padding:16px!important}
  .prod-body h4{font-size:17px!important;line-height:1.3!important;min-height:0!important}
  .card-actions{grid-template-columns:1fr!important;gap:9px!important}
  .card-actions .btn{width:100%!important;min-height:46px!important;font-size:14px!important}
  .modal{padding:7px!important;align-items:flex-start!important}
  .modal-panel{width:100%!important;max-width:100%!important;margin:5px auto!important;padding:17px!important;border-radius:18px!important;max-height:calc(100vh - 10px)!important;overflow-y:auto!important}
  #detailModal .modal-panel{padding-top:42px!important}
  .detail-grid{grid-template-columns:1fr!important;gap:18px!important}
  .gallery-main{height:auto!important;min-height:0!important;aspect-ratio:16/10!important;padding:4px!important;border-radius:15px!important;overflow:hidden!important}
  .gallery-stage{width:100%!important;height:100%!important;min-width:0!important}
  .gallery-arrow{width:34px!important;height:34px!important;font-size:22px!important;z-index:4!important}
  .gallery-arrow.left{left:5px!important}.gallery-arrow.right{right:5px!important}
  .gallery-stage img.measure-sketch-img,.gallery-stage img[src*="assets/massskizzen/"]{border-radius:10px!important}
  .gallery-tabs{margin-bottom:4px!important}
  .gallery-tab{min-width:108px!important;min-height:42px!important;padding:10px 12px!important;font-size:12px!important}
  .spec-table{grid-template-columns:1fr!important}
  .actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .actions .btn{width:100%!important;min-height:48px!important;font-size:14px!important}
  .cart-row{grid-template-columns:1fr!important;gap:10px!important}
  .cart-row .btn,.cart-submit-wrap .btn{width:100%!important;min-height:46px!important}
  .footer-link-btn{min-height:42px!important;padding:10px 13px!important}
}
@media(max-width:390px){
  .logo{width:232px!important;max-width:82vw!important}
  h1{font-size:27px!important}
  .gallery-main{aspect-ratio:16/11!important}
  .modal-panel{padding-left:13px!important;padding-right:13px!important}
}

/* ==========================================================
   FINAL 2026-08-09: Produktdetail am Desktop groesser/lesbarer
   Nur Desktop; Mobile-Regeln bleiben unveraendert.
   Bilder und Massskizzen werden niemals verzerrt.
   ========================================================== */
@media (min-width: 1000px) {
  #detailModal { padding: 1.5vh 14px !important; }
  #detailModal .modal-panel {
    width: min(98vw, 1780px) !important;
    max-width: 1780px !important;
    min-height: min(94vh, 940px) !important;
    margin: 0 auto !important;
    padding: 30px 34px !important;
  }
  #detailModal .detail-grid {
    grid-template-columns: minmax(700px, 1.12fr) minmax(540px, .88fr) !important;
    gap: 38px !important;
    align-items: start !important;
  }
  #detailModal .gallery-main {
    height: min(72vh, 760px) !important;
    min-height: 610px !important;
    padding: 18px !important;
  }
  #detailModal .gallery-stage,
  #detailModal .gallery-stage img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }
  #detailModal .gallery-stage img {
    object-fit: contain !important;
    object-position: center center !important;
  }
  #detailModal .gallery-tabs { margin-top: 16px !important; gap: 14px !important; }
  #detailModal .gallery-tab {
    min-width: 190px !important;
    min-height: 54px !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
  }
  #detailModal h2 { font-size: clamp(32px, 2.35vw, 48px) !important; line-height: 1.05 !important; }
  #detailModal .spec-table { gap: 12px !important; }
  #detailModal .spec { padding: 15px 16px !important; }
}
