/* NIKdesign · Gemeinsame Gestaltung der Werkstatt-Stücke (website/werkstatt/<slug>.html): Auftakt, Bühne, Regler, Fuß
   Gehört zu nikdesign.de, Stand 20.10.2026, ergänzt 20.11.2026 (Leitfrage, Zwischenstation, Fachdetails). Siehe dokumentation/TECHNIK.md, Abschnitt »Werkstatt-Stücke«.
   Baut auf werkstatt.css auf (ws-rand, ws-chip, label). Farben nur aus grundlage.css.
   html.ws-js: JavaScript läuft · html.ws-ruhig: »Bewegung reduzieren« – alles steht fertig da. */

/* ---------- Auftakt ---------- */
.ws-stueck-start{padding-block:clamp(2.6rem,7vw,5rem) clamp(1.8rem,4vw,3rem)}
.ws-stueck-label a{color:inherit}
.ws-stueck-label a:hover{color:var(--petrol-tief);text-decoration:none}
.ws-stueck-label span,.ws-stueck-label time{letter-spacing:.2em}
.ws-stueck-start h1{margin-top:.8rem;font-size:clamp(2.3rem,6vw,4.4rem);line-height:1.02;letter-spacing:-.035em;font-variation-settings:"wdth" 88,"wght" 300;color:var(--grau);max-width:18ch}
.ws-stueck-start h1 b{font-weight:inherit;font-variation-settings:"wdth" 88,"wght" 600;color:var(--petrol-tief);letter-spacing:-.02em}
.ws-stueck-start .ws-lead{max-width:52ch}
.ws-vorschau-balken{margin-bottom:1.4rem;padding:.6rem 1rem;border-radius:10px;background:color-mix(in srgb,var(--orange) 22%,var(--weiss));color:var(--grau);font-size:.85rem}

/* ---------- Abschnitte innerhalb eines Stücks ---------- */
.ws-stueck-teil{padding-block:clamp(2.4rem,6vw,4.5rem);scroll-margin-top:60px}
.ws-stueck-teil h2{font-size:clamp(1.6rem,3.6vw,2.4rem);line-height:1.1;letter-spacing:-.02em;font-variation-settings:"wdth" 88,"wght" 300;color:var(--grau);max-width:22ch}
.ws-stueck-teil h2 + p,.ws-erklaert{margin-top:.9rem;color:var(--matt);max-width:58ch}
.ws-stueck-teil h3{font-size:1.1rem;color:var(--grau);font-variation-settings:"wdth" 92,"wght" 600}

/* ---------- Bühne: die Fläche, auf der etwas passiert ---------- */
.ws-buehne{position:relative;background:var(--hell);border-radius:var(--radius);overflow:hidden;min-height:12rem}
.ws-buehne-weiss{background:var(--weiss);border:1px solid var(--linie)}
.ws-buehne canvas{display:block;width:100%;height:auto}

