/**
 * S.Y.Z. GmbH & Co. KG - Cookie Consent Styles
 * Professional Corporate Design | Version 1.0
 */

/* ============================================================================
   COOKIE BANNER
   ============================================================================ */

.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1A2E3F 0%, #2C4A67 100%);
    color: white;
    padding: 2rem;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.cookie-banner-text h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.cookie-banner-text p {
    margin: 0;
    line-height: 1.6;
    opacity: 0.95;
    font-size: 0.95rem;
}

.cookie-banner-text a {
    color: #4A90E2;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s;
}

.cookie-banner-text a:hover {
    color: #6AB0FF;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ============================================================================
   COOKIE BUTTONS
   ============================================================================ */

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    min-width: 140px;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
    color: white;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #27AE60 0%, #229954 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.cookie-btn-decline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-settings {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
    color: white;
}

.cookie-btn-primary:hover {
    background: linear-gradient(135deg, #27AE60 0%, #229954 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.cookie-btn-secondary {
    background: #2C4A67;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-secondary:hover {
    background: #1A2E3F;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================================================
   COOKIE MODAL
   ============================================================================ */

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cookie-modal-content {
    background: white;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.cookie-modal-header {
    background: linear-gradient(135deg, #1A2E3F 0%, #2C4A67 100%);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.cookie-modal-close:hover {
    transform: rotate(90deg);
    color: #E74C3C;
}

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

.cookie-modal-intro {
    background: #F8F9FA;
    padding: 1.25rem;
    margin-bottom: 2rem;
    border-left: 4px solid #2C4A67;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-category {
    border: 2px solid #E0E0E0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.cookie-category:hover {
    border-color: #2C4A67;
    box-shadow: 0 5px 15px rgba(44, 74, 103, 0.1);
}

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

.cookie-category-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #2C3E50;
}

.cookie-category-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #7F8C8D;
}

.cookie-category-description {
    color: #555;
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================================================
   TOGGLE SWITCH
   ============================================================================ */

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    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: #CCC;
    transition: 0.3s;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
}

.cookie-switch input:checked + .cookie-slider {
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
}

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

.cookie-switch.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-switch.disabled .cookie-slider {
    cursor: not-allowed;
    background: linear-gradient(135deg, #2C4A67 0%, #4A6B8A 100%);
}

/* ============================================================================
   MODAL FOOTER
   ============================================================================ */

.cookie-modal-footer {
    background: #F8F9FA;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid #E0E0E0;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.5rem;
    }
    
    .cookie-banner-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cookie-banner-actions {
        justify-content: stretch;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-modal {
        padding: 1rem;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1.5rem;
    }
    
    .cookie-modal-header h2 {
        font-size: 1.4rem;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner-text h3 {
        font-size: 1.25rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.9rem;
    }
    
    .cookie-btn {
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
        min-width: 120px;
    }
}

/* ============================================================================
   COOKIE SETTINGS LINK (Footer)
   ============================================================================ */

.open-cookie-settings {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.open-cookie-settings:hover {
    color: white;
    text-decoration: underline;
}
