/* Tab Navigation */
.ltb-tabs {
  border-bottom: 1px solid #ddd;
  margin: 0 -12px 15px;
  padding: 0 12px;
  display: flex;
  gap: 2px;
}

.ltb-tab-button {
  padding: 10px 20px;
  background: #f0f0f1;
  border: 1px solid #ddd;
  border-bottom: none;
  cursor: pointer;
  margin-bottom: -1px;
  font-weight: 500;
  color: #666;
}

.ltb-tab-button.active {
  background: var(--color-primary);
  border-bottom: 1px solid #fff;
  color: var(--color-text-inverse);
}

/* Meta Box Styling */
.laser-specifications {
  display: grid;
  gap: 25px;
}

.field-group {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 20px;
}

.field-group h3 {
  margin: -20px -20px 20px;
  padding: 12px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
  line-height: 1.4;
}

.field-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}

.field-row:last-child {
  margin-bottom: 0;
}

.field-row label {
  font-weight: 500;
  color: #1d2327;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-wrapper input {
  flex: 1;
  max-width: 300px;
}

.unit {
  color: #666;
  font-size: 13px;
  min-width: 35px;
}

/* Datasheet Section */

.datasheet-controls {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 15px;
  flex: 1;
}

.datasheet-controls {
  flex: 1;
}

/* Equipment Section */
.equipment-items {
  display: grid;
  gap: 15px;
}

.equipment-item {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
}

.equipment-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.equipment-field {
  margin-bottom: 12px;
}

.equipment-field:last-child {
  margin-bottom: 0;
}

/* Tab Content */
.ltb-tab-content {
  display: none;
}

.ltb-tab-content.active {
  display: block;
}

/* Responsive Anpassungen */
@media screen and (max-width: 782px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .input-wrapper input {
    max-width: 100%;
  }
}

/* BASIS INFORMATIONEN */

.document-section {
  margin: var(--spacing-4) 0;
}

.document-list {
  display: grid;
  gap: var(--spacing-4);
}

/* Document Items */
.document-item {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
}

.document-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.document-drag-handle {
  cursor: move;
  color: #666;
  font-size: 20px;
  line-height: 1;
  padding: 0 5px;
}

.document-remove {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 20px;
  padding: 0 5px;
}

/* Document Fields */
.document-fields {
  display: grid;
  gap: 15px;
}

@media screen and (min-width: 783px) {
  .document-fields {
    grid-template-columns: 200px 1fr;
    gap: 15px;
  }
}

.document-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.document-field label {
  font-weight: 500;
  color: #1d2327;
}

.document-field input[type="text"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Upload Controls */
.document-upload-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Document Preview */
.document-preview {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
}

.document-preview a {
  color: #2271b1;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

/* Sortable Placeholder */
.document-item-placeholder {
  border: 2px dashed #c3c4c7;
  background: #f6f7f7;
  border-radius: 4px;
  height: 100px;
}

/* Controls Section */
.document-controls {
  margin-top: 20px;
}

/* Responsive Anpassungen */
@media screen and (max-width: 782px) {
  .document-fields {
    grid-template-columns: 1fr;
  }

  .document-upload-controls {
    flex-direction: column;
  }
}

/* Hover States */
.document-remove:hover {
  color: #b32d2e;
}

.document-item:hover {
  border-color: #8c8f94;
}

.document-preview a:hover {
  color: #135e96;
}

/* Animation für neue Items */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.document-item {
  animation: fadeInDown 0.2s ease-out;
}

/* KURZBESCHREIBUNG */

/* Ergänzung zum bestehenden CSS */
.product-description-fields {
  margin: var(--spacing-4) 0;
}

.description-field {
  margin-bottom: var(--spacing-4);
}

.description-field label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--spacing-2);
}

.description-field .description {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  margin-bottom: var(--spacing-3);
}

/* TinyMCE Editor Anpassungen */
.description-field .wp-editor-container {
  border: 1px solid var(--color-gray-300);
}

.description-field .wp-editor-tools {
  padding: var(--spacing-2);
}

#product_short_description_ifr {
  min-height: 200px;
}

/* Spektren Meta Box Hauptcontainer */
.spectra-section {
  padding: var(--spacing-4);
  background: var(--color-surface);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-base);
}

/* Spektren Gruppen Styling */
.spectra-group {
  margin-bottom: var(--spacing-4);
  background: var(--color-surface);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-base);
  transition: box-shadow var(--transition);
}

.spectra-group:hover {
  box-shadow: var(--shadow-sm);
}

/* Gruppen Header mit Drag Handle und Remove Button */
.spectra-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-3);
  background: var(--color-gray-100);
  border-bottom: 1px solid var(--color-gray-300);
  border-radius: var(--radius-base) var(--radius-base) 0 0;
}

.spectra-group-drag-handle {
  cursor: move;
  color: var(--color-gray-500);
  font-size: var(--text-xl);
  line-height: 1;
  user-select: none;
}

