/* Eigenständige Tool-Styles. Farben, Lato und Textgrößen aus CSS_Neu/style.css. */
@font-face{font-family:MWISTV5Lato;src:url('./fonts/mw-istv5-lato-regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:MWISTV5Lato;src:url('./fonts/mw-istv5-lato-black.woff2') format('woff2');font-weight:900;font-style:normal;font-display:swap}
.mw-istv5{--istv5-red:#9a0002;--istv5-ink:#202020;--istv5-muted:#666;--istv5-line:#ddd;box-sizing:border-box;width:100%;max-width:760px;margin:0 auto;padding:32px;background:#fff;color:var(--istv5-ink);border:1px solid var(--istv5-line);border-radius:20px;font-family:MWISTV5Lato,Arial,sans-serif;font-size:16px;line-height:1.5;color-scheme:light;text-align:left;isolation:isolate}
.mw-istv5 *,.mw-istv5 *::before,.mw-istv5 *::after{box-sizing:border-box}
.mw-istv5 [hidden]{display:none!important}
.mw-istv5 h2,.mw-istv5 p,.mw-istv5 label,.mw-istv5 button,.mw-istv5 select,.mw-istv5 summary{font-family:MWISTV5Lato,Arial,sans-serif;color:var(--istv5-ink)!important;letter-spacing:normal;text-transform:none}
.mw-istv5 h2{font-size:1.8em;line-height:1.2;font-weight:900;margin:6px 0 0}
.mw-istv5 p{margin:0}
.mw-istv5 button,.mw-istv5 select{font-size:16px;line-height:1.4}
.mw-istv5 button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.mw-istv5 button:focus-visible,.mw-istv5 select:focus-visible,.mw-istv5 summary:focus-visible{outline:3px solid var(--istv5-red)!important;outline-offset:4px}
.mw-istv5__header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}
.mw-istv5__eyebrow{font-size:.75em;letter-spacing:.13em;color:var(--istv5-red);font-weight:900}
.mw-istv5__badge{flex-shrink:0;border:1px solid var(--istv5-line);border-radius:25px;padding:6px 12px;font-size:.9em;color:var(--istv5-muted)}
.mw-istv5__toolbar{display:flex;gap:16px;align-items:flex-end}
.mw-istv5__field{display:flex;flex:1;min-width:0;flex-direction:column;gap:6px;font-size:.9em}
.mw-istv5 select{width:100%;min-width:0;height:46px;padding:8px 30px 8px 12px;background:#fff;border:1px solid #bbb;border-radius:8px}
.mw-istv5 .mw-istv5__mic{display:flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:5px 15px;border:1px solid transparent;border-radius:25px;background:var(--istv5-red);color:#fff!important;transition:background .3s ease}
.mw-istv5 .mw-istv5__mic:hover{background:var(--istv5-ink)}
.mw-istv5 .mw-istv5__mic[aria-pressed="true"]{background:var(--istv5-ink)}
.mw-istv5 button:disabled{cursor:default}
.mw-istv5__mic:disabled{opacity:.6}
.mw-istv5 .mw-istv5__privacy{font-size:.9em;margin-top:14px;color:var(--istv5-muted)!important}
.mw-istv5__status{margin:16px 0 20px;padding:9px 12px;border-radius:8px;background:#f3f3f3;font-size:.9em;min-height:40px;overflow-wrap:anywhere}
.mw-istv5[data-state="active"] .mw-istv5__status{background:#f8eeee;border-left:3px solid var(--istv5-red)}
.mw-istv5__instrument{padding:4px 18px 0}
.mw-istv5__scale-labels,.mw-istv5__scale-numbers{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.9em}
.mw-istv5__scale-labels span:nth-child(2){font-weight:900}
.mw-istv5__meter{position:relative;margin-top:10px;height:24px;background:repeating-linear-gradient(90deg,#aaa 0 1px,transparent 1px 10%);border-bottom:1px solid #bbb}
.mw-istv5__center{position:absolute;left:45%;width:10%;height:100%;background:#9a000211;border-left:1px solid #9a000250;border-right:1px solid #9a000250}
.mw-istv5__center::after{content:"";position:absolute;left:50%;height:100%;width:2px;background:var(--istv5-ink);transform:translateX(-50%)}
.mw-istv5__needle{position:absolute;left:50%;top:-4px;height:33px;width:4px;transform:translateX(-50%);background:var(--istv5-red);border-radius:2px;transition:left .1s linear;z-index:1}
.mw-istv5__needle::before{content:"";position:absolute;left:-4px;top:-2px;border-left:6px solid transparent;border-right:6px solid transparent;border-top:7px solid var(--istv5-red)}
.mw-istv5__scale-numbers{margin-top:6px;font-size:.75em;color:var(--istv5-muted);font-variant-numeric:tabular-nums}
.mw-istv5__readout{text-align:center;padding:22px 0 24px}
.mw-istv5__readout-label{font-size:.75em;letter-spacing:.12em;color:var(--istv5-muted)}
.mw-istv5__note{height:86px;display:flex;align-items:baseline;justify-content:center;font-size:4.5em;font-weight:900;line-height:1.15}
.mw-istv5__direction{min-height:27px;font-weight:900;color:var(--istv5-red)}
.mw-istv5__frequency{min-height:24px;font-size:.9em;color:var(--istv5-muted);font-variant-numeric:tabular-nums}
.mw-istv5__neck{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));height:222px;margin:0 auto;max-width:430px}
.mw-istv5__frets{position:absolute;inset:0 8.3333% 56px;background:#f5f3f0;border-top:6px solid var(--istv5-ink)}
.mw-istv5__frets i{display:block;height:33.3333%;border-bottom:2px solid #a39f99}
.mw-istv5__frets b{position:absolute;bottom:23px;left:50%;width:9px;height:9px;border-radius:50%;background:#c6c0b9;transform:translateX(-50%)}
.mw-istv5 .mw-istv5__string{position:relative;margin:0;padding:0;width:100%;min-width:0;border:0;background:transparent;border-radius:8px;color:var(--istv5-ink)!important;box-shadow:none}
.mw-istv5__wire{position:absolute;top:0;bottom:56px;left:50%;width:5px;transform:translateX(-50%);background:#6e6b66;border-radius:2px}
.mw-istv5__string:nth-of-type(2) .mw-istv5__wire{width:4px}
.mw-istv5__string:nth-of-type(3) .mw-istv5__wire{width:3.5px}
.mw-istv5__string:nth-of-type(4) .mw-istv5__wire{width:3px}
.mw-istv5__string:nth-of-type(5) .mw-istv5__wire{width:2px}
.mw-istv5__string:nth-of-type(6) .mw-istv5__wire{width:1.5px}
.mw-istv5__string-label{position:absolute;bottom:0;left:0;right:0;height:49px;display:flex;align-items:center;flex-direction:column;justify-content:center;font-size:22px;font-weight:900;line-height:1.15}
.mw-istv5__string-label small{font-size:11px;font-weight:400;color:var(--istv5-muted);margin-top:4px}
.mw-istv5__string[aria-pressed="true"] .mw-istv5__string-label{outline:1px solid var(--istv5-red);outline-offset:-2px;border-radius:8px}
.mw-istv5__string.is-sounding .mw-istv5__wire{background:var(--istv5-red);box-shadow:0 0 0 3px #9a000218,0 0 13px #9a000270}
.mw-istv5__string.is-sounding .mw-istv5__string-label{color:var(--istv5-red)}
.mw-istv5[data-chromatic="true"] .mw-istv5__string-label{visibility:hidden}
.mw-istv5[data-chromatic="true"] .mw-istv5__neck{height:184px}
.mw-istv5[data-chromatic="true"] .mw-istv5__frets{bottom:18px}
.mw-istv5[data-chromatic="true"] .mw-istv5__wire{bottom:18px}
.mw-istv5__chromatic{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:3px;margin:0 auto 16px;max-width:490px}
.mw-istv5__pitch{display:flex;min-height:38px;align-items:center;justify-content:center;border-radius:6px;font-size:.9em;background:#f1f1f1}
.mw-istv5__pitch.is-current{background:var(--istv5-red);color:#fff;font-weight:900}
.mw-istv5__selection{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin:16px 0 8px;font-size:.9em;min-height:30px}
.mw-istv5 .mw-istv5__auto{padding:6px 12px;min-height:44px;border:1px solid #bbb;border-radius:25px;background:#fff;font-size:.9em}
.mw-istv5 .mw-istv5__hint{text-align:center;font-size:.9em;color:var(--istv5-muted)!important;max-width:470px;margin:0 auto 24px}
.mw-istv5__footer{border-top:1px solid var(--istv5-line);padding-top:18px;display:flex;flex-direction:column;gap:5px;font-size:.9em;color:var(--istv5-muted)}
.mw-istv5 strong{font-weight:900}
.mw-istv5__details{margin-top:16px;font-size:.9em}
.mw-istv5__details summary{cursor:pointer;min-height:44px;display:list-item;padding:10px 0;font-weight:900}
.mw-istv5 .mw-istv5__details p{color:var(--istv5-muted)!important;margin:8px 0 12px}
.mw-istv5__sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.mw-istv5{padding:22px 18px}.mw-istv5__toolbar{flex-direction:column;align-items:stretch;gap:12px}.mw-istv5__header{align-items:flex-start;flex-wrap:wrap;margin-bottom:22px}.mw-istv5__instrument{padding-left:4px;padding-right:4px}.mw-istv5__chromatic{grid-template-columns:repeat(6,minmax(0,1fr))}.mw-istv5__mic{width:100%}}
@media(max-width:360px){.mw-istv5{padding:18px 12px;border-radius:12px}.mw-istv5 h2{font-size:1.5em}.mw-istv5__scale-labels{font-size:.8em}}
@media(prefers-reduced-motion:reduce){.mw-istv5 *{transition:none!important}}

/* Referenzfrequenz und Open-Tuning-Hinweis, ausschließlich Version 5. */
.mw-istv5__reference{display:flex;flex-direction:column;gap:6px;flex-shrink:0;font-size:.9em}
.mw-istv5__reference select{width:116px}
.mw-istv5 .mw-istv5__mode-notice{margin-top:16px;padding:12px 14px;border-left:3px solid var(--istv5-red);border-radius:8px;background:#f8eeee;font-size:.9em}

/* Instrumentabhängige Anzahl: äußere Saiten treffen exakt auf die Griffbrettkanten. */
.mw-istv5__instrument-choice{margin-bottom:16px}
.mw-istv5[data-strings="4"] .mw-istv5__neck{grid-template-columns:repeat(4,minmax(0,1fr));max-width:340px}
.mw-istv5[data-strings="4"] .mw-istv5__frets{left:12.5%;right:12.5%}
.mw-istv5[data-strings="5"] .mw-istv5__neck{grid-template-columns:repeat(5,minmax(0,1fr));max-width:385px}
.mw-istv5[data-strings="5"] .mw-istv5__frets{left:10%;right:10%}
.mw-istv5[data-instrument="ukulele"] .mw-istv5__wire{width:2.5px}

/* Umbruch auch in schmalen Blocs-Spalten, unabhängig von der Bildschirmbreite. */
.mw-istv5{min-width:0;overflow-wrap:anywhere;container-type:inline-size}
.mw-istv5__header{flex-wrap:wrap}
.mw-istv5__header>div{flex:1 1 230px;min-width:0}
.mw-istv5__toolbar{flex-wrap:wrap}
.mw-istv5__toolbar>.mw-istv5__field{flex:1 1 250px}
.mw-istv5__toolbar>.mw-istv5__mic{flex:1 1 210px}
.mw-istv5__mic svg{flex-shrink:0}
.mw-istv5__reference{max-width:100%}
.mw-istv5 select{max-width:100%}
.mw-istv5__note{height:auto;min-height:86px}
.mw-istv5__selection>span{min-width:0;text-align:center}
@media(max-width:600px){.mw-istv5__toolbar>.mw-istv5__field,.mw-istv5__toolbar>.mw-istv5__mic{flex-basis:auto}}
@container(max-width:520px){
 .mw-istv5__toolbar{flex-direction:column;align-items:stretch}
 .mw-istv5__toolbar>.mw-istv5__field,.mw-istv5__toolbar>.mw-istv5__mic{flex-basis:auto;width:100%}
 .mw-istv5__instrument{padding-left:0;padding-right:0}
 .mw-istv5__chromatic{grid-template-columns:repeat(6,minmax(0,1fr))}
}
