/**
 * Cookie Consent Banner Styling
 * DSGVO-konform für alle drei Webseiten
 */

/* Overlay */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(1px);
    z-index: 9998;
    animation: fadeIn 0.3s ease-in-out;
    pointer-events: none; /* Overlay ist durchklickbar */
}

/* Modal Container */
#cookie-consent-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; /* Banner-Container ist durchklickbar */
}

.cookie-consent-modal {
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUpFromBottom 0.3s ease-out;
    position: relative;
    z-index: 9999;
    pointer-events: auto; /* Modal ist klickbar */
}

/* Header */
.cookie-consent-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 32px 16px;
    border-bottom: 1px solid #e5e7eb;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent-header svg {
    color: #06B6D4;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.cookie-consent-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
}

/* Body */
.cookie-consent-body {
    padding: 20px 32px;
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent-body p {
    margin: 0 0 12px 0;
}

.cookie-consent-body p:last-child {
    margin-bottom: 0;
}

.cookie-consent-body strong {
    color: #0f172a;
    font-weight: 600;
}

.cookie-consent-info {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.cookie-consent-info a {
    color: #06B6D4;
    text-decoration: none;
    font-weight: 600;
}

.cookie-consent-info a:hover {
    text-decoration: underline;
}

/* Actions */
.cookie-consent-actions {
    display: flex;
    gap: 12px;
    padding: 16px 32px 24px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-btn {
    flex: 0 0 auto;
    min-width: 200px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #06B6D4 0%, #0891b2 100%);
    color: white;
}

.cookie-btn-primary:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

.cookie-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 2px solid #cbd5e1;
}

.cookie-btn-secondary:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

/* Benachrichtigung */
.cookie-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    opacity: 1;
    transition: opacity 0.3s ease;
    max-width: 400px;
}

.cookie-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0f172a;
    font-weight: 500;
}

.cookie-notification-success svg {
    color: #10b981;
}

.cookie-notification-info svg {
    color: #06B6D4;
}

/* Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFromBottom {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-header,
    .cookie-consent-body,
    .cookie-consent-actions {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cookie-consent-header h3 {
        font-size: 1.1rem;
    }

    .cookie-consent-body {
        font-size: 0.9rem;
    }

    .cookie-consent-actions {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-btn {
        width: 100%;
        min-width: 100%;
    }

    .cookie-notification {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .cookie-consent-modal {
        background: #1e293b;
    }

    .cookie-consent-header {
        border-bottom-color: #334155;
    }

    .cookie-consent-header h3 {
        color: #f1f5f9;
    }

    .cookie-consent-body {
        color: #cbd5e1;
    }

    .cookie-consent-body strong {
        color: #f1f5f9;
    }

    .cookie-consent-info {
        color: #94a3b8;
        border-top-color: #334155;
    }

    .cookie-btn-secondary {
        background: #334155;
        color: #f1f5f9;
        border-color: #475569;
    }

    .cookie-btn-secondary:hover {
        background: #475569;
    }

    .cookie-notification {
        background: #1e293b;
    }

    .cookie-notification-content {
        color: #f1f5f9;
    }
}

