/* ==========================================================================
   Gitarren-Tab-Editor – "Werkbank"
   Das Notenblatt liegt wie gestochene Noten auf einer Werkbank aus Palisander.
   Drei Lackfarben tragen Bedeutung: Lake Placid Blue = Auswahl und Bearbeiten,
   Surf Green = Wiedergabe, Candy Apple Red = Stopp und Ungespeichertes.
   ========================================================================== */

html:has(body.wb) { height: 100%; }
body.wb {
  --palisander: #241c1b;
  --ebenholz: #2e2524;
  --ebenholz-tief: #1c1615;
  --maser: #3b302e;
  --maser-hell: #54453f;
  --knochen: #ede6df;
  --nickel: #a89f9a;
  --nickel-tief: #7d7470;
  --papier: #ffffff;
  --tinte: #141821;
  --blau: #3a6fc4;
  --blau-hell: #8fb0ea;
  --blau-grund: rgba(58, 111, 196, 0.26);
  --gruen: #7cc9a9;
  --gruen-tief: #2f8f6b;
  --rot: #d2463f;
  --schrift-ui: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  --schrift-blatt: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
  --r-klein: 6px;
  --r: 9px;

  height: 100%; margin: 0; overflow: hidden;
  display: grid;
  grid-template-columns: 6.4rem minmax(0, 1fr) 19.5rem;
  grid-template-rows: 3.7rem minmax(0, 1fr) 4.6rem;
  grid-template-areas: "kopf kopf kopf" "werkzeug tisch inspektor" "transport transport transport";
  background: var(--palisander); color: var(--knochen);
  font-family: var(--schrift-ui); font-size: 0.875rem; line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
:where(body.wb) svg { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:where(body.wb) [hidden] { display: none !important; }
.unsichtbar { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Grundelemente ----------------------------------------------------------------- */
:where(body.wb) button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:where(body.wb) button:disabled { opacity: 0.32; cursor: default; }
body.wb :focus-visible { outline: 2px solid var(--blau-hell); outline-offset: 2px; }
:where(body.wb) :is(input, select) {
  font: inherit; color: var(--knochen); background: var(--ebenholz-tief);
  border: 1px solid var(--maser); border-radius: var(--r-klein); padding: 0.45rem 0.55rem; min-width: 0; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
:where(body.wb) select { appearance: none; padding-right: 1.8rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--nickel) 50%), linear-gradient(135deg, var(--nickel) 50%, transparent 50%);
  background-position: calc(100% - 13px) 55%, calc(100% - 8px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
:where(body.wb) select option { background: var(--ebenholz); color: var(--knochen); }
:where(body.wb) :is(input, select):hover { border-color: var(--maser-hell); }
:where(body.wb) :is(input, select):focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px var(--blau-grund); }
:where(body.wb) input[type=number] { font-variant-numeric: tabular-nums; }
:where(body.wb) input[type=checkbox] { width: 1rem; height: 1rem; padding: 0; accent-color: var(--blau); }

.wb-symbol { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: var(--r); color: var(--nickel); transition: background 0.15s, color 0.15s; }
.wb-symbol:hover:not(:disabled) { background: rgba(237, 230, 223, 0.07); color: var(--knochen); }
.wb-knopf { padding: 0.5rem 0.75rem; border-radius: var(--r-klein); border: 1px solid var(--maser); background: rgba(237, 230, 223, 0.03); color: var(--knochen); font-size: 0.82rem; transition: border-color 0.15s, background 0.15s; }
.wb-knopf:hover { border-color: var(--maser-hell); background: rgba(237, 230, 223, 0.07); }

/* Tooltips ------------------------------------------------------------------------ */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; z-index: 40; pointer-events: none;
  left: 50%; top: calc(100% + 8px); transform: translate(-50%, -3px);
  background: var(--knochen); color: var(--palisander); font-size: 0.74rem; font-weight: 500; line-height: 1.2;
  padding: 0.35rem 0.55rem; border-radius: var(--r-klein); white-space: nowrap;
  opacity: 0; transition: opacity 0.12s 0s, transform 0.12s 0s; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.6);
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 0.35s; }
.wb-werkzeug [data-tip]::after { left: calc(100% + 10px); top: 50%; transform: translate(-3px, -50%); }
.wb-werkzeug [data-tip]:hover::after, .wb-werkzeug [data-tip]:focus-within::after { transform: translate(0, -50%); }
.wb-transport [data-tip]::after { top: auto; bottom: calc(100% + 10px); transform: translate(-50%, 3px); }
.wb-transport [data-tip]:hover::after { transform: translate(-50%, 0); }
.wb-aktionen [data-tip]::after { left: auto; right: 0; transform: translate(0, -3px); }
.wb-aktionen [data-tip]:hover::after { transform: translate(0, 0); }

/* Kopfleiste ---------------------------------------------------------------------- */
.wb-kopf {
  grid-area: kopf; display: flex; align-items: center; gap: 0.75rem; padding: 0 0.9rem 0 0.55rem;
  background: var(--ebenholz-tief); border-bottom: 1px solid var(--maser); position: relative; z-index: 10;
}
.wb-zurueck { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: var(--r); color: var(--nickel); text-decoration: none; }
.wb-zurueck:hover { background: rgba(237, 230, 223, 0.07); color: var(--knochen); }
.wb-marke svg { width: 1.45rem; height: 1.45rem; fill: var(--blau); stroke: none; filter: drop-shadow(0 2px 4px rgba(58, 111, 196, 0.35)); }
.wb-titel { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
#tb-name { font-weight: 650; font-size: 1rem; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-titel__zeile { display: flex; gap: 0.7rem; font-size: 0.75rem; color: var(--nickel); }
.wb-stand::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--gruen); margin-right: 0.4rem; vertical-align: 0.05rem; }
.wb-stand.offen::before { background: var(--rot); }
.wb-fremd { color: var(--blau-hell); }

