/* Download Button */
.wp-block-file {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    /* 
    background: var(--surface-muted);
    border: 1px solid var(--border-strong);
    */
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
    box-shadow: var(--shadow-1);
}

.wp-block-file:hover {
    background: var(--surface-strong);
    border-color: var(--brand);
}

/* Der Titel-Link: füllt den verfügbaren Platz, kein Unterstrich */
.wp-block-file > a:first-child {
    flex: 1;
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
}

.wp-block-file > a:first-child:after {
    content: "\F1C5";              
    font-family: "bootstrap-icons";
    display: inline-block;
    margin-left: 0.6em;
    font-size: 0.8em;
    vertical-align: 0em;
    color: var(--text-muted);
}

/* Dateityp-Symbol vor dem Titel */
.wp-block-file > a:first-child::before {
    font-family: "bootstrap-icons";
    font-size: 1.4rem;
    color: var(--brand);
    margin-right: 0.6rem;
    vertical-align: -0.15em;
    content: "\F356";   /* Standard: generisches Datei-Icon (file-earmark) */
}

/* PDF */
.wp-block-file:has( a[href$=".pdf"] ) > a:first-child::before {
    content: "\F63D";   /* file-earmark-pdf */
    color: #c0392b;
}

/* Word-Dokumente */
.wp-block-file:has( a[href$=".doc"] ) > a:first-child::before,
.wp-block-file:has( a[href$=".docx"] ) > a:first-child::before {
    content: "\F38D";   /* file-earmark-word */
    color: #2b579a;
}

/* Bilder */
.wp-block-file:has( a[href$=".png"] ) > a:first-child::before,
.wp-block-file:has( a[href$=".jpg"] ) > a:first-child::before,
.wp-block-file:has( a[href$=".jpeg"] ) > a:first-child::before {
    content: "\F36D";   /* file-earmark-image */
    color: #27ae60;
}

/* Excel */
.wp-block-file:has( a[href$=".xlsx"] ) > a:first-child::before,
.wp-block-file:has( a[href$=".xls"] ) > a:first-child::before {
    content: "\F389";   /* file-earmark-excel */
    color: #217346;
}

/* ZIP-Archive */
.wp-block-file:has( a[href$=".zip"] ) > a:first-child::before {
    content: "\F391";   /* file-earmark-zip */
}

.wp-block-file__button::before{
    font-family: "bootstrap-icons";
    margin-right: 0.6rem;
    vertical-align: -0.15rem;
    content: "\F30A";   /* Standard: generisches Datei-Icon (file-earmark) */
}