/**
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 * WINTERRÄTSEL-KALENDER - KLAR & MODERN (28 TAGE)
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 * Ohne milchige Overlays, ohne Glassmorphism-Schleier
 * Mit Fortschrittsanzeige und Musik-Player
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION WRAPPER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.wr-calendar-section {
    padding: 5rem 0 7rem;
    background: linear-gradient(
        to bottom,
        #f9fbff 0%,
        #eef5ff 50%,
        #e3f2fd 100%
    );
    position: relative;
}

.wr-calendar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: 
        0 4px 24px rgba(15, 39, 77, 0.08),
        0 0 0 1px rgba(15, 39, 77, 0.04);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HEADER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.wr-calendar-header {
    text-align: center;
    margin-bottom: 3rem;
}

.wr-calendar-kicker {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #3b82f6;
    margin-bottom: 0.75rem;
}

.wr-calendar-title {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.wr-calendar-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FORTSCHRITTSANZEIGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.wr-calendar-progress {
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.wr-calendar-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

#wr-progress-day-info {
    color: #3b82f6;
}

.wr-progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(15, 39, 77, 0.06);
}

.wr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   KALENDER GRID
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.wr-calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto 2.5rem;
}

@media (min-width: 640px) {
    .wr-calendar-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 768px) {
    .wr-calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 1.5rem;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TÜRCHEN / DAYS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.wr-calendar-day {
    position: relative;
    aspect-ratio: 1;
    border: none;
    border-radius: 16px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 8px rgba(15, 39, 77, 0.08),
        0 0 0 1px rgba(15, 39, 77, 0.04);
    outline: none;
}

.wr-calendar-day:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 3px;
}

/* STATUS: VERGANGEN (PAST) */
.wr-calendar-day--past {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.wr-calendar-day--past:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 12px 24px rgba(16, 185, 129, 0.3),
        0 0 0 1px rgba(16, 185, 129, 0.2);
}

/* STATUS: HEUTE (TODAY) */
.wr-calendar-day--today {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    animation: wr-pulse-today 2s infinite;
}

.wr-calendar-day--today:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 12px 24px rgba(245, 158, 11, 0.4),
        0 0 0 1px rgba(245, 158, 11, 0.3);
}

@keyframes wr-pulse-today {
    0%, 100% {
        box-shadow: 
            0 4px 16px rgba(245, 158, 11, 0.4),
            0 0 0 1px rgba(245, 158, 11, 0.2);
    }
    50% {
        box-shadow: 
            0 8px 24px rgba(245, 158, 11, 0.6),
            0 0 0 2px rgba(245, 158, 11, 0.4);
    }
}

/* STATUS: GESPERRT (LOCKED) */
.wr-calendar-day--locked {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.wr-calendar-day--locked:hover {
    transform: scale(0.98);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BADGES & ICONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.wr-calendar-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #d97706;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wr-calendar-icon {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 1.25rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LEGENDE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.wr-calendar-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #475569;
}

.wr-calendar-legend > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wr-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wr-dot-past {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.wr-dot-today {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.wr-dot-locked {
    background: #cbd5e1;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MINI-MUSIKPLAYER (FLOATING BOTTOM RIGHT)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.wr-mini-player {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border-radius: 999px;
    box-shadow: 
        0 8px 24px rgba(30, 64, 175, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wr-mini-player:hover {
    box-shadow: 
        0 12px 32px rgba(30, 64, 175, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.wr-player-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wr-player-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.wr-player-btn:active {
    transform: scale(0.95);
}

.wr-play-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1rem;
}

.wr-volume-control {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.wr-volume-icon {
    font-size: 1rem;
    line-height: 1;
}

.wr-volume-slider {
    width: 70px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
}

.wr-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wr-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wr-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.wr-volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DARK MODE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

[data-theme="dark"] .wr-calendar-section {
    background: linear-gradient(
        to bottom,
        #0f172a 0%,
        #1e293b 50%,
        #334155 100%
    );
}

[data-theme="dark"] .wr-calendar-container {
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .wr-calendar-title {
    color: #f1f5f9;
}

[data-theme="dark"] .wr-calendar-subtitle,
[data-theme="dark"] .wr-calendar-legend {
    color: #cbd5e1;
}

[data-theme="dark"] .wr-progress-bar {
    background: #1e293b;
}

[data-theme="dark"] .wr-calendar-day--locked {
    background: #1e293b;
    color: #64748b;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 768px) {
    .wr-calendar-section {
        padding: 3rem 0 5rem;
    }
    
    .wr-calendar-container {
        padding: 2rem 1rem;
        border-radius: 16px;
    }
    
    .wr-calendar-header {
        margin-bottom: 2rem;
    }
    
    .wr-calendar-progress {
        margin-bottom: 2rem;
    }
    
    .wr-calendar-grid {
        margin-bottom: 2rem;
    }
    
    .wr-music-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .wr-calendar-legend {
        gap: 1rem;
        font-size: 0.8rem;
    }
}
