/* ==========================================================================
   rundeaufkleber.css – Runde Aufkleber Produktseite (FADESING2026)
   Produkt 875: Runde Aufkleber gedruckt
   ========================================================================== */

/* --- Gesamtlayout: Bild links, Konfig rechts --- */
.ra-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

/* --- Linke Spalte: Produktbild --- */
.ra-preview {
  flex: 0 0 42%;
  max-width: 42%;
  position: sticky;
  top: 80px;
}

.ra-preview__wrap {
  position: relative;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px;
  text-align: center;
}

.ra-preview__img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.ra-preview__zoom {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #888;
  padding: 6px 0 0;
}

.ra-preview .morepics {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ra-preview .morepics img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

/* --- Rechte Spalte: Info + Konfig + Kauf --- */
.ra-info {
  flex: 1 1 58%;
  min-width: 0;
}

.ra-info h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
  color: #1a1a1a;
}

.ra-short-desc {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* --- Meta-Infos (Lieferzeit, Art.-Nr.) --- */
.ra-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 14px;
}

.ra-meta p {
  margin: 2px 0;
}

.ra-meta strong {
  color: #333;
}

/* --- Anleitung (3 Schritte) --- */
.ra-guide {
  display: flex;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.ra-guide li {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.4;
}

.ra-guide__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6b8e23;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* --- Konfigurator-Bereich --- */
.ra-config {
  background: #fafafa;
  border: 2px solid #6b8e23;
  border-radius: 8px;
  padding: 0;
  margin: 0 0 16px;
  overflow: hidden;
}

.ra-config__header {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  padding: 10px 16px;
  background: #6b8e23;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ra-config__body {
  padding: 16px;
}

/* Schritt-Gruppen innerhalb des Konfigurators */
.ra-step {
  margin-bottom: 16px;
}

.ra-step:last-child {
  margin-bottom: 0;
}

.ra-step__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ra-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #333;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.ra-step__hint {
  font-size: 12px;
  color: #888;
  margin: -4px 0 8px 30px;
}

.ra-step__content {
  padding-left: 30px;
}

/* Trennlinie zwischen Schritten */
.ra-step + .ra-step {
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

/* --- Upload-Box (Dropzone) --- */
.ra-upload-box .textConfigBoxHead {
  display: none;
}

.ra-upload-box .textConfigBoxContent {
  padding: 0;
}

.ra-upload-box .dropzone {
  min-height: 120px;
  border: 2px dashed #d1d5db;
  border-radius: 6px;
  background: #fff;
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s;
}

.ra-upload-box .dropzone:hover,
.ra-upload-box .dropzone.dz-drag-hover {
  border-color: #6b8e23;
  background: #f8faf0;
}

/* --- Staffelpreise --- */
.ra-staffel-wrap {
  margin-bottom: 14px;
}

.ra-staffel-toggle {
  width: 100%;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #6b8e23;
  cursor: pointer;
  transition: background 0.15s;
}

.ra-staffel-toggle:hover {
  background: #f8f9fa;
}

.ra-staffel-wrap.is-empty {
  display: none;
}

/* --- Flaechen-Modul: technische Details ausblenden --- */
.ra-config .flaeche-head,
.ra-config .flaeche-result-row,
.ra-config .flaeche-hidden-meta,
.ra-diameter-hint {
  display: none;
}

/* --- Flaechen-Modul Anpassungen --- */
.ra-config .flaeche_options {
  margin-bottom: 0;
}

.ra-config .flaeche_options label,
.ra-config .flaeche_options .flaeche-text-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.ra-config .flaeche_options select,
.ra-config .flaeche_options input[type="text"],
.ra-config .flaeche_options input[type="number"] {
  width: 100%;
  font-size: 14px;
  padding: 8px 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.ra-config .flaeche_options select:focus,
.ra-config .flaeche_options input:focus {
  border-color: #6b8e23;
  outline: none;
}

/* --- textConfigBox innerhalb Konfigurator --- */
.ra-config .textConfigBox {
  margin-bottom: 0;
}

.ra-config .textConfigBoxHead {
  display: none;
}

.ra-config .textConfigBoxContent select {
  width: 100%;
  font-size: 14px;
  padding: 8px 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  box-sizing: border-box;
}

.ra-config .textConfigBoxContent input.selectbutton {
  width: 100%;
  font-size: 14px;
  padding: 8px 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  box-sizing: border-box;
}

/* --- Durchmesser-Feld (ersetzt Breite+Hoehe) --- */
.ra-diameter-row label {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}

.ra-diameter-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 10px;
}

.ra-diameter-row label {
  margin-right: auto;
}

.ra-diameter-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ra-diameter-input-wrap input#ra-durchmesser {
  width: 90px;
  font-size: 18px;
  font-weight: 700;
  padding: 8px 10px;
  border: 2px solid #6b8e23;
  border-radius: 6px;
  text-align: center;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ra-diameter-input-wrap input#ra-durchmesser:focus {
  border-color: #4a6b14;
  box-shadow: 0 0 0 3px rgba(107, 142, 35, 0.15);
  outline: none;
}

