/**
 * WW DSGVO Cookie Consent - Styles
 * Dezent, modern, DSGVO-konform
 */

/* Banner Container */
.ww-dsgvo-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.ww-dsgvo-bottom {
    bottom: 0;
}

.ww-dsgvo-center {
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

/* Container */
.ww-dsgvo-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.ww-dsgvo-bottom .ww-dsgvo-container {
    padding: 0;
}

/* Content Box */
.ww-dsgvo-content {
    background: #ffffff;
    padding: 24px 30px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.ww-dsgvo-center .ww-dsgvo-content {
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
}

/* Header */
.ww-dsgvo-header h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #222933;
}

/* Text */
.ww-dsgvo-text p {
    margin: 0 0 20px 0;
    color: #555;
    font-size: 14px;
}

/* Categories */
.ww-dsgvo-categories {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.ww-dsgvo-category {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    cursor: pointer;
    position: relative;
    padding-left: 32px;
}

.ww-dsgvo-category:last-child {
    margin-bottom: 0;
}

.ww-dsgvo-category input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.ww-dsgvo-checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.ww-dsgvo-category:hover input ~ .ww-dsgvo-checkmark {
    border-color: #222933;
}

.ww-dsgvo-category input:checked ~ .ww-dsgvo-checkmark {
    background-color: #222933;
    border-color: #222933;
}

.ww-dsgvo-category input:disabled ~ .ww-dsgvo-checkmark {
    background-color: #222933;
    border-color: #222933;
    opacity: 0.6;
}

.ww-dsgvo-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ww-dsgvo-category input:checked ~ .ww-dsgvo-checkmark:after {
    display: block;
}

.ww-dsgvo-label {
    display: block;
}

.ww-dsgvo-label strong {
    display: block;
    color: #222933;
    font-size: 14px;
}

.ww-dsgvo-label small {
    color: #777;
    font-size: 12px;
}

/* Buttons */
.ww-dsgvo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.ww-dsgvo-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 140px;
}

.ww-dsgvo-btn-accept {
    background: #222933;
    color: #fff;
}

.ww-dsgvo-btn-accept:hover {
    background: #3a4555;
}

.ww-dsgvo-btn-essential {
    background: #f0f0f0;
    color: #222933;
}

.ww-dsgvo-btn-essential:hover {
    background: #e0e0e0;
}

.ww-dsgvo-btn-settings {
    background: transparent;
    color: #222933;
    border: 1px solid #ccc;
}

.ww-dsgvo-btn-settings:hover {
    border-color: #222933;
}

.ww-dsgvo-btn-save {
    background: #222933;
    color: #fff;
    flex: 2;
}

.ww-dsgvo-btn-save:hover {
    background: #3a4555;
}

/* Links */
.ww-dsgvo-links {
    text-align: center;
    font-size: 12px;
    color: #888;
}

.ww-dsgvo-links a {
    color: #666;
    text-decoration: none;
}

.ww-dsgvo-links a:hover {
    color: #222933;
    text-decoration: underline;
}

.ww-dsgvo-links span {
    margin: 0 8px;
}

/* Settings Trigger Button */
.ww-dsgvo-settings-trigger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: #222933;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 99998;
    text-decoration: none;
}

.ww-dsgvo-settings-trigger:hover {
    background: #3a4555;
    transform: scale(1.1);
    color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    .ww-dsgvo-content {
        padding: 20px;
    }

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

    .ww-dsgvo-btn {
        width: 100%;
    }

    .ww-dsgvo-header h3 {
        font-size: 16px;
    }

    .ww-dsgvo-text p {
        font-size: 13px;
    }
}

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

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

.ww-dsgvo-bottom.ww-dsgvo-show {
    animation: wwDsgvoSlideUp 0.3s ease forwards;
}

.ww-dsgvo-center.ww-dsgvo-show {
    animation: wwDsgvoFadeIn 0.3s ease forwards;
}