.wb-ansicht { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(237, 230, 223, 0.06); border: 1px solid var(--maser); }
.wb-ansicht button { padding: 0.38rem 0.95rem; border-radius: 999px; color: var(--nickel); font-size: 0.8rem; font-weight: 550; transition: background 0.18s, color 0.18s; }
.wb-ansicht button:hover { color: var(--knochen); }
.wb-ansicht button[aria-pressed=true] { background: var(--knochen); color: var(--palisander); }

.wb-aktionen { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.wb-paar { display: inline-flex; margin-right: 0.2rem; }
.wb-speichern {
  padding: 0.5rem 1rem; border-radius: var(--r); background: var(--blau); color: #fff; font-weight: 600; font-size: 0.84rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 16px -8px rgba(58, 111, 196, 0.9); transition: background 0.15s;
}
.wb-speichern:hover { background: #2f60ad; }
.wb-speichern.dringend { box-shadow: 0 0 0 2px var(--ebenholz-tief), 0 0 0 4px rgba(210, 70, 63, 0.75); }

.wb-menue { position: relative; }
.wb-menue > summary { list-style: none; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.8rem; border-radius: var(--r); color: var(--knochen); font-size: 0.84rem; cursor: pointer; border: 1px solid var(--maser); }
.wb-menue > summary::-webkit-details-marker { display: none; }
.wb-menue > summary:hover, .wb-menue[open] > summary { background: rgba(237, 230, 223, 0.07); border-color: var(--maser-hell); }
.wb-menue__liste {
  position: absolute; right: 0; top: calc(100% + 0.45rem); z-index: 30; width: 19rem; padding: 0.35rem;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--ebenholz); border: 1px solid var(--maser-hell); border-radius: 12px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.75);
}
.wb-menue__liste button { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; padding: 0.6rem 0.75rem; border-radius: 8px; text-align: left; }
.wb-menue__liste button:hover { background: var(--blau-grund); }
.wb-menue__liste strong { font-weight: 600; font-size: 0.86rem; }
.wb-menue__liste span { color: var(--nickel); font-size: 0.76rem; }

