/* ===================================
   DSGVO-konformer Cookie-Banner
   =================================== */

/* Cookie Banner Container */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 30px 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--primary-color);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header */
.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-banner-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.cookie-banner-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* Text */
.cookie-banner-text {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--secondary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.cookie-banner-text a:hover {
    color: var(--primary-color);
}

/* Buttons Container */
.cookie-banner-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--primary-color), #357a38);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.cookie-btn-decline {
    background: #f5f5f5;
    color: var(--text-dark);
    border: 2px solid #e0e0e0;
}

.cookie-btn-decline:hover {
    background: #eeeeee;
    border-color: #d0d0d0;
}

.cookie-btn-settings {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.cookie-btn-settings:hover {
    background: var(--secondary-color);
    color: white;
}

/* ===================================
   Cookie-Einstellungen Modal
   =================================== */

.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-settings-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-content {
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.cookie-settings-header {
    padding: 30px;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.6rem;
}

.cookie-settings-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.cookie-settings-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

/* Modal Body */
.cookie-settings-body {
    padding: 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: var(--primary-color);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-category-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 600;
}

.cookie-category-description {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 60px;
    height: 30px;
}

.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: #ccc;
    transition: 0.4s;
    border-radius: 30px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(30px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal Footer */
.cookie-settings-footer {
    padding: 20px 30px;
    border-top: 2px solid var(--bg-light);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* ===================================
   Cookie-Einstellungen-Button (Footer)
   =================================== */

.cookie-settings-trigger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.cookie-settings-trigger.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-trigger:hover {
    transform: scale(1.1) rotate(30deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px 15px;
    }

    .cookie-banner-header {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-title {
        font-size: 1.2rem;
    }

    .cookie-banner-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-settings-content {
        max-height: 90vh;
        margin: 10px;
    }

    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding: 20px;
    }

    .cookie-settings-footer {
        flex-direction: column;
    }

    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cookie-settings-trigger {
        bottom: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Smooth Scrolling for Modal */
.cookie-settings-content::-webkit-scrollbar {
    width: 8px;
}

.cookie-settings-content::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.cookie-settings-content::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.cookie-settings-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

