/* ============================================================================
   COOKIE & TOOLS EINWILLIGUNGSBANNER - DSGVO KONFORM
   ============================================================================ */

/* Banner Container */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, 
        rgba(13, 13, 35, 0.98) 0%, 
        rgba(25, 25, 55, 0.98) 50%, 
        rgba(13, 13, 35, 0.98) 100%);
    backdrop-filter: blur(15px);
    border-top: 2px solid #4a9eff;
    box-shadow: 0 -8px 32px rgba(74, 158, 255, 0.3);
    z-index: 10000;
    padding: 20px;
    transform: translateY(100%);
    transition: all 0.5s ease-in-out;
    font-family: 'Arial', sans-serif;
}

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

/* Banner Content */
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.cookie-text {
    color: #ffffff;
}

.cookie-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 8px;
    color: #4a9eff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-title i {
    font-size: 1.1em;
}

.cookie-description {
    font-size: 0.95em;
    line-height: 1.4;
    margin-bottom: 12px;
    opacity: 0.9;
}

.cookie-tools-list {
    font-size: 0.85em;
    opacity: 0.8;
    margin-bottom: 12px;
}

.cookie-tools-list strong {
    color: #4a9eff;
}

/* Button Container */
.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.cookie-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cookie-btn:hover:before {
    left: 100%;
}

/* Accept Button */
.cookie-accept {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Decline Button */
.cookie-decline {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.cookie-decline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Settings Button */
.cookie-settings {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    font-size: 0.8em;
}

.cookie-settings:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(108, 117, 125, 0.4);
}

/* Detailed Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background: linear-gradient(135deg, 
        rgba(13, 13, 35, 0.95) 0%, 
        rgba(25, 25, 55, 0.95) 50%, 
        rgba(13, 13, 35, 0.95) 100%);
    border: 2px solid #4a9eff;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    color: white;
    box-shadow: 0 20px 60px rgba(74, 158, 255, 0.4);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(74, 158, 255, 0.3);
    padding-bottom: 15px;
}

.modal-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #4a9eff;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #4a9eff;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: scale(1.1);
}

/* Tool Categories */
.tool-category {
    margin-bottom: 20px;
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.category-header {
    background: rgba(74, 158, 255, 0.1);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.category-header:hover {
    background: rgba(74, 158, 255, 0.15);
}

.category-title {
    font-weight: bold;
    color: #4a9eff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: #dc3545;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.category-toggle.active {
    background: #28a745;
}

.category-toggle:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.category-toggle.active:before {
    transform: translateX(24px);
}

.category-content {
    padding: 15px;
    display: none;
}

.category-content.show {
    display: block;
}

.tool-item {
    margin-bottom: 10px;
    font-size: 0.9em;
    opacity: 0.8;
}

.tool-item strong {
    color: #4a9eff;
}

/* Modal Buttons */
.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-save {
    background: #28a745;
    color: white;
}

.modal-save:hover {
    background: #218838;
}

.modal-cancel {
    background: #6c757d;
    color: white;
}

.modal-cancel:hover {
    background: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-content {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .modal-content {
        margin: 20px;
        padding: 20px;
        max-width: none;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}

/* Hide banner when accepted/declined */
.cookie-banner.hidden {
    display: none;
}

/* Status indicator */
.cookie-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(13, 13, 35, 0.9);
    color: #4a9eff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8em;
    border: 1px solid #4a9eff;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.cookie-status.show {
    opacity: 1;
}

/* Animation for banner entrance */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.animate-in {
    animation: slideUp 0.5s ease-out;
}

/* Legal compliance indicator */
.dsgvo-compliant {
    font-size: 0.7em;
    opacity: 0.6;
    margin-top: 5px;
}

.dsgvo-compliant i {
    color: #28a745;
}