:root {
    /* Standard Palette (Initial) */
    --c-primary: #18cc63;
    --c-secondary: #1f2937;
    --c-background: #ffffff;
    --c-surface: #f3f4f6;
    --c-text: #111827;

    /* UI Variablen */
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    background-color: #f9fafb;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Layout Helpers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111;
    font-weight: 700;
    font-size: 1.2rem;
}
.nav-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.1s, opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background-color: var(--c-primary); color: #fff; } /* Dynamisch */
.btn-secondary { background-color: #e5e7eb; color: #374151; }

/* Palette Grid (Steuerung) */
.controls-section {
    margin: 40px 0;
}
.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}
.color-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s;
}
.color-card:hover { transform: translateY(-2px); }
.color-preview {
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0,0,0,0.1);
}
.color-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hex-code {
    font-family: monospace;
    font-weight: bold;
    color: #555;
    cursor: pointer;
}
.lock-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #9ca3af;
    transition: color 0.2s;
}
.lock-btn.locked { color: var(--c-primary); }

/* Preview Section / Mockup */
.preview-section { margin-bottom: 60px; }
.preview-header { text-align: center; margin-bottom: 30px; }
.mockup-window {
    background: var(--c-background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: background-color 0.3s ease;
}
.mockup-nav {
    background: rgba(0,0,0,0.05);
    padding: 12px 20px;
    display: flex;
    gap: 8px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; background: #d1d5db; }
.mockup-content {
    padding: 60px;
    color: var(--c-text);
}
.mockup-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.mockup-text { flex: 1; min-width: 300px; }
.preview-h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--c-text);
}
.preview-p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.8;
}
.mockup-buttons { display: flex; gap: 15px; }

/* Dynamische Buttons in der Preview */
.preview-btn-primary {
    background-color: var(--c-primary);
    color: #fff; /* Einfachheitshalber weiß, könnte berechnet werden */
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: default;
}
.preview-btn-secondary {
    background-color: transparent;
    color: var(--c-text);
    border: 2px solid var(--c-text);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    cursor: default;
}

/* Mockup Visual Elements */
.visual-card {
    width: 280px;
    height: 320px;
    background-color: var(--c-surface);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.visual-icon {
    width: 60px;
    height: 60px;
    background-color: var(--c-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}
.visual-bar {
    height: 15px;
    background-color: var(--c-text);
    opacity: 0.1;
    border-radius: 10px;
    width: 100%;
}
.visual-bar.short { width: 60%; }

.mockup-stats {
    margin-top: 60px;
    display: flex;
    gap: 60px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 30px;
}
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--c-primary);
}
.stat-label { font-size: 0.9rem; opacity: 0.7; }

/* SEO Content */
.content-section {
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.content-section h2 { margin-bottom: 20px; font-size: 2rem; }
.content-section h3 { margin: 30px 0 10px; }
.content-section p { margin-bottom: 15px; color: #4b5563; }

/* Footer */
.footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 40px 0;
    margin-top: auto;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-links a {
    color: #6b7280;
    text-decoration: none;
    margin-right: 20px;
}
.footer-links a:hover { color: var(--c-primary); }

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(0);
    transition: transform 0.3s, opacity 0.3s;
    opacity: 1;
    z-index: 1000;
}
.toast.hidden {
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .mockup-content { padding: 30px; }
    .mockup-hero { flex-direction: column; text-align: center; }
    .mockup-buttons { justify-content: center; }
}