/* ─── EXPORT MODAL ────────────────────────────────────────────── */
.export-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 200000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.export-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.export-modal-box {
    width: 100%;
    max-width: 440px;
    margin: 20px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
    overflow: hidden;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.export-modal-overlay.show .export-modal-box {
    transform: scale(1) translateY(0);
}

.export-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 16px;
    border-bottom: 1px solid rgba(79, 103, 115, 0.1);
}
.export-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    color: rgb(29, 29, 31);
    letter-spacing: -0.3px;
}
.export-modal-title svg {
    width: 18px;
    height: 18px;
    fill: rgb(79 103 115);
}
.export-close-btn {
    width: 28px;
    height: 28px;
    background: rgba(79, 103, 115, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 12px;
    color: rgb(56 71 79);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.export-close-btn:hover { background: rgba(79, 103, 115, 0.2); }

.export-modal-body {
    padding: 16px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.export-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.export-section-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(79, 103, 115, 0.6);
    margin-bottom: 2px;
}

.export-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
    font-weight: 500;
    color: rgb(29, 29, 31);
    user-select: none;
}
.export-option:hover { background: rgba(79, 103, 115, 0.06); }
.export-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
    pointer-events: none;
}
.export-option-box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid rgba(79, 103, 115, 0.3);
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}
.export-option input:checked ~ .export-option-box {
    background: rgb(79 103 115);
    border-color: rgb(79 103 115);
}
.export-option-box::after {
    content: '';
    width: 4px;
    height: 7px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) scale(0) translateY(-1px);
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
}
.export-option input:checked ~ .export-option-box::after {
    transform: rotate(45deg) scale(1) translateY(-1px);
}

/* ─── FORMAT BUTTONS ──────────────────────────────────────────── */
.export-formats {
    display: flex;
    gap: 8px;
    padding: 14px 22px 20px;
    border-top: 1px solid rgba(79, 103, 115, 0.1);
}
.export-format-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 14px 8px;
    background: rgba(79, 103, 115, 0.07);
    border: 1.5px solid rgba(79, 103, 115, 0.15);
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    color: rgb(56 71 79);
}
.export-format-btn:hover {
    background: rgba(79, 103, 115, 0.14);
    border-color: rgba(79, 103, 115, 0.35);
    transform: translateY(-2px);
}
.export-format-btn:active { transform: translateY(0); }
.export-format-btn svg {
    width: 22px;
    height: 22px;
    fill: rgb(79 103 115);
}

/* Excel green */
.export-format-btn:nth-child(1):hover { background: rgba(33,115,70,0.1); border-color: rgba(33,115,70,0.4); color: rgb(33,115,70); }
.export-format-btn:nth-child(1):hover svg { fill: rgb(33,115,70); }
/* Image blue */
.export-format-btn:nth-child(2):hover { background: rgba(0,122,255,0.1); border-color: rgba(0,122,255,0.4); color: rgb(0,122,255); }
.export-format-btn:nth-child(2):hover svg { fill: rgb(0,122,255); }
/* PPT orange */
.export-format-btn:nth-child(3):hover { background: rgba(211,80,0,0.1); border-color: rgba(211,80,0,0.4); color: rgb(211,80,0); }
.export-format-btn:nth-child(3):hover svg { fill: rgb(211,80,0); }
/* PDF red */
.export-format-btn:nth-child(4):hover { background: rgba(220,38,38,0.1); border-color: rgba(220,38,38,0.4); color: rgb(220,38,38); }
.export-format-btn:nth-child(4):hover svg { fill: rgb(220,38,38); }

/* ── Paywall-Schloss auf nicht freigeschalteten Export-Formaten ── */
.export-format-btn { position: relative; }
.export-paywall-lock {
    display: none;
    position: absolute;
    top: 8px; right: 8px;
    width: 22px; height: 22px;
    background: linear-gradient(135deg, #6b5cff, #5346d6);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.export-paywall-lock svg { width: 11px; height: 11px; fill: #fff; margin: 0; }
.export-format-btn.export-locked .export-paywall-lock { display: flex; }
.export-format-btn.export-locked {
    background: rgba(107, 92, 255, 0.06);
    border-color: rgba(107, 92, 255, 0.22);
    color: rgba(26, 26, 46, 0.55);
}
.export-format-btn.export-locked > svg { opacity: 0.55; }
.export-format-btn.export-locked:hover {
    background: rgba(107, 92, 255, 0.12) !important;
    border-color: rgba(107, 92, 255, 0.4) !important;
    color: #5346d6 !important;
}
.export-format-btn.export-locked:hover > svg { fill: #5346d6 !important; opacity: 1; }
[data-theme="dark"] .export-format-btn.export-locked {
    background: rgba(107, 92, 255, 0.16);
    border-color: rgba(107, 92, 255, 0.32);
    color: rgba(232, 234, 240, 0.6);
}

/* ─── STATUS / SPINNER ────────────────────────────────────────── */
.export-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid rgba(79, 103, 115, 0.1);
    font-size: 13px;
    font-weight: 600;
    color: rgb(79 103 115);
}
.export-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(79,103,115,0.2);
    border-top-color: rgb(79,103,115);
    border-radius: 50%;
    animation: exportSpin 0.7s linear infinite;
}
@keyframes exportSpin { to { transform: rotate(360deg); } }

/* ─── EXPORT BUTTON IN ZOOM BAR ───────────────────────────────── */
.gantt-zoom-export-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(79, 103, 115, 0.1);
    border: 1px solid rgba(79, 103, 115, 0.18);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    color: rgb(56 71 79);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
    touch-action: manipulation;
    white-space: nowrap;
    margin-left: auto; /* rechts ausrichten */
}
.gantt-zoom-export-btn:hover { background: rgba(79, 103, 115, 0.2); }
.gantt-zoom-export-btn:active { background: rgba(79, 103, 115, 0.32); }
.gantt-zoom-export-btn svg {
    width: 13px;
    height: 13px;
    fill: rgb(56 71 79);
    pointer-events: none;
}
@media (max-width: 480px) {
    .gantt-zoom-export-btn span { display: none; }
    .gantt-zoom-export-btn { padding: 5px 7px; margin-left: auto; }
}