/* ==========================================================================
   product-schild.css – Layout fuer Schildeditor-Produktseiten
   ========================================================================== */

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

/* --- Linke Spalte: Vorschau --- */
.schild-preview {
  flex: 0 0 55%;
  max-width: 55%;
  position: sticky;
  top: 80px;
}

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

.schild-preview__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #6b8e23;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.schild-preview__hint {
  margin-top: 10px;
  font-size: 12px;
  color: #888;
}

.schild-preview__hint i {
  margin-right: 4px;
}

/* --- Rechte Spalte: Info + Konfig + Kauf --- */
.schild-info {
  flex: 1 1 45%;
  min-width: 0;
  overflow: hidden;
}

.schild-info h1 {
  font-size: 22px;
  margin: 0 0 10px;
  line-height: 1.3;
}

.schild-meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

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

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

/* --- Konfigurationsbox --- */
.schild-config {
  background: #fafafa;
  border: 2px solid #6b8e23;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.schild-config .categoryheader {
  font-size: 16px;
  margin: 0 0 12px;
  padding: 0;
  background: none;
  color: #333;
}

.schild-config .textConfigBox {
  margin-bottom: 0;
}

.schild-config .textConfigBoxContent input.selectbutton {
  width: 100%;
  font-size: 16px;
  padding: 10px 12px;
  border: 2px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.schild-config .textConfigBoxContent input.selectbutton:focus {
  border-color: #6b8e23;
  outline: none;
}

/* --- Konfiguration Header --- */
.schild-config .categoryheader {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
  padding: 6px 10px;
  background: #6b8e23;
  color: #fff;
  border-radius: 4px;
  display: block;
}

.schild-config .categoryheader::before {
  display: none;
}

/* --- Shares/Druckansicht (schild-spezifisch, Rest in utilities.css) --- */

/* Alles in rechter Spalte begrenzen */
.schild-info > * {
  max-width: 100%;
  box-sizing: border-box;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .schild-layout {
    flex-direction: column;
  }

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

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