/**
 * Styles für das einfache Cookie-Consent-System
 */

/* Banner */
#cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0070f3;
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cc-banner.cc-visible {
    transform: translateY(0);
}

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

.cc-content {
    flex: 1;
    min-width: 300px;
}

.cc-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: white;
}

.cc-text {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
    color: white;
}

.cc-link-btn {
    background: none;
    border: none;
    color: white;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0;
    margin-left: 0.25rem;
    font-weight: 500;
}

.cc-link-btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

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

.cc-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.cc-btn-primary {
    background: white;
    color: #0070f3;
}

.cc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.cc-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cc-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cc-btn-tertiary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.cc-btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Settings Modal */
#cc-settings {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#cc-settings.cc-visible {
    opacity: 1;
    pointer-events: auto;
}

.cc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.cc-modal {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#cc-settings.cc-visible .cc-modal {
    transform: scale(1);
}

.cc-modal-header {
    background: #ffffff;
    color: #1a202c;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cc-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.cc-close {
    background: none;
    border: none;
    color: #666666;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.cc-close:hover {
    background: #f3f4f6;
    color: #1a202c;
}

.cc-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cc-block {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #0070f3;
}

.cc-block h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    color: #1a202c;
}

.cc-block p {
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
    color: #4a5568;
}

.cc-block p:last-child {
    margin-bottom: 0;
}

.cc-link {
    color: #0070f3;
    text-decoration: underline;
}

.cc-link:hover {
    color: #0051cc;
}

.cc-category {
    background: white;
    padding: 1rem;
    border-radius: 6px;
}

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

.cc-category-header h3 {
    margin: 0;
    font-size: 1rem;
}

/* Toggle Switch */
.cc-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.3s;
    border-radius: 26px;
}

.cc-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cc-slider {
    background-color: #0070f3;
}

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

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

/* Cookie Table */
.cc-cookie-table {
    margin-top: 1rem;
    overflow-x: auto;
}

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

.cc-cookie-table th {
    background: #f7fafc;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
}

.cc-cookie-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

.cc-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex !important;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cc-modal-footer .cc-btn {
    flex: 1;
    min-width: 150px;
}

/* Responsive */
@media (max-width: 768px) {
    .cc-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cc-buttons {
        justify-content: stretch;
    }
    
    .cc-btn {
        flex: 1;
        text-align: center;
    }
    
    .cc-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .cc-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .cc-modal-footer {
        flex-direction: column;
    }
    
    .cc-modal-footer .cc-btn {
        width: 100%;
    }
}

/* Animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

