=== WP Lightweight for Bricks ===
Contributors: m-create
Requires at least: 6.0
Requires PHP: 7.4
Stable tag: 0.2.11

BETA – Leichtere Bricks-Frontends: Icon-Subsets, weniger unnötige Library-CSS/JS, konservatives WS Form, optionale Performance-Tweaks. Früherer Name: Bricks Smart Icons.

== Description ==

1. Icon-Fonts: nur genutzte Glyphen (Subset) statt kompletter Libraries
2. Bricks Libraries: ungenutzte Splide/Swiper/Isotope/Photoswipe/… entfernen
3. WS Form (optional): CSS dequeue nur ohne Formular-Signale; nie JS/Combine/Field-Trim
4. Optional: nur Icon-Subset-CSS in ein Stylesheet (nie WS Form)
5. Sanfte Performance-Tweaks (Emoji/Embed/Dashicons, font-display:swap)
6. Popup-scoped CSS: WS Form Success-Message bleibt im Bricks-Popup vollbreit
7. Opt-in Render-Blocking-Reduktion (CSS-Defer für Nicht-Kritisches, Script-Defer für Bricks/Misc)

Interne Option-Keys bleiben `bsi_options` / `bsi_plugin_version` (Backwards Compatibility). Text Domain bleibt `bricks-smart-icons`.

Version ist Beta – Verwendung auf eigene Gefahr, vorher Backup erstellen.

== Changelog ==

= 0.2.11 =

* Fix: Detector nutzt Bricks `active_templates` (Template-Conditions) statt alle Content-/Header-/Footer-/Popup-Templates zu scannen
* Fix: Ungenutzte CPT-Singles (z. B. Downloads mit FA, Partner mit Ionicons) laden Icon-CSS nicht mehr auf normalen Seiten
* Fallback ohne Bricks-API: nur Header/Footer/Popup (kein pauschales Content-Template-Scan)
* Nested Template-/Popup-Refs (Template-Element, Interactions, Shortcodes) bleiben erhalten
* Library-Mode: unused Icon-Handles zusätzlich per style_loader_tag blocken (wie Subset-Mode)
* Detection-Cache-Key auf v4

= 0.2.10 =

* Fix: Detector folgt Bricks Template-Elementen (`settings.template`) und `[bricks_template]`-Shortcodes rekursiv in verschachtelte Templates (inkl. Typ `section`)
* Fix: Slider/Splide, Isotope und andere Libs in Template-Instanzen werden erkannt (vorher nur Direkt-Elemente + Header/Footer/Popup/Content-Query)
* Schutz: visited-Set + Max. 80 Posts gegen Template-Zyklen; Detection-Cache-Key auf v3

= 0.2.9 =

* Rename: Produktname „WP Lightweight for Bricks“ (Slug/Ordner `wp-lightweight-for-bricks`); interne BSI_*/bsi_* Keys unverändert
* Fix: font-display:swap für ma-customfonts zuverlässiger (dequeue + inline + tag strip; weniger Cache-anfällig)
* Neu (Standard AUS): nicht-kritisches CSS defer (Honeypot, Advanced Themer, Email-Encoder, Complianz, BSI-Popup-Success)
* Neu (Standard AUS): Misc-Scripts defer (custom.js, wpa.js)
* Neu (Standard AUS): Bricks-Scripts defer (bricks.min.js, Typed, Splide, Isotope, …) – nie jQuery, nie WS Form
* Neu (Standard AUS): OpenSans preload; jQuery Migrate entfernen und LCP-Poster-Preload wieder als Toggle
* Bewusst blocking: bricks-frontend, Child-Theme, Splide/Isotope CSS, WS Form CSS/JS, jQuery

= 0.2.8 =

* Fix: WS Form post-submit success message layout only inside Bricks popups
* After form_hide the popup shell no longer shrinks (align-self:flex-start) against navy popup background
* Tiny scoped stylesheet `wsform-popup-success.css` when detector finds WS Form signals
* Still never touches WS Form JS / mail / AJAX submit

= 0.2.7 =

* Re-enable conservative optimize_wsform (default ON): CSS-only dequeue when detector finds zero WS Form signals
* Detector includes header/footer/popup (proven: form ID 1 in sitewide „1-Klick Anfrage“ popup) → fail-open keeps CSS+JS
* Forbidden permanently: WS Form JS touch, CSS combine/inline into BSI bundle, field-trim
* Style vs script block lists separated (shared handles cannot strip WS Form JS)
* Admin copy (DE) documents what the option does / does not do

= 0.2.6 =

* Force-safe: WS-Form-Optimierung dauerhaft aus; Migrate/CSS-Defer/LCP-Preload aus (PageSpeed-Regressionen)
* Upgrade setzt riskante Flags einmalig zurück
* Verifiziert: Formular-Submit + FluentSMTP-Mail funktionieren mit leeren Gast-Nonces (WS-Form Cache-Modus)

= 0.2.5 =

* Fix: WS Form nicht mehr bündeln/trimmen/JS anfassen – Formular-Absenden und Mail wieder stabil
* „Ein Stylesheet“ bündelt nur noch Icon-Subset-CSS
* WS-Form-CSS-Combine und WS-Form-JS-Defer entfernt

= 0.2.4 =

* Neue Performance-Optionen (einzeln schaltbar): WP-Emoji/Embed/Dashicons, font-display:swap für Custom-Fonts, nicht-kritisches CSS defer, LCP-Video-Poster preload, jQuery Migrate, WS-Form JS defer

= 0.2.3 =

* Fix: Bricks-Libs (Splide/Isotope) nicht mehr in „Ein Stylesheet“ bündeln – verhindert kaputte Slider/Masonry

= 0.2.2 =

* Option „Ein Stylesheet“: Icon-Subset + WS Form + benötigte Bricks-Libs in ein Bundle

= 0.2.1 =
* WS Form: form-id aus Bricks-Element lesen
* WS Form: CSS-Combine über style_loader_tag (späte Enqueues)
* Bricks: animated-typing, image-gallery erkannt

= 0.2.0 =
* Bricks-Library-Optimierung
* WS-Form-Optimierung

= 0.1.0 =
* Erste öffentliche Beta (Icon-Subsets)
