diff --git a/diagnostic/index.html b/diagnostic/index.html
index 3af9d85..312eefa 100644
--- a/diagnostic/index.html
+++ b/diagnostic/index.html
@@ -812,6 +812,7 @@
+
${pin}${escapeForHtml(m.title || '(ohne Titel)')} ${cat}
+
${escapeForHtml(m.content || '')}
+ ${tags}
+
`;
+ };
+
+ const sections = allTypes.map(t => {
+ const label = BRAIN_TYPE_LABELS[t] || t;
+ const fixed = BRAIN_TYPE_INFO[t]?.fixed ? 'Filter: ${escapeForHtml(filterDesc)} · ${items.length} Eintrag${items.length === 1 ? '' : 'e'}
+ ${sections || 'Keine Eintraege fuer diesen Filter.
'}
+
+`;
+
+ const win = window.open('', '_blank');
+ if (!win) {
+ alert('Popup blockiert — bitte Popups für Diagnostic erlauben und nochmal klicken.');
+ return;
+ }
+ win.document.open();
+ win.document.write(html);
+ win.document.close();
+ } catch (e) {
+ alert('Druckansicht konnte nicht geladen werden: ' + e.message);
+ }
+ }
+
function _updateCategoryDatalist(items) {
const dl = document.getElementById('memory-category-suggestions');
if (!dl) return;