/* Werkzeugleiste -------------------------------------------------------------------------- */
.wb-werkzeug {
  grid-area: werkzeug; overflow-y: auto; overflow-x: visible; padding: 0.9rem 0.55rem 1.2rem;
  display: flex; flex-direction: column; gap: 1.1rem; background: var(--ebenholz-tief); border-right: 1px solid var(--maser);
}
.wb-gruppe { display: flex; flex-direction: column; gap: 0.45rem; }
.wb-gruppe__name { font-size: 0.68rem; color: var(--nickel-tief); padding-left: 0.15rem; }
.wb-kacheln { display: grid; grid-template-columns: repeat(2, 2.45rem); gap: 0.35rem; justify-content: center; }
.wb-kachel {
  position: relative; display: grid; place-items: center; width: 2.45rem; height: 2.45rem; border-radius: 8px; cursor: pointer;
  background: rgba(237, 230, 223, 0.035); border: 1px solid var(--maser); color: var(--knochen);
  transition: background 0.14s, border-color 0.14s, color 0.14s, transform 0.06s;
}
.wb-kachel:hover { border-color: var(--maser-hell); background: rgba(237, 230, 223, 0.08); }
.wb-kachel:active { transform: scale(0.96); }
.wb-kachel input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wb-kachel:has(input:checked), .wb-kachel[aria-pressed=true] { background: var(--blau); border-color: var(--blau-hell); color: #fff; box-shadow: 0 6px 14px -8px rgba(58, 111, 196, 0.9); }
.wb-kachel:has(input:focus-visible) { outline: 2px solid var(--blau-hell); outline-offset: 2px; }
body.wb .wb-glyph { width: 1.5rem; height: 1.5rem; fill: currentColor; stroke: none; }
body.wb .wb-glyph .stiel, body.wb .wb-glyph .linie { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: butt; }
body.wb .wb-glyph .hohl { fill: none; stroke: currentColor; stroke-width: 1.7; }
.wb-ziffer { font-family: var(--schrift-blatt); font-style: italic; font-weight: 700; font-size: 1.15rem; }
.wb-kurz { font-family: var(--schrift-blatt); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em; }
.wb-kurz--klein { font-size: 0.72rem; font-style: italic; }

/* Werkbank und Blatt -------------------------------------------------------------------------- */
.wb-tisch {
  grid-area: tisch; overflow-y: auto; overflow-x: hidden; outline: none; min-height: 0;
  padding: 2.2rem clamp(1rem, 3vw, 2.6rem) 4rem;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255, 236, 214, 0.07), transparent 60%),
    repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.07) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(88deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 23px),
    var(--palisander);
  scrollbar-color: var(--maser-hell) transparent;
}
.wb-blatt {
  position: relative; max-width: 74rem; margin: 0 auto; min-height: calc(100% - 1rem);
  background: var(--papier); color: var(--tinte); border-radius: 2px;
  padding: clamp(1.6rem, 3.5vw, 3.2rem) clamp(1.2rem, 3.2vw, 3.3rem) 3.6rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 2px 3px rgba(0, 0, 0, 0.25), 0 30px 60px -28px rgba(0, 0, 0, 0.75);
  transition: box-shadow 0.2s;
}
.wb-tisch:focus-visible { outline: none; }
.wb-tisch:focus-visible .wb-blatt { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(143, 176, 234, 0.55), 0 30px 60px -28px rgba(0, 0, 0, 0.75); }
.wb-blatt__kopf { text-align: center; margin: 0 0 1.4rem; }
#tb-blatt-titel { font-family: var(--schrift-blatt); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.25rem); letter-spacing: 0.01em; line-height: 1.15; margin: 0 0 0.9rem; color: var(--tinte); }
.wb-blatt__angaben { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1rem; font-family: var(--schrift-blatt); font-size: 0.95rem; color: #3b4150; }
.wb-blatt__tempo { text-align: left; font-weight: 600; }
.wb-blatt__stimmung { font-style: italic; font-size: 0.86rem; color: #5a6070; }
.wb-blatt__kuenstler { text-align: right; font-style: italic; }
.wb-blatt__inhalt { position: relative; }
#tb-canvas { display: block; }

/* Eigenschaften ---------------------------------------------------------------------------------- */
.wb-inspektor { grid-area: inspektor; overflow-y: auto; min-height: 0; background: var(--ebenholz); border-left: 1px solid var(--maser); scrollbar-color: var(--maser-hell) transparent; }
.wb-reiter { position: sticky; top: 0; z-index: 2; display: flex; gap: 1.2rem; padding: 0 1.1rem; background: var(--ebenholz); border-bottom: 1px solid var(--maser); }
.wb-reiter button { position: relative; padding: 0.95rem 0 0.8rem; color: var(--nickel); font-weight: 550; font-size: 0.86rem; }
.wb-reiter button:hover { color: var(--knochen); }
.wb-reiter button[aria-selected=true] { color: var(--knochen); }
.wb-reiter button[aria-selected=true]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--blau-hell); }
.wb-feld { padding: 1.1rem 1.1rem 1.6rem; display: flex; flex-direction: column; gap: 0.85rem; }
.wb-feld form { display: flex; flex-direction: column; gap: 0.85rem; }
.wb-eingabe { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.76rem; color: var(--nickel); }
.wb-eingabe--gross input { font-size: 1rem; font-weight: 600; padding: 0.55rem 0.6rem; }
.wb-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.wb-reihe--unten { align-items: end; }
.wb-reihe--mitte { display: flex; align-items: center; justify-content: space-between; }
.wb-mit-einheit { position: relative; display: block; }
.wb-mit-einheit i { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 0.72rem; color: var(--nickel-tief); pointer-events: none; }
.wb-mit-einheit input { padding-right: 2.6rem; }
.wb-takt { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.35rem; }
.wb-takt i { font-style: normal; color: var(--nickel-tief); }
.wb-stimmung { display: grid; grid-template-columns: repeat(auto-fit, minmax(2rem, 1fr)); gap: 0.3rem; margin-top: -0.35rem; }
.wb-stimmung label { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; font-size: 0.66rem; color: var(--nickel-tief); }
.wb-stimmung select { padding: 0.4rem 0.1rem; text-align: center; text-align-last: center; background-image: none; padding-right: 0.1rem; font-weight: 600; }
.wb-haken { display: flex; align-items: center; gap: 0.55rem; font-size: 0.84rem; color: var(--knochen); cursor: pointer; }
.wb-mal { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--nickel); font-size: 0.8rem; }
.wb-mal input { width: 3.6rem; }
.wb-mal i { font-style: normal; }
.wb-knopfraster { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-top: 0.3rem; }
.wb-knopf--breit { grid-column: 1 / -1; }
.wb-notiz { margin: 0.2rem 0 0; font-size: 0.78rem; color: var(--nickel-tief); line-height: 1.5; }

