/* GENERIERT von api/design_generate.py -- nicht von Hand aendern.
   Quelle: api/design_generate.py (COMPONENTS_CSS)
   Gepflegt wird das im Design Center unter #/admin/design. */

/* B-00 Button-Grundmasse */
.ws-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--ws-btn-gap);
  height: var(--ws-btn-h-md); padding: 0 var(--ws-btn-px-md);
  border-radius: var(--ws-btn-radius);
  font-family: var(--ws-font-text); font-weight: var(--ws-btn-weight);
  font-size: var(--ws-btn-fs-md);
  border: var(--ws-border-w) solid transparent; cursor: pointer;
  transition: all .2s ease; white-space: nowrap;
}
.ws-btn-sm { height: var(--ws-btn-h-sm); padding: 0 var(--ws-btn-px-sm); font-size: var(--ws-btn-fs-sm); }
.ws-btn-lg { height: var(--ws-btn-h-lg); padding: 0 var(--ws-btn-px-lg); font-size: var(--ws-btn-fs-lg); }
.ws-btn:focus-visible { outline: var(--ws-focus-w) solid var(--ws-focus-color); outline-offset: var(--ws-focus-offset); }
.ws-btn:disabled, .ws-btn.is-disabled { opacity: .45; cursor: not-allowed; }
.ws-btn.is-loading { cursor: progress; }
.ws-btn .arrow { width: var(--ws-icon-sm); height: var(--ws-icon-sm); display: inline-block; }

/* B-01 Button Primaer */
.ws-btn-primary { background: var(--ws-btn-primary-bg); color: var(--ws-btn-primary-fg); }
.ws-btn-primary:hover:not(:disabled) { background: var(--ws-btn-primary-hover-bg); }

/* B-02 Button Amber */
.ws-btn-amber { background: var(--ws-btn-amber-bg); color: var(--ws-btn-amber-fg); }
.ws-btn-amber:hover:not(:disabled) { background: var(--ws-btn-amber-hover-bg); }

/* B-03 Button Rahmen */
.ws-btn-ghost { background: transparent; color: var(--ws-btn-ghost-fg); border-color: var(--ws-btn-ghost-border); }
.ws-btn-ghost:hover:not(:disabled) { background: var(--ws-btn-ghost-hover-bg); color: var(--ws-btn-ghost-hover-fg); border-color: var(--ws-btn-ghost-hover-bg); }

/* B-04 Button Gefaehrlich */
.ws-btn-danger { background: transparent; color: var(--ws-btn-danger-fg); border-color: var(--ws-btn-danger-border); }
.ws-btn-danger:hover:not(:disabled) { background: var(--ws-btn-danger-hover-bg); color: var(--ws-btn-danger-hover-fg); }

/* B-05 Button Text */
.ws-btn-text {
  background: transparent; border: 0; padding: 0; height: auto;
  color: var(--ws-btn-text-fg); font-size: var(--ws-small);
  text-decoration: underline; text-underline-offset: var(--ws-space-1);
}
.ws-btn-text:hover:not(:disabled) { color: var(--ws-btn-text-hover-fg); }

/* B-06 Button Symbol */
.ws-btn-icon { width: var(--ws-btn-icon-size); height: var(--ws-btn-icon-size); padding: 0; }
.ws-btn-icon.ws-btn-sm { width: var(--ws-btn-icon-size-sm); height: var(--ws-btn-icon-size-sm); padding: 0; }

/* B-00/B-06 in Tabellen: Knoepfe in Tabellenzeilen sind immer klein (Thomas, 2026-10-15) */
.ws-table td .ws-btn:not(.ws-btn-text):not(.ws-btn-icon) { height: var(--ws-btn-h-sm); padding: 0 var(--ws-btn-px-sm); font-size: var(--ws-btn-fs-sm); }
.ws-table td .ws-btn-icon { width: var(--ws-btn-icon-size-sm); height: var(--ws-btn-icon-size-sm); }

/* B-07 Frag Woodie -- Einstieg in den Assistenten, ueberall derselbe Knopf.
   Nutzt vorerst Fundament-Farben; eigene Tokens spaeter (siehe STATUS.md). */
