/* Cookie Banner Styles - Medovo Design System - Full Width */
:root {
    --danger: #dc3545;
    --danger-hover: #bb2d3b;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-top: 1px solid rgba(8, 50, 107, 0.1);
}

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

/* Gradient Border Effect - Top Border */
.cookie-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0.8;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Background Pattern - subtle */
.cookie-banner-content::after {
    content: '';
    position: absolute;
    top: 0;
    right: 10%;
    width: 200px;
    height: 100%;
    background-image: radial-gradient(circle at 1px 1px, rgba(8, 50, 107, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}

.cookie-header {
    flex: 1;
}

.cookie-header h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-icon {
    width: 20px;
    height: 20px;
    background: var(--compact-gradient);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.cookie-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
}

.cookie-warning {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Basis Button-Stil - Medovo Design */
.cookie-button {
    padding: 0.625rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #2563eb;
    font-family: inherit;
    white-space: nowrap;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    height: 38px;
    min-width: 140px;
    background: #ffffff;
    color: #2563eb;
}

.cookie-button:hover {
    background: rgba(37, 99, 235, 0.05);
}

/* Einheitliche Stile für alle Button-Varianten */
.cookie-button.primary,
.cookie-button.secondary,
.cookie-button.danger,
.cookie-button.link {
    background: #ffffff;
    color: #2563eb;
    border-color: #2563eb;
}

.cookie-button.primary:hover,
.cookie-button.secondary:hover,
.cookie-button.danger:hover,
.cookie-button.link:hover {
    background: rgba(37, 99, 235, 0.05);
    border-color: #2563eb;
    transform: none;
    box-shadow: none;
    text-decoration: none;
}

/* Cookie Switch im Medovo Design */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-slider {
    background-color: #e5e7eb;
    border: 1px solid #d1d5db;
}

.cookie-slider:before {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .cookie-slider {
    background: #2563eb;
    border-color: #2563eb;
}

/* Cookie Kategorien im Medovo Design */
.cookie-category {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.cookie-category:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.02);
}

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

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

.cookie-category-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
}

.cookie-category-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-info-link {
    margin-top: 0.5rem !important;
    font-size: 0.8125rem !important;
}

.cookie-info-link a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-info-link a:hover {
    color: var(--primary-dark);
}

/* Cookie Badge für notwendige Cookies */
.cookie-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: #2563eb;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-left: 0.5rem;
    animation: none;
}

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
    .cookie-banner-content {
        padding: 1.25rem 1.5rem;
    }
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .cookie-banner-content {
        padding: 1.25rem;
    }
    
    .cookie-header {
        min-width: unset;
    }
    
    .cookie-header h3 {
        font-size: 0.9375rem;
    }
    
    .cookie-header p {
        font-size: 0.8125rem;
    }
    
    .cookie-warning,
    .cookie-footer-info {
        font-size: 0.75rem;
    }
    
    .cookie-actions {
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .cookie-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        height: 36px;
        min-width: 120px;
    }
    
    .cookie-button.link {
        order: 2;
        width: auto;
        align-self: center;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .cookie-header {
        text-align: center;
    }
    
    .cookie-header h3 {
        justify-content: center;
    }
    
    .cookie-actions {
        gap: 0.375rem;
    }
    
    .cookie-button {
        font-size: 0.75rem;
        padding: 0.5rem;
        min-width: 100px;
    }
    
    .cookie-button.link {
        min-width: auto;
    }
    
    .cookie-footer {
        font-size: 0.75rem;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.show {
    animation: slideInUp 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.cookie-footer-info {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.cookie-footer-info a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-footer-info a:hover {
    color: var(--primary-dark);
}

/* Cookie Modal - Medovo Design */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal.show {
    display: block;
    opacity: 1;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
}

.cookie-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e5e7eb;
}

.cookie-modal.show .cookie-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.cookie-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.cookie-modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cookie-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.cookie-modal-body {
    padding: 1.5rem 2rem;
    max-height: calc(80vh - 200px);
    overflow-y: auto;
}

.cookie-category {
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.cookie-category:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.02);
}

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

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

.cookie-category-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #1f2937;
    font-weight: 600;
}

.cookie-category-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.cookie-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    background: #ffffff;
}

.cookie-modal-footer .cookie-button {
    flex: 1;
    min-width: 0;
    white-space: normal;
    text-align: center;
    height: auto;
    min-height: 44px;
    padding: 0.625rem 1rem;
    line-height: 1.3;
}

/* Cookie Switch Styles */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.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: #e5e7eb;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .cookie-slider {
    background: #2563eb;
}

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

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

/* Mobile Anpassungen für das Modal */
@media (max-width: 768px) {
    .cookie-modal-content {
        width: 95%;
        max-height: 85vh;
    }

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

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

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

    .cookie-modal-footer .cookie-button {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .cookie-category {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .cookie-modal-content {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
        transform: translate(-50%, -50%) scale(1);
    }

    .cookie-modal-header {
        padding: 1rem;
    }

    .cookie-modal-body {
        padding: 1rem;
    }

    .cookie-modal-footer {
        padding: 1rem;
    }

    .cookie-category {
        padding: 0.875rem;
    }
}