/* Transport ------------------------------------------------------------------------------------------ */
.wb-transport {
  grid-area: transport; display: flex; align-items: center; gap: 1.5rem; padding: 0 1.1rem 0 0.9rem;
  background: linear-gradient(180deg, #1f1817, #161110); border-top: 1px solid var(--maser);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.03) inset;
}
.wb-spiel { display: flex; align-items: center; gap: 0.3rem; }
.wb-play {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; margin-right: 0.45rem;
  background: var(--gruen); color: var(--palisander);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 18px -8px rgba(124, 201, 169, 0.75);
  transition: background 0.18s, box-shadow 0.18s, transform 0.08s;
}
.wb-play:hover { background: #8fd6b8; }
.wb-play:active { transform: scale(0.95); }
body.wb .wb-play svg { width: 1.35rem; height: 1.35rem; fill: currentColor; stroke: none; }
.wb-play__an { margin-left: 0.15rem; }
.wb-play__aus { display: none; }
.wb-play.laeuft { background: var(--rot); color: #fff; box-shadow: 0 0 0 0 rgba(210, 70, 63, 0.55); animation: wb-puls 1.8s ease-out infinite; }
.wb-play.laeuft .wb-play__an { display: none; }
.wb-play.laeuft .wb-play__aus { display: block; }
@keyframes wb-puls { 0% { box-shadow: 0 0 0 0 rgba(210, 70, 63, 0.5); } 75% { box-shadow: 0 0 0 11px rgba(210, 70, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(210, 70, 63, 0); } }
.wb-schalter { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: var(--r); color: var(--nickel); transition: background 0.15s, color 0.15s; }
.wb-schalter:hover { background: rgba(237, 230, 223, 0.07); color: var(--knochen); }
.wb-schalter[aria-pressed=true] { color: var(--gruen); background: rgba(124, 201, 169, 0.12); }

.wb-anzeige { display: flex; flex-direction: column; min-width: 8.5rem; padding-left: 1.2rem; border-left: 1px solid var(--maser); font-variant-numeric: tabular-nums; }
.wb-anzeige__takt { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.005em; }
.wb-anzeige__zeit { font-size: 0.78rem; color: var(--nickel); }

.wb-tempo { display: flex; align-items: center; gap: 0.7rem; font-variant-numeric: tabular-nums; }
.wb-tempo__wert { font-size: 0.95rem; white-space: nowrap; min-width: 4.4rem; }
.wb-tempo__wert b { font-weight: 650; }
.wb-viertel { font-family: var(--schrift-blatt); font-size: 1.15rem; }
.wb-tempo__faktor { font-size: 0.78rem; color: var(--nickel); min-width: 2.8rem; }
.wb-laut { display: flex; align-items: center; gap: 0.5rem; color: var(--nickel); }

body.wb input[type=range] { -webkit-appearance: none; appearance: none; width: 7.5rem; height: 1.2rem; padding: 0; border: 0; background: transparent; box-shadow: none; cursor: pointer; }
body.wb input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--maser-hell); }
body.wb input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--maser-hell); }
body.wb input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--nickel); }
body.wb input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--knochen); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
body.wb input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--knochen); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
body.wb input[type=range]:focus-visible { outline: none; }
body.wb input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--blau-grund); }

