/* Base Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%; /* Full width for mobile devices */
    background-color: #f8f9fa; /* Light background color */
    color: #333; /* Text color */
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: center;
    align-items: center;
    padding: 10px; /* Space inside banner */
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow above banner */
    z-index: 9999; /* Ensure visibility */
}

/* Cookie Text */
.cookie-text {
    font-size: 0.85rem; /* Slightly smaller font for mobile */
    color: #333; /* Neutral dark text color */
    background-color: #f8f9fa; /* Subtle light background for contrast */
    border-radius: 10px; /* Rounded corners for a softer look */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    text-align: left; /* Center-align the text */
    line-height: 1.5; /* Improve readability */
    font-family: 'Arial', sans-serif; /* Clean, modern font */
}
.cookie-text {
    display: flex;
    gap: 10px; /* Space between icon and text */
}
.cookie-text {
    border: 1px solid #ddd; /* Light border around the text */
}
.cookie-options .form-check-label {
    color: #0059b3;
    font-size: 1.00rem;
    font-weight: 900;
}
/* Action Buttons */
.banner-buttons {
    display: flex;
    gap: 10px; /* Space between buttons */
}
/* Default Styles */
.cookie-popup,
.cookie-banner {
    display: none; /* Both hidden by default */
}
.banner-buttons button {
    font-size: 0.8rem; /* Compact button text */
    padding: 5px 15px; /* Adjust button padding */
    border-radius: 5px; /* Slightly rounded corners */
}
.cookie-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8); /* Dunklerer Hintergrund */
    z-index: 9999;
}

.popup-content {
    max-width: 600px; /* Breiteres Popup */
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3); /* Stärkere Schatten */
    animation: slideIn 0.3s ease-in-out; /* Animation */
}

.popup-content h1 {
    font-size: 2rem;
    color: #007bff; /* Schöne Farbe für das Cookie-Icon */
}

.popup-content p {
    font-size: 1rem;
    color: #555;
}

.popup-content button {
    font-size: 0.9rem;
    margin: 10px; /* Gleicher Abstand zwischen Buttons */
}
.modern-btn {
    background-color: #ff571a; /* Moderne Akzentfarbe */
    color: white;
    border: none;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 25px; /* Rundung für modernes Aussehen */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25); /* Button-Schatten */
    transition: all 0.3s ease;
}

.modern-btn:hover {
    background-color: #e04a14; /* Leicht dunklere Farbe beim Hover */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3); /* Intensiverer Schatten */
    transform: scale(1.05); /* Leichte Vergrößerung beim Hover */
}
/* Erfolgsmeldung modernes Design */
.alert-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ff571a; /* Akzentfarbe */
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); /* Schatten */
    font-size: 1rem;
    animation-duration: 0.5s;
}

.alert-modern .alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.alert-modern i {
    font-size: 1.5rem;
    color: white; /* Icon-Farbe */
}

.alert-modern .btn-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.alert-modern .btn-close:hover {
    transform: rotate(90deg);
    color: #fff4e0; /* Leicht abweichende Hover-Farbe */
}
/* Animationen mit Animate.css-Klassen */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
.banner-buttons button {
    background-color: #0059b3;
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

.banner-buttons button:hover {
    background-color: #004080;
  }
.banner-buttons .settings-btn {
    background-color: transparent;
    color: #0059b3;
    border: 1px solid #0059b3;
}

.banner-buttons .settings-btn:hover {
    background-color: #0059b3;
    color: #fff;
  }
.cookie-banner {
    padding: 15px 20px;
}

.cookie-text {
    line-height: 1.4;
    max-width: 90%;
  }
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeOutRight {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

.animate__animated {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.animate__bounceInRight {
    animation-name: bounceInRight;
}

.animate__fadeOutRight {
    animation-name: fadeOutRight;
}
/* Show desktop cookie popup for larger screens */
@media (min-width: 768px) {
    .cookie-popup {
        display: flex; /* Show desktop popup */
    }

    .cookie-banner {
        display: none; /* Hide mobile banner */
    }
}

@media (prefers-color-scheme: dark) {
    .cookie-banner {
        background-color: #1e1e1e;
        color: #f0f0f0;
        box-shadow: 0px -4px 8px rgba(255, 255, 255, 0.1);
    }

    .banner-buttons button {
        background-color: #3399ff;
    }

    .banner-buttons .settings-btn {
        border-color: #3399ff;
        color: #3399ff;
    }
}
/* Show mobile banner for smaller screens */
@media (max-width: 767px) {
    .cookie-popup {
        display: none; /* Hide desktop popup */
    }

    .cookie-banner {
        display: flex; /* Show mobile banner */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #ffffff;
        box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.1);
        padding: 10px;
        border-radius: 10px;
        z-index: 9999;
    }

    .cookie-text {
        font-size: 0.8rem; /* Smaller text size for mobile */
        text-align: center;
        margin-bottom: 10px;
    }

    .banner-buttons {
        display: flex;
        gap: 10px;
    }

    .banner-buttons button {
        font-size: 0.8rem; /* Compact button size for mobile */
        padding: 5px 10px; /* Adjust button padding */
        border-radius: 5px;
    }
}
