/* ============================================================================
   Modern Cookie Banner - DSGVO-konform
   ============================================================================ */

/* Cookie Banner Container */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.97), rgba(26, 26, 26, 0.95));
    backdrop-filter: blur(20px);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    padding: 1rem 1.5rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(46, 92, 154, 0.3);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Cookie Icon */
.cookie-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    animation: cookie-bounce 2s ease-in-out infinite;
    display: none; /* Icon auch auf Desktop verstecken für kompakteres Design */
}

@keyframes cookie-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

/* Cookie Content */
.cookie-content {
    flex-grow: 1;
}

.cookie-content h3 {
    margin: 0 0 0.375rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.3px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

.cookie-content a {
    color: #5B9BD5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    border-bottom: 1px solid rgba(91, 155, 213, 0.4);
}

.cookie-content a:hover {
    color: #79B3E8;
    border-bottom-color: #79B3E8;
}

/* Cookie Buttons */
.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #2E5C9A 0%, #1e4c8a 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(46, 92, 154, 0.4);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #3d6ba8 0%, #2a5a9a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 92, 154, 0.5);
}

.cookie-btn-decline {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.cookie-btn-settings {
    display: none; /* Settings Button verstecken für kompakteres Design */
}

/* Mobile Responsive - Kleiner & Moderner */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 0.75rem 0.875rem;
        border-top: 1px solid rgba(46, 92, 154, 0.4);
        border-radius: 16px 16px 0 0;
    }

    .cookie-banner-container {
        flex-direction: column;
        gap: 0.625rem;
        text-align: left;
    }

    .cookie-icon {
        display: none;
    }

    .cookie-content h3 {
        font-size: 0.875rem;
        justify-content: flex-start;
        margin-bottom: 0.25rem;
        font-weight: 700;
    }

    .cookie-content p {
        font-size: 0.75rem;
        line-height: 1.35;
        margin-bottom: 0.25rem;
    }

    .cookie-content a {
        font-size: 0.75rem;
        font-weight: 700;
    }

    .cookie-buttons {
        flex-direction: row;
        width: 100%;
        gap: 0.5rem;
    }

    .cookie-btn {
        width: 100%;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        font-weight: 700;
        border-radius: 6px;
    }

    .cookie-btn-accept {
        box-shadow: 0 2px 8px rgba(46, 92, 154, 0.25);
    }

    .cookie-btn-settings {
        display: none;
    }
}

/* Cookie Settings Modal (optional, für später) */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Fade-in Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner.show {
    animation: fadeInUp 0.5s ease-out;
}
