/* =========================================================
   GLOBAL: CTA (wird in Listing + Detail verwendet)
   ========================================================= */

.produkt-cta{
  margin-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;

  background: #c00f23;
  color: #fff;

  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.2px;

  text-decoration: none;
  border: 0;
  cursor: pointer;

  transition: background-color .18s ease;
}

/* niemals unterstrichen */
.produkt-cta,
.produkt-cta:link,
.produkt-cta:visited,
.produkt-cta:hover,
.produkt-cta:active,
.produkt-cta:focus{
  text-decoration: none !important;
  color: #fff !important;
}



/* =========================================================
   HUBDB DETAIL PAGE (gebrauchtstapler) – NUR HubDB
   ========================================================= */

body.hubdb-detail-page .stapler-detail{
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Head */
body.hubdb-detail-page .stapler-header h1{ margin: 0 0 8px; }

body.hubdb-detail-page .stapler-subline{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  opacity:.85;
}

/* Layout */
body.hubdb-detail-page .stapler-layout{
  display:grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap:20px;
  margin-top:18px;
}
@media (max-width: 900px){
  body.hubdb-detail-page .stapler-layout{ grid-template-columns: 1fr; }
}

/* Images */
body.hubdb-detail-page .stapler-main-image img{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
}

body.hubdb-detail-page .stapler-thumbs{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:10px;
  margin-top:10px;
}
@media (max-width: 600px){
  body.hubdb-detail-page .stapler-thumbs{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

body.hubdb-detail-page .stapler-thumb img{
  width:100%;
  height:90px;
  object-fit:cover;
  border-radius:10px;
  display:block;
}

/* Cards */
body.hubdb-detail-page .stapler-card{
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  padding:16px;
  margin-bottom:14px;
}

body.hubdb-detail-page .stapler-card--topcta,
body.hubdb-detail-page .stapler-card--specs{
  border:1px solid rgba(0,0,0,0.08);
  border-radius:12px;
  box-shadow:
    0px 1px 4px rgba(0,0,0,0.08),
    0px 2px 6px rgba(0,0,0,0.04);
}

/* DL */
body.hubdb-detail-page .stapler-dl{ margin:0; }

body.hubdb-detail-page .stapler-dl > div{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:10px;
  padding:8px 0;
  border-bottom:1px solid rgba(0,0,0,.08);
}
body.hubdb-detail-page .stapler-dl > div:last-child{ border-bottom:none; }

body.hubdb-detail-page .stapler-dl dt{ font-weight:600; }

body.hubdb-detail-page .stapler-dl dd{
  margin:0;
  opacity:.9;
  text-align:right;
  white-space:nowrap;
}

/* Top CTA specs */
body.hubdb-detail-page .topcta-specs{
  display:flex;
  gap:18px;
  align-items:flex-start;
  justify-content:flex-start;
  padding-bottom:12px;
  margin-bottom:12px;
  border-bottom:1px solid rgba(0,0,0,.10);
}

body.hubdb-detail-page .topcta-spec{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:4px;
}

body.hubdb-detail-page .topcta-icon svg{
  width:34px;
  height:34px;
  display:block;
}

body.hubdb-detail-page .topcta-value{
  font-weight:400;
  font-size:.90rem;
  line-height:1.1;
  white-space:nowrap;
}

/* Price */
body.hubdb-detail-page .topcta-price{
  margin-top:12px;
  font-weight:700;
  font-size:1.45rem;
  color:#c00f23;
}
body.hubdb-detail-page .topcta-price-hint{
  display:inline-block;
  margin-left:8px;
  font-weight:500;
  font-size:.9rem;
  opacity:.8;
  color:inherit;
}
body.hubdb-detail-page .topcta-price-note{
  margin-top:4px;
  font-size:.75rem;
  line-height:1.3;
  color: rgba(0,0,0,.6);
}

/* Zustand */
body.hubdb-detail-page .topcta-condition{
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
}
body.hubdb-detail-page .condition-label{
  font-size:.9rem;
  color: rgba(0,0,0,.75);
}
body.hubdb-detail-page .condition-scale-svg{
  width:160px;
  height:22px;
  display:block;
}
body.hubdb-detail-page .condition-new-svg{
  width:140px;
  height:30px;
  display:block;
}

/* Sections */
body.hubdb-detail-page .stapler-section{ margin-top:28px; }
body.hubdb-detail-page .stapler-section h2{ margin:0 0 12px; }

body.hubdb-detail-page .stapler-section-card{
  background:#fff;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:12px;
  padding:16px;
  box-shadow:
    0px 1px 4px rgba(0,0,0,0.08),
    0px 2px 6px rgba(0,0,0,0.04);
}

/* Tech grid */
body.hubdb-detail-page .tech-grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
@media (max-width: 900px){
  body.hubdb-detail-page .tech-grid-2{ grid-template-columns: 1fr; }
}

body.hubdb-detail-page .tech-group h3{
  margin:0 0 10px;
  font-size:1rem;
}

body.hubdb-detail-page .tech-dl > div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:8px 0;
  border-bottom:1px solid rgba(0,0,0,0.08);
}
body.hubdb-detail-page .tech-dl > div:last-child{ border-bottom:none; }

body.hubdb-detail-page .tech-dl dt{
  margin:0;
  font-weight:600;
}
body.hubdb-detail-page .tech-dl dd{
  margin:0;
  text-align:right;
  opacity:.9;
  white-space:nowrap;
}

/* Equipment richtext */
body.hubdb-detail-page .stapler-section--equipment .richtext p{ margin:0 0 10px; }
body.hubdb-detail-page .stapler-section--equipment .richtext ul,
body.hubdb-detail-page .stapler-section--equipment .richtext ol{
  margin:10px 0 0 18px;
}

/* Lightbox */
html.lb-open{ overflow:hidden; }

body.hubdb-detail-page .lb{
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
}
body.hubdb-detail-page .lb.is-open{ display:block; }

body.hubdb-detail-page .lb__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.75);
}

