/*
 * Hintergrund-Liste im Akkordeon-Stil (wie Spezies/Klassen, Waldemaster-Design).
 * Praefix wm-wbg-, Wurzel #wbgApp. Bausteine aus wsc-shared.css.
 */
.wm-wbg-app{ margin: 0 auto; max-width: var(--wsc-content-width, 1000px); }
.wm-wbg-subrow{ display:flex; justify-content:space-between; align-items:flex-end; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
.wm-wbg-sub{ font-size: 12.5px; color: var(--wm-muted); max-width: 680px; }
.wm-wbg-count{ font-size: 12px; font-weight: 700; color: var(--wm-teal); white-space: nowrap; }

.wm-wbg-filters{ margin-bottom: 12px; }
.wm-wbg-field{ display:flex; flex-direction:column; gap:4px; }
.wm-wbg-field-grow{ max-width: 340px; }
.wm-wbg-flabel{ font-size: 11px; font-weight:700; letter-spacing:.4px; color: var(--wm-muted); text-transform: uppercase; }
.wm-wbg-search{ font-family:inherit; font-size:14px; padding:7px 10px; border:1px solid var(--wm-divider); border-radius:6px; background:#fff; }

.wm-wbg-list{ display:flex; flex-direction:column; gap:8px; }
.wm-wbg-item{ border:1px solid var(--wm-divider); border-radius:8px; background:#fff; overflow:hidden; }
.wm-wbg-head{ display:flex; align-items:center; gap:12px; padding:10px 14px; cursor:pointer; }
.wm-wbg-head:hover{ background: var(--wm-panel, #f7f4ec); }
.wm-wbg-icon{ font-size:22px; width:40px; height:40px; display:flex; align-items:center; justify-content:center; background:var(--wm-panel,#efeadd); border-radius:8px; flex:0 0 40px; }
.wm-wbg-name{ flex:1 1 auto; min-width:0; }
.wm-wbg-name-title{ font-family:Georgia,serif; font-weight:700; font-size:17px; color:var(--wm-teal); }
.wm-wbg-name-sub{ font-size:12px; color:var(--wm-muted); }
.wm-wbg-toggle{ flex:0 0 auto; width:30px; height:30px; border:1px solid var(--wm-divider); background:#fff; border-radius:50%; font-size:18px; line-height:1; color:var(--wm-teal); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; padding:0; font-family:inherit; }

.wm-wbg-item .wm-wbg-body{ display:none; }
.wm-wbg-item.is-open .wm-wbg-body{ display:block; padding:4px 18px 18px; border-top:1px solid var(--wm-divider); }

.wm-wbg-desc{ font-size:15px; line-height:1.55; margin:12px 0; color:var(--wm-ink,#2b2b2b); }
.wm-wbg-rows{ display:flex; flex-direction:column; gap:6px; border:1px solid var(--wm-divider); border-radius:8px; padding:10px 12px; background:var(--wm-panel,#f7f4ec); }
.wm-wbg-row{ display:flex; gap:10px; font-size:13px; line-height:1.45; }
.wm-wbg-row-k{ flex:0 0 150px; font-weight:700; color:var(--wm-muted); }
.wm-wbg-row-v{ flex:1 1 auto; }

.wm-wbg-source{ margin-top:14px; font-size:11px; color:var(--wm-muted); text-align:right; }
.wm-wbg-nores{ padding:20px; text-align:center; color:var(--wm-muted); }

@media (max-width:600px){ .wm-wbg-row-k{ flex-basis:110px; } }

/* Offener Eintrag deutlich hervorheben (Muster wie Zauber-/Item-Liste). */
.wm-wbg-item{ transition:box-shadow .15s ease, border-color .15s ease; }
.wm-wbg-item.is-open{ border-color:var(--wm-teal); box-shadow:0 1px 6px rgba(12,133,123,.12); }
.wm-wbg-item.is-open .wm-wbg-head{ background:var(--wm-panel,#f7f4ec); }
