.plm-variants-topbar-wrap {
  position: sticky;
  top: 0;                 /* bleibt ganz oben stehen */
  z-index: 1000;          /* über Content, unter Header-Overlays */
  width: 100%;
  background: var(--bg-dark);
  height: 80px;
  display: flex;
  align-items: center;
}

  .plm-variants-topbar {
    width: 100%;
    max-width: 1200px; /* bleibt bei euren 1200px */
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    line-height: 1;
    color: #fff;
  }
  .plm-variants-topbar-left,
  .plm-variants-topbar-right {
    white-space: nowrap;
    text-transform: uppercase;
  }

  /* ===== Grid Wrapper ===== */
  .plm-variants-wrap {
    width: 100%;
  }
  .plm-variants-inner {
    width: 100%;
    max-width: 1200px; /* bleibt bei euren 1200px */
    margin: 0 auto;
    padding: 18px 16px 40px 16px;
  }

  /* ===== Variants Grid ===== */
  .plm-variants-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  /* Responsive: Tablet -> 2, Mobile -> 1 */
  @media (max-width: 980px) {
    .plm-variants-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 640px) {
    .plm-variants-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  }

  /* ===== Card ===== */
  .plm-variant-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
  }

  /* Image: fixed height 400px, all equal size */
  .plm-variant-image {
    width: 100%;
    height: 400px;           /* mindestens 400px hoch */
    background: #f2f2f2;
    position: relative;
    overflow: hidden;
  }
  .plm-variant-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;       /* gleiche Größe, auch wenn Quelle unterschiedlich */
    object-position: center;
  }

  /* Steckbrief */
  .plm-variant-body {
    padding: 14px 14px 16px 14px;
  }
  .plm-variant-title {
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 10px 0;
    color: #1b1b1b;
  }
  .plm-variant-specs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
  }
  .plm-variant-specs li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #333;
  }
  .plm-variant-specs .label {
    opacity: .85;
  }
  .plm-variant-specs .value {
    font-weight: 700;
    white-space: nowrap;
  }

  /* ===== Add-to-cart Button zentriert ===== */
  .plm-variant-actions{
    margin-top: 12px;
    text-align: center;
  }

  /* ===== Modal (bildschirmfüllend) ===== */
  .plm-modal-overlay{
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.78);
    display: none;            /* hidden by default */
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .plm-modal-overlay.is-open{
    display: flex;
  }
  .plm-modal-dialog{
    position: relative;
    height: 90vh;             /* 90% Höhe */
    max-width: calc(100vw - 48px);
    width: auto;              /* dynamisch */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .plm-modal-dialog img{
    height: 100%;
    width: auto;              /* Breite dynamisch anhand Höhe */
    max-width: 100%;
    display: block;
    object-fit: contain;      /* nichts abschneiden */
    border-radius: 12px;
    background: #111;
  }
  .plm-modal-close{
    position: absolute;
    top: -10px;
    right: -10px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: #fff;
    color: #000;
    font-size: 22px;
    line-height: 38px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.35);
  }

/* ===== Hold states ===== */
.plm-variant-card.is-held-other {
  opacity: .5;
}

/* ===== Held-by-other Warnhinweis ===== */
.plm-held-note{
  margin-top: 12px;
  padding: 8px 10px;
  background: #f00000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border-radius: 10px;
  line-height: 1.25;
}

.plm-held-me-timer {
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
  font-weight: 700;
  background-color: var(--bg-dark);
  color: #fff;
}

.plm-variant-card.is-held-other .plm-variant-actions {
  display: none; /* Button unsichtbar */
}

/* ===== Preis Darstellung ===== */
.plm-variant-price {
  font-size: 18px;
  font-weight: 700;
  text-align: right;
  color: var(--bg-dark);
  margin: 0 0 10px 0;
}

.plm-variants-topbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.plm-variants-count {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.plm-variants-price-range {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
  margin-top: 5px;
}

.product-add-to-cart-grid {
    margin-top: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    background: var(--bg-dark);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

/* ===== Filter bar under topbar ===== */
.plm-filterbar-wrap{
  width: 100%;
  background: #f5f5f5;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.plm-filterbar{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plm-filterbar-left{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap; /* auf sehr schmalen Screens umbricht */
}

.plm-filterbar select{
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15);
  padding: 0 10px;
  background: #fff;
  font-size: 13px;
  max-width: 240px;
}

.plm-filter-reset{
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15);
  padding: 0 12px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}
