/* Cookie Banner Styles - DSGVO/revDSG konform - Ricoh.ch Style */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    color: #333333;
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    border-top: 1px solid #e0e0e0;
}

.cookie-banner.active {
    display: block;
}

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

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

.cookie-banner-text h3 {
    color: #000000;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-banner-text p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666666;
}

.cookie-banner-text a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner-text a:hover {
    color: #004499;
    text-decoration: none;
}

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

.cookie-btn {
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.9rem;
    min-width: 120px;
    text-align: center;
}

.cookie-btn-accept {
    background-color: #000000;
    color: white;
    border: 2px solid #000000;
}

.cookie-btn-accept:hover {
    background-color: #333333;
    border-color: #333333;
}

.cookie-btn-settings {
    background-color: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.cookie-btn-settings:hover {
    background-color: #f5f5f5;
}

.cookie-btn-reject {
    background-color: transparent;
    color: #666666;
    border: 2px solid #cccccc;
}

.cookie-btn-reject:hover {
    background-color: #f5f5f5;
    border-color: #999999;
}

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

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

.cookie-settings-content {
    background-color: white;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    color: #333333;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cookie-settings-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f8f8;
    border-radius: 8px 8px 0 0;
}

.cookie-settings-header h3 {
    margin: 0;
    color: #000000;
    font-size: 1.25rem;
    font-weight: 600;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.cookie-settings-close:hover {
    background-color: #f0f0f0;
    color: #000000;
}

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

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

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

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

.cookie-category-header h4 {
    margin: 0;
    color: #000000;
    font-size: 1rem;
    font-weight: 600;
}

.cookie-category-description {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.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: #cccccc;
    transition: .4s;
    border-radius: 24px;
}

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

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

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

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

.cookie-settings-footer {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background-color: #f8f8f8;
    border-radius: 0 0 8px 8px;
}

/* Blockierte Inhalte - Ricoh.ch Style */
.cookie-blocked-content {
    position: relative;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 2rem;
    text-align: center;
    margin: 1rem 0;
}

.cookie-blocked-content-message {
    color: #666666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cookie-blocked-content-btn {
    background-color: #000000;
    color: white;
    border: 2px solid #000000;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.cookie-blocked-content-btn:hover {
    background-color: #333333;
    border-color: #333333;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-text {
        min-width: auto;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-settings-content {
        margin: 1rem;
    }
}
