/* Griffbretter „Inlay“ (gezeichnet von fbDraw in js/core/fretboard.js) */

svg.fb { display: block; max-width: 100%; height: auto; overflow: visible; font-family: var(--font); }
svg.fb--stretch { width: 100%; }
.fb-board { fill: var(--board); }
.fb-band { fill: var(--text-soft); }
.fb-marker { fill: var(--line-fine); }
.fb-fret { stroke: var(--line-fine); stroke-width: 1.5; }
.fb-nut { fill: var(--text); }
.fb-string { stroke: var(--line-ctl); }
.fb-lbl { fill: var(--text-muted); font-size: 13px; }
.fb-num { fill: var(--text-muted); font-size: 12px; }
.fb-mute { fill: var(--text-muted); font-size: 15px; }
.fb-brk path { fill: none; stroke: var(--line-ctl); stroke-width: 1.2; }
.fb-brk text { fill: var(--text-muted); font-size: 12px; }
.fb-brk.active path { stroke: var(--text); stroke-width: 1.6; }
.fb-brk.active text { fill: var(--text); font-weight: 600; }
.fb-brk--click { cursor: pointer; outline: none; }
.fb-brk__hit { fill: transparent; }
.fb-brk--click:hover path { stroke: var(--text); }
.fb-brk--click:hover text { fill: var(--text); }
.fb-brk--click:hover .fb-brk__hit { fill: var(--text-soft); }
.fb-brk--click:focus-visible .fb-brk__hit { fill: var(--text-soft); stroke: var(--accent); stroke-width: 2; }
.fb-barre { fill: var(--text); opacity: .28; }

/* Töne: solid = Knochen-Punkte (Griffbilder), ring = Ringe (Nachschlagen) */
.fb-dot { fill: var(--text); stroke: var(--board); stroke-width: 1.5; }
.fb-txt { fill: var(--bg); font-size: 12px; font-weight: 600; }
.fb-note.root .fb-dot { fill: var(--accent); }
.fb-note.root .fb-txt { fill: var(--on-accent); }
.fb--ring .fb-note:not(.root) .fb-dot { fill: var(--board); stroke: var(--text); stroke-width: 1.5; }
.fb--ring .fb-note:not(.root) .fb-txt { fill: var(--text); }
.fb-note.ghost .fb-dot { fill: var(--board); stroke: var(--line-ctl); stroke-width: 1.2; }
.fb-note.ghost .fb-txt { fill: var(--text-muted); font-weight: 400; }
.fb-note.ghost.root .fb-dot { fill: var(--line-ctl); stroke: var(--line-ctl); }
.fb-note.ghost.root .fb-txt { fill: var(--text); }
.fb-note.dim { opacity: .55; }
.fb-cur { fill: none; stroke: var(--accent); stroke-width: 2; }
.fb-fing { fill: var(--surface); stroke: var(--line-ctl); stroke-width: 1; }
.fb-fingtxt { fill: var(--text); font-size: 10px; font-weight: 600; }

/* Legende direkt an der Grafik */
.fb-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); font-size: var(--fs-small); color: var(--text-muted); }
.fb-legend span { display: inline-flex; align-items: center; gap: var(--s2); }
.fb-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; }
.fb-legend i.root { background: var(--accent); }
.fb-legend i.tone { background: var(--text); }
.fb-legend i.ring { border: 1.5px solid var(--text); }
.fb-legend i.ghost { border: 1.2px solid var(--line-ctl); }
.fb-legend i.mute { width: auto; height: auto; border-radius: 0; font-style: normal; }
.fb-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: var(--s2); }
.fb-scroll > svg.fb { min-width: 920px; }
.fb-region { fill: transparent; }
.fb-region.lv1 { fill: var(--accent); opacity: .18; }
.fb-region.lv2 { fill: var(--accent); opacity: .42; }
.fb-region.lv3 { fill: var(--accent); opacity: .75; }
.fb-mark { fill: var(--board); stroke: var(--text); stroke-width: 2; }
