.harmony-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.harmony-header h4 {
    margin: 0;
}

.palette-info {
    position: relative;
    margin-top: -8px
}

.tooltip-trigger {
    color: #666;
    cursor: help;
    font-size: 16px;
    transition: color 0.2s ease;
}

.tooltip-trigger:hover {
    color: #333;
}

.palette-tooltip {
    display: none;
    position: fixed; /* Geändert von absolute zu fixed für Mausposition */
    padding: 8px 12px;
    background: #333;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    pointer-events: none; /* Verhindert Flackern */
    max-width: 250px;
}

/* Kleine Bildschirme */
@media (max-width: 768px) {
    .palette-tooltip {
        max-width: 200px;
    }
}

/**
 * Add these CSS styles to ensure the modal is visible when the active class is added
 * You can either add this to your existing CSS file or insert it using JavaScript
 */

/* Basic styles for the color guide modal */
.color-guide-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000; /* Ensure it's above everything else */
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto; /* Allow scrolling */
}

/* Show the modal when it has the active class */
.color-guide-modal.active {
    display: block;
    opacity: 1;
}

/* Modal content container */
.color-guide-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
}

/* Close button */
.color-guide-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
}

/* Brutalist Style Guide Modal Styles */
.brutalist-style-guide {
    font-family: 'Space Grotesk', sans-serif;
}

.brutalist-style-guide .color-guide-header {
    border-bottom: 4px solid #000;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.brutalist-style-guide .color-guide-header h3 {
    font-size: 28px;
    letter-spacing: 1px;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
}

.brutalist-style-guide .color-guide-section {
    margin-bottom: 30px;
    position: relative;
}

.brutalist-style-guide h4 {
    font-size: 18px;
    letter-spacing: 1px;
    border-left: 4px solid #000;
    padding-left: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Color swatches */
.brutalist-style-guide .color-swatches-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.brutalist-style-guide .color-swatch-info {
    display: flex;
    flex-direction: column;
}

.brutalist-style-guide .color-swatch {
    width: 100%;
    height: 100px;
    border: 2px solid #000;
    margin-bottom: 10px;
}

.brutalist-style-guide .color-swatch-details h5 {
    margin: 0 0 5px 0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
}

.brutalist-style-guide .color-swatch-details code {
    display: inline-block;
    padding: 4px 6px;
    background: #f0f0f0;
    font-family: monospace;
    margin-bottom: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
}

.brutalist-style-guide .color-swatch-details p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Color metrics */
.brutalist-style-guide .color-metrics-container {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.brutalist-style-guide .color-metric {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brutalist-style-guide .color-metric h5 {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
}

.brutalist-style-guide .metric-value {
    font-size: 24px;
    font-weight: 700;
}

.brutalist-style-guide .wcag-badge {
    margin-left: auto;
}

.brutalist-style-guide .wcag-status {
    display: inline-block;
    padding: 4px 8px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 3px;
}

.brutalist-style-guide .wcag-status[data-status="AAA"] {
    background-color: #22c55e;
    color: #fff;
}

.brutalist-style-guide .wcag-status[data-status="AA"] {
    background-color: #3b82f6;
    color: #fff;
}

.brutalist-style-guide .wcag-status[data-status="AA Large"] {
    background-color: #f59e0b;
    color: #fff;
}

.brutalist-style-guide .wcag-status[data-status="Fail"] {
    background-color: #ef4444;
    color: #fff;
}

/* Typography section */
.brutalist-style-guide .typography-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.brutalist-style-guide .typography-group h5 {
    margin: 0 0 10px 0;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
}

.brutalist-style-guide .typography-specs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.brutalist-style-guide .typography-specs li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Design principles */
.brutalist-style-guide .design-principles {
    padding-left: 20px;
}

.brutalist-style-guide .design-principles li {
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Preview section */
.brutalist-style-guide .color-guide-preview {
    padding: 30px;
    margin-bottom: 20px;
    border: 2px solid #000;
}

.brutalist-style-guide .color-guide-preview h1 {
    margin: 0 0 15px 0;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 2px;
}

.brutalist-style-guide .color-guide-preview p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    max-width: 80%;
}

/* Example cards */
.brutalist-style-guide .example-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.brutalist-style-guide .example-card {
    padding: 20px;
    border: 2px solid #000;
}

.brutalist-style-guide .example-card h5 {
    margin: 0 0 15px 0;
    font-weight: 700;
    font-size: 16px;
}

.brutalist-style-guide .example-card p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.4;
}

.brutalist-style-guide .example-card button {
    border: 2px solid #000;
    padding: 8px 15px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
}

/* Footer */
.brutalist-style-guide .color-guide-footer {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brutalist-style-guide .color-guide-download-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    font-family: 'Space Grotesk', sans-serif;
}

.brutalist-style-guide .guide-version {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .brutalist-style-guide .color-swatches-grid,
    .brutalist-style-guide .typography-details,
    .brutalist-style-guide .example-cards {
        grid-template-columns: 1fr;
    }

    .brutalist-style-guide .color-guide-preview p {
        max-width: 100%;
    }
}

/* Material Design Mockup Styles */
.material-style {
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.material-card {
    background-color: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
    width: 100%;
    max-width: 400px;
    transition: box-shadow 0.3s ease;
}

.material-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.material-card h2 {
    margin: 0 0 8px 0;
    color: #6200EE; /* Default primary color */
    font-weight: 500;
    font-size: 2.5em;
    line-height: 1.2;
}

.material-card .subtitle {
    color: #5F6368; /* Material Design text secondary color */
    margin: 0 0 16px 0;
    font-weight: 400;
    font-size: 1.1em;
}

.material-card .mockup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

.material-card .footer-text {
    color: #5F6368;
    font-size: 0.9em;
}

.material-card .mockup-action {
    background-color: #6200EE; /* Default primary color */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.875em;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.material-card .mockup-action:hover {
    opacity: 0.9;
}

/* Style guide modal styles */
.material-style-guide {
    font-family: 'Roboto', sans-serif;
}

.material-style-guide .color-guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.material-style-guide .color-guide-header h3 {
    margin: 0;
    font-weight: 500;
    font-size: 1.5em;
    color: #202124;
}

.material-style-guide .close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #5F6368;
}

.material-style-guide h4 {
    font-weight: 500;
    color: #202124;
    margin: 1.5em 0 0.75em;
}

.material-style-guide .color-swatches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.material-style-guide .color-swatch {
    width: 100%;
    height: 80px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.material-style-guide .color-swatch-details h5 {
    margin: 0 0 4px 0;
    font-weight: 500;
    color: #202124;
}

.material-style-guide code {
    background-color: #F5F5F5;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.material-style-guide .guide-version {
    color: #5F6368;
    font-size: 0.8em;
    text-align: right;
    margin-top: 32px;
}

/* Placeholder styles */
.placeholder-card {
    background-color: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 24px 0;
    width: 100%;
    max-width: 400px;
}

.placeholder-header {
    height: 150px;
    background-color: #6200EE;
}

.placeholder-content {
    padding: 16px;
}

.placeholder-line {
    height: 16px;
    background-color: #E0E0E0;
    border-radius: 4px;
    margin-bottom: 16px;
    width: 100%;
}

.placeholder-button {
    height: 36px;
    width: 100px;
    background-color: #6200EE;
    border-radius: 4px;
    margin-top: 24px;
}