/* ===================================
   Tagesgericht Modal Pop-Up
   =================================== */

.daily-special-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(5px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.daily-special-overlay.active {
    opacity: 1;
    visibility: visible;
}

.daily-special-modal {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    max-width: 560px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: scale(0.95) translateY(-20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.daily-special-overlay.active .daily-special-modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.daily-special-header {
    background: linear-gradient(135deg, rgba(41, 59, 97, 0.08), rgba(88, 140, 190, 0.12));
    color: var(--color-primary);
    padding: 28px 60px 28px 28px;
    position: relative;
    border-bottom: 1px solid rgba(88, 140, 190, 0.15);
}

.daily-special-badge {
    display: inline-block;
    background: rgba(88, 140, 190, 0.1);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--color-secondary);
    border: 1px solid rgba(88, 140, 190, 0.2);
}

.daily-special-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-primary);
}

/* Close Button */
.daily-special-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(88, 140, 190, 0.08);
    border: 1px solid rgba(88, 140, 190, 0.15);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    color: var(--color-secondary);
    font-size: 24px;
    line-height: 1;
    font-weight: 300;
}

.daily-special-close:hover {
    background: rgba(88, 140, 190, 0.15);
    transform: rotate(90deg);
    border-color: var(--color-secondary);
}

/* Modal Body */
.daily-special-body {
    padding: 0;
}

.daily-special-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.daily-special-content {
    padding: 32px 28px 28px;
}

.daily-special-description {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--color-text-light);
    margin: 0 0 24px 0;
}

.daily-special-price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: rgba(207, 224, 234, 0.25);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid rgba(207, 224, 234, 0.5);
}

.daily-special-price-label {
    font-size: var(--font-size-xs);
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.daily-special-price {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1;
}

.daily-special-price-currency {
    font-size: var(--font-size-xl);
    margin-left: 3px;
    opacity: 0.7;
}

/* Modal Footer */
.daily-special-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.daily-special-btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.daily-special-btn-primary {
    background: var(--gradient-primary);
    color: var(--color-text-white);
    box-shadow: 0 2px 8px rgba(41, 59, 97, 0.15);
}

.daily-special-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 59, 97, 0.25);
}

.daily-special-btn-secondary {
    background: transparent;
    color: var(--color-text-light);
    border: 1.5px solid rgba(207, 224, 234, 0.8);
}

.daily-special-btn-secondary:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background: rgba(88, 140, 190, 0.03);
}

/* Responsive Design */
@media (max-width: 768px) {
    .daily-special-modal {
        max-width: 100%;
        margin: 0 10px;
    }
    
    .daily-special-header {
        padding: 24px 50px 24px 24px;
    }
    
    .daily-special-title {
        font-size: var(--font-size-2xl);
    }
    
    .daily-special-image {
        height: 240px;
    }
    
    .daily-special-content {
        padding: 28px 24px 24px;
    }
    
    .daily-special-price {
        font-size: var(--font-size-3xl);
    }
    
    .daily-special-footer {
        flex-direction: column;
    }
    
    .daily-special-btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .daily-special-overlay {
        padding: 15px;
    }
    
    .daily-special-title {
        font-size: var(--font-size-xl);
    }
    
    .daily-special-badge {
        font-size: var(--font-size-xs);
        padding: 6px 12px;
    }
    
    .daily-special-image {
        height: 200px;
    }
    
    .daily-special-content {
        padding: 24px 20px 20px;
    }
    
    .daily-special-description {
        font-size: var(--font-size-base);
    }
    
    .daily-special-price-section {
        padding: 20px;
    }
}

/* Animation für Badge */
@keyframes pulse-subtle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

.daily-special-badge {
    animation: pulse-subtle 4s ease-in-out infinite;
}

/* Accessibility */
.daily-special-overlay:focus-within .daily-special-modal {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
}

/* Verhindert Scrollen wenn Modal offen */
body.daily-special-open {
    overflow: hidden;
}
