/* Netzspitze Cookie Consent - Styles */

.nz-cookie-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;
}

.nz-cc-bottom {
    bottom: 0;
}

.nz-cc-center {
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nz-cc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.nz-cc-container {
    position: relative;
    background: #ffffff;
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px 12px 0 0;
    max-height: 90vh;
    overflow-y: auto;
}

.nz-cc-center .nz-cc-container {
    border-radius: 12px;
    margin: 20px;
    max-height: calc(100vh - 40px);
}

.nz-cc-header {
    padding: 20px 24px 0;
}

.nz-cc-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.nz-cc-body {
    padding: 16px 24px;
}

.nz-cc-body > p {
    margin: 0 0 16px;
    color: #4a4a4a;
}

/* Cookie-Kategorien */
.nz-cc-categories {
    border-top: 1px solid #e5e5e5;
    padding-top: 16px;
    margin-top: 8px;
}

.nz-cc-category {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.nz-cc-category:last-child {
    margin-bottom: 0;
}

.nz-cc-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    cursor: pointer;
}

.nz-cc-category-name {
    flex: 1;
    font-weight: 500;
    color: #1a1a1a;
}

.nz-cc-required {
    font-weight: 400;
    font-size: 12px;
    color: #6b7280;
}

.nz-cc-expand {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #6b7280;
    transition: transform 0.2s;
}

.nz-cc-category.expanded .nz-cc-expand {
    transform: rotate(180deg);
}

.nz-cc-category-details {
    display: none;
    padding: 12px 16px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
}

.nz-cc-category.expanded .nz-cc-category-details {
    display: block;
}

.nz-cc-category-details p {
    margin: 0 0 8px;
    color: #4a4a4a;
    font-size: 13px;
}

.nz-cc-category-details small {
    color: #6b7280;
    font-size: 12px;
}

/* Toggle Switch */
.nz-cc-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.nz-cc-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

.nz-cc-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nz-cc-toggle input:checked + .nz-cc-slider {
    background-color: var(--nz-cc-primary, #2563eb);
}

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

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

/* Footer */
.nz-cc-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px 20px;
    border-top: 1px solid #e5e5e5;
    background: #f9fafb;
}

.nz-cc-links {
    display: flex;
    gap: 16px;
}

.nz-cc-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
}

.nz-cc-links a:hover {
    color: var(--nz-cc-primary, #2563eb);
    text-decoration: underline;
}

.nz-cc-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Buttons */
.nz-cc-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
}

.nz-cc-btn-settings {
    background: transparent;
    color: #4a4a4a;
    border: 1px solid #d1d5db;
}

.nz-cc-btn-settings:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.nz-cc-btn-reject {
    background: #f3f4f6;
    color: #374151;
}

.nz-cc-btn-reject:hover {
    background: #e5e7eb;
}

.nz-cc-btn-save {
    background: #374151;
    color: #fff;
}

.nz-cc-btn-save:hover {
    background: #1f2937;
}

.nz-cc-btn-accept {
    background: var(--nz-cc-primary, #2563eb);
    color: #fff;
}

.nz-cc-btn-accept:hover {
    filter: brightness(1.1);
}

/* Floating Button */
.nz-cc-floating {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--nz-cc-primary, #2563eb);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nz-cc-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Responsive */
@media (max-width: 600px) {
    .nz-cc-container {
        border-radius: 16px 16px 0 0;
    }
    
    .nz-cc-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nz-cc-links {
        justify-content: center;
        order: 2;
    }
    
    .nz-cc-buttons {
        flex-direction: column;
        order: 1;
    }
    
    .nz-cc-btn {
        width: 100%;
        text-align: center;
    }
}

/* Animation */
@keyframes nz-cc-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nz-cc-bottom .nz-cc-container {
    animation: nz-cc-slide-up 0.3s ease-out;
}

@keyframes nz-cc-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.nz-cc-center .nz-cc-container {
    animation: nz-cc-fade-in 0.3s ease-out;
}

/* Blocked Content Placeholder */
.nz-cc-blocked-content {
    position: relative;
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nz-cc-placeholder {
    text-align: center;
    padding: 30px;
    max-width: 400px;
}

.nz-cc-placeholder p {
    color: #4b5563;
    margin: 0 0 16px;
    font-size: 14px;
}

.nz-cc-placeholder .nz-cc-btn {
    margin: 0 auto;
}

/* Settings Page Shortcode */
.nz-cookie-settings-page {
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    margin: 20px 0;
}

.nz-cookie-settings-page h3 {
    margin-top: 0;
}
