.elementor-179949 .elementor-element.elementor-element-58a8851{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-179949 .elementor-element.elementor-element-eec7963{margin:0px 0px calc(var(--kit-widget-spacing, 0px) + 0px) 0px;padding:0px 0px 0px 0px;}/* Start custom CSS for html, class: .elementor-element-eec7963 */.color-picker-container {
  display: flex;
  gap: 24px;
  font-family: system-ui, -apple-system, sans-serif;
  width: 100%;
  max-width: 650px;          /* Begrenzung auf Desktop für saubere Optik */
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-sizing: border-box;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
  gap: 8px;
  flex: 1;
  max-height: 140px;
  overflow-y: auto;
  padding: 6px; 
  box-sizing: border-box;
}


.swatch-item {
  position: relative;
  display: inline-block;
}


.swatch-item input[type="radio"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
  opacity: 0;
}

.swatch-dot {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: var(--color);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}

.swatch-dot:hover {
  transform: scale(1.15);
  z-index: 2;
}

.swatch-item input[type="radio"]:checked + .swatch-dot {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #299529, inset 0 0 0 1px rgba(0,0,0,0.15);
  z-index: 2;
}

.color-preview-panel {
  width: 160px;             /* Feste Breite nur auf Desktop */
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 16px;
  border-left: 1px solid #e2e8f0;
  flex-shrink: 0;
  box-sizing: border-box;
}

.preview-block {
  width: 100%;
  height: 60px;
  border-radius: 8px;
  background-color: #f1f5f9;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
  transition: background-color 0.2s ease;
}

.preview-name { font-weight: 600; font-size: 1rem; color: #1e293b; }
.preview-finish { font-size: 0.85rem; color: #64748b; }
.preview-hex { font-size: 0.8rem; color: #94a3b8; font-family: monospace; margin-top: 4px; }



@media (max-width: 1024px) {
  .color-picker-container {
    max-width: 100%;        /* Hebt die Sperre auf: Nutzt jetzt die volle Breite deines Elementor-Layouts */
  }
}

@media (max-width: 767px) {
  .color-picker-container {
    gap: 8px;               
    padding: 8px;           
  }

  .swatch-grid {
    flex: 0 0 66.66%;
    max-height: 180px;      
    gap: 6px;               
    padding: 8px;           
  }

  .color-preview-panel {
    width: auto;            
    flex: 0 0 33.33%;
    max-width: 33.33%;
    padding-left: 8px;
    padding-right: 5px; 
    border-left: 1px solid #e2e8f0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .preview-block {
    height: 50px;           
  }
  
  .preview-name { 
    font-size: 0.85rem; 
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
  }
  
  .preview-finish { font-size: 0.75rem; }
  .preview-hex { font-size: 0.7rem; }
}/* End custom CSS */