/* ---------- Bedienung: Regler, Chips, Werte ---------- */
.ws-bedienung{display:grid;gap:1.1rem}
.ws-regler{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.2rem .8rem;align-items:baseline}
.ws-regler > span:first-child{font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--matt)}
.ws-regler output{font-variant-numeric:tabular-nums;color:var(--grau);font-size:.95rem;font-variation-settings:"wdth" 92,"wght" 600;text-align:right;white-space:nowrap}
.ws-regler input[type=range]{grid-column:1 / -1;width:100%;margin:.35rem 0 0;accent-color:var(--orange);cursor:pointer}
/* Regler in Hausfarben (Chrome/Safari und Firefox getrennt, sonst ignoriert der Browser die ganze Regel) */
.ws-regler input[type=range]{-webkit-appearance:none;appearance:none;height:28px;background:none}
.ws-regler input[type=range]::-webkit-slider-runnable-track{height:2px;background:var(--linie);border-radius:2px}
.ws-regler input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;margin-top:-8px;border-radius:50%;background:var(--orange);border:3px solid var(--weiss);box-shadow:0 0 0 1px var(--linie),0 4px 10px -4px rgba(63,69,72,.5);transition:transform .2s var(--uebergang)}
.ws-regler input[type=range]:hover::-webkit-slider-thumb{transform:scale(1.12)}
.ws-regler input[type=range]::-moz-range-track{height:2px;background:var(--linie);border-radius:2px}
.ws-regler input[type=range]::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:var(--orange);border:3px solid var(--weiss);box-shadow:0 0 0 1px var(--linie)}
.ws-regler input[type=range]:focus-visible{outline:none}
.ws-regler input[type=range]:focus-visible::-webkit-slider-thumb{outline:2px solid var(--orange);outline-offset:3px}
.ws-regler input[type=range]:focus-visible::-moz-range-thumb{outline:2px solid var(--orange);outline-offset:3px}
.ws-chipreihe{display:flex;flex-wrap:wrap;gap:.45rem;border:0;padding:0}
.ws-chipreihe legend{width:100%;margin-bottom:.5rem;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--matt)}
.ws-chipreihe .ws-chip span{font-size:.9rem;padding:.4rem .85rem;background:var(--weiss)}
.ws-chipreihe .ws-chip input:checked + span{background:var(--grau);color:var(--weiss)}
.ws-textfeld{display:grid;gap:.3rem}
.ws-textfeld > span{font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--matt)}
.ws-textfeld input,.ws-textfeld select{font:inherit;font-size:1.05rem;color:var(--grau);padding:.45rem .1rem;border:0;border-bottom:1.5px solid var(--linie);background:transparent;border-radius:0;width:100%;min-width:0}
.ws-textfeld select{appearance:none;padding-right:1.4rem;cursor:pointer;background:linear-gradient(45deg,transparent 50%,var(--matt) 50%) right .45rem center / 6px 6px no-repeat,linear-gradient(-45deg,transparent 50%,var(--matt) 50%) right .1rem center / 6px 6px no-repeat}
.ws-textfeld input:focus,.ws-textfeld select:focus{outline:none;border-bottom-color:var(--petrol)}
.ws-schalter{font:inherit;font-size:.9rem;color:var(--petrol-tief);background:var(--weiss);border:1px solid var(--linie);border-radius:99px;padding:.45rem 1rem;cursor:pointer;transition:border-color .25s var(--uebergang),background-color .25s var(--uebergang),color .25s var(--uebergang)}
.ws-schalter:hover{border-color:var(--petrol)}
.ws-schalter[aria-pressed=true]{background:var(--grau);border-color:var(--grau);color:var(--weiss)}
.ws-werte{display:grid;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));gap:.8rem 1.2rem;margin:0}
.ws-werte div{display:grid;gap:.15rem}
.ws-werte dt{font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--matt)}
.ws-werte dd{font-size:1.15rem;color:var(--grau);font-variant-numeric:tabular-nums;font-variation-settings:"wdth" 92,"wght" 600}
.ws-werte dd small{display:block;font-size:.8rem;color:var(--matt);font-variation-settings:"wdth" 96,"wght" 400;margin-top:.1rem}
.ws-hinweis{margin-top:1rem;padding:.9rem 1rem;border-radius:12px;background:color-mix(in srgb,var(--orange) 14%,var(--weiss));color:var(--grau);font-size:.9rem;line-height:1.5}
.ws-hinweis b{font-weight:inherit;font-variation-settings:"wdth" 92,"wght" 600}
.ws-hinweis-ruhig{background:var(--hell)}
.ws-stueck-merke{margin-top:1rem;padding-left:1rem;border-left:3px solid var(--orange);color:var(--grau);font-size:.95rem}
.ws-stueck-merke b{font-weight:inherit;font-variation-settings:"wdth" 92,"wght" 600}