.ws-btn-woodie { background: var(--ws-forest); color: var(--ws-white); }
.ws-btn-woodie:hover:not(:disabled) { background: var(--ws-ink); }

/* E-00 Eingabe-Grundmasse */
.ws-field { display: flex; flex-direction: column; gap: var(--ws-space-1); }
.ws-label { font-family: var(--ws-font-text); font-size: var(--ws-label-fs); font-weight: var(--ws-btn-weight); color: var(--ws-ink-80); }
.ws-label .req { color: var(--ws-required-color); }
.ws-help { font-size: var(--ws-help-fs); color: var(--ws-ink-60); }
.ws-error-text { font-size: var(--ws-help-fs); color: var(--ws-error); }

/* E-01 Textfeld */
.ws-input, .ws-textarea, .ws-select, .ws-input-date {
  width: 100%; font-family: var(--ws-font-text); font-size: var(--ws-input-fs);
  color: var(--ws-input-fg); background: var(--ws-input-bg);
  border: var(--ws-border-w) solid var(--ws-input-border);
  border-radius: var(--ws-input-radius);
  padding: 0 var(--ws-input-px); height: var(--ws-input-h);
}
.ws-input:focus, .ws-textarea:focus, .ws-select:focus, .ws-input-date:focus {
  outline: none; border-color: var(--ws-input-border-focus);
  box-shadow: 0 0 0 var(--ws-focus-w) var(--ws-amber-soft);
}
.ws-input:disabled, .ws-textarea:disabled, .ws-select:disabled { opacity: .55; cursor: not-allowed; }
.ws-input[readonly], .ws-textarea[readonly] { background: var(--ws-paper-2); }
.ws-field.is-error .ws-input, .ws-field.is-error .ws-textarea, .ws-field.is-error .ws-select { border-color: var(--ws-input-error); }
.ws-input.is-error, .ws-textarea.is-error, .ws-select.is-error { border-color: var(--ws-input-error); }
.ws-input-mono { font-family: var(--ws-font-mono); }

/* E-02 Textbereich */
.ws-textarea { min-height: var(--ws-textarea-minh); height: auto; padding: var(--ws-space-2) var(--ws-input-px); line-height: var(--ws-body-lh); resize: vertical; }

/* E-03 Zahlenfeld */
.ws-input-num { text-align: right; font-variant-numeric: tabular-nums; }
.ws-input-suffix { display: inline-flex; align-items: center; gap: var(--ws-space-2); }
.ws-input-suffix .einheit { font-family: var(--ws-font-mono); font-size: var(--ws-micro); color: var(--ws-ink-60); }

/* E-05 Auswahlfeld */
.ws-select { appearance: none; padding-right: var(--ws-space-6); background-image: linear-gradient(45deg, transparent 50%, var(--ws-select-arrow) 50%), linear-gradient(135deg, var(--ws-select-arrow) 50%, transparent 50%); background-position: right var(--ws-space-4) center, right var(--ws-space-3) center; background-size: var(--ws-space-2) var(--ws-space-2); background-repeat: no-repeat; }

/* E-01 Groesse klein -- dichte Erfassungen und Eingaben in Zeilen (Thomas, 2026-10-15).
   Steht hinter E-02 und E-05, damit sie Hoehe und Innenabstand dort ueberschreibt. */
.ws-input-sm { height: var(--ws-input-h-sm); padding: 0 var(--ws-input-px-sm); font-size: var(--ws-input-fs-sm); }
.ws-textarea.ws-input-sm { height: auto; padding: var(--ws-space-1) var(--ws-input-px-sm); }
.ws-select.ws-input-sm { padding-right: var(--ws-space-6); }

/* E-06 Suchfeld */
.ws-search { display: inline-flex; align-items: center; gap: var(--ws-space-2); height: var(--ws-search-h); width: var(--ws-search-w); max-width: 100%; padding: 0 var(--ws-input-px); border: var(--ws-border-w) solid var(--ws-input-border); border-radius: var(--ws-r-pill); background: var(--ws-input-bg); }
.ws-search input { flex: 1; border: 0; outline: none; background: transparent; font-family: var(--ws-font-text); font-size: var(--ws-input-fs); color: var(--ws-input-fg); min-width: 0; }
.ws-search .loeschen { border: 0; background: transparent; cursor: pointer; color: var(--ws-ink-60); }

