/**
 * Marker Music - Theme: Studio
 *
 * MUSIK + INFORMATIK - Hell und freundlich
 * Inspiriert von: GarageBand, Musik-Apps, bunte Pads
 *
 * Ein helles, einladendes Design mit bunten Musik-Akzenten.
 */

:root {
    /* ==========================================================================
       Hintergrund - Hell und freundlich
       ========================================================================== */

    --color-bg: #f5f7fa;              /* Helles Grau-Blau */
    --color-bg-alt: #eef1f5;
    --color-bg-gradient: linear-gradient(
        180deg,
        #f5f7fa 0%,
        #e8ecf2 100%
    );

    /* ==========================================================================
       Texte - Dunkel, gut lesbar
       ========================================================================== */

    --color-text: #1a1a2e;
    --color-text-muted: #4a5568;
    --color-text-subtle: #718096;

    /* ==========================================================================
       Akzentfarben - Bunte Musik-Pads
       ========================================================================== */

    /* Primaer: Leuchtendes Blau - Vertrauen, Klarheit */
    --color-primary: #4f46e5;
    --color-primary-dark: #4338ca;
    --color-primary-light: #818cf8;

    /* Sekundaer: Frisches Gruen - Aktion, Go */
    --color-secondary: #10b981;
    --color-secondary-dark: #059669;
    --color-secondary-light: #34d399;

    /* Akzent: Warmes Orange - Energie */
    --color-accent: #f59e0b;
    --color-accent-dark: #d97706;

    /* Pad-Farben (wie auf einem Sequencer) */
    --color-pad-1: #ef4444;           /* Rot - Drums */
    --color-pad-2: #f59e0b;           /* Orange - Melodie */
    --color-pad-3: #10b981;           /* Gruen - System */
    --color-pad-4: #3b82f6;           /* Blau - Tracks */
    --color-pad-5: #8b5cf6;           /* Violett */
    --color-pad-6: #ec4899;           /* Pink */

    /* ==========================================================================
       Oberflaechen - Weiss mit subtilen Schatten
       ========================================================================== */

    --color-surface: #ffffff;
    --color-surface-hover: #f8fafc;
    --color-surface-active: #f1f5f9;

    --color-border: #e2e8f0;
    --color-border-strong: #cbd5e1;

    /* ==========================================================================
       Overlays
       ========================================================================== */

    --color-overlay-light: rgba(255, 255, 255, 0.8);
    --color-overlay-medium: rgba(255, 255, 255, 0.9);
    --color-overlay-dark: rgba(255, 255, 255, 0.95);

    /* ==========================================================================
       Gradienten - Bunt und lebendig
       ========================================================================== */

    --gradient-primary: linear-gradient(135deg, #4f46e5, #7c3aed);
    --gradient-secondary: linear-gradient(135deg, #10b981, #34d399);
    --gradient-accent: linear-gradient(135deg, #f59e0b, #fbbf24);
    --gradient-playful: linear-gradient(135deg, #ef4444, #f59e0b, #10b981);
    --gradient-title: linear-gradient(135deg, #4f46e5, #ec4899, #f59e0b);
    --gradient-rainbow: linear-gradient(90deg, #ef4444, #f59e0b, #10b981, #3b82f6, #8b5cf6);

    /* ==========================================================================
       Schatten - Weich und modern
       ========================================================================== */

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);

    --shadow-glow: 0 4px 20px rgba(79, 70, 229, 0.25);
    --shadow-glow-hover: 0 8px 30px rgba(79, 70, 229, 0.35);
    --shadow-glow-strong: 0 12px 40px rgba(79, 70, 229, 0.4);

    --shadow-glow-secondary: 0 4px 20px rgba(16, 185, 129, 0.25);
    --shadow-glow-accent: 0 4px 20px rgba(245, 158, 11, 0.25);

    /* ==========================================================================
       Blur
       ========================================================================== */

    --backdrop-blur-sm: blur(8px);
    --backdrop-blur-md: blur(12px);
    --backdrop-blur-lg: blur(20px);

    /* ==========================================================================
       Status
       ========================================================================== */

    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    /* ==========================================================================
       Print
       ========================================================================== */

    --color-print-bg: #ffffff;
    --color-print-text: #1a1a2e;
    --color-print-border: #e2e8f0;
    --color-print-text-muted: #4a5568;
}

/* ==========================================================================
   Theme-spezifische Styles
   ========================================================================== */

body {
    background: var(--color-bg-gradient);
}

/* Titel mit buntem Gradient */
.landing-header h1,
#start-overlay h1,
.print-header h1 {
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Primary Buttons */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow-hover);
    transform: translateY(-2px);
}

/* Secondary Buttons */
.btn-secondary {
    background: white;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
    background: var(--color-secondary);
    color: white;
}

/* Aktive Auswahl */
.btn-option.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Gruppen mit Pad-Farben
   ========================================================================== */

.group-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.group-item:nth-child(1) { border-left: 4px solid var(--color-pad-1); }
.group-item:nth-child(2) { border-left: 4px solid var(--color-pad-2); }
.group-item:nth-child(3) { border-left: 4px solid var(--color-pad-3); }
.group-item:nth-child(4) { border-left: 4px solid var(--color-pad-4); }

.group-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ==========================================================================
   Preset Buttons - Bunte Pads
   ========================================================================== */

.preset-btn {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    color: var(--color-text);
    transition: all 0.2s ease;
}

.preset-btn:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.preset-btn::before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: var(--space-2);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.preset-btn[data-preset="single"]::before {
    content: "1";
    background: var(--color-pad-1);
}

.preset-btn[data-preset="pair"]::before {
    content: "2";
    background: var(--color-pad-2);
}

.preset-btn[data-preset="group"]::before {
    content: "4";
    background: var(--color-pad-3);
}

.preset-btn[data-preset="class"]::before {
    content: "8+";
    background: var(--color-pad-4);
}

.preset-btn .preset-name {
    color: var(--color-text);
    font-weight: 600;
}

.preset-btn small {
    color: var(--color-text-muted);
}

.preset-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.preset-btn.active .preset-name,
.preset-btn.active small {
    color: white;
}

.preset-btn.active::before {
    background: white;
    color: var(--color-primary);
}

/* ==========================================================================
   Cards und Sections
   ========================================================================== */

.card,
.print-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Statistik Display
   ========================================================================== */

.stat-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.stat-value {
    color: var(--color-primary);
    font-weight: 700;
}

/* ==========================================================================
   Info Banner
   ========================================================================== */

.print-info-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.05));
    border: 2px solid var(--color-secondary);
}

.print-info-banner .info-icon {
    color: var(--color-secondary);
}

.print-info-banner .info-text {
    color: var(--color-text);
}

.print-info-banner .info-text strong {
    color: var(--color-secondary-dark);
}

/* ==========================================================================
   Marker Preview
   ========================================================================== */

.markers-preview {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.marker-card {
    background: white;
    border: 1px dashed var(--color-border-strong);
    transition: all 0.2s ease;
}

.marker-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Print Button
   ========================================================================== */

.btn-print {
    background: var(--gradient-secondary);
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow-glow-secondary);
}

.btn-print:hover {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.print-section h2 {
    color: var(--color-text-muted);
    position: relative;
    padding-left: var(--space-4);
}

.print-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-rainbow);
    border-radius: 2px;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.print-section {
    animation: fade-in-up 0.3s ease forwards;
}

.group-item {
    animation: fade-in-up 0.3s ease forwards;
}

.group-item:nth-child(1) { animation-delay: 0.05s; }
.group-item:nth-child(2) { animation-delay: 0.1s; }
.group-item:nth-child(3) { animation-delay: 0.15s; }
.group-item:nth-child(4) { animation-delay: 0.2s; }

/* ==========================================================================
   Focus States
   ========================================================================== */

.btn-option:focus-visible,
.preset-btn:focus-visible,
.qty-btn:focus-visible,
.btn-print:focus-visible {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* ==========================================================================
   Play Page - Gleiches helles Theme
   ========================================================================== */

/* Keine Ueberschreibungen - konsistent hell */
