/* ========================================
   KI Brains Cookie Consent Banner v2
   ======================================== */

#kibrains-cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    animation: kib-fadeIn 0.4s ease;
}

@keyframes kib-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#kibrains-cookie-banner {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2d3d 50%, #0d1b2a 100%);
    border: 1px solid rgba(0, 212, 170, 0.25);
    border-radius: 20px;
    padding: 32px 36px;
    max-width: 780px;
    width: 100%;
    box-shadow:
        0 0 0 1px rgba(0, 212, 170, 0.08),
        0 25px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(0, 212, 170, 0.06);
    position: relative;
    animation: kib-slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes kib-slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Glowing top border accent */
#kibrains-cookie-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 20px; right: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4aa, #0891b2, #00d4aa, transparent);
    border-radius: 0 0 2px 2px;
}

/* Shield Icon */
.kib-cookie-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    display: block;
    color: #00d4aa;
}

.kib-cookie-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: -0.3px;
}

.kib-cookie-title span {
    background: linear-gradient(135deg, #00d4aa, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kib-cookie-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 20px 0;
}

.kib-cookie-text strong {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
}

.kib-cookie-benefits {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.kib-benefit-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 212, 170, 0.07);
    border: 1px solid rgba(0, 212, 170, 0.15);
    border-radius: 8px;
    padding: 6px 12px;
}

.kib-benefit-item svg {
    color: #00d4aa;
    flex-shrink: 0;
}

.kib-cookie-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* PRIMARY: Alles akzeptieren */
#kib-accept-all {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #00d4aa 0%, #0891b2 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.35);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    animation: kib-pulse 2.5s ease-in-out infinite;
}

@keyframes kib-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 212, 170, 0.35), 0 0 0 0 rgba(0, 212, 170, 0.2); }
    50%       { box-shadow: 0 4px 28px rgba(0, 212, 170, 0.55), 0 0 0 6px rgba(0, 212, 170, 0.0); }
}

#kib-accept-all::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
    pointer-events: none;
}

#kib-accept-all:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.5);
}

#kib-accept-all:active {
    transform: translateY(0) scale(0.99);
}

.kib-accept-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.kib-accept-hint {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11px;
    color: rgba(0, 212, 170, 0.65);
    text-align: center;
}

/* SECONDARY: Ablehnen – dezent */
#kib-decline {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
    white-space: nowrap;
}

#kib-decline:hover {
    color: rgba(255, 255, 255, 0.42);
}

.kib-privacy-link {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.22);
    text-decoration: none;
    margin-left: auto;
    transition: color 0.2s;
    white-space: nowrap;
}

.kib-privacy-link:hover {
    color: rgba(255, 255, 255, 0.42);
}

/* Mobile */
@media (max-width: 600px) {
    #kibrains-cookie-overlay {
        padding: 12px;
    }

    #kibrains-cookie-banner {
        padding: 24px 20px;
        border-radius: 16px 16px 12px 12px;
    }

    .kib-cookie-title {
        font-size: 17px;
    }

    .kib-cookie-benefits {
        gap: 8px;
    }

    .kib-cookie-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #kib-accept-all {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }

    #kib-decline {
        text-align: center;
        width: 100%;
    }

    .kib-privacy-link {
        text-align: center;
        margin-left: 0;
        width: 100%;
    }
}