/* ===================================
   DSGVO Cookie Banner Styles
   =================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    border-top: 2px solid var(--primary-color, #c9a96e);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    padding: 1.5rem 0;
}

.cookie-banner-text {
    color: var(--text-primary, #ffffff);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.cookie-banner-text strong {
    color: var(--primary-color, #c9a96e);
}

.cookie-banner-text a {
    color: var(--primary-color, #c9a96e);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s;
}

.cookie-banner-text a:hover {
    border-bottom-color: var(--primary-color, #c9a96e);
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-cookie-accept {
    background: linear-gradient(135deg, var(--primary-color, #c9a96e), #b89850);
    color: #1a1a1a;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.4);
}

.btn-cookie-settings {
    background: transparent;
    color: var(--text-secondary, #999);
    border: 1px solid rgba(153, 153, 153, 0.3);
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-cookie-settings:hover {
    border-color: var(--primary-color, #c9a96e);
    color: var(--primary-color, #c9a96e);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    backdrop-filter: blur(5px);
    padding: 1rem;
    overflow-y: auto;
}

.cookie-settings-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-content {
    background: #1a1a1a;
    border: 2px solid var(--primary-color, #c9a96e);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

.cookie-settings-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h3 {
    color: var(--primary-color, #c9a96e);
    margin: 0;
    font-size: 1.5rem;
}

.cookie-settings-close {
    background: transparent;
    border: none;
    color: var(--text-secondary, #999);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.cookie-settings-close:hover {
    background: rgba(201, 169, 110, 0.1);
    color: var(--primary-color, #c9a96e);
}

.cookie-settings-body {
    padding: 1.5rem;
}

.cookie-category {
    background: rgba(201, 169, 110, 0.05);
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cookie-category-title {
    color: var(--text-primary, #ffffff);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-category-required {
    background: var(--primary-color, #c9a96e);
    color: #1a1a1a;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.cookie-category-description {
    color: var(--text-secondary, #999);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(153, 153, 153, 0.3);
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--primary-color, #c9a96e);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(201, 169, 110, 0.2);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-cookie-save {
    background: linear-gradient(135deg, var(--primary-color, #c9a96e), #b89850);
    color: #1a1a1a;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-cookie-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        padding: 1rem 0;
    }
    
    .cookie-banner-text {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-cookie-accept,
    .btn-cookie-settings {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-settings-content {
        margin: 1rem;
    }
    
    .cookie-settings-header h3 {
        font-size: 1.25rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Smooth Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Cookie Status Icon */
.cookie-status-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color, #c9a96e), #b89850);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    transition: all 0.3s ease;
    animation: slideInFromBottom 0.5s ease-out;
}

.cookie-status-icon.show {
    display: flex;
}

.cookie-status-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 30px rgba(201, 169, 110, 0.5);
}

.cookie-status-icon:active {
    transform: translateY(-3px) scale(1.05);
}

/* Tooltip für Cookie Icon */
.cookie-status-icon .tooltip-text {
    visibility: hidden;
    background-color: rgba(26, 26, 26, 0.95);
    color: var(--text-primary, #ffffff);
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    position: absolute;
    z-index: 1;
    bottom: 70px;
    right: 0;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    border: 1px solid var(--primary-color, #c9a96e);
}

.cookie-status-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Anpassung */
@media (max-width: 768px) {
    .cookie-status-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
    
    .cookie-status-icon::after {
        width: 14px;
        height: 14px;
    }
    
    .cookie-status-icon .tooltip-text {
        font-size: 12px;
        padding: 6px 10px;
        bottom: 60px;
    }
}
