/**
 * Cookie-Consent Banner Styles - HELLES DESIGN
 * DSGVO-konform für Uranus Consulting
 */

/* Cookie Banner Overlay - Blockiert die gesamte Seite */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999998;
    display: none;
}

.cookie-consent-overlay.show {
    display: block;
}

/* Cookie Banner - Mittig positioniert - HELLES DESIGN */
.cookie-consent-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    max-width: 600px;
    width: 90%;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.1);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 20px;
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.cookie-consent-banner.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Verhindert Scrollen wenn Banner aktiv ist */
body.cookie-consent-active {
    overflow: hidden !important;
    height: 100vh;
}

/* Blur für Seiteninhalt */
body.cookie-consent-active > *:not(.cookie-consent-overlay):not(.cookie-consent-banner):not(.cookie-modal) {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.cookie-consent-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cookie-consent-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

.cookie-consent-icon {
    font-size: 56px;
    color: #3b82f6;
    text-align: center;
    margin-bottom: 10px;
    animation: cookie-bounce 2s infinite;
}

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

.cookie-consent-text {
    width: 100%;
}

.cookie-consent-text h3 {
    margin: 0 0 10px 0;
    color: #111827;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.cookie-consent-text p {
    margin: 0;
    color: #6B7280;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-consent-actions .btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cookie-consent-actions .btn-primary {
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cookie-consent-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563EB, #0891B2);
}

.cookie-consent-actions .btn-secondary {
    background: white;
    color: #6B7280;
    border: 2px solid #E5E7EB;
}

.cookie-consent-actions .btn-secondary:hover {
    background: #F9FAFB;
    border-color: #3B82F6;
    color: #3B82F6;
    transform: translateY(-2px);
}

.cookie-consent-actions .btn-link {
    background: transparent;
    color: #3B82F6;
    padding: 12px 16px;
}

.cookie-consent-actions .btn-link:hover {
    color: #2563EB;
    text-decoration: underline;
}

/* Cookie Settings Modal - HELLES DESIGN */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999998;
}

.cookie-modal-content {
    position: relative;
    background: linear-gradient(135deg, #FFFFFF, #F9FAFB);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(59, 130, 246, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 99999999;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    padding: 24px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #FFFFFF, #F9FAFB);
    z-index: 1;
}

.cookie-modal-header h2 {
    margin: 0;
    color: #111827;
    font-size: 24px;
    font-weight: 700;
}

.cookie-modal-close {
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    color: #6B7280;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: #3B82F6;
    color: white;
    border-color: #3B82F6;
    transform: rotate(90deg);
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-category {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    background: #F9FAFB;
    border-color: #3B82F6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cookie-category-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.cookie-category-info h3 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.cookie-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-badge.essential {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.cookie-badge.analytics {
    background: rgba(59, 130, 246, 0.1);
    color: #2563EB;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.cookie-badge.marketing {
    background: rgba(168, 85, 247, 0.1);
    color: #7C3AED;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.cookie-category-description {
    color: #6B7280;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Toggle Switch - HELLES DESIGN */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E5E7EB;
    border-radius: 28px;
    transition: 0.3s;
    border: 2px solid #D1D5DB;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
    border-color: #3B82F6;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
    cursor: not-allowed;
}

/* Modal Footer */
.cookie-modal-footer {
    padding: 24px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: sticky;
    bottom: 0;
    background: linear-gradient(135deg, #FFFFFF, #F9FAFB);
}

.cookie-modal-footer .btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 200px;
}

.cookie-modal-footer .btn-primary {
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cookie-modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563EB, #0891B2);
}

.cookie-modal-footer .btn-secondary {
    background: white;
    color: #6B7280;
    border: 2px solid #E5E7EB;
}

.cookie-modal-footer .btn-secondary:hover {
    background: #F9FAFB;
    border-color: #3B82F6;
    color: #3B82F6;
}

.cookie-modal-links {
    padding: 0 24px 24px 24px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-modal-links a {
    color: #6B7280;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.cookie-modal-links a:hover {
    color: #3b82f6;
}

/* Scrollbar Styling */
.cookie-modal-content::-webkit-scrollbar {
    width: 8px;
}

.cookie-modal-content::-webkit-scrollbar-track {
    background: #F3F4F6;
}

.cookie-modal-content::-webkit-scrollbar-thumb {
    background: #3B82F6;
    border-radius: 4px;
}

.cookie-modal-content::-webkit-scrollbar-thumb:hover {
    background: #2563EB;
}

/* Schwebendes Cookie Button - HELLES DESIGN */
.cookie-float-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999997;
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-size: 28px;
    animation: cookie-pulse 3s infinite;
}

.cookie-float-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
}

.cookie-float-button::before {
    content: 'Cookie-Einstellungen';
    position: absolute;
    left: 75px;
    background: rgba(17, 24, 39, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cookie-float-button:hover::before {
    opacity: 1;
}

@keyframes cookie-pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(59, 130, 246, 0.6);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-banner {
        width: 95%;
        padding: 24px;
    }

    .cookie-consent-container {
        gap: 20px;
    }

    .cookie-consent-icon {
        font-size: 48px;
    }

    .cookie-consent-text h3 {
        font-size: 18px;
    }

    .cookie-consent-text p {
        font-size: 13px;
    }

    .cookie-consent-actions {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-consent-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .cookie-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .cookie-modal-header h2 {
        font-size: 20px;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-footer .btn {
        width: 100%;
        min-width: auto;
    }

    .cookie-category-info {
        flex-wrap: wrap;
    }

    .cookie-float-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        left: 20px;
    }

    .cookie-float-button::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 15px;
    }

    .cookie-consent-icon {
        font-size: 32px;
    }

    .cookie-consent-text h3 {
        font-size: 16px;
    }

    .cookie-consent-text p {
        font-size: 12px;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 16px;
    }

    .cookie-modal-links {
        padding: 0 16px 16px 16px;
        flex-direction: column;
        gap: 10px;
    }

    .cookie-float-button {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