/* E-07 Datei-Upload */
.ws-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--ws-space-2); min-height: var(--ws-dropzone-minh); padding: var(--ws-space-5); border: var(--ws-border-w-strong) dashed var(--ws-border-strong); border-radius: var(--ws-r-md); color: var(--ws-ink-60); text-align: center; }
.ws-dropzone.is-over { border-color: var(--ws-amber); background: var(--ws-amber-soft); }

/* E-08 Formular-Layout */
.ws-form { display: grid; gap: var(--ws-form-gap); }
.ws-form-2, .ws-form-3 { display: grid; gap: var(--ws-form-gap) var(--ws-form-col-gap); }
.ws-form-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ws-form-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* S-01 Schalter */
.ws-switch { position: relative; display: inline-block; width: var(--ws-switch-w); height: var(--ws-switch-h); flex: none; }
.ws-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ws-switch .bahn { position: absolute; inset: 0; border-radius: var(--ws-r-pill); background: var(--ws-switch-off-bg); transition: background .2s ease; pointer-events: none; }
.ws-switch .knopf { position: absolute; top: 50%; left: calc((var(--ws-switch-h) - var(--ws-switch-knob)) / 2); width: var(--ws-switch-knob); height: var(--ws-switch-knob); margin-top: calc(var(--ws-switch-knob) / -2); border-radius: var(--ws-r-pill); background: var(--ws-switch-knob-bg); transition: transform .2s ease; pointer-events: none; }
.ws-switch input:checked ~ .bahn { background: var(--ws-switch-on-bg); }
.ws-switch input:checked ~ .knopf { transform: translateX(calc(var(--ws-switch-w) - var(--ws-switch-h))); }
.ws-switch input:focus-visible ~ .bahn { outline: var(--ws-focus-w) solid var(--ws-focus-color); outline-offset: var(--ws-focus-offset); }
.ws-switch input:disabled ~ .bahn { opacity: .45; }

/* S-02 Kontrollkaestchen */
.ws-check { appearance: none; width: var(--ws-check-size); height: var(--ws-check-size); flex: none; border: var(--ws-border-w-strong) solid var(--ws-border-strong); border-radius: var(--ws-check-radius); background: var(--ws-surface); cursor: pointer; display: inline-grid; place-content: center; }
.ws-check::before { content: ""; width: calc(var(--ws-check-size) / 2); height: calc(var(--ws-check-size) / 4); border-left: var(--ws-border-w-strong) solid var(--ws-check-mark); border-bottom: var(--ws-border-w-strong) solid var(--ws-check-mark); transform: rotate(-45deg) translate(10%, -30%); opacity: 0; }
.ws-check:checked { background: var(--ws-check-bg); border-color: var(--ws-check-bg); }
.ws-check:checked::before { opacity: 1; }
.ws-check:focus-visible { outline: var(--ws-focus-w) solid var(--ws-focus-color); outline-offset: var(--ws-focus-offset); }

/* S-03 Optionsfeld */
.ws-radio { appearance: none; width: var(--ws-radio-size); height: var(--ws-radio-size); flex: none; border: var(--ws-border-w-strong) solid var(--ws-border-strong); border-radius: var(--ws-r-pill); background: var(--ws-surface); cursor: pointer; display: inline-grid; place-content: center; }
.ws-radio::before { content: ""; width: calc(var(--ws-radio-size) / 2); height: calc(var(--ws-radio-size) / 2); border-radius: var(--ws-r-pill); background: var(--ws-radio-dot); opacity: 0; }
.ws-radio:checked { border-color: var(--ws-radio-dot); }
.ws-radio:checked::before { opacity: 1; }
.ws-radio:focus-visible { outline: var(--ws-focus-w) solid var(--ws-focus-color); outline-offset: var(--ws-focus-offset); }

