/* assets/css/cookie-consent.css */

/* Cookie Consent Banner Basis-Stile */
#wcc-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    animation: wcc-slide-in 0.3s ease-out;
}

/* Banner Position */
#wcc-consent-banner.wcc-banner-bottom {
    bottom: 0;
    border-top: 3px solid #2271b1;
}

#wcc-consent-banner.wcc-banner-top {
    top: 0;
    border-bottom: 3px solid #2271b1;
}

/* Banner Content Layout */
.wcc-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.wcc-banner-text {
    flex: 1;
    min-width: 300px;
}

.wcc-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.wcc-banner-text p {
    margin: 0;
    color: #50575e;
}

.wcc-link {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
}

.wcc-link:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Button Styles */
.wcc-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wcc-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.wcc-btn-accept {
    background: #00a32a;
    color: white;
}

.wcc-btn-accept:hover {
    background: #008a20;
    transform: translateY(-1px);
}

.wcc-btn-reject {
    background: #d63638;
    color: white;
}

.wcc-btn-reject:hover {
    background: #b32d2e;
    transform: translateY(-1px);
}

.wcc-btn-settings {
    background: #f6f7f7;
    color: #2c3338;
    border: 2px solid #dcdcde;
}

.wcc-btn-settings:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
    transform: translateY(-1px);
}

.wcc-btn-primary {
    background: #2271b1;
    color: white;
}

.wcc-btn-primary:hover {
    background: #135e96;
    transform: translateY(-1px);
}

/* Settings Panel */
.wcc-settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.wcc-settings-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: wcc-fade-in 0.3s ease-out;
}

.wcc-settings-header {
    background: #2271b1;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wcc-settings-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.wcc-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.wcc-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Settings Content */
.wcc-settings-description {
    padding: 20px;
    background: #f6f7f7;
    border-bottom: 1px solid #dcdcde;
}

.wcc-settings-description p {
    margin: 0;
    color: #50575e;
    line-height: 1.6;
}

/* Cookie Categories */
.wcc-cookie-categories {
    padding: 0;
}

.wcc-category-section {
    border-bottom: 1px solid #f0f0f1;
}

.wcc-category-section:last-child {
    border-bottom: none;
}

.wcc-category-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.wcc-category-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

/* Toggle Switch */
.wcc-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.wcc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wcc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.wcc-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.wcc-toggle input:checked + .wcc-toggle-slider {
    background-color: #00a32a;
}

.wcc-toggle input:checked + .wcc-toggle-slider:before {
    transform: translateX(26px);
}

.wcc-toggle input:disabled + .wcc-toggle-slider {
    background-color: #2271b1;
    cursor: not-allowed;
}

/* Small Toggle für einzelne Cookies */
.wcc-toggle-small {
    width: 40px;
    height: 20px;
}

.wcc-toggle-small .wcc-toggle-slider {
    border-radius: 20px;
}

.wcc-toggle-small .wcc-toggle-slider:before {
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
}

.wcc-toggle-small input:checked + .wcc-toggle-slider:before {
    transform: translateX(20px);
}

/* Category Description */
.wcc-category-description {
    padding: 0 20px 10px 20px;
    color: #50575e;
    font-size: 13px;
    line-height: 1.5;
}

/* Cookie Details */
.wcc-cookie-details {
    margin: 0 20px 20px 20px;
}

.wcc-cookie-details summary {
    cursor: pointer;
    font-weight: 500;
    color: #2271b1;
    padding: 8px 0;
    user-select: none;
}

.wcc-cookie-details summary:hover {
    color: #135e96;
}

.wcc-cookie-items {
    margin-top: 10px;
    border: 1px solid #f0f0f1;
    border-radius: 6px;
    background: #fafafa;
}

.wcc-cookie-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.wcc-cookie-item:last-child {
    border-bottom: none;
}

.wcc-cookie-info {
    flex: 1;
}

.wcc-cookie-info strong {
    display: block;
    font-size: 14px;
    color: #1d2327;
    margin-bottom: 5px;
}

.wcc-cookie-info p {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #50575e;
    line-height: 1.4;
}

.wcc-cookie-info small {
    font-size: 12px;
    color: #787c82;
}

.wcc-always-active {
    font-size: 12px;
    color: #00a32a;
    font-weight: 500;
    padding: 4px 8px;
    background: rgba(0, 163, 42, 0.1);
    border-radius: 4px;
}

/* Settings Footer */
.wcc-settings-footer {
    padding: 20px;
    background: #f6f7f7;
    border-top: 1px solid #dcdcde;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.wcc-legal-links a {
    color: #2271b1;
    text-decoration: none;
    font-size: 13px;
}

.wcc-legal-links a:hover {
    text-decoration: underline;
}

.wcc-settings-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Settings Trigger Button (schwebend) */
.wcc-settings-trigger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999998;
}

.wcc-btn-settings-trigger {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2271b1;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: auto;
}

.wcc-btn-settings-trigger:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 113, 177, 0.4);
}

/* Animationen */
@keyframes wcc-slide-in {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes wcc-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .wcc-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 15px;
    }
    
    .wcc-banner-buttons {
        justify-content: center;
        gap: 8px;
    }
    
    .wcc-btn {
        flex: 1;
        min-width: auto;
    }
    
    .wcc-settings-panel {
        padding: 10px;
    }
    
    .wcc-settings-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .wcc-settings-buttons {
        justify-content: center;
    }
    
    .wcc-cookie-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .wcc-settings-trigger {
        bottom: 15px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .wcc-banner-content {
        padding: 15px;
    }
    
    .wcc-banner-text h3 {
        font-size: 16px;
    }
    
    .wcc-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .wcc-settings-header {
        padding: 15px;
    }
    
    .wcc-settings-header h3 {
        font-size: 18px;
    }
    
    .wcc-category-header {
        padding: 15px;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    #wcc-consent-banner {
        border: 2px solid #000;
        background: #fff;
    }
    
    .wcc-btn {
        border: 2px solid #000;
    }
    
    .wcc-toggle-slider {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    #wcc-consent-banner,
    .wcc-settings-content,
    .wcc-btn,
    .wcc-toggle-slider,
    .wcc-toggle-slider:before {
        transition: none;
        animation: none;
    }
}

/* Print Styles */
@media print {
    #wcc-consent-banner,
    .wcc-settings-trigger {
        display: none !important;
    }
}