/* Kanalfarben (Funktion, nicht Marke): überall gleich in Formular, Diagramm, Schablone */
:root { --k-aus: #a87a22; --k-ue: #3c7a8c; }
/* Werkstatt: Rechner und Anleitungen */
.ws { padding: clamp(2rem, 5vw, 4rem) 0 4rem; background: #f7f5ee; }
.ws h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.ws-pfad { font-size: .9rem; color: var(--grau); margin: 0 0 1.5rem; }
.ws-pfad a { color: var(--grau); }
.ws-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.25rem; align-items: start; }
.ws-karte { background: var(--weiss); border: 1px solid #e2dccd; border-radius: 8px; padding: 1.5rem; }
.ws-karte h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 1rem; }
.ws-karte h2:not(:first-child) { margin-top: 1.8rem; }
.ws-karte label { display: block; font-weight: 600; margin-bottom: .9rem; }
.ws-karte label > span { font-weight: 400; color: var(--grau); }
.ws-karte input { display: block; width: 100%; margin-top: .3rem; font: inherit; font-size: 1.15rem; padding: .65rem .8rem; border: 2px solid #d6cdb6; border-radius: 6px; background: #fdfcf8; }
.ws-karte input:focus { outline: none; border-color: var(--blau); background: var(--weiss); }
.ws-karte small { display: block; font-weight: 400; color: var(--grau); font-size: .88rem; margin-top: .25rem; }
.ws-hilfe { color: var(--grau); font-size: .95rem; margin: -.4rem 0 1rem; }
.ws-kanal { border-left: 5px solid var(--k-aus); padding-left: 1rem; margin-bottom: 1rem; }
.ws-kanal.ws-ue { border-left-color: var(--k-ue); }
.ws-kanal h3 { margin: 0 0 .6rem; font-size: .85rem; }
.ws-kanal { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
.ws-kanal h3 { grid-column: 1 / -1; }
.ws-knopf-leise { font: inherit; font-weight: 600; background: none; border: 0; color: var(--grau); text-decoration: underline; cursor: pointer; padding: 0; }
/* Beispiel / Zurücksetzen: richtiger Knopf mit Rahmen, auf dem Handy gut zu treffen (Joel 15.11.) */
.ws-knopf-rand { font: inherit; font-weight: 700; font-size: .95rem; background: #fff; color: var(--marine); border: 2px solid var(--marine); border-radius: 4px; padding: .55rem 1rem; min-height: 44px; cursor: pointer; margin: .3rem .4rem .3rem 0; }
.ws-knopf-rand:hover { background: var(--blau-hell); }

.ws-ergebnis { position: sticky; top: 76px; }
.ws-fehler { background: #fff2e8; border-left: 5px solid var(--orange); padding: .7rem 1rem; border-radius: 4px; margin: 0 0 1rem; }
.ws-fehler span { display: block; }
.ws-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.ws-zahl { background: var(--marine); color: var(--weiss); border-radius: 6px; padding: .9rem .7rem; text-align: center; border-top: 5px solid #5f6b5f; }
.ws-zahl.ws-aus { border-top-color: var(--k-aus); }
.ws-zahl.ws-ue { border-top-color: var(--k-ue); }
.ws-zahl span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #c3b89a; }
.ws-zahl strong { display: block; font-family: var(--titel); font-weight: 400; font-size: clamp(1.3rem, 3vw, 1.9rem); margin: .3rem 0; }
.ws-zahl small { display: block; font-size: .8rem; color: #d3cbb4; min-height: 1.2em; }
.ws-ziel { list-style: none; margin: 1rem 0 0; padding: 0; }
.ws-ziel li { background: var(--blau-hell); border-radius: 6px; padding: .7rem .9rem; margin-bottom: .5rem; }
.ws-ziel li span { display: block; font-weight: 700; }
#diagramm { display: block; width: min(320px, 100%); margin: 1.2rem auto .5rem; }
.d-kreis { fill: none; stroke: #e2dccd; stroke-width: 2; }
.d-achse { stroke: #d6cdb6; stroke-width: 1; stroke-dasharray: 3 4; }
.d-txt { font-family: var(--body); font-size: 11px; font-weight: 700; fill: var(--marine); }
.d-klein { font-size: 10px; }
.d-aus { fill: none; stroke: var(--k-aus); stroke-width: 12; }
.d-ue { fill: none; stroke: var(--k-ue); stroke-width: 12; }
.d-aus-p { fill: var(--marine); } .d-ue-p { fill: var(--marine); }
.d-pfeil { fill: none; stroke: var(--grau); stroke-width: 1.5; }
.ws-aktionen { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.ws-aktionen .knopf { border: 0; font: inherit; font-weight: 700; cursor: pointer; }

.ws-tabelle { margin-top: 1.25rem; }
.ws-tabelle summary { font-weight: 700; cursor: pointer; }
.ws-tabelle table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-top: .5rem; }
.ws-tabelle th, .ws-tabelle td { text-align: right; padding: .3rem .5rem; border-bottom: 1px solid #ece6d6; }
.ws-tabelle th { font-size: .8rem; color: var(--grau); font-weight: 600; }

.ws-wissen { margin-top: 3rem; max-width: 46rem; }
.ws-wissen h2 { font-size: 1.15rem; margin-top: 2rem; }
.ws-wissen li { margin-bottom: .5rem; }
.ws-wissen code { background: var(--weiss); border: 1px solid #e2dccd; border-radius: 4px; padding: .1rem .35rem; font-size: .92em; }
.ws-hinweis { border-left: 5px solid var(--orange); padding: .6rem 1rem; background: var(--weiss); border-radius: 4px; }

/* Werkstatt-Übersicht */
.ws-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: 2rem; }
.ws-werkzeug { display: block; text-decoration: none; background: var(--weiss); border: 1px solid #e2dccd; border-top: 6px solid var(--orange); border-radius: 8px; padding: 1.3rem; }
.ws-werkzeug:hover { border-color: var(--blau); }
.ws-werkzeug h3 { margin: 0 0 .4rem; }
.ws-werkzeug p { margin: 0; color: #34433c; }
.ws-werkzeug.bald { border-top-color: #d6cdb6; opacity: .75; pointer-events: none; }
.ws-werkzeug .marke { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--grau); margin-top: .7rem; }

@media (max-width: 820px) {
  .ws-raster { grid-template-columns: 1fr; }
  .ws-ergebnis { position: static; }
}
@media (max-width: 420px) { .ws-kanal { grid-template-columns: 1fr; } .ws-zahlen { grid-template-columns: 1fr 1fr; } .ws-zahl:last-child { grid-column: 1 / -1; } }

}
.ws-titel { font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin: 3rem 0 0; }

.ws-tabelle-rollen { overflow-x: auto; }
.ws-tabelle p { margin-top: .6rem; }
.ws-tabelle th:nth-child(odd), .ws-tabelle td:nth-child(odd) { color: var(--grau); }
@media (max-width: 420px) { .ws-tabelle th, .ws-tabelle td { padding: .3rem .3rem; font-size: .9rem; } }

.ws-zahl strong .grad { display: inline; color: inherit; letter-spacing: 0; text-transform: none; font-family: var(--body); font-weight: 600; font-size: .75em; vertical-align: .35em; margin-left: .05em; }
.ws-legende { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; margin: 0; font-weight: 600; font-size: .95rem; }
.ws-legende span::before { content: ""; display: inline-block; width: 1.4rem; height: .55rem; border-radius: 3px; margin-right: .45rem; vertical-align: middle; }
.l-aus::before { background: var(--k-aus); } .l-ue::before { background: var(--k-ue); }
.ws-werkzeug h3 { font-size: .9rem; letter-spacing: .03em; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

/* Formular mit Fenster-Geometrie */
.ws-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
fieldset.ws-kanal { border: 0; border-left: 5px solid var(--k-aus); margin: 0 0 1rem; padding: 0 0 0 1rem; min-width: 0; }
fieldset.ws-kanal { display: block; }
fieldset.ws-kanal legend { font-family: var(--titel); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; padding: 0; margin-bottom: .6rem; }
.ws-felder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 .8rem; }
fieldset.ws-ue { border-left-color: var(--k-ue); }
fieldset.ws-teil { border-left-color: var(--blau); }
fieldset.ws-zu { border-left-color: #5f6b5f; }
.ws-mehr { margin: 0 0 1rem; }
.ws-mehr summary { cursor: pointer; font-weight: 700; margin-bottom: .8rem; }
.d-zu { fill: none; stroke: #5f6b5f; stroke-width: 12; }
.d-p { fill: var(--marine); }
.l-zu::before { background: #5f6b5f; }
.ws-fenster { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .92rem; font-variant-numeric: tabular-nums; }
.ws-fenster th, .ws-fenster td { text-align: left; padding: .35rem .4rem; border-bottom: 1px solid #ece6d6; white-space: nowrap; }
.ws-fenster th { font-size: .78rem; color: var(--grau); font-weight: 600; }

/* Schablone */
.ws-schablone { margin-top: 1.25rem; }
.ws-schablone-rahmen { overflow-x: auto; background: #fff; border: 1px dashed #d6cdb6; border-radius: 6px; padding: .8rem; }
.ws-schablone-rahmen svg { display: block; width: 100%; min-width: 560px; height: auto; }
.ws-legende-links { justify-content: flex-start; margin-top: .8rem; }
.l-ist::before { background: #fff; border: 2px solid var(--marine); height: .4rem !important; }
.l-neu::before { background: #d4145a; height: .25rem !important; }
.l-weg::before { background: repeating-linear-gradient(45deg, #d4145a 0 2px, #fff 2px 4px); }
.ws-schablone .ws-hinweis { margin-top: 1rem; }
.knopf:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.s-txt { font-family: Barlow, Arial, sans-serif; fill: #10382b; }
.s-titel { font-size: 2.6px; font-weight: 700; letter-spacing: .15px; }
.s-name { font-size: 5px; font-weight: 800; }
.s-klein { font-size: 2.2px; }
.s-fett { font-weight: 700; }
.s-strich { stroke: #10382b; stroke-width: .2; }
.s-hilf { stroke: #b5ab8e; stroke-width: .12; stroke-dasharray: .8 .8; }
.s-ut { stroke: #10382b; stroke-width: .2; stroke-dasharray: 2 1; }
.s-schnitt { fill: none; stroke: #10382b; stroke-width: .3; }
.s-fenster { stroke: #10382b; stroke-width: .3; }
.s-aus { fill: rgba(168, 122, 34, .30); }
.s-ue { fill: rgba(60, 122, 140, .35); }
.s-zu { fill: rgba(91, 112, 133, .3); }
.s-offen { stroke-dasharray: 1.2 .6; }
.s-weg { fill: url(#schraffur); stroke: none; }
.s-schraffur { stroke: #d4145a; stroke-width: .35; }
.s-neu { stroke: #d4145a; stroke-width: .4; }
.s-neu-form { fill: none; stroke: #d4145a; stroke-width: .45; }   /* neues Fenster (Ziel) als ganze Kontur */
.s-leer { fill: #fff; stroke: none; }   /* deckt die Schraffur im heutigen Fenster ab */
.s-pruef { fill: #10382b; }

@media (max-width: 420px) { .ws-zwei, fieldset.ws-kanal { grid-template-columns: 1fr; } }

/* Drucken: Messblatt oder nur Schablone */
/* Hinweis «nicht im Strassenverkehr» */
.ws-gesperrt body { overflow: hidden; }
.ws-hinweis { max-width: 34rem; width: calc(100% - 2rem); border: 0; border-top: 6px solid var(--orange); border-radius: 8px; padding: 1.6rem 1.6rem 1.3rem; background: var(--weiss); color: inherit; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.ws-hinweis::backdrop { background: rgba(10, 30, 22, .82); backdrop-filter: blur(3px); }
.ws-hinweis h2 { margin: 0 0 .8rem; font-size: 1.4rem; }
.ws-hinweis p { margin: 0 0 .8rem; line-height: 1.5; }
.ws-hinweis-ok { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; margin: 1rem 0 1.2rem; cursor: pointer; }
.ws-hinweis-ok input { width: 1.3rem; height: 1.3rem; flex: none; margin-top: .1rem; accent-color: var(--marine); }
.ws-hinweis-knoepfe { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.ws-hinweis-knoepfe a { color: var(--grau); }
.ws-hinweis button { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.ws-hinweis button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

@media print {
  .kopf, .fuss, .ws-aktionen, .ws-knopf-leise, .ws-knopf-rand, .ws-mitmachen, .ws-pfad, .vorzeile, .gross { display: none !important; }
  /* Erklärtexte nur bei Rechnern weglassen (Ergebnis drucken). Anleitungen wie Kaufcheck drucken ganz (Joel 15.11.: «hier gibt es gar keine Liste») */
  .rahmen:has(> form) > .ws-wissen { display: none !important; }
  .ws { background: #fff; padding: 0; }
  .ws-karte { border: 0; padding: 0; }
  .ws-raster { grid-template-columns: 1fr 1fr; }
  .ws-ergebnis { position: static; }
  .ws-zahl { background: #fff; color: #000; border: 1px solid #999; }
  .ws-zahl span, .ws-zahl small { color: #333; }
  body.druck-messblatt .pm-karte, body.druck-messblatt .kanal-wahl, body.druck-messblatt .ws-schablone > h2 + p { display: none !important; }
  body.druck-messblatt fieldset.pm-aus { display: block !important; }
  body.druck-messblatt .pm-raster { display: block; }
  body.druck-messblatt .ws-tabelle { display: block; }
  body.druck-schablone main > .rahmen > *:not(form) { display: none !important; }
  body.druck-schablone form > *:not(.ws-schablone) { display: none !important; }
  body.druck-schablone .ws-schablone > *:not(.pm-raster), body.druck-schablone .pm-panel, body.druck-schablone .pm-karte > *:not(.ws-schablone-rahmen) { display: none !important; }
  body.druck-schablone .pm-raster { display: block; }
  body.druck-schablone .ws-schablone-rahmen { border: 0; padding: 0; overflow: visible; }
  body.druck-schablone .ws-schablone-rahmen svg { min-width: 0; max-width: none; }
  body.druck-schablone .rahmen { width: auto; margin: 0; }
}
.ws-raster > * { min-width: 0; }
.ws-karte input { min-width: 0; }
.ws-zwei, .ws-kanal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 420px) { .ws-zwei, fieldset.ws-kanal { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 420px) { .ws-felder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ws-felder > label { display: flex; flex-direction: column; } .ws-felder > label > input { margin-top: auto; }
/* Gemisch */
.ws-raster-gleich { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ws-raster-gleich .ws-karte { position: static; }
.ws-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.2rem 0 1rem; }
.ws-chips button { font: inherit; font-weight: 700; border: 2px solid #d6cdb6; background: #fff; border-radius: 99px; padding: .3rem .8rem; cursor: pointer; }
.ws-chips button::before { content: "1:"; color: var(--grau); font-weight: 400; }
.ws-chips button.aktiv { border-color: var(--orange); background: #fff2e8; }
.ws-gross-ergebnis { background: var(--marine); color: #fff; border-radius: 8px; padding: 1rem 1.2rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-left: 8px solid var(--orange); }
.ws-gross-ergebnis span { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: #c3b89a; }
.ws-gross-ergebnis strong { font-family: var(--titel); font-weight: 400; font-size: clamp(1.6rem, 5vw, 2.3rem); }
.ws-gross-ergebnis + .ws-hilfe { margin: .8rem 0 0; }
.ws-tabelle-offen h2 { margin-bottom: .5rem; }
.ws-tabelle-offen td:first-child, .ws-tabelle-offen th:first-child { text-align: left; color: var(--marine); font-weight: 700; }
@media (max-width: 820px) { .ws-raster-gleich { grid-template-columns: 1fr; } }
/* weitere Kanaltypen */
fieldset.ws-na { border-left-color: #c2410c; }
fieldset.ws-bo { border-left-color: #6a9a5b; }
fieldset.ws-ein { border-left-color: #8b7fc7; }
.ws-klein { display: block; color: var(--grau); font-size: .88rem; margin: -.3rem 0 .4rem; }
.d-na { fill: none; stroke: #c2410c; stroke-width: 9; }
.d-bo { fill: none; stroke: #6a9a5b; stroke-width: 9; }
.d-ein { fill: none; stroke: #8b7fc7; stroke-width: 12; }
.l-na::before { background: #c2410c; } .l-bo::before { background: #6a9a5b; } .l-ein::before { background: #8b7fc7; }
.s-na { fill: rgba(194, 65, 12, .3); }
.s-bo { fill: rgba(106, 154, 91, .35); }
.s-ein { fill: rgba(139, 127, 199, .35); }
/* gemeinsame Teile neuer Rechner */
#druckKacheln { display: none; }
@media print {
  body.druck-kacheln > *:not(#druckKacheln) { display: none !important; }
  body.druck-kacheln #druckKacheln { display: block; }
  .druck-blatt { page-break-after: always; break-after: page; }
  .druck-kopf { font: 600 9pt Barlow, Arial, sans-serif; margin: 0 0 2mm; color: #10382b; }
}
.ws-foto { border: 2px dashed #d6cdb6; border-radius: 8px; background: #fff; color: var(--grau); padding: 1rem; text-align: center; font-size: .9rem; margin: .8rem 0; }
.ws-foto::before { content: "Foto folgt: "; font-weight: 700; color: var(--marine); }
.ws-schritte { counter-reset: s; list-style: none; padding: 0; }
.ws-schritte > li { counter-increment: s; position: relative; padding-left: 2.6rem; margin-bottom: 1.1rem; }
.ws-schritte > li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--marine); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.ws-warnung { border-left: 5px solid #d4145a; background: #fff0f5; padding: .7rem 1rem; border-radius: 4px; }
.ws-ergebnis-liste { list-style: none; padding: 0; margin: 1rem 0 0; }
.ws-ergebnis-liste li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid #ece6d6; }
.ws-ergebnis-liste li strong { font-variant-numeric: tabular-nums; }
.ws-zq { margin-top: 1.25rem; } .ws-zq-n { max-width: 14rem; display: block; font-weight: 600; margin-bottom: 1rem; } .ws-zq-n input { display:block; width:100%; margin-top:.3rem; font: inherit; font-size: 1.15rem; padding: .65rem .8rem; border: 2px solid #d6cdb6; border-radius: 6px; }
/* Kerzenbild */
.ws-kerzen { max-width: none; }
.ws-kerze-karte { display: grid; grid-template-columns: 130px 1fr; gap: 1.2rem; background: #fff; border: 1px solid #e2dccd; border-radius: 8px; padding: 1.2rem; margin-bottom: 1rem; align-items: start; }
.ws-kerze { width: 120px; height: auto; }
.ws-kerze-karte h3 { margin: 0 0 .4rem; }
.ws-kerze-karte p { margin: .3rem 0; }
.ws-kerze-urteil { display: inline-block; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; padding: .15rem .6rem; border-radius: 99px; background: #ece6d6; }
.u-gut { background: #dff3e4; color: #1d6b34; } .u-gefährlich { background: #ffe0ea; color: #a0103f; } .u-zu { background: #fff2e8; color: #b44b0c; } .u-Belag { background: #f1ebe0; color: #6b5532; }
@media (max-width: 560px) { .ws-kerze-karte { grid-template-columns: 1fr; } .ws-kerze { width: 100px; } }
.ws-karte select { display:block; width:100%; margin-top:.3rem; font: inherit; padding: .65rem .8rem; border: 2px solid #d6cdb6; border-radius: 6px; background:#fdfcf8; } .ws-quellen li { margin-bottom: .4rem; font-size: .95rem; }
.ws-chips button[data-w]::before { content: none; }
.ws-zq-ein { display: flex; flex-wrap: wrap; gap: 0 1rem; } .ws-zq-n select { display:block; width:100%; margin-top:.3rem; font: inherit; padding: .65rem .8rem; border: 2px solid #d6cdb6; border-radius: 6px; }
.ws-hinweise { margin: 0 0 1rem; } .ws-hinweise p { margin: .3rem 0; }
.anteil-ok { color: #2f6b3f; font-weight: 700; } .anteil-grenze { color: #a87a22; font-weight: 700; } .anteil-zu-breit { color: #a0103f; font-weight: 700; }

/* Portmap: Kanäle links, Zeichnung rechts, Fenster anklickbar */
.pm-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 1.25rem; align-items: start; }
.pm-panel { position: sticky; top: 76px; }
.pm-panel fieldset.ws-kanal { margin-top: .8rem; }
.pm-aus { display: none !important; }
.kanal-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.kanal-knopf { font: inherit; font-size: .88rem; font-weight: 700; text-align: left; line-height: 1.2; padding: .5rem .6rem; border: 2px solid #e2dccd; border-left-width: 6px; border-radius: 6px; background: #fff; color: var(--marine); cursor: pointer; }
.kanal-knopf small { display: block; font-weight: 400; color: var(--grau); min-height: 1em; }
.kanal-knopf.k-aus { border-left-color: var(--k-aus); } .kanal-knopf.k-ue { border-left-color: var(--k-ue); } .kanal-knopf.k-na { border-left-color: #c2410c; }
.kanal-knopf.k-zu { border-left-color: #5b7085; } .kanal-knopf.k-bo { border-left-color: #6a9a5b; } .kanal-knopf.k-ein { border-left-color: #8b7fc7; }
.kanal-knopf:not(.hat-daten) { opacity: .7; }
.kanal-knopf.aktiv { border-color: var(--marine); border-left-width: 6px; background: var(--blau-hell); opacity: 1; }
.s-klick { cursor: pointer; }
.s-klick:hover { stroke-width: .6; }
.s-gewaehlt { stroke: #d4145a; stroke-width: .7; }
.s-raster { stroke: #e8e2d3; stroke-width: .1; }
.s-mass { stroke: #10382b; stroke-width: .18; }
.s-pfeil { fill: #10382b; }
.s-mass-txt { font-size: 2px; font-weight: 700; fill: #10382b; paint-order: stroke; stroke: #fff; stroke-width: .5px; }
.s-fenster.s-konflikt { stroke: #c2410c; stroke-width: .8; stroke-dasharray: 1.2 .7; }   /* Überschneidung oder Steg unter 3 mm */
.pm-meldungen { margin: 0 0 .8rem; } .pm-meldungen p { margin: 0 0 .5rem; }
.pm-meldungen-panel { margin: .8rem 0 0; }
@media (min-width: 900px) { .pm-meldungen-panel, .pm-kurz { display: none !important; } }   /* am PC stehen die Meldungen über der Schablone daneben */
.pm-kurz { position: sticky; top: 62px; z-index: 4; display: block; width: 100%; margin: 0 0 .6rem; padding: .55rem .8rem; border: 0; border-left: 5px solid #c8164f;
  border-radius: 4px; background: #fdecef; color: var(--text); font: inherit; font-size: .9rem; font-weight: 600; text-align: left; cursor: pointer; box-shadow: 0 4px 12px rgba(16, 56, 43, .15); }
.pm-kurz-fehler { border-left-color: var(--orange); background: #fff2e8; }
.pm-kurz[hidden] { display: none; }
@media print { .pm-kurz { display: none !important; } }
@media print { .mass { display: none; } .s-gewaehlt, .s-fenster.s-konflikt { stroke: #10382b; stroke-width: .3; stroke-dasharray: none; } .pm-meldungen { display: none; } }
@media (max-width: 900px) { .pm-raster { grid-template-columns: minmax(0, 1fr); } .pm-panel { position: static; } }
#schabloneSvg text, #schabloneSvg line, #schabloneSvg .mass { pointer-events: none; }

/* Kaufcheck: Liste zum Abhaken */
.ws-check { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.ws-check li { border-bottom: 1px solid #ece6d6; }
.ws-check label { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem 0; cursor: pointer; line-height: 1.45; }
.ws-check input { width: 1.3rem; height: 1.3rem; flex: none; margin-top: .1rem; accent-color: var(--marine); }
.ws-check input:checked + span { color: var(--grau); text-decoration: line-through; text-decoration-color: #c9c1ad; }

/* Wissen teilen */
.ws-mitmachen { margin-top: 2.5rem; padding: 1.5rem; border-radius: 8px; background: #f1ecdf; border-left: 6px solid var(--orange); }
.ws-mitmachen h2 { margin: 0 0 .6rem; }
.ws-mitmachen p, .ws-mitmachen ul { margin: 0 0 1rem; line-height: 1.5; }
.ws-mitmachen .knopf { border: 0; }
@media print { .ws-mitmachen { display: none !important; } }

/* zwei Spalten (Fehlersuche mager/fett) */
.ws-zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ws-zwei-spalten h3 { margin: 0 0 .4rem; }
@media (max-width: 640px) { .ws-zwei-spalten { grid-template-columns: 1fr; gap: .5rem; } }
.ws-ursachen { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.ws-ursachen li { padding: .45rem 0; border-bottom: 1px solid #ece6d6; line-height: 1.4; }
.ws-bereich { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--grau); background: #f1ecdf; border-radius: 3px; padding: .05rem .4rem; margin-left: .3rem; white-space: nowrap; }

/* Querschnitt Zweitakt (querschnitt.js) */
.ws-qs { margin-top: 1.25rem; }
.qs-raster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.qs-bild svg { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; }
.qs-winkel { font-size: 1.05rem; margin: 0 0 .8rem; }
.qs-winkel strong { font-family: var(--titel); font-weight: 400; font-size: 1.6rem; color: var(--marine); margin-right: .2rem; }
.qs-regler { display: block; font-weight: 600; }
.qs-regler span { color: var(--grau); font-weight: 400; font-size: .9rem; }
.qs-regler input { display: block; width: 100%; margin: .5rem 0 .9rem; accent-color: var(--marine); height: 2rem; }
.qs-knoepfe { margin-bottom: .6rem; }
.qs-sprung { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0 0 1rem; }
.qs-phase { background: var(--blau-hell); border-left: 4px solid var(--marine); padding: .7rem .9rem; margin: 0 0 1rem; min-height: 4.2em; }
.qs-liste { list-style: none; padding: 0; margin: 0 0 1rem; }
.qs-liste li { display: grid; grid-template-columns: 9.5rem 3.5rem 1fr; gap: .5rem; align-items: baseline; padding: .4rem 0 .4rem .8rem; border-bottom: 1px solid #e2dccd; border-left: 5px solid #cfc4a8; }
.qs-liste li strong { color: var(--grau); }
.qs-liste li.ist-offen strong { color: var(--marine); }
.qs-liste small { color: var(--grau); }
.qs-liste .qs-aus.ist-offen { border-left-color: var(--k-aus); } .qs-liste .qs-ue.ist-offen { border-left-color: var(--k-ue); }
.qs-liste .qs-ein.ist-offen { border-left-color: #8b7fc7; } .qs-liste .qs-na.ist-offen { border-left-color: #c2410c; } .qs-liste .qs-zu.ist-offen { border-left-color: #5f6b5f; }
.qs .qs-metall { fill: url(#qs-s1); stroke: #6f684f; stroke-width: .35; }
.qs .qs-raum { fill: #f7f4ec; }
.qs .qs-wand-hinten { fill: #efe9da; }
.qs .qs-rippe { fill: #d6cdb6; }
.qs .qs-linie { fill: none; stroke: #6f684f; stroke-width: .5; }
.qs .qs-f { fill: var(--qf); stroke: var(--qf); stroke-width: .4; }
.qs .qs-zu { fill-opacity: .14; stroke-opacity: .45; }
.qs .qs-offen { fill-opacity: .8; }
.qs .qs-kolben { fill: url(#qs-s2); stroke: #3d3b35; stroke-width: .4; }
.qs .qs-ring { fill: #3d3b35; }
.qs .qs-pleuel { fill: #8c8a82; stroke: #3d3b35; stroke-width: .4; }
.qs .qs-zapfen { fill: #3d3b35; }
.qs .qs-wange { fill: #b9b6ac; stroke: #3d3b35; stroke-width: .4; }
.qs .qs-gegen { fill: #8c8a82; }
.qs .qs-kerze-m { fill: #8c8a82; stroke: #3d3b35; stroke-width: .3; }
.qs .qs-kerze-i { fill: #faf8f2; stroke: #3d3b35; stroke-width: .3; }
.qs .qs-hilfs { stroke: var(--marine); stroke-width: .3; stroke-dasharray: 1.2 1; }
.qs .qs-mass { fill: none; stroke: var(--marine); stroke-width: .4; }
.qs .qs-zeiger { stroke: var(--grau); stroke-width: .25; }
.qs .qs-t { font-family: var(--body); font-size: 3.6px; font-weight: 600; fill: var(--marine); }
.qs .qs-tk { font-size: 3px; font-weight: 400; fill: var(--grau); }
.qs .qs-tw { font-family: var(--titel); font-size: 4.2px; font-weight: 400; }
@media (max-width: 820px) {
  .qs-raster { grid-template-columns: minmax(0, 1fr); }
  .qs-liste li { grid-template-columns: 7.5rem 3rem 1fr; font-size: .95rem; }
  .qs-bild { margin: 0 -1.1rem; }
  .qs .qs-t { font-size: 4.4px; } .qs .qs-tk { font-size: 3.5px; } .qs .qs-tw { font-size: 5px; }
}
@media print { .ws-qs { display: none; } }
.qs .qs-metall-innen { fill: url(#qs-s1); }
.qs .qs-grad { font-family: var(--body); font-weight: 600; }
.qs-winkel strong .grad { font-family: var(--body); font-weight: 600; font-size: .75em; vertical-align: .35em; }
.qs .qs-kolben-innen { fill: #e4e1d9; }

/* Zeichnungen «Messen» (werkzeug/messen_svg.py) */
.ms-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.5rem; margin: 1rem 0 1.5rem; }
.ms-bild { margin: .8rem 0; background: #fff; border: 1px solid #e2dccd; border-radius: 8px; padding: .8rem .9rem .9rem; }
.ms-raster .ms-bild { margin: 0; }
.ms-bild svg { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto .6rem; }
.ms-bild figcaption { font-size: .95rem; line-height: 1.45; }
.ms .ms-kante { stroke: #6f684f; stroke-width: .35; }
.ms .ms-rippe { fill: #d6cdb6; }
.ms .ms-linie { fill: none; stroke: #6f684f; stroke-width: .5; }
.ms .ms-kanal { fill: var(--k-aus); fill-opacity: .18; }
.ms .ms-kolben { stroke: #3d3b35; stroke-width: .4; }
.ms .ms-ring { fill: #3d3b35; }
.ms .ms-werkzeug { stroke: #3d3b35; stroke-width: .4; }
.ms .ms-hilfs { stroke: var(--marine); stroke-width: .3; stroke-dasharray: 1.2 1; }
.ms .ms-mass { fill: none; stroke: #c2410c; stroke-width: .9; }
.ms .ms-pfeil { fill: #c2410c; }
.ms .ms-zeiger { stroke: var(--grau); stroke-width: .25; }
.ms .ms-licht { stroke: #e0b43c; stroke-width: .6; stroke-dasharray: 2 1.2; }
.ms .ms-bogen { fill: none; stroke: var(--k-aus); stroke-width: 1.4; }
.ms .ms-papier { fill: #fbfaf6; fill-opacity: .82; stroke: #b9ae90; stroke-width: .3; }
.ms .ms-fenster { fill: #3d3b35; fill-opacity: .45; }
.ms .ms-druck { fill: none; stroke: #c2410c; stroke-width: .5; stroke-dasharray: 1.4 .9; }
.ms .ms-oel { fill: #c79a3b; fill-opacity: .55; }
.ms .ms-t { font-family: var(--body); font-size: 5px; font-weight: 600; fill: var(--marine); }
.ms .ms-tk { font-size: 4.2px; font-weight: 400; fill: var(--grau); }
/* Zündung (zuendung_svg.py) */
.ms .ms-grundplatte { fill: #ece6d6; stroke: #b9ae90; stroke-width: .4; }
.ms .ms-gehaeuse { fill: #e9e3d3; stroke: #b9ae90; stroke-width: .5; }
.ms .ms-fuge { stroke: #6f684f; stroke-width: .7; }
.ms .ms-kontakt { fill: #3d3b35; }
.ms .ms-gleit { fill: #a3896a; stroke: #3d3b35; stroke-width: .3; }
.ms .ms-feder { fill: none; stroke: #3d3b35; stroke-width: .9; }
.ms .ms-isolator { fill: #f4f1e8; stroke: #3d3b35; stroke-width: .35; }
.ms .ms-lehre { fill: var(--k-ue); fill-opacity: .55; stroke: #3d3b35; stroke-width: .3; }
.ms .ms-skala { stroke: #3d3b35; stroke-width: .3; }
.ms .ms-nadel { stroke: #c2410c; stroke-width: .8; stroke-linecap: round; }
.ms .ms-marke { stroke: #c2410c; stroke-linecap: round; }
.ms .ms-marke-ot { stroke: var(--marine); stroke-linecap: round; }
.ms .ms-polrad { fill: #c9ccd0; stroke: #3d3b35; stroke-width: .45; }
.ms .ms-polrad-innen { fill: #d5d8db; stroke: #9aa0a6; stroke-width: .3; }
.ms .ms-polrad-fenster { fill: #6f6c63; stroke: #3d3b35; stroke-width: .3; }
.ms .ms-dreh { fill: none; stroke: var(--marine); stroke-width: .6; }
.ms .ms-kabel { fill: none; stroke: #c2410c; stroke-width: .7; }
.ms .ms-klemme { fill: #c2410c; }
.ms .ms-strahl { stroke: #e0b43c; stroke-width: .7; stroke-linecap: round; }
.ms .ms-lampe-an { fill: #f6d55c; stroke: #3d3b35; stroke-width: .4; }
.ms .ms-lampe-aus { fill: #f4f1e8; stroke: #3d3b35; stroke-width: .4; }
.ms .ms-batterie { fill: #e4e1d9; stroke: #3d3b35; stroke-width: .4; }
.ms .ms-langloch { fill: none; stroke: #6f684f; stroke-width: 4.6; stroke-linecap: round; stroke-opacity: .55; }
.ms .ms-spule { fill: #b8733a; stroke: #6e4320; stroke-width: .35; }
.ms .ms-magnet { fill: #6f6c63; }
.ms .ms-scheibe { fill: #fbfaf6; stroke: #3d3b35; stroke-width: .45; }
.ms .ms-draht { fill: none; stroke: #3d3b35; stroke-width: .9; stroke-linejoin: round; }
/* Zwei Ebenen: «Kurz gesagt» oben, Technik in «Für Tüftler» */
.ws-kurz { max-width: 46rem; margin: 1.2rem 0 1.8rem; padding: 1rem 1.2rem; background: var(--weiss); border: 1px solid #e2dccd; border-left: 6px solid var(--blau); border-radius: 8px; }
.ws-kurz p { margin: 0; line-height: 1.55; font-size: 1.05rem; }
.ws-kurz .ws-kurz-titel { font-family: var(--titel); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--marine); margin-bottom: .45rem; }
.ws-entwurf { font-family: var(--body); letter-spacing: 0; text-transform: none; font-size: .78rem; font-weight: 600; color: #8a5a00; background: #fbf1d6; border: 1px dashed #c79a3b; border-radius: 4px; padding: .05rem .4rem; margin-left: .5rem; vertical-align: middle; }
.ws-tueftler { margin-top: 2rem; border: 1px solid #e2dccd; border-radius: 8px; background: #fbfaf6; }
.ws-tueftler > summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; color: var(--marine); list-style-position: inside; }
.ws-tueftler > summary span { font-weight: 400; color: var(--grau); }
.ws-tueftler[open] > summary { border-bottom: 1px solid #e2dccd; }
.ws-tueftler > :not(summary) { margin-left: 1.1rem; margin-right: 1.1rem; }
.ws-tueftler > :last-child { margin-bottom: 1.1rem; }
.ws-tueftler > h2:first-of-type { margin-top: 1.1rem; }
@media print { .ws-kurz { display: none !important; } }
@media (max-width: 760px) {
  .ms-raster { grid-template-columns: minmax(0, 1fr); }
  .ms-bild { padding: .6rem .5rem .8rem; }
  .ms .ms-t { font-size: 5.6px; } .ms .ms-tk { font-size: 4.8px; }
}
/* Gemisch, Übersetzung, Auspuff, Kerzenbild (rest_svg.py) */
.ms .rz-nr { fill: var(--marine); }
.ms .rz-nr-t { fill: #fff; font-size: 4.6px; }
.ms .rz-glas { fill: #fbfaf6; fill-opacity: .35; stroke: #3d3b35; stroke-width: .45; }
.ms .rz-flasche { fill: #e4e1d9; stroke: #3d3b35; stroke-width: .4; }
.ms .rz-strahl-oel { fill: none; stroke: #c79a3b; stroke-width: 1.2; stroke-linecap: round; }
.ms .rz-strahl-benzin { fill: none; stroke: #9cc3cf; stroke-width: 1.2; stroke-linecap: round; }
.ms .rz-kanister { fill: #c2410c; fill-opacity: .16; stroke: #3d3b35; stroke-width: .45; }
.ms .rz-deckel { fill: #3d3b35; }
.ms .rz-benzin { fill: #9cc3cf; fill-opacity: .5; }
.ms .rz-hahn { fill: #d5d8db; stroke: #3d3b35; stroke-width: .4; }
.ms .rz-schlauch { fill: none; stroke: #3d3b35; stroke-width: 1.6; stroke-linecap: round; }
.ms .rz-ritzel { fill: #8a9096; stroke: #3d3b35; stroke-width: .45; }
.ms .rz-nabe { fill: #a7adb3; stroke: #3d3b35; stroke-width: .35; }
.ms .rz-welle { fill: #d5d8db; stroke: #3d3b35; stroke-width: .3; }
.ms .rz-kreide { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.ms .rz-blech { fill: #d5d8db; stroke: #9aa0a6; stroke-width: .4; }
.ms .rz-blechteil { fill: #d5d8db; stroke: #3d3b35; stroke-width: .45; }
.ms .rz-oeffnung { fill: #6f6c63; stroke: #3d3b35; stroke-width: .35; }
.ms .rz-naht { fill: none; stroke: #c2410c; stroke-width: .7; stroke-dasharray: 1.4 .9; }
.ms .rz-isolator { fill: #f4f1e8; stroke: #3d3b35; stroke-width: .4; }
.ms .rz-isolator-fuss { fill: #c9a27a; stroke: #3d3b35; stroke-width: .35; }
.ms .rz-isolator-spitze { fill: #e6d3b8; stroke: #8f7b5d; stroke-width: .3; }
.ms .rz-gewinde { stroke: #5b6670; stroke-width: .5; }
.ms .rz-lampe { fill: #3d3b35; stroke: #3d3b35; stroke-width: .4; }
.ms .rz-lupe { fill: #fbfaf6; stroke: #3d3b35; stroke-width: 2.2; }
.ms .rz-lupengriff { stroke: #3d3b35; stroke-width: 4.5; stroke-linecap: round; }
.ms .rz-hier { fill: none; stroke: #c2410c; stroke-width: 1.1; stroke-dasharray: 2 1.2; }

/* Elektrik-Rechner und Polrad (11.11.2026) */
.ws-unter { font-size: 1rem; margin: 1.1rem 0 .4rem; }
.ms .el-draht { fill: none; stroke: #3d3b35; stroke-width: .6; }
.ms .el-bauteil { fill: #fff; stroke: #3d3b35; stroke-width: .6; }
.ms .el-gestrichelt { stroke-dasharray: 1.6 1.1; }
.ms .el-punkt { fill: #3d3b35; }
.ms .el-punkt-offen { fill: #fff; stroke: #3d3b35; stroke-width: .5; }
.ms .el-led { fill: #f6d55c; stroke: #3d3b35; stroke-width: .5; }
.ms .el-licht { fill: none; stroke: #c79a3b; stroke-width: .45; }
.ms .el-rahmen { fill: none; stroke: #6f684f; stroke-width: 2.2; stroke-opacity: .5; }
/* Steuerzeiten: gemessen mit Tiefenmass oder Gradscheibe */
fieldset.ws-messart { border: 1px solid #e2dccd; border-radius: 6px; margin: .2rem 0 1rem; padding: .6rem .9rem .7rem; }
fieldset.ws-messart legend { font-weight: 600; padding: 0 .3rem; }
fieldset.ws-messart label { display: inline-flex; align-items: center; gap: .4rem; margin: 0 1.2rem .4rem 0; font-weight: 600; }
fieldset.ws-messart small { display: block; color: var(--grau); }
/* Zusatzkanäle (frei angelegt), je eine Farbe */
:root { --k-f1: #c2410c; --k-f2: #5b7085; --k-f3: #6a9a5b; --k-f4: #b5577e; --k-f5: #2f8f83; --k-f6: #8a6d3b; }
fieldset.ws-f1 { border-left-color: var(--k-f1); } fieldset.ws-f2 { border-left-color: var(--k-f2); } fieldset.ws-f3 { border-left-color: var(--k-f3); }
fieldset.ws-f4 { border-left-color: var(--k-f4); } fieldset.ws-f5 { border-left-color: var(--k-f5); } fieldset.ws-f6 { border-left-color: var(--k-f6); }
.kanal-knopf.k-f1 { border-left-color: var(--k-f1); } .kanal-knopf.k-f2 { border-left-color: var(--k-f2); } .kanal-knopf.k-f3 { border-left-color: var(--k-f3); }
.kanal-knopf.k-f4 { border-left-color: var(--k-f4); } .kanal-knopf.k-f5 { border-left-color: var(--k-f5); } .kanal-knopf.k-f6 { border-left-color: var(--k-f6); }
.d-f1, .d-f2, .d-f3, .d-f4, .d-f5, .d-f6 { fill: none; stroke-width: 9; }
.d-f1 { stroke: var(--k-f1); } .d-f2 { stroke: var(--k-f2); } .d-f3 { stroke: var(--k-f3); } .d-f4 { stroke: var(--k-f4); } .d-f5 { stroke: var(--k-f5); } .d-f6 { stroke: var(--k-f6); }
.l-f1::before { background: var(--k-f1); } .l-f2::before { background: var(--k-f2); } .l-f3::before { background: var(--k-f3); }
.l-f4::before { background: var(--k-f4); } .l-f5::before { background: var(--k-f5); } .l-f6::before { background: var(--k-f6); }
.s-f1 { fill: rgba(194, 65, 12, .3); } .s-f2 { fill: rgba(91, 112, 133, .3); } .s-f3 { fill: rgba(106, 154, 91, .35); }
.s-f4 { fill: rgba(181, 87, 126, .3); } .s-f5 { fill: rgba(47, 143, 131, .3); } .s-f6 { fill: rgba(138, 109, 59, .3); }
.kanal-neu { border-style: dashed; border-left-style: dashed; color: var(--grau); justify-content: center; }
.ws-felder .ws-breit { grid-column: 1 / -1; }
/* Steuerzeiten: Projektname + Zurücksetzen über dem Rechner */
.ws-projekt { display: flex; align-items: flex-end; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.ws-projekt label { flex: 1 1 18rem; display: block; font-weight: 600; margin: 0; }
.ws-projekt label > span { font-weight: 400; color: var(--grau); }
.ws-projekt input { display: block; width: 100%; margin-top: .3rem; font: inherit; font-size: 1.15rem; font-weight: 700; padding: .65rem .8rem; border: 2px solid #d6cdb6; border-radius: 6px; background: #fdfcf8; }
.ws-projekt input:focus { outline: none; border-color: var(--blau); background: var(--weiss); }
.ws-projekt .knopf { padding: .8rem 1.3rem; }
.ws-projekt .knopf { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
/* Messblatt drucken (alle Rechner, ws.js messblatt): nur das Blatt, mit Club-Kopf und Projektname */
#wsMessblatt { display: none; }
@media print {
  body.druck-messblatt-ws > *:not(#wsMessblatt) { display: none !important; }
  body.druck-messblatt-ws #wsMessblatt { display: block; font-family: var(--body); color: #000; }
  #wsMessblatt .mb-kopf { border-bottom: 2px solid #10382b; padding-bottom: 4mm; margin-bottom: 6mm; position: relative; }
  #wsMessblatt .mb-logo { position: absolute; right: 0; top: 0; height: 16mm; width: auto; }
  #wsMessblatt .mb-club { font-size: 9pt; font-weight: 700; letter-spacing: .08em; margin: 0; color: #10382b; }
  #wsMessblatt h1 { font-size: 22pt; margin: 2mm 0 1mm; }
  #wsMessblatt .mb-datum { font-size: 9pt; margin: 0; color: #555; }
  #wsMessblatt h2 { font-size: 12pt; margin: 6mm 0 2mm; text-transform: uppercase; letter-spacing: .05em; color: #10382b; }
  #wsMessblatt table { width: 100%; border-collapse: collapse; font-size: 11pt; }
  #wsMessblatt td { padding: 1.6mm 2mm; border-bottom: .3mm solid #ccc; }
  #wsMessblatt td:last-child { text-align: right; width: 45%; }
  #wsMessblatt .mb-fuss { margin-top: 10mm; font-size: 8pt; color: #555; word-break: break-all; }
}
/* Vergaser-Fehlersuche: je eine Zeile zu mager / zu fett */
.vg-zeile { border-left: 6px solid var(--k-f1); background: #fff; border-radius: 6px; padding: .4rem 1.2rem 1rem; margin: 0 0 1.25rem; }
.vg-zeile.vg-fett { border-left-color: #3d3b35; }
.vg-zeile > h2 { margin-top: .6rem; }
.vg-zeile h3 { margin-top: .4rem; }
/* Werkstatt-Übersicht: Kopfband mit Foto, Lochwand im Hintergrund, Kacheln mit Zeichnung (Joel 12.11.) */
.ws-uebersicht { padding-top: 0; background-color: #f2eddf; background-image: radial-gradient(circle, rgba(16, 56, 43, .13) 1.7px, transparent 2px); background-size: 24px 24px; }
.ws-held { position: relative; overflow: hidden; background: var(--marine-2); color: var(--weiss); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem); border-bottom: 6px solid var(--blau); margin-bottom: 1rem; }
.ws-held::before { content: ""; position: absolute; inset: 0; background: url("../../bilder/werkstatt-maxi.jpg") 55% 40% / cover no-repeat; opacity: .28; }
.ws-held .rahmen { position: relative; }
.ws-held h1 { color: var(--weiss); }
.ws-held .gross { color: #e6e1d2; max-width: 40rem; }
.ws-uebersicht .ws-titel { display: flex; align-items: center; gap: .8rem; }
.ws-uebersicht .ws-titel::after { content: ""; flex: 1; height: 2px; background: rgba(168, 122, 34, .35); }
.ws-uebersicht .ws-werkzeug { position: relative; display: flex; flex-direction: column; gap: .2rem; box-shadow: 0 1px 0 #d9d1bd; transition: transform .2s cubic-bezier(.25, .46, .45, .94), box-shadow .2s cubic-bezier(.25, .46, .45, .94); }
.ws-uebersicht .ws-werkzeug:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(16, 56, 43, .14); }
.ws-icon { width: 44px; height: 44px; color: var(--orange); margin-bottom: .5rem; }
@media (prefers-reduced-motion: reduce) { .ws-uebersicht .ws-werkzeug { transition: none; } .ws-uebersicht .ws-werkzeug:hover { transform: none; } }
.ws-uebersicht .ws-titel { margin: 3.5rem 0 0; }
.ws-uebersicht .rahmen > .ws-titel:first-child, .ws-uebersicht .ws-held + .rahmen > .ws-titel:first-of-type { margin-top: 2.5rem; }
/* Themenseiten der Werkstatt: gleicher Hintergrund wie die Übersicht, Kopfband mit der Zeichnung des Themas (Joel 12.11.) */
.ws-thema { padding-top: 0; background-color: #f2eddf; background-image: radial-gradient(circle, rgba(16, 56, 43, .13) 1.7px, transparent 2px); background-size: 24px 24px; }
.ws-held-raster { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.ws-held-icon { width: clamp(80px, 12vw, 140px); height: auto; color: var(--blau); opacity: .9; }
.ws-held .ws-pfad, .ws-held .ws-pfad a { color: #cfd8d2; }
.ws-held .ws-pfad a:hover { color: var(--blau); }
@media (max-width: 600px) { .ws-held-raster { grid-template-columns: 1fr; } .ws-held-icon { display: none; } }
@media print {
  .ws-thema, .ws-uebersicht { background: none; }
  .ws-held { background: none; color: #000; padding: 0; border: 0; margin: 0 0 4mm; }
  .ws-held::before, .ws-held-icon, .ws-held .ws-pfad { display: none; }
  .ws-held h1, .ws-held .gross { color: #000; }
  body.druck-schablone .ws-held { display: none !important; }
}
@media print { .ws-projekt .knopf { display: none; } }

/* Auspuff: Seitenansicht klebt über den Eingaben, Teil in Arbeit hervorgehoben (auspuff.js skizze) */
.ap-skizze { position: sticky; top: 62px; z-index: 5; background: #fff; border-radius: 8px; box-shadow: 0 6px 18px rgba(16, 56, 43, .14); padding: .6rem .8rem .5rem; margin: 0 0 1.25rem; }
.ap-skizze .ws-schablone-rahmen { border: 0; padding: 0; overflow: hidden; }
.ap-skizze .ws-schablone-rahmen svg { min-width: 0; }
.ap-skizze .ws-hilfe { margin: .3rem 0; }
.ap-info { margin: .25rem 0 0; font-size: .95rem; min-height: 1.4em; color: var(--text); }
.ap-teil { fill: #f3eee0; cursor: pointer; } .ap-teil:hover { fill: #ece2c6; }
.ap-teil.ap-kanal { fill: #e2dccd; }
.ap-teil.an { fill: #efd29a; }
.ap-rand { fill: none; stroke: #10382b; }
.ap-mass { fill: none; stroke: #a87a22; }
.ap-res { stroke: #c8164f; } .ap-res-txt { color: #c8164f; }
.ap-txt { fill: #5d635c; font-family: Barlow, Arial, sans-serif; } .ap-txt.an { fill: #a87a22; font-weight: 700; }
fieldset.ws-teil.ap-aktiv { border-left-color: var(--orange); }   /* kein Hintergrund: die Legende sitzt auf dem Rand und würde durchschnitten */
fieldset.ws-teil.ap-aktiv legend { color: var(--orange); }
@media print { .ap-skizze { position: static; box-shadow: none; } }

/* Vergasergrösse: Schnittzeichnung neben dem Rechner, gewähltes Feld leuchtet (vergasergroesse.js) */
.vg-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 1.25rem; align-items: start; margin: 1rem 0; }
.vg-raster form { grid-column: 1; grid-row: 1; }
.vg-raster .ws-zwei { grid-template-columns: minmax(0, 1fr); }
.vg-bild { grid-column: 2; grid-row: 1; margin: 0; position: sticky; top: 76px; }
@media (max-width: 899px) {
  .vg-raster { grid-template-columns: minmax(0, 1fr); }
  .vg-raster form, .vg-bild { grid-column: 1; grid-row: auto; }
  .vg-bild { top: 62px; z-index: 5; box-shadow: 0 6px 18px rgba(16, 56, 43, .14); }
}
.vgz { display: block; width: 100%; height: auto; }
.vgz-k { stroke: #10382b; stroke-width: 1.2; }
.vgz-dunn { fill: none; stroke: #5d635c; stroke-width: .7; }
.vgz-nadel { stroke: #3d3b35; stroke-width: 2; }
.vgz-linie { fill: none; stroke: #10382b; stroke-width: 1.2; }
.vgz-pleuel { fill: none; stroke: #3d3b35; stroke-width: 5; stroke-linecap: round; }
.vgz-zeiger { stroke: #9a9f98; stroke-width: .6; fill: none; }
.vgz-luft { stroke: #9fb3c3; stroke-width: 1.4; fill: none; }
.vgz-t { font: 8.5px Barlow, Arial, sans-serif; fill: #5d635c; }
.vgz-titel { font-weight: 700; fill: #10382b; }
.vgz-m { font-weight: 700; fill: #10382b; }
.vgz-wert { font-weight: 700; fill: #a87a22; }
.vgz-feld { fill: transparent; stroke: none; }
.vgz-mass { fill: none; stroke: #10382b; stroke-width: 1.1; }
.vgz-pfeil { fill: #10382b; }
.vgz-gruppe { cursor: pointer; outline: none; }
.vgz-gruppe.an .vgz-feld { fill: rgba(199, 154, 59, .35); stroke: #a87a22; stroke-width: 1.2; }
.vgz-gruppe.an .vgz-mass { stroke: #a87a22; stroke-width: 1.6; }
.vgz-gruppe.an .vgz-m { fill: #a87a22; }
.vg-info { font-size: .95rem; margin-top: .5rem; min-height: 3em; }
@media (max-width: 899px) { .vg-info { font-size: .88rem; } }
#vg label.vg-an { color: var(--orange); }
@media (max-width: 899px) {
  .vg-bild.vg-tippen .vgz { max-height: 130px; width: auto; margin: 0 auto; }
  .vg-bild.vg-tippen .vg-info { font-size: .82rem; min-height: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media print { .vg-bild { position: static; box-shadow: none; } }
/* Hinweis «Beispielwerte» (ws.js beispielStart) */
.ws-beispiel-info { background: #fff; border: 1px solid #e2dccd; border-left: 5px solid var(--blau); border-radius: 4px; padding: .6rem .9rem; margin: 0 0 1rem; font-size: .95rem; }
.ws-beispiel-info[hidden] { display: none; }
.ws-beispiel-info .ws-knopf-leise { color: var(--marine); }
@media print { .ws-beispiel-info { display: none !important; } }
/* Weiter mit deinen Werten (ws.js weiter) */
.ws-weiter { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #e2dccd; }
.ws-weiter:empty { display: none; }
.ws-weiter h3 { margin: 0 0 .4rem; }
.ws-weiter .ws-hilfe { margin: 0 0 .6rem; }
.ws-weiter-links { display: flex; flex-wrap: wrap; gap: .2rem; }
.ws-weiter-links a { text-decoration: none; display: inline-flex; align-items: center; }
@media print { .ws-weiter { display: none !important; } }
/* Übersetzung: Zahnradpaare (uebersetzung.js bild) */
.ue-bild { display: grid; gap: .8rem; margin: 1rem 0; }
.ue-stufe { margin: 0; background: #fff; border: 1px solid #e2dccd; border-radius: 8px; padding: .6rem .8rem; }
.ue-stufe svg { display: block; width: 100%; max-height: 210px; height: auto; }
.ue-stufe figcaption { font-size: .92rem; margin-top: .3rem; }
.ue-rad { fill: #e9e3d3; stroke: #10382b; stroke-width: .9; stroke-linejoin: round; }
.ue-nabe { fill: #fff; stroke: #10382b; stroke-width: .9; }
.ue-strich { stroke: #c79a3b; stroke-width: 3; stroke-linecap: round; }
.ue-band { fill: none; stroke: #9fb3c3; stroke-width: 3; }
.ue-band.ue-kette { stroke: #3d3b35; stroke-width: 5; }
.ue-glieder { fill: none; stroke: #9a9f98; stroke-width: 2.2; }
/* Auspuff: Bögen (Gehrungsteile) */
details.ap-bogen { margin-top: .45rem; }
details.ap-bogen > summary { cursor: pointer; font-size: .92rem; color: var(--blau); }
details.ap-bogen[open] > summary { margin-bottom: .3rem; }
.ap-ansicht { display: flex; gap: .3rem; justify-content: flex-end; margin: 0 0 .2rem; }
.ap-ansicht[hidden] { display: none; }
.ap-ansicht button { font: inherit; font-size: .82rem; padding: .15rem .6rem; border: 1px solid #c9cfc5; border-radius: 999px; background: #fff; color: var(--text); cursor: pointer; }
.ap-ansicht button[aria-pressed="true"] { background: #10382b; border-color: #10382b; color: #fff; }
.ap-skizze svg.ap-gebogen { display: block; width: 100%; margin: 0 auto; }
#abwicklungen .ws-ergebnis-liste strong { white-space: nowrap; }