/* S-04 Segment-Umschalter */
.ws-segment { display: inline-flex; gap: var(--ws-space-1); padding: var(--ws-space-1); border-radius: var(--ws-r-pill); background: var(--ws-segment-bg); }
.ws-segment button { height: var(--ws-segment-h); padding: 0 var(--ws-segment-px); border: 0; border-radius: var(--ws-r-pill); background: transparent; color: var(--ws-ink-60); font-family: var(--ws-font-text); font-size: var(--ws-small); font-weight: var(--ws-btn-weight); cursor: pointer; }
.ws-segment button.is-active { background: var(--ws-segment-active-bg); color: var(--ws-segment-active-fg); }
.ws-segment button:disabled { opacity: .45; cursor: not-allowed; }

/* T-30 Eyebrow */
.ws-eyebrow { font-family: var(--ws-font-mono); font-size: var(--ws-eyebrow-fs); letter-spacing: var(--ws-eyebrow-ls); text-transform: uppercase; color: var(--ws-eyebrow-color); }

/* T-31 Tabellenkopf-Label */
.ws-th { font-family: var(--ws-font-mono); font-size: var(--ws-th-fs); letter-spacing: var(--ws-th-ls); text-transform: uppercase; color: var(--ws-th-color); font-weight: 400; text-align: left; }
.ws-th.zahl, .ws-table th.zahl { text-align: right; }

/* T-32 Zahlen */
.ws-num { font-variant-numeric: tabular-nums; }

/* T-40 Akzentwort im Titel */
.ws-underscore { letter-spacing: -0.04em; }
.ws-underscore em { font-style: normal; color: var(--ws-accent-word-color); font-weight: var(--ws-accent-word-weight); }

/* T-10 bis T-14 als Klassen -- fuer Titel, die kein h-Tag sein sollen */
.ws-mono { font-family: var(--ws-font-mono); font-weight: 400; letter-spacing: 0; }
.ws-h0 { font-family: var(--ws-font-heading); font-size: var(--ws-h0); font-weight: var(--ws-h0-weight); line-height: var(--ws-h0-lh); letter-spacing: var(--ws-h0-ls); }
.ws-h1 { font-family: var(--ws-font-heading); font-size: var(--ws-h1); font-weight: var(--ws-h1-weight); line-height: var(--ws-h1-lh); letter-spacing: var(--ws-h1-ls); }
.ws-h2 { font-family: var(--ws-font-heading); font-size: var(--ws-h2); font-weight: var(--ws-h2-weight); line-height: var(--ws-h2-lh); letter-spacing: var(--ws-h2-ls); }
.ws-h3 { font-family: var(--ws-font-heading); font-size: var(--ws-h3); font-weight: var(--ws-h3-weight); line-height: var(--ws-h3-lh); letter-spacing: var(--ws-h3-ls); }
.ws-h4 { font-family: var(--ws-font-heading); font-size: var(--ws-h4); font-weight: var(--ws-h4-weight); line-height: var(--ws-h4-lh); letter-spacing: var(--ws-h4-ls); }

/* N-01 Kopfzeile -- bleibt beim Scrollen oben stehen (Thomas, 2026-10-15), wie im Portal */
.ws-header { position: sticky; top: 0; z-index: 10; background: var(--ws-bg); display: flex; align-items: center; justify-content: space-between; gap: var(--ws-space-4); padding: var(--ws-header-py) 0; border-bottom: var(--ws-border-w) solid var(--ws-border); }
.ws-header .logo { height: var(--ws-header-logo-h); width: auto; display: block; }
/* Kopf, der selbst Seitenbreite und Seitenrand traegt (A-03). Sticky wirkt nur, wenn der
   Kopf direkt im Seiten-Fluss steht -- in einem eigenen Container-Wrapper klebte er nicht. */
.ws-header.ws-container { padding: var(--ws-header-py) var(--ws-gutter); }

/* I-03 Das OS */
.ws-os-wort { font-family: var(--ws-font-heading); font-size: var(--ws-os-fs); font-weight: var(--ws-os-weight); color: var(--ws-os-color); line-height: 1; }

/* N-02 Fusszeile */
.ws-footer { font-family: var(--ws-font-mono); font-size: var(--ws-footer-fs); letter-spacing: var(--ws-th-ls); text-transform: uppercase; color: var(--ws-footer-color); padding: var(--ws-space-5) 0; border-top: var(--ws-border-w) solid var(--ws-border); }

