/* Cookie Consent Banner - EK Kammerhofer */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    z-index: 9999;
    display: none;
    animation: slideUp 0.4s ease-out;
}

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

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h3 {
    color: #004494;
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.cookie-consent-text p {
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-consent-text a {
    color: #e32119;
    text-decoration: underline;
    font-weight: bold;
}

.cookie-consent-text a:hover {
    color: #004494;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-consent-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-family: helvetica-neue-lt-pro-cond, sans-serif;
    white-space: nowrap;
}

.cookie-consent-btn-accept {
    background: #e32119;
    color: white;
}

.cookie-consent-btn-accept:hover {
    background: #004494;
    transform: translateY(-2px);
}

.cookie-consent-btn-decline {
    background: #666;
    color: white;
}

.cookie-consent-btn-decline:hover {
    background: #444;
    transform: translateY(-2px);
}

.cookie-consent-btn-settings {
    background: white;
    color: #004494;
    border: 2px solid #004494;
}

.cookie-consent-btn-settings:hover {
    background: #004494;
    color: white;
    transform: translateY(-2px);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: white;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.cookie-settings-content h2 {
    color: #004494;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.cookie-settings-content p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cookie-category {
    border: 2px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
}

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

.cookie-category h3 {
    color: #004494;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

.cookie-category p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    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: #ccc;
    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: #e32119;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #004494;
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-settings-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cookie-settings-btn {
    flex: 1;
    min-width: 150px;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-family: helvetica-neue-lt-pro-cond, sans-serif;
}

.cookie-settings-btn-save {
    background: #e32119;
    color: white;
}

.cookie-settings-btn-save:hover {
    background: #004494;
}

.cookie-settings-btn-cancel {
    background: #666;
    color: white;
}

.cookie-settings-btn-cancel:hover {
    background: #444;
}

/* Cookie Settings Link im Footer */
.cookie-settings-link {
    cursor: pointer;
    color: white;
    text-decoration: underline;
    transition: color 0.3s;
}

.cookie-settings-link:hover {
    color: #e32119;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

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

    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .cookie-settings-content {
        padding: 1.5rem;
    }

    .cookie-settings-content h2 {
        font-size: 1.5rem;
    }

    .cookie-settings-buttons {
        flex-direction: column;
    }

    .cookie-settings-btn {
        width: 100%;
    }
}
