/* WECKTECH – Werkstatt-Kennzeichnung in Orange für alle Konfiguratoren und Werkstatt-Seiten. Wird als LETZTES Stylesheet
   eingebunden (nach css/einheit.css). Die Gestaltung für Kunden (Kopf, Karten, Knöpfe, Felder, Ansichten, Fuß) steht seit
   2026-10-10 in css/einheit.css, die Farben in css/farben.css; hier bleibt nur das eigenständige Werkstatt-Orange. */

/* ======================================================================================================================
   Werkstatt-Kennzeichnung in Orange (Inhaber 2026-10-10: „Bitte alle Felder, die Parameter-Einstellungen für mich sind,
   farblich hervorheben, in Orange oder so. Bau das bitte alles einheitlich ein.“)

   Gilt für die Werkstatt-Karte ganz unten in allen sechs Konfiguratoren (#karteWerkstatt; die Karten von Schubladeneinsatz
   und Boxen tragen dazu .ws-karte, js/werkstatt-karte.js), für die Werkstatt-Seiten (body.ws-seite: werkstatt.html,
   werkstatt-fahrzeuge.html), für Werkstatt-Steuerungen, die nur angemeldet erscheinen (.ws-nur), und einzelne
   Werkstatt-Felder (.ws-feld). Kundenfelder bleiben, wie sie sind.
   Karte: oranger Rahmen mit breiter Leiste links, Schild „nur Werkstatt“; Felder: oranger Rahmen, leicht oranger Grund,
   Fokus orange; Knöpfe orange. Einen dunklen Modus haben die Konfiguratoren nicht.
   ====================================================================================================================== */
:root {
  --ws-orange: #e8730c;       /* Rahmen, Leiste (Kontrast zu Weiß 3:1 – für Linien) */
  --ws-orange-d: #a84f06;     /* Schrift, Schild und Knöpfe (Kontrast zu Weiß 5,5:1) */
  --ws-orange-dd: #8a4105;    /* Knopf beim Überfahren */
  --ws-orange-l: #fff3e6;     /* Feldhintergrund */
  --ws-orange-r: #f1b27a;     /* feine Linien in Listen */
  --ws-schrift: "Montserrat", "Open Sans", system-ui, sans-serif;
}

