/**
 * Cookie Consent Banner Styles für sakosense.com
 * Angepasst an Space Grotesk Typography
 */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(7, 38, 52, 0.98);
    backdrop-filter: blur(10px);
    color: rgb(241, 238, 232);
    padding: 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    font-family: 'Space Grotesk', sans-serif;
}

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

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

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 500;
    color: rgb(227, 245, 243);
}

.cookie-banner-text p {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.5;
    opacity: 0.95;
}

.cookie-link {
    color: rgb(98, 190, 180);
    text-decoration: underline;
    font-size: 0.9rem;
    font-weight: 300;
    transition: color 0.2s;
}

.cookie-link:hover {
    color: rgb(155, 199, 210);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept-all {
    background: rgb(98, 190, 180);
    color: rgb(7, 38, 52);
}

.cookie-btn-accept-all:hover {
    background: rgb(155, 199, 210);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(98, 190, 180, 0.3);
}

.cookie-btn-accept-necessary {
    background: transparent;
    color: rgb(241, 238, 232);
    border: 1px solid rgba(241, 238, 232, 0.3);
}

.cookie-btn-accept-necessary:hover {
    background: rgba(241, 238, 232, 0.1);
    border-color: rgba(241, 238, 232, 0.5);
}

.cookie-btn-settings {
    background: transparent;
    color: rgb(227, 245, 243);
    border: 1px solid rgba(227, 245, 243, 0.3);
}

.cookie-btn-settings:hover {
    background: rgba(227, 245, 243, 0.1);
    border-color: rgba(227, 245, 243, 0.5);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 38, 52, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.cookie-modal-content {
    background: rgb(241, 238, 232);
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

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

.cookie-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(7, 38, 52, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 500;
    color: rgb(7, 38, 52);
    font-family: 'Space Grotesk', sans-serif;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: rgb(7, 38, 52);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.cookie-modal-close:hover {
    background: rgba(7, 38, 52, 0.1);
}

.cookie-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(7, 38, 52, 0.1);
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-category-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-category-header h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgb(7, 38, 52);
    font-family: 'Space Grotesk', sans-serif;
}

.cookie-category-header p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(7, 38, 52, 0.8);
    line-height: 1.5;
    font-family: 'Space Grotesk', sans-serif;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.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(7, 38, 52, 0.2);
    transition: 0.3s;
    border-radius: 28px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: rgb(98, 190, 180);
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(7, 38, 52, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cookie-btn-save {
    background: rgb(7, 38, 52);
    color: rgb(241, 238, 232);
}

.cookie-btn-save:hover {
    background: rgb(26, 82, 107);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 38, 52, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }

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

    .cookie-modal {
        padding: 1rem;
    }

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

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1.25rem;
    }

    .cookie-modal-header h2 {
        font-size: 1.5rem;
    }

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

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

/* Cookie Settings Link (für Footer) */
.cookie-settings-link {
    color: rgb(98, 190, 180);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
}

.cookie-settings-link:hover {
    color: rgb(155, 199, 210);
    text-decoration: underline;
}

/* Animation für bessere UX */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.visible {
    animation: slideUp 0.4s ease-out;
}