.spectra-group-remove {
  padding: var(--spacing-1) var(--spacing-2);
  color: var(--color-gray-700);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.spectra-group-remove:hover {
  color: var(--color-error);
  background: var(--color-gray-200);
}

/* Gruppen Inhalt */
.spectra-group-fields {
  padding: var(--spacing-4);
}

.spectra-group-field {
  margin-bottom: var(--spacing-4);
}

.spectra-group-title {
  width: 100%;
  padding: var(--spacing-2);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-base);
}

/* Spektren Items Container */
.spectra-items {
  margin: var(--spacing-4) 0;
  min-height: 50px; /* Platz für leere Listen */
}

/* Einzelne Spektrum Items */
.spectra-item {
  margin-bottom: var(--spacing-3);
  padding: var(--spacing-3);
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-base);
}

.spectra-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-3);
}

.spectra-item-drag-handle {
  cursor: move;
  color: var(--color-gray-500);
  font-size: var(--text-lg);
}

.spectra-item-remove {
  color: var(--color-gray-700);
  background: none;
  border: none;
  transition: color var(--transition);
}

.spectra-item-remove:hover {
  color: var(--color-error);
}

/* Bildvorschau Bereich */
.spectra-item-preview {
  margin-bottom: var(--spacing-3);
}

.spectra-item-image {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-bottom: var(--spacing-3);
  background: var(--color-gray-200);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-base);
  overflow: hidden;
}

.spectra-item-image img {
  display: block;
  width: 100%;
  height: auto;
}

.spectra-item-image:empty {
  min-height: 200px;
}

/* Beschreibungsfeld */
.spectra-item-field textarea {
  width: 100%;
  min-height: 100px;
  padding: var(--spacing-2);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-base);
  resize: vertical;
}

/* Sortable Placeholder Styles */
.spectra-group-placeholder,
.spectra-item-placeholder {
  border: 2px dashed var(--color-gray-300);
  background: var(--color-gray-100);
  margin: var(--spacing-2) 0;
  border-radius: var(--radius-base);
  visibility: visible !important;
}

.spectra-group-placeholder {
  height: 200px;
}

.spectra-item-placeholder {
  height: 100px;
}

/* Drag and Drop Zustände */
.spectra-group.ui-sortable-helper,
.spectra-item.ui-sortable-helper {
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  opacity: 0.9;
}

/* Steuerelemente */
.spectra-controls {
  margin-top: var(--spacing-4);
  padding-top: var(--spacing-4);
  border-top: 1px solid var(--color-gray-300);
}

.add-spectra-item,
#add-spectra-group {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2) var(--spacing-4);
  color: var(--color-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-base);
  transition: all var(--transition);
}

.add-spectra-item:hover,
#add-spectra-group:hover {
  color: var(--color-surface);
  background: var(--color-primary);
}

/* Responsive Anpassungen */
@media (max-width: 782px) {
  .spectra-group-fields {
    padding: var(--spacing-3);
  }

  .spectra-item {
    padding: var(--spacing-2);
  }

  .spectra-item-image {
    max-width: 100%;
  }

  .add-spectra-item,
  #add-spectra-group {
    width: 100%;
    justify-content: center;
  }
}

/* Tabellen-Container mit horizontalem Scrollen auf mobilen Geräten */
.produkt__comparison-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Basis-Tabellenstil */
.produkt__comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

/* Header-Stile */
.produkt__comparison-header {
  padding: 1.25rem 1rem;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-weight: var(--font-bold);
  text-align: left;
  white-space: nowrap;
}

/* Abgerundete Ecken für den Header */
.produkt__comparison-header:first-child {
  border-top-left-radius: var(--radius-lg);
}

.produkt__comparison-header:last-child {
  border-top-right-radius: var(--radius-lg);
}

/* Sektions-Header */
.produkt__comparison-section-header {
  padding: 1rem;
  background: var(--color-surface-light);
  color: var(--color-primary);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
}

/* Zeilen und Zellen */
.produkt__comparison-table tr:not(.produkt__comparison-section) {
  border-bottom: 1px solid var(--color-gray-200);
}

.produkt__comparison-table tr:last-child {
  border-bottom: none;
}

/* Geteilte Werte speziell formatieren */
.produkt__comparison-value--shared {
  text-align: center;
  font-weight: var(--font-medium);
}

/* Zellenformatierung */
.produkt__comparison-label,
.produkt__comparison-value {
  padding: 1rem;
  vertical-align: top;
}

.produkt__comparison-label {
  font-weight: var(--font-medium);
  color: var(--color-text);
  background: var(--color-gray-50);
  width: 25%;
}

.produkt__comparison-value {
  color: var(--color-text);
}

/* Einheiten */
.produkt__comparison-unit {
  color: var(--color-text-light);
  font-size: 0.9em;
  margin-left: 0.25rem;
}

/* Striped Effect */
.produkt__comparison-table tbody tr:nth-child(even):not(.produkt__comparison-section) {
  background-color: var(--color-gray-50);
}

/* Hover-Effekt */
.produkt__comparison-table tbody tr:hover:not(.produkt__comparison-section) {
  background-color: var(--color-gray-100);
}



/* Res