.begleitmaterial-list {
    margin: 1.5em 0;
}

.bm-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fee;
    border: 2px solid #c33;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    color: #333;
}

.bm-warning i {
    color: #c33;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.bm-warning p {
    margin: 6px 0 0;
    font-size: 14px;
    color: #666;
}

.bm-empty {
    color: #666;
    font-style: italic;
}

/* A4 Hochformat: 3 Kacheln nebeneinander in der Content-Spalte */
.bm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
}

.bm-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

.bm-thumb-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.bm-thumb-link:hover .bm-thumb {
    background: #ddd;
}

.bm-thumb {
    background: #e8e8e8;
    aspect-ratio: 210 / 297; /* A4 Hochformat */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-sizing: border-box;
}

.bm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    display: block;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.bm-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    color: #c33;
    font-size: 40px;
}

.bm-info {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 4px;
}

.bm-name {
    font-weight: 600;
    font-size: 12px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.bm-meta {
    font-size: 11px;
    color: #888;
}

.bm-download {
    margin-top: auto;
    display: inline-block;
    text-align: center;
    padding: 7px 10px;
    font-size: 12px;
    text-decoration: none;
}

.bm-download--disabled {
    opacity: 0.6;
    cursor: not-allowed;
    color: #666;
    font-size: 11px;
    padding: 7px 0;
}

@media (max-width: 640px) {
    .bm-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 400px) {
    .bm-grid {
        grid-template-columns: 1fr;
    }
}
