/* Version: 6.2 */

/* Haupt-Layout des Optimizers */
.optimizer-wrapper {
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
  }
  
  .selection-panel, .results-panel {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
  }
  
  .selection-panel {
    width: 40%;
    flex-shrink: 0;
  }
  
  .results-panel {
    width: 60%;
    flex-grow: 1;
    position: sticky;
    top: 20px;
  }
  
  .panel-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: var(--space-5);
  }
  
  h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0;
  }
  
  .counter-badge {
      background: var(--brand-blue);
      color: white;
      font-size: 0.8rem;
      font-weight: 600;
      padding: var(--space-1) var(--space-3);
      border-radius: var(--radius-lg);
  }
  
  .back-button {
      margin-left: auto;
  }
  
  .preview-badge {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--warning-amber);
      background: #fffbeb;
      padding: 2px 8px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--warning-amber);
      margin-left: var(--space-3);
  }
  
  /* Stile für die Element-Auswahl (linke Seite) */
  .selection-panel .search-wrapper {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
  }
  
  .selection-panel #elementSearch {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    font-size: 1rem;
    transition: all 0.2s ease;
  }
  
  .selection-panel #elementSearch:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 98, 155, 0.1);
  }
  
  .element-list {
    max-height: 60vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-2);
  }
  
  .element-item {
    display: block;
    padding: var(--space-3);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: var(--radius-sm);
  }
  .element-item:last-child {
    border-bottom: none;
  }
  .element-item:hover {
    background: #f8fafc;
  }
  .element-item.selected {
      background: var(--highlight-blue);
  }
  .element-item label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
  }
  .element-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-blue);
  }
  .element-item .element-name {
    font-weight: 500;
  }
  .element-item .element-path {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
  }
  
  /* Stile für die Ergebnisse (rechte Seite) */
  .results-content .hint {
      padding: var(--space-8);
      background: none;
      box-shadow: none;
      border: none;
  }
  
  .result-section {
      margin-bottom: var(--space-6);
  }
  .result-section h3 {
      font-size: 1.25rem;
      color: var(--brand-blue);
      border-bottom: 1px solid var(--border-color);
      padding-bottom: var(--space-3);
      margin-bottom: var(--space-4);
  }
  .required-blocks-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-3);
  }
  .required-blocks-list li {
      background: var(--highlight-blue);
      color: var(--dark-blue);
      padding: var(--space-2) var(--space-4);
      border-radius: var(--radius-md);
      font-weight: 600;
  }
  
  .coverage-details .block-group {
      margin-bottom: var(--space-5);
  }
  .coverage-details .block-group h4 {
      font-size: 1rem;
      font-weight: 700;
      margin: 0 0 var(--space-3) 0;
  }
  .coverage-details .element-list-small {
      list-style-type: '✓  ';
      padding-left: var(--space-5);
      margin: 0;
      font-size: 0.9rem;
  }
  .coverage-details .element-list-small li {
      margin-bottom: var(--space-2);
  }
  
  .copy-button-wrapper {
      margin-top: var(--space-6);
      text-align: right;
  }
  
  /* Responsive Anpassungen */
  @media (max-width: 992px) {
    .optimizer-wrapper {
      flex-direction: column;
    }
    .selection-panel, .results-panel {
      width: 100%;
      position: static;
    }
    .element-list {
      max-height: 40vh;
    }
  }
  