/* N-03 Tabs */
.ws-tabs { display: flex; gap: var(--ws-space-5); border-bottom: var(--ws-border-w) solid var(--ws-border); }
.ws-tabs button { height: var(--ws-tab-h); border: 0; background: transparent; padding: 0; cursor: pointer; color: var(--ws-ink-60); font-family: var(--ws-font-text); font-size: var(--ws-small); border-bottom: var(--ws-border-w-strong) solid transparent; }
.ws-tabs button.is-active { color: var(--ws-ink); border-bottom-color: var(--ws-tab-active); }

/* N-04 Brotkrumen */
.ws-crumbs { font-family: var(--ws-font-mono); font-size: var(--ws-crumb-fs); color: var(--ws-crumb-color); display: flex; gap: var(--ws-space-2); align-items: center; }

/* N-05 Seitenleiste */
.ws-sidenav { display: flex; flex-direction: column; gap: var(--ws-space-1); }
.ws-sidenav-item { display: flex; align-items: center; gap: var(--ws-space-2); width: 100%; min-height: var(--ws-sidenav-item-h); padding: 0 var(--ws-space-3); border: 0; border-radius: var(--ws-r-sm); background: transparent; color: var(--ws-ink-60); font-family: var(--ws-font-text); font-size: var(--ws-small); text-align: left; text-decoration: none; cursor: pointer; }
.ws-sidenav-item:hover { background: var(--ws-row-hover); color: var(--ws-ink); }
.ws-sidenav-item.is-active { background: var(--ws-sidenav-active-bg); color: var(--ws-ink); font-weight: var(--ws-btn-weight); }
.ws-sidenav-item .ende { margin-left: auto; }

/* N-06 Avatar-Pill */
.ws-avatar { display: inline-grid; place-content: center; width: var(--ws-avatar-size); height: var(--ws-avatar-size); border-radius: var(--ws-r-pill); background: var(--ws-avatar-bg); color: var(--ws-avatar-fg); font-family: var(--ws-font-text); font-size: var(--ws-avatar-fs); font-weight: var(--ws-btn-weight); }

/* N-07 Textlink */
.ws-link { color: var(--ws-link-color); text-decoration: underline; text-decoration-color: var(--ws-link-underline); text-underline-offset: var(--ws-space-1); }
.ws-link:hover { color: var(--ws-link-hover); text-decoration-color: var(--ws-link-hover); }

/* K-01 Karte */
.ws-card { background: var(--ws-card-bg); border: var(--ws-border-w) solid var(--ws-card-border); border-radius: var(--ws-card-radius); padding: var(--ws-card-p); }
.ws-card-flush { padding: 0; overflow-x: auto; }

/* K-03 Sektion mit Kopf */
.ws-section { margin-bottom: var(--ws-section-gap); }
.ws-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ws-space-4); margin-bottom: var(--ws-section-head-gap); padding-bottom: var(--ws-space-2); border-bottom: var(--ws-border-w) solid var(--ws-border); }

/* K-05 Trennlinie */
.ws-rule { height: var(--ws-border-w); background: var(--ws-rule-color); width: 100%; border: 0; margin: 0; }

/* K-06 Kennzahl */
.ws-stat { display: flex; flex-direction: column; gap: var(--ws-space-1); }
.ws-stat .zahl { font-size: var(--ws-stat-fs); font-weight: var(--ws-btn-weight); line-height: 1; font-variant-numeric: tabular-nums; }
.ws-stat .label { font-family: var(--ws-font-mono); font-size: var(--ws-stat-label-fs); text-transform: uppercase; letter-spacing: var(--ws-th-ls); color: var(--ws-stat-label-color); }
.ws-stat-sm .zahl { font-size: var(--ws-stat-fs-sm); }

/* Container (Rahmen der Seitenbreite, A-03) */
.ws-container { max-width: var(--ws-max); margin: 0 auto; padding: 0 var(--ws-gutter); }

