/**
 * CockpitOS CM-Immo Theme - Shop Hours Widget (CM-Immo Style v2.0)
 * 
 * Komplett neu designt im Cookie-Theme Stil
 * Mehrere Display-Modi für verschiedene Use-Cases
 * 
 * @package CockpitOS_Light_Theme
 * @version 2.0.0
 */

/* ═══════════════════════════════════════════════════════════
   Container & Base
   ═══════════════════════════════════════════════════════════ */

.cockpit-shop-hours {
    background: linear-gradient(135deg, var(--color-cream, #fdf6e9) 0%, #ffffff 100%);
    color: var(--color-gray-800, #1f2937);
    position: relative;
    overflow: hidden;
}

/* Decorative Background Elements */
.cockpit-shop-hours::before {
    content: '🕐';
    position: absolute;
    top: 5%;
    right: 8%;
    font-size: 8rem;
    opacity: 0.05;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.cockpit-shop-hours::after {
    content: '⏰';
    position: absolute;
    bottom: 10%;
    left: 5%;
    font-size: 6rem;
    opacity: 0.05;
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
    z-index: 1;
}

.cockpit-shop-hours__container {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Section Header */
.cockpit-shop-hours .cm-section-header {
    margin-bottom: var(--spacing-12, 4rem);
}

/* ═══════════════════════════════════════════════════════════
   MODE 1: CARD GRID (Default) - Moderne Karten
   ═══════════════════════════════════════════════════════════ */

.cockpit-shop-hours--full .cockpit-shop-hours__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-8, 3rem);
}

.cockpit-shop-hours__item {
    background: #ffffff;
    border-radius: var(--radius-3xl, 32px);
    padding: var(--spacing-8, 3rem);
    box-shadow: 0 8px 24px rgba(218, 32, 50, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
}

.cockpit-shop-hours__item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(218, 32, 50, 0.15);
    border-color: var(--color-secondary, #F25363);
}

/* Status Badge (Offen/Geschlossen) */
.cockpit-shop-hours__item::before {
    content: 'GEÖFFNET';
    position: absolute;
    top: var(--spacing-4, 1.5rem);
    right: var(--spacing-4, 1.5rem);
    background: linear-gradient(135deg, var(--color-success, #22c55e) 0%, var(--color-success-dark, #16a34a) 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full, 999px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Closed Status */
.cockpit-shop-hours__item--closed::before {
    content: 'GESCHLOSSEN';
    background: linear-gradient(135deg, var(--color-error, #ef4444) 0%, var(--color-error-dark, #dc2626) 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Shop Icon/Avatar */
.cockpit-shop-hours__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-secondary, #F25363) 0%, var(--color-primary, #da2032) 100%);
    border-radius: var(--radius-2xl, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: var(--spacing-4, 1.5rem);
    box-shadow: 0 8px 16px rgba(218, 32, 50, 0.3);
}

.cockpit-shop-hours__shop-name {
    font-family: var(--font-family-heading, 'Baloo 2', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary, #da2032);
    margin-bottom: var(--spacing-2, 0.75rem);
    line-height: 1.3;
}

.cockpit-shop-hours__category {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-secondary, #F25363);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-4, 1.5rem);
}

/* Opening Hours List */
.cockpit-shop-hours__hours {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--color-gray-700, #374151);
}

.cockpit-shop-hours__hours p {
    margin: 0 0 var(--spacing-2, 0.75rem) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-2, 0.75rem) var(--spacing-3, 1rem);
    background: var(--color-cream, #fdf6e9);
    color: var(--color-gray-800, #1f2937);
    border-radius: var(--radius-lg, 16px);
    transition: all 0.3s ease;
}

.cockpit-shop-hours__hours p:hover {
    background: var(--color-accent-beige, #faf3e0);
    color: var(--color-gray-800, #1f2937);
    transform: translateX(4px);
}

.cockpit-shop-hours__hours p:last-child {
    margin-bottom: 0;
}

/* Day Labels */
.cockpit-shop-hours__hours strong {
    font-weight: 700;
    color: var(--color-primary, #da2032);
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cockpit-shop-hours__hours strong::before {
    content: '📅';
    font-size: 1rem;
}

/* Time Text */
.cockpit-shop-hours__hours span {
    color: var(--color-gray-600, #4b5563);
    font-weight: 600;
}

/* Today Highlight */
.cockpit-shop-hours__hours p.is-today {
    background: linear-gradient(135deg, var(--color-secondary, #F25363) 0%, var(--color-primary, #da2032) 100%);
    color: #ffffff;
    font-weight: 700;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(218, 32, 50, 0.3);
}

.cockpit-shop-hours__hours p.is-today strong,
.cockpit-shop-hours__hours p.is-today span {
    color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════
   MODE 2: TIMELINE WEEK - Wochenübersicht
   ═══════════════════════════════════════════════════════════ */

.cockpit-shop-hours--timeline .cockpit-shop-hours__timeline {
    background: #ffffff;
    border-radius: var(--radius-3xl, 32px);
    padding: var(--spacing-10, 4rem);
    box-shadow: 0 8px 24px rgba(218, 32, 50, 0.08);
}

.cockpit-shop-hours__timeline-header {
    text-align: center;
    margin-bottom: var(--spacing-8, 3rem);
}

.cockpit-shop-hours__timeline-title {
    font-family: var(--font-family-heading, 'Baloo 2', sans-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary, #da2032);
    margin-bottom: var(--spacing-2, 0.75rem);
}

.cockpit-shop-hours__timeline-subtitle {
    font-size: 1rem;
    color: var(--color-gray-600, #4b5563);
}

.cockpit-shop-hours__timeline-days {
    display: grid;
    gap: var(--spacing-4, 1.5rem);
}

.cockpit-shop-hours__timeline-day {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: var(--spacing-6, 2rem);
    padding: var(--spacing-5, 1.75rem) var(--spacing-6, 2rem);
    background: var(--color-cream, #fdf6e9);
    color: var(--color-gray-800, #1f2937);
    border-radius: var(--radius-2xl, 24px);
    border-left: 4px solid var(--color-secondary, #F25363);
    transition: all 0.3s ease;
}

.cockpit-shop-hours__timeline-day:hover {
    background: #ffffff;
    border-left-width: 8px;
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(218, 32, 50, 0.1);
}

.cockpit-shop-hours__timeline-day.is-today {
    background: linear-gradient(135deg, var(--color-accent-pink, #fce4ec) 0%, var(--color-accent-beige, #faf3e0) 100%);
    color: var(--color-gray-800, #1f2937);
    color: var(--color-gray-800, #1f2937);
    border-left-color: var(--color-primary, #da2032);
    border-left-width: 6px;
}

.cockpit-shop-hours__day-label {
    font-family: var(--font-family-heading, 'Baloo 2', sans-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary, #da2032);
}

.cockpit-shop-hours__day-bar {
    height: 12px;
    background: linear-gradient(90deg, var(--color-secondary, #F25363) 0%, var(--color-primary, #da2032) 100%);
    border-radius: var(--radius-full, 999px);
    position: relative;
    box-shadow: 0 2px 8px rgba(218, 32, 50, 0.3);
}

.cockpit-shop-hours__day-time {
    font-weight: 700;
    color: var(--color-primary, #da2032);
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   MODE 3: COMPACT BAR - Header/Footer
   ═══════════════════════════════════════════════════════════ */

.cockpit-shop-hours--minimal {
    background: linear-gradient(135deg, var(--color-accent-pink, #fce4ec) 0%, var(--color-accent-beige, #faf3e0) 100%);
    color: var(--color-gray-800, #1f2937);
    color: var(--color-gray-800, #1f2937);
}

.cockpit-shop-hours--minimal .cockpit-shop-hours__container {
    max-width: 100%;
}

.cockpit-shop-hours__minimal-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-6, 2rem);
    flex-wrap: wrap;
}

.cockpit-shop-hours__minimal-badge {
    background: #ffffff;
    border-radius: var(--radius-2xl, 24px);
    padding: var(--spacing-4, 1.5rem) var(--spacing-6, 2rem);
    display: flex;
    align-items: center;
    gap: var(--spacing-4, 1.5rem);
    box-shadow: 0 4px 16px rgba(218, 32, 50, 0.1);
    transition: all 0.3s ease;
}

.cockpit-shop-hours__minimal-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(218, 32, 50, 0.15);
}

.cockpit-shop-hours__minimal-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-secondary, #F25363) 0%, var(--color-primary, #da2032) 100%);
    border-radius: var(--radius-xl, 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cockpit-shop-hours__minimal-content {
    flex: 1;
    min-width: 200px;
}

.cockpit-shop-hours__minimal-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-secondary, #F25363);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.cockpit-shop-hours__minimal-title {
    font-family: var(--font-family-heading, 'Baloo 2', sans-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary, #da2032);
    margin: 0;
}

.cockpit-shop-hours__minimal-time {
    font-size: 0.875rem;
    color: var(--color-gray-600, #4b5563);
    margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════
   MODE 4: TODAY HIGHLIGHT - Große Today Card
   ═══════════════════════════════════════════════════════════ */

.cockpit-shop-hours--today {
    background: linear-gradient(135deg, var(--color-primary, #da2032) 0%, var(--color-secondary, #F25363) 100%);
    text-align: center;
}

.cockpit-shop-hours__today-card {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: var(--radius-3xl, 32px);
    padding: var(--spacing-12, 4rem);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    position: relative;
}

.cockpit-shop-hours__today-icon {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, var(--color-secondary, #F25363) 0%, var(--color-primary, #da2032) 100%);
    border-radius: var(--radius-full, 999px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto var(--spacing-6, 2rem);
    box-shadow: 0 12px 24px rgba(218, 32, 50, 0.4);
}

.cockpit-shop-hours__today-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-secondary, #F25363);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-2, 0.75rem);
}

.cockpit-shop-hours__today-title {
    font-family: var(--font-family-heading, 'Baloo 2', sans-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary, #da2032);
    margin-bottom: var(--spacing-6, 2rem);
}

.cockpit-shop-hours__today-time {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-secondary, #F25363) 0%, var(--color-primary, #da2032) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-4, 1.5rem);
}

.cockpit-shop-hours__today-status {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-success, #22c55e) 0%, var(--color-success-dark, #16a34a) 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-full, 999px);
    box-shadow: 0 8px 16px rgba(34, 197, 94, 0.3);
}

.cockpit-shop-hours__today-status::before {
    content: '●';
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════════════════════ */

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.cockpit-shop-hours__item {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.cockpit-shop-hours__item:nth-child(1) { animation-delay: 0.1s; }
.cockpit-shop-hours__item:nth-child(2) { animation-delay: 0.2s; }
.cockpit-shop-hours__item:nth-child(3) { animation-delay: 0.3s; }
.cockpit-shop-hours__item:nth-child(4) { animation-delay: 0.4s; }
.cockpit-shop-hours__item:nth-child(5) { animation-delay: 0.5s; }
.cockpit-shop-hours__item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════
   Responsive Design
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .cockpit-shop-hours--full .cockpit-shop-hours__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--spacing-6, 2rem);
    }
    
    .cockpit-shop-hours__timeline-day {
        grid-template-columns: 100px 1fr auto;
        gap: var(--spacing-4, 1.5rem);
    }
}

@media (max-width: 768px) {
    .cockpit-shop-hours {
        padding: var(--spacing-12, 4rem) var(--spacing-4, 1.5rem);
    }
    
    .cockpit-shop-hours--full .cockpit-shop-hours__grid {
        grid-template-columns: 1fr;
    }
    
    .cockpit-shop-hours__item {
        padding: var(--spacing-6, 2rem);
    }
    
    .cockpit-shop-hours__timeline-day {
        grid-template-columns: 1fr;
        gap: var(--spacing-3, 1rem);
        text-align: center;
    }
    
    .cockpit-shop-hours__minimal-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cockpit-shop-hours__today-title {
        font-size: 2rem;
    }
    
    .cockpit-shop-hours__today-time {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cockpit-shop-hours__shop-name {
        font-size: 1.25rem;
    }
    
    .cockpit-shop-hours__today-card {
        padding: var(--spacing-8, 3rem) var(--spacing-6, 2rem);
    }
    
    .cockpit-shop-hours__hours strong {
        min-width: 80px;
        font-size: 0.875rem;
    }
}
    line-height: 1.6;
}

.cockpit-shop-hours__hours-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.cockpit-shop-hours__hours-line:last-child {
    margin-bottom: 0;
}

.cockpit-shop-hours__days {
    flex-shrink: 0;
    margin-right: 20px;
}

.cockpit-shop-hours__time {
    text-align: right;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .cockpit-shop-hours__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .cockpit-shop-hours {
        padding: 40px 20px;
    }

    .cockpit-shop-hours--minimal {
        padding: 60px 20px;
    }

    .cockpit-shop-hours__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cockpit-shop-hours__category {
        margin-bottom: 40px;
    }

    .cockpit-shop-hours__category-title {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }

    .cockpit-shop-hours__shop-name {
        font-size: 0.9375rem;
    }

    .cockpit-shop-hours__hours {
        font-size: 0.8125rem;
    }

    .cockpit-shop-hours__minimal-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .cockpit-shop-hours__minimal-list {
        gap: 20px;
    }

    .cockpit-shop-hours__minimal-item {
        padding: 16px 0;
    }
}

@media (max-width: 480px) {
    .cockpit-shop-hours {
        padding: 30px 15px;
    }

    .cockpit-shop-hours--minimal {
        padding: 40px 15px;
    }

    .cockpit-shop-hours__item {
        margin-bottom: 15px;
    }

    .cockpit-shop-hours__minimal-title {
        font-size: 1.75rem;
        margin-bottom: 24px;
    }

    .cockpit-shop-hours__minimal-eyebrow {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    .cockpit-shop-hours__minimal-item .cockpit-shop-hours__shop-name {
        font-size: 1rem;
    }

    .cockpit-shop-hours__minimal-item .cockpit-shop-hours__hours {
        font-size: 0.875rem;
    }
}

/* ========================================
   Minimal Mode
   ======================================== */

.cockpit-shop-hours--minimal {
    text-align: center;
    padding: 80px 20px;
}

.cockpit-shop-hours__minimal-content {
    max-width: 700px;
    margin: 0 auto;
}

.cockpit-shop-hours__minimal-eyebrow {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-error, #ef4444);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.cockpit-shop-hours__minimal-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 40px 0;
    line-height: 1.2;
}

.cockpit-shop-hours__minimal-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cockpit-shop-hours__minimal-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cockpit-shop-hours__minimal-item:last-child {
    border-bottom: none;
}

.cockpit-shop-hours__minimal-item--center {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 24px;
    margin-bottom: 8px;
}

.cockpit-shop-hours__minimal-item .cockpit-shop-hours__shop-name {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.cockpit-shop-hours__minimal-item .cockpit-shop-hours__hours {
    font-size: 1rem;
}

/* ========================================
   Dark Theme Optimization
   ======================================== */

.cockpit-shop-hours__hours-line {
    opacity: 0.9;
}

.cockpit-shop-hours__item:hover .cockpit-shop-hours__shop-name {
    color: #ffffff;
}

.cockpit-shop-hours__item:hover .cockpit-shop-hours__hours-line {
    opacity: 1;
}

