/* Cookie Consent Banner Styling - Jakob Immobilien */
#cookie-banner-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#cookie-banner-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cookie-modal {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 42rem;
    width: 100%;
    padding: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #334155;
}

#cookie-banner-overlay.active .cookie-modal {
    transform: translateY(0);
}

.cookie-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1rem;
}

.cookie-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #143e5e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-title i {
    color: #1e5b88;
}

.cookie-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 1rem;
}

.cookie-text a {
    color: #1e5b88;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-text a:hover {
    color: #143e5e;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #f1f5f9;
}

.cookie-option {
    display: flex;
    items-center: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-option-info {
    flex: 1;
}

.cookie-option-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-option-desc {
    font-size: 0.775rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Switch Toggle Styling */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 24px;
}

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

input:checked + .cookie-slider {
    background-color: #1e5b88;
}

input:disabled + .cookie-slider {
    background-color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

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

/* Action Buttons */
.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
    flex: 1;
    min-width: 140px;
}

.cookie-btn-accept {
    background-color: #1e5b88;
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background-color: #143e5e;
}

.cookie-btn-essential {
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.cookie-btn-essential:hover {
    background-color: #e2e8f0;
}

.cookie-btn-save {
    background-color: #ffffff;
    color: #1e5b88;
    border: 1px solid #1e5b88;
}

.cookie-btn-save:hover {
    background-color: #eef6fc;
}

@media (max-width: 640px) {
    .cookie-actions {
        flex-direction: column;
    }
    .cookie-btn {
        width: 100%;
    }
}
