/* Color Swatches Grid */
.color-swatches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
}

.color-swatch {
    background-color: var(--bg, gray);
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.color-swatch p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Automatisch helle Schrift für dunkle Farben */
.color-swatch.dark-bg {
    color: #fff;
}

.color-swatch.light-bg {
    color: #1a1a1a;
}

/* Farbfamilien-Überschriften im Grid */
.color-family-title {
    grid-column: 1 / -1;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--color-border, #ddd);
}

.color-family-title:first-child {
    margin-top: 0;
}