.plm-filter-reset:disabled{
  opacity: .5;
  cursor: default;
}

.plm-filterbar-right{
  font-size: 13px;
  opacity: .85;
  white-space: nowrap;
}

@media (max-width: 640px){
  .plm-filterbar{
    align-items: flex-start;
  }
  .plm-filterbar select{
    width: 100%;
    max-width: none;
  }
}

/* ===== Created badge im Bild ===== */
.plm-variant-image { position: relative; }

.plm-created-badge{
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 5;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 10px;
  line-height: 1;
  backdrop-filter: blur(2px);
}

/* ===== Admin Copy Badge ===== */
.plm-variant-image { position: relative; }

.plm-admin-copy{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}
.plm-admin-copy i{
  font-size: 14px;
  line-height: 1;
}
.plm-admin-copy:hover{
  filter: brightness(1.08);
}
  .plm-brief-wrap{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 16px 40px;
  }

  .plm-brief-grid{
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 */
    gap: 22px;
    align-items: start;
  }

  @media (max-width: 820px){
    .plm-brief-grid{
      grid-template-columns: 1fr;
    }
  }

  .plm-brief-left{
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
    padding: 18px;
  }

  .plm-brief-title{
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--bg-dark);
    line-height: 1.15;
  }

  .plm-brief-desc{
    margin: 0 0 14px 0;
    font-size: 14px;
    line-height: 1.3em;
    color: #222;
    opacity: .92;
  }

  .plm-brief-desc h4 {
      font-size: 16px;
      text-transform: uppercase;
  }

  .plm-brief-sep{
    border: 0;
    height: 3px;
    background: rgba(0,0,0,.12);
    border-radius: 999px;
    margin: 16px 0;
  }

  .plm-brief-attrs{
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
  }

  .plm-brief-attrs li{
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 14px;
    color: #222;
  }
  .plm-brief-attrs .label{ opacity: .85; }
  .plm-brief-attrs .value{ font-weight: 800; color: var(--bg-dark); white-space: nowrap; }

  .plm-brief-actions{
    margin-top: 16px;
    text-align: left;
  }

.plm-brief-price{
  font-size: 26px;
  font-weight: 900;
  color: var(--bg-dark);
  text-align: right;
  margin: 14px 0 14px 0;
}

  .plm-brief-right{
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
    overflow: hidden;
  }
  .plm-brief-right img{
    width: 100%;
    height: auto;          /* dynamisch */
    display: block;
    object-fit: contain;
    background: #f2f2f2;
  }

  .plm-brief-note{
    margin-top: 10px;
    font-size: 13px;
    opacity: .8;
  }

.plm-brief-actions{
  margin-top: 16px;
  text-align: center;   /* Button + Hinweis zentriert */
}

.plm-brief-note{
  margin-top: 10px;
  font-size: 13px;
  opacity: .8;
  text-align: center;
}

.plm-brief-image-wrap{
  position: relative;
}

.plm-brief-created{
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
  backdrop-filter: blur(2px);
}

.plm-brief-title-row{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.plm-brief-title{
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--bg-dark);
  line-height: 1.15;
}

.plm-brief-plantnum{
  font-size: 14px;
  font-weight: 800;
  color: var(--bg-dark);
  white-space: nowrap;
  opacity: .9;
}

.is-disabled {
  background-color: #f2f2f2;
  color: #909090;
}

.plm-brief-back{
  margin-top: 28px;
  text-align: center;
}

.plm-brief-backlink{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--bg-dark);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  transition: all .15s ease;
}

.plm-brief-backlink:hover{
  background: var(--bg-dark);
  color: #fff;
}

.plm-brief-features{
  margin-top:18px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px 18px;
}

.plm-feature{
  display:flex;
  gap:12px;
  align-items:flex-start;
  font-size:14px;
}

.plm-feature i{
  font-size:18px;
  opacity:.7;
  margin-top:3px;
}

.plm-feature-label{
  display:block;
  font-weight:600;
  font-size:13px;
  margin-bottom:3px;
  opacity:.8;
}

.plm-feature-text{
  font-size:14px;
}

.plm-feature-yes{
  color:#2e7d32;
  font-weight:600;
}

.plm-dots{
  display:flex;
  gap:4px;
}

.plm-dots::before{
  content:"";
}

.plm-dots span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#ddd;
}

.plm-dots span.active{
  background:#f2b705;
}

