/* ==========================================================================
   heckscheibe.css – Heckscheiben-Lochfolien-Konfigurator
   ========================================================================== */

/* --- Layout: Vorschau links, Konfig rechts (erbt von schild-layout Pattern) --- */
.heck-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.heck-preview {
  flex: 0 0 55%;
  max-width: 55%;
  position: sticky;
  top: 80px;
}

.heck-preview__wrap {
  position: relative;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.heck-preview__img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

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

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

/* --- Rechte Spalte --- */
.heck-info {
  flex: 1 1 45%;
  min-width: 0;
  overflow: hidden;
}

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

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

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

.heck-step {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e5e5;
}

.heck-step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.heck-step__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}

.heck-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #6b8e23;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.heck-step select,
.heck-step input[type="number"],
.heck-step input[type="text"] {
  width: 100%;
  font-size: 15px;
  padding: 8px 10px;
  border: 2px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.heck-step select:focus,
.heck-step input:focus {
  border-color: #6b8e23;
  outline: none;
}

.heck-step__hint {
  font-size: 12px;
  color: #888;
  margin: 6px 0 2px;
}

.heck-step__hint i {
  margin-right: 3px;
}

.heck-optional {
  font-weight: 400;
  font-size: 12px;
  color: #999;
}

.heck-step__row {
  display: flex;
  gap: 12px;
}

.heck-step__row > * {
  flex: 1;
}

/* --- Manuelle Eingabefelder --- */
.heck-manuell-fields {
  margin-top: 10px;
  padding: 12px;
  background: #f0f5e6;
  border: 1px solid #6b8e23;
  border-radius: 6px;
}

.heck-manuell-fields label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 3px;
  color: #555;
}

/* --- Dropzone --- */
.heck-dropzone {
  border: 2px dashed #6b8e23;
  border-radius: 6px;
  padding: 24px 16px;
  text-align: center;
  color: #666;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heck-dropzone:hover,
.heck-dropzone.dz-drag-hover {
  background: #f0f5e6;
  border-color: #557316;
}

.heck-dropzone i {
  font-size: 24px;
  margin-right: 8px;
  color: #6b8e23;
}

/* --- Vorschau-Button --- */
.heck-btn-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #6b8e23;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.heck-btn-preview:hover {
  background: #557316;
}

.heck-btn-preview:disabled {
  background: #aaa;
  cursor: not-allowed;
}

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

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

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

  .heck-step__row {
    flex-direction: column;
  }
}
