/* =====================================================================
   variants.css – Variantenschalter (nur für den Entwurf, nicht Teil des
   Designs; wird nicht in das Contao-Theme übernommen)
   ===================================================================== */
.variants {
  position: fixed;
  left: 0.75rem;                   /* unten links – rechts sitzt der „Nach oben“-Link */
  bottom: 0.75rem;
  z-index: 200;
  width: min(18rem, calc(100vw - 1.5rem));
  font: 12px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #e6e6e6;
  background: #202124;
  border: 1px solid #5f6368;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.variants:not([open]) { width: auto; }   /* zugeklappt nur der Reiter, kollidiert nicht mit „Nach oben“ */
.variants summary {
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.variants summary::-webkit-details-marker { display: none; }
.variants summary::after { content: "▲"; font-size: 10px; opacity: 0.7; }
.variants[open] summary::after { content: "▼"; }
.variants summary:focus-visible { outline: 2px solid #8ab4f8; outline-offset: -2px; box-shadow: none; }
.variants__body { padding: 0 0.75rem 0.75rem; border-top: 1px solid #3c4043; }
.variants fieldset { border: 0; margin: 0.6rem 0 0; padding: 0; }
.variants legend { font-weight: 700; color: #9aa0a6; padding: 0; margin-bottom: 0.25rem; }
.variants__options { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.variants__options label {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.2rem 0.45rem;
  border: 1px solid #5f6368;
  border-radius: 4px;
  cursor: pointer;
}
.variants__options input { margin: 0; accent-color: #8ab4f8; }
.variants__options label:has(input:checked) { background: #3c4043; border-color: #8ab4f8; }
.variants__options input:focus-visible { outline: 2px solid #8ab4f8; outline-offset: 1px; box-shadow: none; }
.variants__swatch {
  width: 0.9em; height: 0.9em; border-radius: 2px; display: inline-block;
}
.variants__info {
  margin: 0.75rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid #3c4043;
  color: #9aa0a6;
}
.variants__info dl { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 0.75rem; row-gap: 0.1rem; }
.variants__info dt { color: #9aa0a6; }
.variants__info dd { margin: 0; color: #e6e6e6; }
.variants__actions { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.variants__actions button {
  flex: 1;
  font: inherit;
  padding: 0.35rem 0.5rem;
  color: #e6e6e6;
  background: #303134;
  border: 1px solid #5f6368;
  border-radius: 4px;
  cursor: pointer;
}
.variants__actions button:hover { background: #3c4043; }
.variants__actions button:focus-visible { outline: 2px solid #8ab4f8; outline-offset: 1px; box-shadow: none; }
.variants__status { min-height: 1.2em; margin-top: 0.4rem; color: #81c995; }
