/**
 * COUNTDOWN TIMER CSS
 *
 * Styles für Overlay und Fixed-Banner
 * - Overlay Animation (Einblenden + Zoom → Fixed-Banner)
 * - Fixed-Banner mit Sticky-Position
 */

/* ===== OVERLAY ===== */
.countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.countdown-overlay.countdown-overlay-show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.countdown-overlay-content {
    animation: countdownZoomIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes countdownZoomIn {
    from {
        opacity: 0;
        transform: scale(0.6);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.countdown-overlay-timer {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(255, 165, 0, 0.4);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.countdown-timer-large {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.countdown-overlay-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.countdown-overlay-price {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-overlay-hint {
    font-size: 0.85rem;
    opacity: 0.9;
    font-style: italic;
    margin-top: 15px;
}

/* ===== FIXED BANNER ===== */
.countdown-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #FFA500 0%, #FFD700 100%);
    color: #1a1a1a;
    padding: 12px 20px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.35);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.countdown-banner.countdown-banner-show {
    opacity: 1;
    visibility: visible;
    animation: slideDownBanner 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animiere auch den Header nach unten gleichzeitig */
body {
    transition: padding-top 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.countdown-banner.countdown-banner-hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes slideDownBanner {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.countdown-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
}

.countdown-banner-text {
    white-space: nowrap;
    display: inline-block;
    color: #1a1a1a;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.countdown-banner-time {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 1px;
    background: rgba(26, 26, 26, 0.15);
    color: #1a1a1a;
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
    min-width: 140px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.countdown-banner-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    padding: 4px 8px;
    color: #1a1a1a;
    font-weight: bold;
}

.countdown-banner-close:hover {
    opacity: 1;
    color: #d32f2f;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .countdown-timer-large {
        font-size: 3rem;
    }

    .countdown-overlay-timer {
        padding: 40px 25px;
        border-radius: 16px;
    }

    .countdown-overlay-text {
        font-size: 1.2rem;
    }

    .countdown-overlay-price {
        font-size: 1.5rem;
    }

    .countdown-banner {
        padding: 10px 15px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .countdown-banner-time {
        font-size: 0.95rem;
        padding: 3px 8px;
        min-width: 100px;
    }

    .countdown-banner-close {
        right: 10px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .countdown-timer-large {
        font-size: 2rem;
    }

    .countdown-overlay-timer {
        padding: 30px 20px;
    }

    .countdown-overlay-text {
        font-size: 1rem;
    }

    .countdown-overlay-price {
        font-size: 1.2rem;
    }

    .countdown-banner {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .countdown-banner-text {
        white-space: normal;
    }

    .countdown-banner-time {
        font-size: 0.85rem;
        padding: 2px 6px;
        min-width: 90px;
    }
}

/* ===== HIDE BANNER WHEN EMPTY ===== */
.countdown-banner-hidden {
    display: none !important;
}