/* L-01 Tabelle */
.ws-table { width: 100%; border-collapse: collapse; font-size: var(--ws-small); }
.ws-table th { padding: 0 var(--ws-cell-px); height: var(--ws-row-h); border-bottom: var(--ws-border-w) solid var(--ws-table-line); }
.ws-table td { padding: 0 var(--ws-cell-px); height: var(--ws-row-h); border-bottom: var(--ws-border-w) solid var(--ws-table-line); }
.ws-table td.zahl { text-align: right; font-variant-numeric: tabular-nums; }
.ws-table tbody tr:nth-child(even) { background: var(--ws-table-zebra); }
.ws-table-grouped thead th { height: auto; padding-top: var(--ws-th-group-py); padding-bottom: var(--ws-th-group-py); }

/* L-02 Tabellenzeile Zustaende */
.ws-table tbody tr:hover, .ws-table tr.is-hover { background: var(--ws-row-hover); }
.ws-table tr.is-selected { background: var(--ws-row-selected); }
.ws-table tr.is-group td { font-family: var(--ws-font-mono); text-transform: uppercase; letter-spacing: var(--ws-th-ls); color: var(--ws-ink-60); background: var(--ws-paper-2); }
.ws-table tr.is-subtotal td { font-weight: var(--ws-btn-weight); background: var(--ws-paper-2); }
.ws-table tr.is-total td { font-weight: var(--ws-btn-weight); border-top: var(--ws-border-w-strong) solid var(--ws-ink); border-bottom: 0; }
.ws-expand { display: inline-grid; place-content: center; width: var(--ws-icon-md); height: var(--ws-icon-md); padding: 0; border: 0; background: transparent; color: var(--ws-ink-60); font-size: var(--ws-small); cursor: pointer; transition: transform .2s ease; }
.ws-expand:hover { color: var(--ws-ink); }
.ws-expand.is-open { transform: rotate(180deg); }
.ws-table td.is-detail { height: auto; padding: var(--ws-space-4) var(--ws-space-5); background: var(--ws-paper); }

/* L-03 Definitionsliste */
.ws-dl { display: grid; grid-template-columns: var(--ws-dl-label-w) minmax(0, 1fr); gap: var(--ws-space-2) var(--ws-space-4); }
.ws-dl dt { font-family: var(--ws-font-mono); font-size: var(--ws-micro); text-transform: uppercase; letter-spacing: var(--ws-th-ls); color: var(--ws-ink-60); }
.ws-dl dd { margin: 0; font-size: var(--ws-small); }

/* L-04 Leerer Zustand */
.ws-empty { padding: var(--ws-empty-py) 0; text-align: center; color: var(--ws-empty-color); font-size: var(--ws-small); }

/* Z-01 Chip */
.ws-chip { display: inline-flex; align-items: center; gap: var(--ws-space-2); padding: var(--ws-chip-py) var(--ws-chip-px); border-radius: var(--ws-r-pill); background: var(--ws-chip-bg); color: var(--ws-chip-fg); font-family: var(--ws-font-mono); font-size: var(--ws-chip-fs); letter-spacing: .04em; border: var(--ws-border-w) solid var(--ws-border); }
.ws-chip .dot { width: var(--ws-chip-dot); height: var(--ws-chip-dot); border-radius: var(--ws-r-pill); background: var(--ws-amber); }

/* Z-02 Zaehler-Badge */
.ws-badge { display: inline-grid; place-content: center; min-width: var(--ws-badge-size); height: var(--ws-badge-size); padding: 0 var(--ws-space-1); border-radius: var(--ws-r-pill); background: var(--ws-badge-bg); color: var(--ws-badge-fg); font-family: var(--ws-font-mono); font-size: var(--ws-badge-fs); }

/* Z-03 Ampel-Punkt */
.ws-dot { display: inline-block; width: var(--ws-dot-size); height: var(--ws-dot-size); border-radius: var(--ws-r-pill); background: var(--ws-dot-off); flex: none; }
.ws-dot.is-ok { background: var(--ws-success); }
.ws-dot.is-warn { background: var(--ws-warning); }
.ws-dot.is-bad { background: var(--ws-error); }
.ws-dot.is-off { background: var(--ws-dot-off); }

/* Z-04 Bereichs-Tag */
.ws-area-tag { display: inline-grid; place-content: center; width: var(--ws-area-tag-size); height: var(--ws-area-tag-size); border-radius: var(--ws-r-sm); font-family: var(--ws-font-mono); font-size: var(--ws-area-tag-fs); text-transform: uppercase; color: var(--ws-white); }

