/* ========================================
   Cookie Consent Banner Styles
   (Like ig-oldenburg.de)
   ======================================== */

/* Cookie Banner Container */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px 30px;
    z-index: 99998;
    display: none;
    border-top: 3px solid #13736c;
}

.cookie-consent-banner.show {
    display: block;
    animation: slideUp 0.4s ease-out;
}

/* Cookie Banner Content */
.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Cookie Icon and Text */
.cookie-banner-text {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.cookie-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.cookie-message {
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.cookie-message strong {
    font-weight: 600;
    color: #000;
}

/* Cookie Banner Buttons */
.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.4;
    min-width: 140px;
}

/* Settings Button (Einstellungen) */
.cookie-btn-settings {
    background-color: #ffffff;
    color: #13736c;
    border: 2px solid #13736c;
}

.cookie-btn-settings:hover {
    background-color: #f0f0f0;
}

.cookie-btn-settings::before {
    content: "⚙️ ";
    margin-right: 5px;
}

/* Reject Button (Ablehnen) */
.cookie-btn-reject {
    background-color: #6c757d;
    color: #ffffff;
}

.cookie-btn-reject:hover {
    background-color: #5a6268;
}

.cookie-btn-reject::before {
    content: "❌ ";
    margin-right: 5px;
}

/* Accept Button (Alle akzeptieren) */
.cookie-btn-accept {
    background-color: #13736c;
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background-color: #12605a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(19, 115, 108, 0.3);
}

.cookie-btn-accept::before {
    content: "✅ ";
    margin-right: 5px;
}

/* Success/Rejection Message */
.cookie-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 500;
    z-index: 999999;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.5s ease-out;
    max-width: 90%;
    text-align: center;
    white-space: pre-line;
    line-height: 1.6;
}

.cookie-notification.show {
    display: block;
}

/* Success Notification (Green) */
.cookie-notification.success {
    background-color: #28a745;
    color: #ffffff;
}

/* Rejection Notification (Gray) */
.cookie-notification.rejected {
    background-color: #6c757d;
    color: #ffffff;
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 15px 20px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .cookie-banner-text {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-icon {
        font-size: 32px;
    }
    
    .cookie-message {
        font-size: 13px;
    }

    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .cookie-btn {
        width: 100%;
        padding: 12px 15px;
        font-size: 13px;
        min-width: auto;
    }

    .cookie-notification {
        width: 90%;
        max-width: 90%;
        left: 50%;
        top: 10px;
        font-size: 13px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 12px 15px;
    }
    
    .cookie-message {
        font-size: 12px;
    }
    
    .cookie-btn {
        padding: 10px 12px;
        font-size: 12px;
        line-height: 1.3;
    }
    
    .cookie-icon {
        font-size: 28px;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] .cookie-banner-text {
    flex-direction: row-reverse;
}

[dir="rtl"] .cookie-banner-buttons {
    flex-direction: row-reverse;
}