.ra-diameter-input-wrap input.ra-diameter--invalid {
  border-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

.ra-diameter-input-wrap .flaeche-unit {
  font-size: 15px;
  color: #666;
  font-weight: 600;
}

.ra-diameter-range {
  font-size: 12px;
  color: #6b8e23;
  font-weight: 600;
}

.ra-diameter-error {
  display: none;
  flex: 0 0 100%;
  font-size: 12px;
  color: #d32f2f;
  font-weight: 600;
  margin-top: 4px;
}

/* --- Mengen-Buttons (ersetzen +/- und freie Eingabe) --- */
.ra-has-picks .fa-addtobasket__row {
  flex-wrap: wrap;
}

.ra-has-picks .fa-addtobasket__qty {
  flex: 0 0 100%;
  width: 100%;
  margin-bottom: 12px;
}

.ra-qty-picks {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.ra-qty-pick {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px 6px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.ra-qty-pick:hover {
  border-color: #6b8e23;
  background: #fcfdf8;
}

.ra-qty-pick--active {
  border-color: #6b8e23;
  background: #f0f5e0;
  box-shadow: 0 0 0 2px rgba(107, 142, 35, 0.2);
}

.ra-qty-pick__num {
  font-size: 1.3em;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.ra-qty-pick__label {
  font-size: 0.75em;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ra-qty-pick__price {
  font-size: 0.78em;
  color: #6b8e23;
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
}

/* Preis + Warenkorb nebeneinander unter den Buttons */
.ra-has-picks .fa-addtobasket__price {
  flex: 1;
}

.ra-has-picks .fa-addtobasket__btn {
  flex: 0 0 auto;
}

/* --- Rating --- */
.ra-rating {
  margin-top: 12px;
  font-size: 13px;
}

.ra-rating img {
  vertical-align: middle;
}

/* ================================================================
   RESPONSIVE  max-width: 768px
   ================================================================ */
@media (max-width: 768px) {
  .ra-layout {
    flex-direction: column;
    gap: 12px;
  }

  .ra-preview {
    flex: 0 0 100%;
    max-width: 100%;
    position: static;
  }

  .ra-preview__wrap {
    max-width: 280px;
    margin: 0 auto;
  }

  .ra-info {
    flex: 0 0 100%;
  }

  .ra-info h1 {
    font-size: 18px;
  }

  .ra-guide {
    flex-direction: column;
    gap: 6px;
  }

  .ra-guide li {
    font-size: 12px;
  }

  .ra-step__content {
    padding-left: 0;
  }

  .ra-step__hint {
    margin-left: 0;
  }

  .ra-qty-picks {
    flex-wrap: wrap;
  }

  .ra-qty-pick {
    flex: 0 0 calc(33.33% - 4px);
  }
}