/* M-01 Hinweis-Banner */
.ws-notice { display: flex; gap: var(--ws-space-3); padding: var(--ws-notice-p); border-left: var(--ws-notice-bar-w) solid var(--ws-ink-40); border-radius: var(--ws-r-sm); background: var(--ws-notice-bg); font-size: var(--ws-small); }
.ws-notice.is-info { border-left-color: var(--ws-info); }
.ws-notice.is-ok { border-left-color: var(--ws-success); }
.ws-notice.is-warn { border-left-color: var(--ws-warning); }
.ws-notice.is-error { border-left-color: var(--ws-error); }

/* M-02 Toast */
.ws-toast { position: fixed; right: var(--ws-space-5); bottom: var(--ws-space-5); width: var(--ws-toast-w); max-width: calc(100% - var(--ws-space-6)); padding: var(--ws-space-4); border-radius: var(--ws-r-md); background: var(--ws-toast-bg); color: var(--ws-toast-fg); font-size: var(--ws-small); z-index: 60; }

/* M-03 Laden */
.ws-spinner { display: inline-block; width: var(--ws-spinner-size); height: var(--ws-spinner-size); border: var(--ws-border-w-strong) solid var(--ws-ink-20); border-top-color: var(--ws-spinner-color); border-radius: var(--ws-r-pill); animation: ws-dreh .8s linear infinite; }
@keyframes ws-dreh { to { transform: rotate(360deg); } }
.ws-skeleton { background: var(--ws-skeleton-bg); border-radius: var(--ws-r-sm); animation: ws-puls 1.4s ease-in-out infinite; }
@keyframes ws-puls { 50% { opacity: .5; } }

/* M-04 Umgebungs-Banner */
.ws-envbanner { display: flex; align-items: center; justify-content: center; height: var(--ws-envbanner-h); background: var(--ws-envbanner-bg); color: var(--ws-envbanner-fg); font-family: var(--ws-font-mono); font-size: var(--ws-micro); text-transform: uppercase; letter-spacing: var(--ws-th-ls); }

/* D-01 Dialog */
.ws-scrim { position: fixed; inset: 0; background: var(--ws-scrim); display: grid; place-items: center; padding: var(--ws-space-5); z-index: 80; }
.ws-dialog { width: var(--ws-dialog-w); max-width: 100%; max-height: 90vh; overflow: auto; padding: var(--ws-dialog-p); border-radius: var(--ws-dialog-radius); background: var(--ws-surface); border: var(--ws-border-w) solid var(--ws-border); }
.ws-dialog-wide { width: var(--ws-dialog-w-wide); }

/* D-02 Bestaetigung */
.ws-confirm .aktionen { display: flex; gap: var(--ws-space-3); justify-content: flex-end; margin-top: var(--ws-space-5); }

/* D-04 Menue (Dropdown, Trefferliste). Position setzt das Tool (absolut am Button). */
.ws-menu { display: flex; flex-direction: column; gap: var(--ws-space-1); min-width: var(--ws-menu-w); max-width: 100%; padding: var(--ws-space-1); border: var(--ws-border-w) solid var(--ws-border); border-radius: var(--ws-r-md); background: var(--ws-surface); }
.ws-menu-item { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: var(--ws-space-2) var(--ws-space-3); border: 0; border-radius: var(--ws-r-sm); background: transparent; color: var(--ws-ink); font-family: var(--ws-font-text); font-size: var(--ws-small); text-align: left; text-decoration: none; cursor: pointer; }
.ws-menu-item:hover, .ws-menu-item.is-active { background: var(--ws-row-hover); }
.ws-menu-item .unter { font-size: var(--ws-micro); color: var(--ws-ink-60); }

/* I-05 Icon-Set */
.ws-icon { width: var(--ws-icon-md); height: var(--ws-icon-md); stroke-width: var(--ws-icon-stroke); fill: none; stroke: currentColor; flex: none; }
.ws-icon.sm { width: var(--ws-icon-sm); height: var(--ws-icon-sm); }
.ws-icon.lg { width: var(--ws-icon-lg); height: var(--ws-icon-lg); }