body.hubdb-detail-page .lb__panel{
  position:relative;
  width:min(1100px, calc(100% - 24px));
  height:min(80vh, 760px);
  margin:7vh auto 0;
  display:flex;
  align-items:center;
  justify-content:center;
  touch-action: pan-y;
}

body.hubdb-detail-page .lb__img{
  max-width:100%;
  max-height:100%;
  border-radius:12px;
  display:block;
}

body.hubdb-detail-page .lb__close{
  position:absolute;
  top:-8px;
  right:-8px;
  width:40px;
  height:40px;
  border:0;
  border-radius:999px;
  background:#fff;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

body.hubdb-detail-page .lb__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border:0;
  border-radius:999px;
  background:#fff;
  font-size:28px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

body.hubdb-detail-page .lb__prev{ left:-8px; }
body.hubdb-detail-page .lb__next{ right:-8px; }

body.hubdb-detail-page .lb__counter{
  position:absolute;
  bottom:-34px;
  left:0;
  right:0;
  text-align:center;
  color:#fff;
  font-size:.95rem;
  opacity:.9;
}

body.hubdb-detail-page .stapler-thumb{ cursor:zoom-in; }
body.hubdb-detail-page .stapler-main-image a{
  cursor:zoom-in;
  display:block;
}



/* =========================================================
   HUBDB LISTING (Stacked) – gebrauchtstapler
   (dein Block ist lang; ich lasse ihn unangetastet)
   ========================================================= */

.used-listing{
  max-width:1200px;
  margin:24px auto;
  padding:0 16px;
}

.used-listing__header{ margin-bottom: 12px; }
.used-listing__header h1{ margin:0; }

/* Quick Tiles – Desktop Grid, Mobile horizontal scroll */
.used-quick{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:12px;
  margin: 0 0 14px;
}
@media (max-width:1100px){
  .used-quick{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width:820px){
  .used-quick{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width:520px){
  .used-quick{
    display:flex;
    overflow-x:auto;
    gap:10px;
    padding-bottom:6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .used-quick::-webkit-scrollbar{ height:6px; }
  .used-quick::-webkit-scrollbar-thumb{ background:rgba(0,0,0,.15); border-radius:99px; }
}

/* Quick Tiles Container (zweite Definition aus alt – beibehalten) */
.used-quick{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}
@media (max-width: 1100px){
  .used-quick{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .used-quick{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Mobile: 3 pro Reihe */
@media (max-width: 640px){
  .used-quick{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Sehr kleine Geräte: wenn’s zu eng wird -> scroll statt mikroklein */
@media (max-width: 380px){
  .used-quick{
    display:flex;
    overflow-x:auto;
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .used-quick__tile{
    flex: 0 0 108px;
    scroll-snap-align: start;
  }
}

/* Tile: kleiner + sauber quadratisch */
.used-quick__tile{
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0px 1px 4px rgba(0,0,0,0.05);
  cursor: pointer;
  user-select: none;
  padding: 8px;
  text-align: center;
}

.used-quick__tile.is-active{
  border-color: rgba(192, 15, 35, 0.45);
  box-shadow: 0px 2px 10px rgba(192, 15, 35, 0.12);
}

.used-quick__icon{
  width: 40px;
  height: 40px;
  display: block;
}
@media (max-width: 640px){
  .used-quick__icon{ width: 36px; height: 36px; }
}

.used-quick__label{
  font-weight: 800;
  font-size: 11px;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.used-quick__count{
  font-weight: 900;
  font-size: 11px;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,0.05);
}

/* "Weitere Filter" (details) */
.used-more{
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background:#fff;
  overflow:hidden;
  margin-bottom:14px;
}

.used-more__summary{
  padding:12px 14px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
  font-weight:800;
}

.used-more__summary::-webkit-details-marker{ display:none; }

.used-more__meta{
  opacity:.7;
  font-weight:800;
  white-space:nowrap;
}

.used-more__panel{
  padding:12px 14px 14px;
  border-top:1px solid rgba(0,0,0,.08);
}

.used-more__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
}
@media(max-width:900px){
  .used-more__grid{ grid-template-columns:1fr; }
}

/* Filter atoms */
.used-filter{ margin:0; }

.used-filter__row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}

.used-filter__label{
  font-size:.9rem;
  font-weight:700;
}

.used-filter__value{
  font-size:.9rem;
  opacity:.8;
  white-space:nowrap;
}

.used-filter__select{
  width:100%;
  border:1px solid rgba(0,0,0,.15);
  border-radius:10px;
  padding:10px 10px;
  background:#fff;
}

.used-range{ display:grid; gap:8px; }
.used-range input[type="range"]{ width:100%; }

.used-filter--actions{
  display:flex;
  align-items:flex-end;
}

.used-filter__reset{
  width:100%;
  border:1px solid rgba(0,0,0,.15);
  background:#fff;
  border-radius:10px;
  padding:10px 12px;
  font-weight:800;
  cursor:pointer;
}

/* Group title */
.used-group-title{
  margin: 28px 0 12px;
  font-size: 1.35rem;
  font-weight: 800;
  border-bottom:1px solid rgba(0,0,0,0.1);
  padding-bottom:6px;
}

/* Grid */
.used-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
}
@media (max-width:1024px){
  .used-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width:640px){
  .used-grid{ grid-template-columns: 1fr; }
}

/* Card */
.used-card{
  background:#fff;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:12px;
  overflow:hidden;
  box-shadow:
    0px 1px 4px rgba(0,0,0,0.08),
    0px 2px 6px rgba(0,0,0,0.04);
  display:flex;
  flex-direction:column;
}

.used-card__media{
  display:block;
  aspect-ratio: 16 / 11;
  background:#f3f3f3;
  overflow:hidden;
}

.used-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition: transform .25s ease;
}

.used-card:hover .used-card__media img{ transform: scale(1.03); }

.used-card__noimg{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:rgba(0,0,0,0.55);
  font-size:14px;
}

/* Body */
.used-card__body{
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Title */
.used-card__title{
  font-size:15px;
  line-height:1.25;
  margin:0;
}

.used-card__title a{
  color:inherit;
  text-decoration:none;
}
.used-card__title a:hover{ text-decoration:underline; }

/* Badges */
.used-badges{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:10px;
}
@media (max-width:640px){
  .used-badges{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.used-badge{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:6px;
  padding:8px 6px;
  border-radius:12px;
  background: rgba(0,0,0,0.03);
}

.used-badge__icon svg{
  width:28px;
  height:28px;
  display:block;
}

.used-badge__value{
  font-size:12px;
  line-height:14px;
  font-weight:700;
  color:#111;
  white-space:nowrap;
}

/* Price */
.used-price{
  color:#c00f23;
  font-weight:800;
  font-size:18px;
  line-height:1.1;
}

.used-price__note{
  margin-top:4px;
  font-size:11px;
  line-height:1.35;
  color:rgba(0,0,0,0.55);
}

/* CTA */
.used-card__actions{ margin-top:2px; }

.used-btn{
  display:block;
  width:100%;
  text-align:center;
  padding:12px;
  border-radius:12px;
  background:#c00f23;
  color:#fff;
  text-decoration:none;
  font-weight:800;
}

.used-btn:hover{ filter: brightness(0.95); }

/* Subcategory Chips */
.used-subchips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 8px 0 14px;
}

.used-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  cursor:pointer;
  font-weight:800;
  font-size:13px;
  line-height:1;
}

.used-chip.is-active{
  border-color: rgba(192,15,35,.6);
  box-shadow: 0 0 0 3px rgba(192,15,35,.12);
}

.used-chip__count{
  display:inline-block;
  padding:5px 8px;
  border-radius:999px;
  background: rgba(0,0,0,.06);
  font-weight:900;
  font-size:12px;
}

@media (max-width: 520px){
  .used-subchips{
    overflow-x:auto;
    flex-wrap:nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom:6px;
  }
  .used-chip{ flex: 0 0 auto; }
}

/* Topbar */
.used-topbar{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin: 0 0 12px;
}

.used-topbar__reset{
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
  cursor:pointer;
  width: fit-content;
}

/* Quick Tiles: Collapse inaktive */
.used-quick.is-collapsed .used-quick__tile{ display:none; }
.used-quick.is-collapsed .used-quick__tile.is-active{ display:flex; }

/* Chips */
.used-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin: 0 0 14px;
}

.used-chip{
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius:999px;
  padding:8px 10px;
  display:flex;
  gap:8px;
  align-items:center;
  cursor:pointer;
}

.used-chip.is-active{
  border-color: rgba(192,15,35,.6);
  box-shadow: 0 0 0 3px rgba(192,15,35,.12);
}

.used-chip__label{
  font-weight:800;
  font-size:12px;
}

.used-chip__count{
  font-weight:800;
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  background: rgba(0,0,0,.06);
}


/* =========================================================
   PRODUCT LISTING (CRM Products) – Karten
   ========================================================= */

.produktliste-module { margin: 2rem 0; }

/* solange kein Filter-Panel aktiv ist */
.produktliste-layout{ display: block; }

.produkt-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 1.5rem;
  justify-content: center;
  align-content: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.produkt-card{
  position: relative;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* Overlay-Link über der Karte */
.produkt-card-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  text-decoration: none;
}

/* Inhalt über Overlay */
.produkt-card > *{
  position: relative;
  z-index: 2;
}

/* CTA über Overlay */
.produkt-card .produkt-cta{
  position: relative;
  z-index: 3;
}

/* BADGES/RIBBON dürfen NICHT klicken blocken */
.produkt-badge,
.lion-ribbon{
  pointer-events: none;
}

/* Softer Hover */
.produkt-card.is-clickable:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}
.produkt-card.is-clickable{ cursor: pointer; }

/* Badges */
.produkt-badge,
.lion-ribbon{
  z-index: 3;
}

.produkt-badge{
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.15rem 0.6rem;
  background: #c00f23;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  white-space: nowrap;
}

/* LI-ION */
.lion-ribbon{
  position: absolute;
  top: 4.6rem;
  left: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}
.lion-icon{ width: 38px; height:auto; display:block; margin-bottom: 0.15rem; }
.lion-label{
  font-size: 0.58rem;
  font-weight: 800;
  color: #000;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

/* Bild */
.produkt-image-wrapper{
  width: 100%;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f7;
}
.produkt-image{ width: 100%; height:auto; display:block; }

/* Texte */
.produkt-name{ font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; }
.produkt-description{ font-size: 0.9rem; color:#555; margin-bottom:0.15rem; }
.produkt-description-secondary{ font-size:0.8rem; line-height:1.3; color:#666; margin-top:0.1rem; }

/* Specs */
.produkt-specs{
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 0.4rem;
  border-top: 1px solid #eee;
}
.produkt-spec{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 20%;
  min-width: 0;
}
.produkt-spec-icon{ width: 16px; height: 16px; margin-bottom: 0.2rem; }
.produkt-spec-text{
  font-size: 0.6rem;
  line-height: 1;
  font-weight: 600;
  color: #333;
  text-align: center;
  white-space: nowrap;
}
.tragkraft-icon-svg,
.hubhoehe-icon-svg,
.spannung-icon-svg,
.tacho-icon-svg,
.motor-icon-svg{
  width: 100%;
  height: 100%;
  display: block;
}

/* Responsive Karten */
@media (max-width: 900px){
  .produkt-spec { flex: 1 1 30%; }
}


/* =========================================================
   CRM PRODUCT DETAIL PAGE – /produkte/<slug>
   ========================================================= */

.product-detail-page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

.product-detail-page .stapler-header h1{ margin: 0 0 8px; }

.product-detail-page .stapler-subline{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  opacity:.85;
}

/* Layout */
.product-detail-page .stapler-layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap:20px;
  margin-top:18px;
}
@media (max-width: 900px){
  .product-detail-page .stapler-layout{ grid-template-columns: 1fr; }
}
.product-detail-page .stapler-layout > *{ min-width: 0; }

/* Right column spacing */
.product-detail-page .stapler-layout > aside{
  display:flex;
  flex-direction: column;
  gap: 14px;                 /* <-- FIX: Cards kleben nicht mehr */
}

/* Cards */
.product-detail-page .stapler-card{
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  padding:16px;              /* <-- FIX: Text klebt nicht am Rand */
}

.product-detail-page .stapler-card--topcta,
.product-detail-page .stapler-card--specs{
  border:1px solid rgba(0,0,0,0.08);
  border-radius:12px;
  box-shadow: 0px 1px 4px rgba(0,0,0,0.08),
              0px 2px 6px rgba(0,0,0,0.04);
}

/* DL */
.product-detail-page .stapler-dl{ margin:0; }
.product-detail-page .stapler-dl > div{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:10px;
  padding:8px 0;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.product-detail-page .stapler-dl > div:last-child{ border-bottom:none; }
.product-detail-page .stapler-dl dt{ font-weight:600; }
.product-detail-page .stapler-dl dd{
  margin:0;
  opacity:.9;
  text-align:right;
  white-space:nowrap;
}

/* Top CTA specs (rechts) */
.product-detail-page .topcta-specs{
  display:flex;
  gap:18px;
  align-items:flex-start;
  justify-content:flex-start;
  padding-bottom:12px;
  margin-bottom:12px;
  border-bottom:1px solid rgba(0,0,0,.10);
}

.product-detail-page .topcta-spec{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:4px;
}

/* HARDENING gegen globale svg{width:100%} Regeln */
.product-detail-page .topcta-icon{
  width:34px;
  height:34px;
  flex: 0 0 34px;
}
.product-detail-page .topcta-icon svg{
  width:100% !important;
  height:100% !important;
  display:block;
}

.product-detail-page .topcta-value{
  font-weight:400;
  font-size:.90rem;
  line-height:1.1;
  white-space:nowrap;
}

/* CTA in Detail bleibt gleich, nur Layout */
.product-detail-page .produkt-cta{
  width:100%;
}

/* Product Detail: H1 kleiner (überschreibt Base Theme) */
.product-detail-page .stapler-header h1{
  font-size: 2rem;      /* z.B. 32px */
  line-height: 1.15;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

@media (max-width: 640px){
  .product-detail-page .stapler-header h1{
    font-size: 1.6rem;  /* mobile etwas kleiner */
  }
}
  /* =========================================================
   CTA Hover – NUR auf Produkt-Detailseite
   ========================================================= */

.product-detail-page .produkt-cta{
  transition:
    background-color .18s ease,
    transform .12s ease,
    box-shadow .18s ease;
}

.product-detail-page .produkt-cta:hover{
  background: #a50d1d;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(192,15,35,0.25);
}

.product-detail-page .produkt-cta:active{
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(192,15,35,0.22);
}

}

/* =========================================================
   Product Detail Gallery (pd-gallery)
   ========================================================= */

.product-detail-page .pd-gallery__stage{
  width: 100%;
  max-width: 520px;          /* Bild insgesamt kleiner */
  margin: 0 auto;

  aspect-ratio: 1 / 1;       /* kein Springen */
  background: #f4f4f4;
  border-radius: 16px;
  overflow: hidden;

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-page .pd-gallery__img{
  width: 100%;
  height: 100%;
  object-fit: contain;       /* Hauptbild nicht croppen */
  display: block;
}

/* Prev/Next Buttons */
.product-detail-page .pd-gallery__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
}
.product-detail-page .pd-gallery__prev{ left: 10px; }
.product-detail-page .pd-gallery__next{ right: 10px; }
.product-detail-page .pd-gallery__nav:disabled{ opacity:.45; cursor: default; }

/* Counter */
.product-detail-page .pd-gallery__meta{
  margin-top: 10px;
  display: flex;
  justify-content: center;
  font-size: .9rem;
  opacity: .8;
}

/* Thumbs: Desktop 5 */
.product-detail-page .pd-gallery__thumbs{
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, 72px);
  gap: 10px;
  justify-content: center;
}

.product-detail-page .pd-gallery__thumb{
  width: 72px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;

  display: block;
  overflow: hidden;
  border-radius: 10px;
}

.product-detail-page .pd-gallery__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail-page .pd-gallery__thumb.is-active{
  box-shadow: 0 0 0 3px rgba(192, 15, 35, 0.12);
}

/* Mobile: horizontal scroll */
@media (max-width: 640px){
  .product-detail-page .pd-gallery__thumbs{
    display: flex;
    justify-content: center;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .product-detail-page .pd-gallery__thumb{
    flex: 0 0 56px;
    scroll-snap-align: center;
  }
}


/* =========================================================
   Downloads (Product Detail)
   ========================================================= */

.product-detail-page .stapler-downloads{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0px 1px 4px rgba(0,0,0,0.08),
              0px 2px 6px rgba(0,0,0,0.04);
}

.product-detail-page .stapler-downloads__icon{
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  line-height: 0;
}

.product-detail-page .stapler-downloads__icon svg{
  width: 100%;
  height: 100%;
  display:block;
}

.product-detail-page .stapler-downloads__links{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.product-detail-page .stapler-downloads__link{
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
}
.product-detail-page .stapler-downloads__link:hover{
  text-decoration: underline;
}


/* =========================================================
   Modal (Form Popup)
   ========================================================= */

.product-form-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-form-modal[hidden]{ display:none; }

.product-form-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.6);
}

.product-form-modal__panel{
  position:relative;
  width: min(620px, 92%);
  background:#fff;
  border-radius:18px;
  padding:24px;
  z-index:2;
  max-height: 88vh;
  overflow:auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.product-form-modal__close{
  position:absolute;
  top:10px;
  right:12px;
  border:0;
  background:none;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

.product-form-modal__hint{
  margin: 6px 0 16px;
  opacity: .75;
}

html.modal-open{ overflow:hidden; }