/* ═══════════════════════════════════════════════════
   WP File Downloads — Frontend-Styles
   ═══════════════════════════════════════════════════ */

.wpfd-wrapper { margin: 1.5em 0; }

/* ── Kategorie-Kopf ──────────────────────────────── */
.wpfd-cat-title    { font-size: 1.2em; margin: 1em 0 .3em; }
.wpfd-cat-desc     { color: #555; margin-bottom: .8em; font-size: .93em; }

.wpfd-cat-block    { margin-bottom: 2em; }
.wpfd-cat-block:last-child { margin-bottom: 0; }

/* Unterkategorie-Kopf */
.wpfd-subcat-block  { margin-top: 1.2em; padding-left: 1em; border-left: 3px solid #e5e7eb; }
.wpfd-subcat-title  { font-size: 1em; font-weight: 600; margin: 0 0 .4em; color: #374151; }
.wpfd-subcat-desc   { font-size: .88em; color: #6b7280; margin-bottom: .6em; }

/* ── Dateiliste ──────────────────────────────────── */
.wpfd-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e5e7eb;
}

.wpfd-file-item { border-bottom: 1px solid #e5e7eb; }

.wpfd-file-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 6px;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}
.wpfd-file-link:hover {
    background: #f8fafc;
    color: inherit;
    text-decoration: none;
}

/* ── Icon ────────────────────────────────────────── */
.wpfd-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}
.wpfd-icon svg { width: 26px; height: 26px; }

/* Dateityp-Farben */
.wpfd-file-item[data-ext="pdf"]  .wpfd-icon { color: #dc2626; }
.wpfd-file-item[data-ext="xls"]  .wpfd-icon,
.wpfd-file-item[data-ext="xlsx"] .wpfd-icon { color: #16a34a; }
.wpfd-file-item[data-ext="doc"]  .wpfd-icon,
.wpfd-file-item[data-ext="docx"] .wpfd-icon { color: #2563eb; }
.wpfd-file-item[data-ext="ppt"]  .wpfd-icon,
.wpfd-file-item[data-ext="pptx"] .wpfd-icon { color: #ea580c; }
.wpfd-file-item[data-ext="zip"]  .wpfd-icon,
.wpfd-file-item[data-ext="rar"]  .wpfd-icon { color: #d97706; }
.wpfd-file-item[data-ext="jpg"]  .wpfd-icon,
.wpfd-file-item[data-ext="jpeg"] .wpfd-icon,
.wpfd-file-item[data-ext="png"]  .wpfd-icon { color: #7c3aed; }

/* ── Datei-Info ──────────────────────────────────── */
.wpfd-file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.wpfd-file-title {
    font-weight: 600;
    font-size: .95em;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wpfd-file-desc {
    font-size: .82em;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wpfd-file-meta  { display: flex; gap: 12px; font-size: .78em; color: #9ca3af; flex-wrap: wrap; }

/* ── Download-Button ─────────────────────────────── */
.wpfd-download-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #9ca3af;
    transition: background .15s, color .15s;
}
.wpfd-file-link:hover .wpfd-download-btn {
    background: #eff6ff;
    color: #2271b1;
}
.wpfd-download-btn svg { width: 18px; height: 18px; }

/* ── Leer-Zustand ────────────────────────────────── */
.wpfd-empty { color: #9ca3af; font-style: italic; margin: .5em 0; }