/* ---------- Karte ---------- */
:is(#karteWerkstatt, .ws-karte) {
  position: relative; min-width: 0;
  background: var(--papier); color: var(--ink);
  border: 2px solid var(--ws-orange); border-left-width: 7px; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
  font-size: 14px; line-height: 1.5;
}
:is(#karteWerkstatt, .ws-karte)[hidden], :is(#karteWerkstatt, .ws-karte) [hidden] { display: none !important; }
/* Überschrift „Werkstatt · Produkt“ mit Schild */
:is(#karteWerkstatt, .ws-karte) > .card-h {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 4px;
  font: 700 16px/1.3 var(--ws-schrift); text-transform: none; letter-spacing: 0; color: var(--ws-orange-d);
}
:is(#karteWerkstatt, .ws-karte) > .card-h::after {
  content: "nur Werkstatt"; margin-left: auto; padding: 3px 9px; border-radius: 999px;
  background: var(--ws-orange-d); color: #fff; font: 700 10.5px/1.3 var(--ws-schrift); letter-spacing: .06em; text-transform: uppercase;
}
:is(#karteWerkstatt, .ws-karte) .card-sub { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
:is(#karteWerkstatt, .ws-karte) .ws-ungespeichert {
  display: inline-block; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--ws-orange);
  background: var(--ws-orange-l); color: var(--ws-orange-d); font-size: 12px; font-weight: 700;
}
:is(#karteWerkstatt, .ws-karte) .ws-link { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
:is(#karteWerkstatt, .ws-karte) .ws-link a { color: var(--ws-orange-d); font-weight: 700; }

/* Abschnitte: gleiche Überschrift in allen Karten */
:is(#karteWerkstatt, .ws-karte) .ws-h {
  margin: 18px 0 0; padding: 1px 0 1px 9px; border-left: 3px solid var(--ws-orange);
  font: 700 13px/1.35 var(--ws-schrift); color: var(--ink); text-transform: none; letter-spacing: 0;
}

/* ---------- Knöpfe ---------- */
:is(#karteWerkstatt, .ws-karte, .ws-sicherung) .btnrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
:is(#karteWerkstatt, .ws-karte, .ws-sicherung) .btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: auto; min-height: 0; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--ws-orange); background: #fff; color: var(--ws-orange-d);
  font: 600 13px/1 var(--ws-schrift); letter-spacing: 0; text-decoration: none; cursor: pointer; box-shadow: none;
}
:is(#karteWerkstatt, .ws-karte, .ws-sicherung) .btn:hover:not(:disabled) { background: var(--ws-orange-l); border-color: var(--ws-orange-d); color: var(--ws-orange-dd); }
:is(#karteWerkstatt, .ws-karte, .ws-sicherung) .btn.primaer { background: var(--ws-orange-d); border-color: var(--ws-orange-d); color: #fff; }
:is(#karteWerkstatt, .ws-karte, .ws-sicherung) .btn.primaer:hover:not(:disabled) { background: var(--ws-orange-dd); border-color: var(--ws-orange-dd); color: #fff; }
:is(#karteWerkstatt, .ws-karte, .ws-sicherung) .btn:disabled { opacity: .55; cursor: default; }
:is(#karteWerkstatt, .ws-karte) :is(.ws-zeile button, .ws-mini) { border-color: var(--ws-orange-r); color: var(--ws-orange-d); background: #fff; }

/* Listen (Vorlagen, Dekore, Kantentypen, Stärken, Beschläge, Dreh-Säulen) */
:is(#karteWerkstatt, .ws-karte) :is(.ws-zeile, .ws-dekor, .ws-kante, .ws-staerke) { border-color: var(--ws-orange-r); }
:is(#karteWerkstatt, .ws-karte) .ws-dekor[open] { border-color: var(--ws-orange); }
:is(#karteWerkstatt, .ws-karte) .ws-chip { border-color: var(--ws-orange); background: var(--ws-orange-l); color: var(--ws-orange-d); }
:is(#karteWerkstatt, .ws-karte) .ws-staerke.aus .ws-chip { border-color: var(--line-2); background: #fff; color: var(--muted); }

/* Status */
:is(#karteWerkstatt, .ws-karte) .status { margin-top: 10px; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; }
:is(#karteWerkstatt, .ws-karte) .status:empty { display: none; }
:is(#karteWerkstatt, .ws-karte) .status.info { background: var(--petrol-l); color: var(--petrol-d); }
:is(#karteWerkstatt, .ws-karte) .status.warn { background: var(--warn-bg); color: var(--warn); }
:is(#karteWerkstatt, .ws-karte) .status.fehler { background: var(--bad-bg); color: var(--bad); }

/* ---------- Felder: oranger Rahmen, leicht oranger Grund, Fokus orange ---------- */
:is(#karteWerkstatt, .ws-karte, .ws-seite) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]), select, textarea):not(:disabled),
.ws-feld:not(:disabled) {
  border-color: var(--ws-orange); background-color: var(--ws-orange-l);
}
:is(#karteWerkstatt, .ws-karte, .ws-seite) :is(input, select, textarea):focus, .ws-feld:focus {
  outline: 2px solid var(--ws-orange); outline-offset: -1px; border-color: var(--ws-orange-d);
}
:is(#karteWerkstatt, .ws-karte, .ws-seite) input[type=color] { border-color: var(--ws-orange); }
:is(#karteWerkstatt, .ws-karte, .ws-seite) :is(input[type=checkbox], input[type=radio]) { accent-color: var(--ws-orange-d); }
/* ungültige Eingaben (Boxen-Werte) rot – vom Orange unterscheidbar */
:is(#karteWerkstatt, .ws-karte, .ws-seite) :is(input, select).ungueltig { border-color: var(--bad) !important; background-color: var(--bad-bg) !important; }

/* einzelne Werkstatt-Steuerungen außerhalb der Karte (nur angemeldet sichtbar) */
.ws-nur:not([hidden]) { border: 1px dashed var(--ws-orange) !important; background: var(--ws-orange-l) !important; color: var(--ws-orange-d) !important; }
span.ws-nur { padding: 1px 8px; border-radius: 999px; font-weight: 600; }

/* ---------- Aufbau der Karten von Schubladeneinsatz und Boxen: wie kiste.css, unabhängig von app.css und der Boxen-Seite ---------- */
/* schmal (Handy, rechte Spalte der Boxen-Seite) zwei Spalten wie in den anderen Karten, breit (Schubladeneinsatz am Rechner) mehr */
.ws-karte .ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 8px 10px; margin-top: 8px; }
.ws-karte .ws-grid > * { min-width: 0; }
.ws-karte .ws-grid .ganz { grid-column: 1 / -1; }
.ws-karte .ws-grid label { display: grid; gap: 3px; align-content: start; margin: 0; font-size: 12px; font-weight: 400; color: var(--ink-2); }
/* Beschriftung oben, Feld unten: die Felder einer Zeile stehen auf gleicher Höhe, auch wenn eine Beschriftung umbricht */
.ws-karte .ws-grid label:has(> .ws-l) { grid-template-rows: 1fr auto; }
.ws-karte .ws-grid .ws-l { align-self: end; }
.ws-karte .ws-grid label .u { color: var(--muted); font-weight: 400; }
.ws-karte .ws-grid :is(input:not([type=checkbox]):not([type=radio]):not([type=color]), select) {
  width: 100%; height: 34px; margin: 0; padding: 0 8px; border: 1px solid var(--ws-orange); border-radius: 8px;
  font: 400 15px/1.2 "Open Sans", system-ui, sans-serif; color: var(--ink);
}
.ws-karte .ws-grid select { padding-right: 28px; }
.ws-karte .ws-grid .ws-h.sub { margin-top: 8px; font-size: 12.5px; border-left-width: 2px; }
.ws-karte .ws-grid label.ws-schalter, .ws-karte .ws-schalter { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.ws-karte .ws-schalter input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
.ws-karte .fein { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.ws-karte .fein.warn { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); }
.ws-karte .fein .warn { color: var(--warn); }
.ws-karte code { font-size: 11.5px; }
.ws-karte details > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 4px 0; }
/* Kalkulation */
.ws-karte .ws-zeilen { padding: 6px 10px; border-radius: 10px; background: var(--bg-3); }
.ws-karte .ws-zeilen-h { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ws-karte .ws-zeilen .row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 12.5px; }
.ws-karte .ws-zeilen .row > span:first-child { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.ws-karte .ws-zeilen .row > span:last-child { color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.ws-karte .ws-zeilen .row small { display: block; font-weight: 400; color: var(--muted); }
.ws-karte .bx-kalk .row.anders > span:last-child { color: var(--petrol-d); }
.ws-karte .bx-kalk .row small.bx-aussen { color: var(--warn); }
/* alte Boxen-Farbliste und Leistenvorgabe */
.ws-karte .bx-farben { display: grid; gap: 8px; margin: 6px 0; }
.ws-karte .bx-farbe { display: grid; grid-template-columns: 24px 42px minmax(70px, 96px) minmax(0, 1fr); gap: 6px; align-items: center; margin-top: 6px; }
.ws-karte .bx-nr { display: flex; align-items: center; justify-content: center; height: 24px; border-radius: 6px;
  font: 700 11px var(--ws-schrift); color: var(--ws-orange-d); background: var(--ws-orange-l); }
.ws-karte .bx-farbe input[type=color] { width: 42px; height: 34px; padding: 2px; border: 1px solid var(--ws-orange); border-radius: 8px; background: #fff; cursor: pointer; }
.ws-karte .bx-farbe input[type=text] { width: 100%; min-width: 0; height: 34px; padding: 0 8px; border: 1px solid var(--ws-orange); border-radius: 8px; font-size: 14px; }
@media (max-width: 420px) {
  .ws-karte .bx-farbe { grid-template-columns: 24px 42px minmax(0, 1fr); }
  .ws-karte .bx-farbe .bx-name { grid-column: 2 / -1; }
}

/* ---------- Sichern: exportieren, einspielen, frühere Stände (2026-10-10, js/werkstatt-karte.js) – in allen Werkstatt-Karten
   und auf werkstatt.html; orange wie die übrigen Werkstatt-Bedienelemente ---------- */
.ws-sicherung { margin-top: 10px; padding: 8px 12px 10px; border: 1px dashed var(--ws-orange); border-radius: 12px; background: #fff; font-size: 13px; }
.ws-sicherung .btnrow { margin-top: 0; }
.ws-sicherung .ws-datei { position: relative; overflow: hidden; }
.ws-sicherung .ws-datei input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.ws-sicherung .ws-datei:focus-within { outline: 2px solid var(--ws-orange); outline-offset: 2px; }
.ws-sich-meldung { margin: 8px 0 0; padding: 6px 10px; border-radius: 8px; font-size: 13px; background: var(--petrol-l); color: var(--petrol-d); }
.ws-sich-meldung.fehler { background: var(--bad-bg); color: var(--bad); }
.ws-sich-box { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--ws-orange-l); border: 1px solid var(--ws-orange-r); }
.ws-sich-box p { margin: 4px 0; }
.ws-sich-box ul { margin: 4px 0; padding-left: 18px; }
.ws-sich-box li { margin: 2px 0; overflow-wrap: anywhere; }
.ws-sich-verlauf { margin-top: 8px; }
.ws-sich-verlauf > summary { cursor: pointer; font-weight: 700; color: var(--ws-orange-d); }
.ws-sich-liste { display: grid; gap: 6px; margin-top: 6px; }
.ws-sich-zeile { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--ws-orange-r); border-radius: 8px; background: #fff; font-size: 12.5px; font-weight: 400; color: var(--ink); }
.ws-sich-zeile > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ws-sich-zeile small { display: block; color: var(--muted); font-size: 11.5px; }
.ws-sich-zeile small.warn { color: var(--warn); }
.ws-sich-zeile input[type=checkbox] { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; }
.ws-alles-liste { display: grid; gap: 6px; margin: 6px 0; }
.ws-sicherung .fein { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.ws-sicherung .fein.warn { color: var(--warn); }
