/* ==========================================================================
   sichtschutzfolie.css – Sichtschutzfolie Zuschnitt Produktseite (FADESING2026)
   Produkt 2657: Sichtschutzfolie ASLAN E-300
   ========================================================================== */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.sf-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 --- */
.sf-config {
  background: #fafafa;
  border: 2px solid #6b8e23;
  border-radius: 8px;
  padding: 0;
  margin: 0 0 16px;
  overflow: hidden;
}

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

.sf-config__body {
  padding: 16px;
}

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

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

.sf-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;
}

.sf-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;
}

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

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

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

/* --- Hinweis + Validierung unter Masse-Feldern --- */
.sf-size-info {
  margin-top: 8px;
  padding-left: 30px;
}

.sf-size-hint {
  font-size: 12px;
  color: #6b8e23;
  font-weight: 600;
  margin: 0;
}

.sf-size-error {
  display: none;
  font-size: 12px;
  color: #d32f2f;
  font-weight: 600;
  margin-top: 6px;
  padding: 6px 10px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 4px;
}

/* Ungueltige Eingabe rot umranden */
.sf-input--invalid {
  border-color: #d32f2f !important;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.15);
}

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

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

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

.sf-config .flaeche_options select,
.sf-config .flaeche_options input[type="text"],
.sf-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;
}

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

/* --- Flaechen-Text (Raum/Fensterbezeichnung) --- */
.sf-config .flaeche-text-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

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

/* --- Options-Modul innerhalb Konfigurator (Fensterbezeichnung) --- */
.sf-options-wrap .productoptions {
  margin: 0;
  padding: 0;
}

.sf-options-wrap .textConfigBoxHead {
  display: none;
}

.sf-options-wrap .textConfigBox {
  margin: 0;
  padding: 0;
}

.sf-options-wrap .textConfigBoxContent {
  padding: 0;
}

.sf-options-wrap .textConfigBoxContent input.selectbutton,
.sf-options-wrap .textConfigBoxContent input[type="text"] {
  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;
}

.sf-options-wrap .textConfigBoxContent input:focus {
  border-color: #6b8e23;
  outline: none;
}

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

.sf-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;
}

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

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

/* --- Mengen-Buttons --- */
.sf-has-picks .fa-addtobasket__row {
  flex-wrap: wrap;
}

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

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

.sf-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .sf-size-info {
    padding-left: 0;
  }

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

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