/* Banner Layout (CookieYes Style) */
.dsgvo-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 18px 24px;
    box-sizing: border-box;
    transition: transform 0.4s ease-in-out;
}
.dsgvo-hidden {
    display: none !important;
}
.dsgvo-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.dsgvo-banner-text {
    flex: 1;
}
.dsgvo-banner-text p {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
}
.dsgvo-banner-text a {
    color: #2563eb;
    text-decoration: none;
}
.dsgvo-banner-text a:hover {
    text-decoration: underline;
}
.dsgvo-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.dsgvo-btn {
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.dsgvo-btn-primary {
    background-color: #18181b; /* Black button like CookieYes default */
    color: #ffffff;
}
.dsgvo-btn-primary:hover {
    background-color: #3f3f46;
}
.dsgvo-btn-secondary {
    background-color: #ffffff;
    color: #18181b;
    border-color: #d4d4d8;
}
.dsgvo-btn-secondary:hover {
    background-color: #f4f4f5;
}
.dsgvo-btn-block {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

/* Modal (Preferences Center) */
.dsgvo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.dsgvo-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}
.dsgvo-modal-content {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.dsgvo-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dsgvo-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}
.dsgvo-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}
.dsgvo-modal-close:hover {
    color: #111827;
}
.dsgvo-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}
.dsgvo-category {
    margin-top: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
    background-color: #f9fafb;
}
.dsgvo-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.dsgvo-category-title {
    font-weight: 600;
    color: #111827;
    font-size: 15px;
}
.dsgvo-category-status {
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
}
.dsgvo-category-desc {
    font-size: 13px;
    color: #6b7280;
}

/* Toggle Switch */
.dsgvo-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}
.dsgvo-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.dsgvo-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #d1d5db;
    transition: .3s;
    border-radius: 22px;
}
.dsgvo-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
input:checked + .dsgvo-slider {
    background-color: #18181b; /* Matches primary button */
}
input:checked + .dsgvo-slider:before {
    transform: translateX(18px);
}

.dsgvo-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
    border-radius: 0 0 8px 8px;
}

/* Revisit Widget (Floating Button) */
.dsgvo-revisit {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999998;
    color: #18181b;
    transition: all 0.2s;
    padding: 0;
}
.dsgvo-revisit svg {
    width: 24px;
    height: 24px;
}
.dsgvo-revisit:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .dsgvo-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .dsgvo-banner-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }
    .dsgvo-btn {
        width: 100%;
        text-align: center;
    }
    .dsgvo-revisit {
        bottom: 16px;
        left: 16px;
        width: 40px;
        height: 40px;
    }
    .dsgvo-revisit svg {
        width: 20px;
        height: 20px;
    }
}
