/**
 * DSGVO Cookie Consent Styles
 * Professional B2B design for German cookie consent banner
 */

/* Cookie Banner */
.dsgvo-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #ffffff;
    z-index: 999999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    border-top: 3px solid #007cba;
    animation: slideUp 0.3s ease-out;
}

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

.dsgvo-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.dsgvo-banner-text h3 {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.dsgvo-banner-text p {
    margin: 0 0 8px 0;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.5;
}

.dsgvo-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Buttons */
.dsgvo-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    line-height: 1;
    min-width: 120px;
    text-align: center;
}

.dsgvo-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.dsgvo-btn-accept {
    background: #007cba;
    color: #ffffff;
}

.dsgvo-btn-accept:hover {
    background: #005a87;
}

.dsgvo-btn-reject {
    background: #dc3545;
    color: #ffffff;
}

.dsgvo-btn-reject:hover {
    background: #c82333;
}

.dsgvo-btn-details {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.dsgvo-btn-details:hover {
    background: #ffffff;
    color: #1a1a1a;
}

.dsgvo-btn-save {
    background: #28a745;
    color: #ffffff;
}

.dsgvo-btn-save:hover {
    background: #218838;
}

/* Modal */
.dsgvo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.dsgvo-modal-content {
    background: #ffffff;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideInModal 0.3s ease-out;
}

@keyframes slideInModal {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dsgvo-modal-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dsgvo-modal-header h2 {
    margin: 0;
    color: #333333;
    font-size: 24px;
    font-weight: 600;
}

.dsgvo-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.dsgvo-close:hover {
    background: #e9ecef;
    color: #333333;
}

.dsgvo-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.dsgvo-modal-body > p:first-child {
    margin-top: 0;
    padding: 15px;
    background: #e3f2fd;
    border-left: 4px solid #007cba;
    border-radius: 4px;
    color: #0d47a1;
}

/* Cookie Categories */
.dsgvo-cookie-category {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.dsgvo-category-header {
    background: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.dsgvo-category-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333333;
    font-size: 16px;
    font-weight: 600;
}

.dsgvo-category-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007cba;
}

.dsgvo-category-header input[type="checkbox"]:disabled {
    opacity: 0.6;
}

.dsgvo-category-description {
    padding: 15px;
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
}

.dsgvo-category-description p {
    margin: 0 0 10px 0;
}

.dsgvo-category-description strong {
    color: #333333;
    display: inline-block;
    margin-top: 8px;
}

.dsgvo-category-description a {
    color: #007cba;
    text-decoration: none;
}

.dsgvo-category-description a:hover {
    text-decoration: underline;
}

/* Modal Footer */
.dsgvo-modal-footer {
    background: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.dsgvo-link {
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
}

.dsgvo-link:hover {
    text-decoration: underline;
}

.dsgvo-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Notifications */
.dsgvo-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000001;
    animation: slideInNotification 0.3s ease-out;
}

@keyframes slideInNotification {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.dsgvo-notification-success {
    border-left: 4px solid #28a745;
}

.dsgvo-notification-error {
    border-left: 4px solid #dc3545;
}

.dsgvo-notification-info {
    border-left: 4px solid #007cba;
}

.dsgvo-notification-content {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.dsgvo-notification-content span {
    color: #333333;
    font-size: 14px;
    line-height: 1.4;
}

.dsgvo-notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #666666;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    flex-shrink: 0;
}

.dsgvo-notification-close:hover {
    background: #f8f9fa;
    color: #333333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dsgvo-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .dsgvo-banner-text {
        min-width: auto;
    }

    .dsgvo-banner-actions {
        justify-content: center;
        width: 100%;
    }

    .dsgvo-btn {
        min-width: 100px;
        font-size: 13px;
        padding: 8px 16px;
    }

    .dsgvo-modal {
        padding: 10px;
    }

    .dsgvo-modal-content {
        max-height: 95vh;
    }

    .dsgvo-modal-header {
        padding: 15px;
    }

    .dsgvo-modal-header h2 {
        font-size: 20px;
    }

    .dsgvo-modal-body {
        padding: 15px;
        max-height: 70vh;
    }

    .dsgvo-modal-footer {
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
    }

    .dsgvo-modal-actions {
        justify-content: center;
        width: 100%;
    }

    .dsgvo-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .dsgvo-category-header,
    .dsgvo-category-description {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .dsgvo-banner-actions {
        flex-direction: column;
        gap: 8px;
    }

    .dsgvo-btn {
        width: 100%;
        min-width: auto;
    }

    .dsgvo-modal-actions {
        flex-direction: column;
    }

    .dsgvo-modal-actions .dsgvo-btn {
        width: 100%;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dsgvo-banner {
        border-top-width: 5px;
    }

    .dsgvo-btn {
        border-width: 2px;
        font-weight: 600;
    }

    .dsgvo-cookie-category {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .dsgvo-banner,
    .dsgvo-modal,
    .dsgvo-modal-content,
    .dsgvo-notification {
        animation: none;
    }

    .dsgvo-btn,
    .dsgvo-close,
    .dsgvo-notification-close {
        transition: none;
    }
}

/* Print styles */
@media print {
    .dsgvo-banner,
    .dsgvo-modal,
    .dsgvo-notification {
        display: none !important;
    }
}