/* Cookie-Einstellungen Seite - Zusätzliche Styles */
/* css/cookie-settings.css */

/* === COOKIE STATUS GRID === */
.cookie-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.cookie-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cookie-status-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cookie-status-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.cookie-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-status-badge.required {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.cookie-status-badge.enabled {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.cookie-status-badge.disabled {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

/* === COOKIE MANAGEMENT PANEL === */
.cookie-management-panel {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid var(--border-color);
}

.cookie-preferences-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* === COOKIE TYPE SECTIONS === */
.cookie-type-section {
    background: white;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.cookie-type-section:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.cookie-type-header {
    padding: 25px;
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-type-header:hover {
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
}

.cookie-type-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.cookie-type-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.cookie-type-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* === CUSTOM TOGGLE SWITCHES === */
.cookie-toggle-wrapper {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0;
}

.cookie-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    transition: all 0.4s ease;
    border-radius: 34px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookie-toggle:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: all 0.4s ease;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cookie-checkbox:checked + .cookie-toggle {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

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

.cookie-toggle.necessary-toggle {
    background: linear-gradient(135deg, #10b981, #059669);
    cursor: not-allowed;
}

.cookie-checkbox:disabled + .cookie-toggle {
    opacity: 0.7;
    cursor: not-allowed;
}

/* === COOKIE TYPE STATUS === */
.cookie-type-status {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-type-status.required {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    border: 1px solid #22c55e;
}

.cookie-type-status.enabled {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.cookie-type-status.disabled {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
    border: 1px solid #64748b;
}

/* === COOKIE TYPE DETAILS === */
.cookie-type-details {
    padding: 25px;
    border-top: 1px solid var(--border-color);
    background: #fafafa;
}

.cookie-type-details h4 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-type-details ul {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.cookie-type-details li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.cookie-type-details li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* === COOKIE IMPACT INFO === */
.cookie-impact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.impact-enabled,
.impact-disabled {
    padding: 20px;
    border-radius: 10px;
    border: 1px solid;
}

.impact-enabled {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #22c55e;
}

.impact-disabled {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #ef4444;
}

.impact-enabled h5,
.impact-disabled h5 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.impact-enabled h5 {
    color: #166534;
}

.impact-disabled h5 {
    color: #dc2626;
}

.impact-enabled ul,
.impact-disabled ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.85rem;
}

.impact-enabled li {
    color: #15803d;
}

.impact-disabled li {
    color: #b91c1c;
}

/* === INFO BOXES === */
.privacy-info-box,
.marketing-info-box,
.third-party-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.privacy-info-box h5,
.marketing-info-box h5,
.third-party-info h5 {
    margin: 0 0 12px 0;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}

.data-usage-info {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.data-usage-info h5 {
    margin: 0 0 12px 0;
    color: #059669;
    font-size: 1rem;
    font-weight: 600;
}

/* === COOKIE DETAILS EXPANSION === */
.cookie-details-expansion {
    margin: 20px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.cookie-details-expansion summary {
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    cursor: pointer;
    font-weight: 500;
    color: var(--primary-color);
    user-select: none;
    transition: background 0.3s ease;
}

.cookie-details-expansion summary:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.cookie-details-expansion[open] summary {
    border-bottom: 1px solid var(--border-color);
}

.technical-details {
    padding: 20px;
    background: white;
}

.cookie-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cookie-details-table th,
.cookie-details-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cookie-details-table th {
    background: var(--background-color);
    font-weight: 600;
    color: var(--text-color);
}

.cookie-details-table td {
    color: var(--text-muted);
}

.cookie-details-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* === SAVE SECTION === */
.cookie-save-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 40px 0;
}

.save-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.save-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.save-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.save-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* === COOKIE HISTORY === */
.cookie-history-section {
    background: var(--background-color);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid var(--border-color);
}

.cookie-history {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.history-item:last-child {
    border-bottom: none;
}

.history-action {
    font-weight: 500;
    color: var(--text-color);
}

.history-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.history-settings {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* === BROWSER LINKS === */
.browser-links {
    margin-top: 15px;
    text-align: center;
}

.browser-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.browser-links a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* === COOKIE SETTINGS FOOTER === */
.cookie-settings-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .cookie-status-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-management-panel {
        padding: 20px;
    }
    
    .cookie-type-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .cookie-type-main {
        width: 100%;
        justify-content: space-between;
    }
    
    .cookie-impact-info {
        grid-template-columns: 1fr;
    }
    
    .cookie-details-table {
        font-size: 0.8rem;
    }
    
    .cookie-details-table th,
    .cookie-details-table td {
        padding: 8px 6px;
    }
    
    .save-actions {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .cookie-type-details {
        padding: 20px;
    }
    
    .cookie-toggle-wrapper {
        width: 50px;
        height: 28px;
    }
    
    .cookie-toggle:before {
        height: 22px;
        width: 22px;
    }
    
    .cookie-checkbox:checked + .cookie-toggle:before {
        transform: translateX(22px);
    }
}

/* === ANIMATIONS === */
@keyframes settingsSaved {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.settings-saved {
    animation: settingsSaved 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-type-section {
    animation: fadeInUp 0.6s ease;
}

.cookie-type-section:nth-child(1) { animation-delay: 0.1s; }
.cookie-type-section:nth-child(2) { animation-delay: 0.2s; }
.cookie-type-section:nth-child(3) { animation-delay: 0.3s; }
.cookie-type-section:nth-child(4) { animation-delay: 0.4s; }

/* === ACCESSIBILITY === */
.cookie-toggle:focus,
.save-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .cookie-type-section {
        border-width: 3px;
    }
    
    .cookie-status-badge,
    .cookie-type-status {
        border-width: 2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-type-section,
    .cookie-toggle,
    .save-btn,
    .cookie-status-item {
        transition: none;
        animation: none;
    }
}