/* Hauptfarben */
.cookie-popup .popup-content {
  background-color: #ffffff;
  border: 2px solid #e63d00;
}

/* Überschrift mit Farbe */
.cookie-popup h1 {
  color: #e63d00;
}

/* Umschalter-Labels */
.cookie-popup .form-check-label {
  color: #e63d00;
}

/* Schalter anpassen */
.cookie-popup .form-check-input:checked {
  background-color: #e63d00;
  border-color: #e63d00;
}

/* Buttons im Popup */
.cookie-popup .btn {
  border: none;
  color: #fff;
  background-color: #e63d00;
  transition: background-color 0.3s ease;
}

.cookie-popup .btn:hover {
  background-color: #0059b3;
}

/* Optional: Sekundärbutton etwas heller */
.cookie-popup .btn-secondary {
  background-color: #f0672d;
}
.cookie-popup .btn-secondary:hover {
  background-color: #0059b3;
}

/* Mobiler Banner */
.cookie-banner {
  background: #e63d00;
  color: #fff;
}

.cookie-banner .btn {
  background-color: #fff;
  color: #e63d00;
  border: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cookie-banner .btn:hover {
  background-color: #0059b3;
  color: #fff;
}
/* Checkbox-Labels einfärben */
.cookie-popup .form-check-label {
  color: #0059b3;
  font-weight: 500;
}

/* Überschriftenfarbe */
.cookie-popup h1 {
  color: #0059b3;
}

/* Spezielle Buttons */
#rejectAllCookies {
  background-color: darkred;
  color: #fff;
  border: none;
}
#rejectAllCookies:hover {
  background-color: #a00000;
}

#saveSettings {
  background-color: #444;
  color: #fff;
  border: none;
}
#saveSettings:hover {
  background-color: #2d2d2d;
}
.cookie-popup .fa-cookie-bite {
  color: #e63d00;
}

/* 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 */
    padding: 10px 15px; /* Add spacing around the text */
    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-text::before {
    content: "\f817"; /* Font Awesome cookie icon (Unicode) */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900; /* Ensure bold icon */
    color: #007bff; /* Add a pop of color */
    font-size: 1rem; /* Adjust icon size */
}

/* 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 bounceInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    60% {
        opacity: 1;
        transform: translateX(-10%);
    }
    80% {
        transform: translateX(5%);
    }
    100% {
        transform: translateX(0);
    }
}

@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 */
    }
}

/* 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;
    }
}