/* ---------- Leitfrage, Zwischenstation, Übergang, Fachdetails (seit 20.11.2026; wie .fa-* der Farb-Reihe, für die Stücke ab September 2027) ---------- */
.ws-leitfrage{margin-top:1.3rem;max-width:46ch;padding:.1rem 0 .15rem 1rem;border-left:3px solid var(--orange);font-size:clamp(1.05rem,1.7vw,1.3rem);line-height:1.35;color:var(--grau);font-variation-settings:"wdth" 92,"wght" 500;text-wrap:balance}
.ws-leitfrage span,.ws-gesehen-titel,.ws-weiter span{display:block;font-size:.68rem;line-height:1.2;letter-spacing:.16em;text-transform:uppercase;font-variation-settings:"wdth" 92,"wght" 600}
.ws-leitfrage span{margin-bottom:.3rem;color:var(--matt)}
.ws-gesehen{margin-top:clamp(1.6rem,4vw,2.4rem);max-width:50rem;padding:1.1rem 1.3rem 1.2rem;border-radius:18px;background:var(--hell);display:grid;gap:.55rem}
.ws-gesehen-titel{color:var(--matt)}
.ws-gesehen p:not(.ws-gesehen-titel){color:var(--grau);max-width:64ch}
.ws-gesehen-praxis{padding-left:.9rem;border-left:3px solid var(--orange)}
.ws-gesehen b{font-weight:inherit;font-variation-settings:"wdth" 92,"wght" 600}
.ws-weiter{margin:0 0 clamp(1.4rem,3.5vw,2.2rem);padding-top:.9rem;border-top:1px solid var(--linie);color:var(--matt);font-size:.95rem}
.ws-weiter span{margin-bottom:.25rem;color:var(--petrol-tief)}
.ws-stueck-teil:has(> .ws-gesehen){padding-bottom:clamp(1.6rem,4vw,2.6rem)}
.ws-stueck-teil:has(> .ws-weiter){padding-top:clamp(1.4rem,3.5vw,2.4rem)}
.ws-mitnehmen{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.8rem,5vw,4rem);align-items:start}
@media(max-width:800px){.ws-mitnehmen{grid-template-columns:1fr}}
.ws-mitnehmen .ws-liste li b{font-weight:inherit;font-variation-settings:"wdth" 92,"wght" 600}
.ws-fach{border:1px solid var(--linie);border-radius:18px;background:var(--hell)}
.ws-fach summary{cursor:pointer;list-style:none;padding:1rem 1.2rem;font-variation-settings:"wdth" 92,"wght" 600;color:var(--grau);display:flex;justify-content:space-between;gap:1rem}
.ws-fach summary::-webkit-details-marker{display:none}
.ws-fach summary::after{content:"+";color:var(--orange);font-size:1.3rem;line-height:1;transition:transform .3s var(--uebergang)}
.ws-fach[open] summary::after{transform:rotate(45deg)}
.ws-fach summary:focus-visible{outline:2px solid var(--orange);outline-offset:2px;border-radius:18px}
.ws-fach-inhalt{padding:0 1.2rem 1.2rem;display:grid;gap:.8rem;font-size:.92rem;color:var(--matt)}
.ws-fach h3{margin-top:.4rem;font-size:.95rem}
.ws-fach b{font-weight:inherit;font-variation-settings:"wdth" 92,"wght" 600;color:var(--grau)}
.ws-quelle{font-size:.82rem}
.ws-fach code{font-size:.9em;padding:.05em .3em;border-radius:5px;background:var(--weiss);color:var(--grau);-webkit-hyphens:manual;hyphens:manual}   /* Code nicht automatisch trennen */
html:not(.ws-js) .ws-nur-js,html.ws-js .ws-ohne-js{display:none}

/* ---------- Fuß des Stücks ---------- */
.ws-stueck-fuss{padding-block:clamp(2.5rem,6vw,4rem) clamp(3rem,7vw,5rem);border-top:1px solid var(--linie)}
.ws-stueck-fuss-zwei{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.5rem,5vw,4rem);align-items:start}
@media(max-width:720px){.ws-stueck-fuss-zwei{grid-template-columns:1fr}}
.ws-stueck-zurueck{margin-top:.8rem;font-size:1.05rem}
.ws-stueck-zurueck a::before{content:"‹ ";color:var(--orange)}
.ws-stueck-weitere-titel{margin-top:1.6rem;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--matt)}
.ws-stueck-weitere{list-style:none;margin-top:.5rem;display:grid;gap:.35rem}
.ws-stueck-weitere .ws-stueck-art{margin-left:.4rem;font-size:.68rem;letter-spacing:.14em;text-transform:uppercase}
.ws-stueck-geplant{margin-left:.4rem;font-size:.78rem;color:var(--matt)}
.ws-stueck-anfrage{padding:1.4rem 1.5rem;border-radius:14px;background:var(--hell)}
.ws-stueck-anfrage p{color:var(--grau);max-width:34ch}
.ws-stueck-anfrage .btn{margin-top:1rem}

@media print{
  .ws-buehne{break-inside:avoid}
  .ws-stueck-fuss,.ws-bedienung input[type=range]{display:none!important}
}