.wb-status { flex: 1 1 auto; min-width: 0; display: flex; gap: 1.1rem; justify-content: flex-end; font-size: 0.76rem; color: var(--nickel); white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.wb-status span { overflow: hidden; text-overflow: ellipsis; }
.wb-status .warnung { color: #f0a09a; }
.wb-zoom { display: flex; align-items: center; gap: 0.1rem; padding-left: 1rem; border-left: 1px solid var(--maser); font-size: 0.78rem; color: var(--nickel); font-variant-numeric: tabular-nums; }
.wb-zoom .wb-symbol { width: 1.9rem; height: 1.9rem; }
#tb-zoom { min-width: 2.9rem; text-align: center; }

/* Hinweis und Dialog ----------------------------------------------------------------------------------- */
.wb-hinweis {
  position: fixed; left: 50%; bottom: 5.6rem; transform: translateX(-50%); z-index: 50; max-width: min(34rem, 90vw);
  background: var(--knochen); color: var(--palisander); padding: 0.7rem 1.1rem; border-radius: 10px; font-size: 0.86rem; font-weight: 500;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8); animation: wb-einblenden 0.2s ease-out;
}
@keyframes wb-einblenden { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.wb-dialog {
  border: 1px solid var(--maser-hell); border-radius: 16px; padding: 1.6rem 1.8rem 1.4rem; width: min(52rem, 94vw); max-height: 88vh;
  background: var(--ebenholz); color: var(--knochen); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
}
.wb-dialog::backdrop { background: rgba(20, 14, 13, 0.6); backdrop-filter: blur(3px); }
.wb-dialog h2 { font-family: var(--schrift-blatt); font-weight: 600; font-size: 1.5rem; margin: 0 0 0.25rem; }
.wb-dialog > p { color: var(--nickel); margin: 0 0 1.1rem; }
.wb-kuerzel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.2rem; }
.wb-kuerzel h3 { font-size: 0.8rem; font-weight: 600; color: var(--blau-hell); margin: 0.9rem 0 0.45rem; }
.wb-kuerzel dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 0.9rem; margin: 0; }
.wb-kuerzel dt { display: flex; gap: 0.2rem; align-items: center; white-space: nowrap; color: var(--nickel); font-size: 0.78rem; }
.wb-kuerzel dd { margin: 0; font-size: 0.84rem; align-self: center; }
kbd {
  display: inline-grid; place-items: center; min-width: 1.55rem; height: 1.55rem; padding: 0 0.35rem; border-radius: 5px;
  font: 600 0.72rem var(--schrift-ui); color: var(--knochen); background: #3a2f2d;
  border: 1px solid #54453f; border-bottom-width: 2px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.wb-dialog form { display: flex; justify-content: flex-end; margin-top: 1.3rem; }

/* Kleinere Bildschirme ----------------------------------------------------------------------------------- */
@media (max-width: 82rem) {
  body.wb { grid-template-columns: 6.2rem minmax(0, 1fr) 17.5rem; }
  .wb-laut { display: none; }
}
@media (max-width: 68rem) {
  .wb-menue > summary span, .wb-ansicht button[data-ansicht=noten] { font-size: 0.76rem; }
  .wb-status { display: none; }
}
@media (max-width: 60rem) {
  body.wb {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    grid-template-areas: "kopf" "werkzeug" "tisch" "inspektor" "transport";
  }
  .wb-kopf { flex-wrap: wrap; padding: 0.5rem 0.6rem; gap: 0.5rem; }
  .wb-werkzeug { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 0.55rem 0.7rem; border-right: 0; border-bottom: 1px solid var(--maser); }
  .wb-gruppe__name { display: none; }
  .wb-kacheln { grid-template-columns: none; grid-auto-flow: column; }
  .wb-inspektor { max-height: 34vh; border-left: 0; border-top: 1px solid var(--maser); }
  .wb-transport { flex-wrap: wrap; gap: 0.6rem 1rem; padding: 0.5rem 0.7rem; }
  .wb-tempo input { width: 5.5rem; }
  .wb-tisch { padding: 1rem 0.6rem 2rem; }
  [data-tip]::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.wb *, body.wb *::after { transition: none !important; animation: none !important; }
}
