/* Schließzeiten Notice Styles */

/* Base styles for all notice types */
.closing-notice {
    font-family: inherit;
    z-index: 9999;
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

.closing-notice-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    max-width: 100%;
}

.closing-notice-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.closing-notice-text p {
    margin: 0;
}

.closing-notice-close {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: inherit;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    width: 24px;
    height: 24px;
    opacity: 0.9;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    flex-shrink: 0;
}

.closing-notice-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.closing-notice-close svg {
    width: 12px;
    height: 12px;
    display: none;
}

/* Banner Style (Top of page) */
.closing-notice-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    border-radius: 0;
    animation: slideInFromTop 0.5s ease-out;
    z-index: 999999;
}

.closing-notice-banner .closing-notice-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Add top padding to body when banner is active */
body.has-closing-banner {
    padding-top: 70px !important;
}

/* Popup overlay */
.closing-notice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

/* Popup Style (Modal overlay) */
.closing-notice-popup {
    position: static;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    margin: 0;
    animation: popIn 0.4s ease-out;
    transform: none;
}

/* Widget Style (Side widget) */
.closing-notice-widget {
    position: fixed;
    bottom: 25vh;
    right: 25px;
    padding: 20px;
    max-width: 350px;
    width: 90%;
    animation: slideInFromRight 0.4s ease-out;
}

.closing-notice-close svg {
	width: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .closing-notice-banner {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .closing-notice-banner .closing-notice-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .closing-notice-popup {
        padding: 20px;
        max-width: 95%;
    }
    
    .closing-notice-widget {
        bottom: 15px;
        right: 15px;
        left: auto;
        max-width: calc(100vw - 30px);
        width: auto;
    }
    
    body.has-closing-banner {
        padding-top: 85px !important;
    }
}

@media (max-width: 480px) {
    .closing-notice-text {
        font-size: 13px;
    }
    
    .closing-notice-close {
        min-width: 28px;
        height: 28px;
        padding: 6px;
    }
    
    .closing-notice-close svg {
        width: 14px;
        height: 14px;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade out animation */
.closing-notice.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Remove body padding when banner is dismissed */
.closing-notice-banner.fade-out ~ body,
body.banner-dismissed {
    padding-top: 0 !important;
    transition: padding-top 0.3s ease;
}

/* Ensure proper stacking with existing elements */
.closing-notice-banner {
    z-index: 999999;
}

.closing-notice-popup {
    z-index: 1000000;
}

.closing-notice-widget {
    z-index: 999998;
}
