/* Preis-Siegel „heute geprüft“ (inc/kern/preis_siegel.php, Felix 25.11.2026, Leitstand 1b) – gemeinsamer Baustein:
   quadratisches Siegel auf Kategorieseiten + Prüfsiegel-Symbol im Knopf „Warenkorb-Check“. Fläche/Rand/Schein aus dem CI
   (Kartenfläche, --cf-glow / --cf-glow-stark), nichts Eigenes. Glimmen sehr dezent, in drei Stufen (html.cfs-stufe-*), läuft nur
   sichtbar (.laeuft setzt preis-siegel.js), Antippen hält an (.ruht). Kein Umbruch: jede Zeile des Siegels ist eine feste Zeile. */

/* ---------- Symbol (Rosette + Haken) ---------- */
.cfs-siegel-sym { display: block; width: 22px; height: 22px; flex: none; overflow: visible; color: #9ad072; }
.cfs-siegel-sym__rand { fill: rgba(127,184,87,.16); stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.cfs-siegel-sym__innen { fill: none; stroke: currentColor; stroke-width: 1; opacity: .45; }
.cfs-siegel-sym__haken { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Glimmen (gemeinsam): Schein-Ebene + LED, nur transform/opacity ---------- */
.cfs-siegel-puls { position: relative; }
.cfs-siegel-puls::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: var(--cf-glow-stark); opacity: 0; pointer-events: none;
  animation: cfs-siegel-glimmen 3.6s ease-in-out infinite; animation-play-state: paused; }
.cfs-siegel__led { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px;
  background: radial-gradient(circle at 35% 35%, #c8f59d, #7fb857 65%); box-shadow: 0 0 6px rgba(154,208,114,.8);
  animation: cfs-siegel-led 3.6s ease-in-out infinite; animation-play-state: paused; }
.laeuft .cfs-siegel-puls::after, .laeuft.cfs-siegel-puls::after, .laeuft .cfs-siegel__led { animation-play-state: running; }
.ruht .cfs-siegel-puls::after, .ruht.cfs-siegel-puls::after, .ruht .cfs-siegel__led { animation: none; }
@keyframes cfs-siegel-glimmen { 0%, 100% { opacity: 0; } 50% { opacity: .5; } }
@keyframes cfs-siegel-led { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
/* leicht: schneller, kommt nach 4 s zur Ruhe (JS); minimal: ein Glimmen beim Erscheinen, LED steht */
html.cfs-stufe-leicht .cfs-siegel-puls::after, html.cfs-stufe-leicht .cfs-siegel__led { animation-duration: 2.25s; }
html.cfs-stufe-minimal .cfs-siegel-puls::after { animation-iteration-count: 1; animation-duration: 1.6s; }
html.cfs-stufe-minimal .cfs-siegel__led { animation: none; }

/* ---------- Quadratisches Siegel (Kategorie) ---------- */
.cfs-siegel-kat[hidden] { display: none !important; }
.cfs-siegel-kat { container-type: inline-size; cursor: default; -webkit-tap-highlight-color: transparent; }
.cfs-siegel { position: relative; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 100%; aspect-ratio: 1; padding: 6px 4px; border: 1px solid rgba(154,208,114,.55); border-radius: 10px;
  background: linear-gradient(160deg, rgba(31,66,44,.92), rgba(18,36,24,.92)); box-shadow: var(--cf-glow), 0 6px 16px rgba(0,0,0,.35);
  text-align: center; white-space: nowrap; line-height: 1.15; }
.cfs-siegel::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: var(--cf-glow-stark); opacity: 0; pointer-events: none;
  animation: cfs-siegel-glimmen 3.6s ease-in-out infinite; animation-play-state: paused; }
.cfs-siegel-kat.laeuft .cfs-siegel::after { animation-play-state: running; }
.cfs-siegel-kat.ruht .cfs-siegel::after { animation: none; }
html.cfs-stufe-leicht .cfs-siegel::after { animation-duration: 2.25s; }
html.cfs-stufe-minimal .cfs-siegel::after { animation-iteration-count: 1; animation-duration: 1.6s; }
.cfs-siegel__kopf { display: block; margin-bottom: 2px; }
.cfs-siegel .cfs-siegel-sym { width: 19cqi; height: 19cqi; max-width: 22px; max-height: 22px; }
.cfs-siegel__zahl { display: block; color: rgba(255,255,255,.97); font-size: min(21px, 18.5cqi); font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cfs-siegel__satz { display: block; color: #c9d8c2; font-size: min(11.5px, 10.6cqi); font-weight: 700; }
.cfs-siegel__fuss { display: flex; align-items: center; justify-content: center; align-self: stretch; margin: 4px 0 0; padding-top: 4px;
  border-top: 1px solid rgba(154,208,114,.28); color: #9ad072; font-size: min(10px, 9.2cqi); font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }

/* Platz: Text und Siegel teilen sich die Zeile (nur wenn das Siegel steht – feste Breite, kein Sprung) */
.before-loop-wrapper:has(> .cfs-siegel-kat:not([hidden])) > .cf-archiv-text { flex: 1 1 60% !important; width: auto !important; min-width: 0; }
.before-loop-wrapper > .cfs-siegel-kat { flex: none; width: 116px !important; margin: 2px 0 0 24px; align-self: flex-start; }
@media (max-width: 767px) {
  /* Handy: Siegel rechts neben der Überschrift, Text darunter in voller Breite */
  .before-loop-wrapper:has(> .cfs-siegel-kat:not([hidden])) > .cf-archiv-titel { flex: 1 1 0 !important; width: auto !important; min-width: 0; align-self: center; margin-bottom: 10px !important; }
  .before-loop-wrapper:has(> .cfs-siegel-kat:not([hidden])) > .cfs-siegel-kat { order: 1; width: 96px !important; margin: 0 0 10px 12px; }
  .before-loop-wrapper:has(> .cfs-siegel-kat:not([hidden])) > .cf-archiv-text { order: 2; flex: 0 0 100% !important; width: 100% !important; }
  .before-loop-wrapper:has(> .cfs-siegel-kat:not([hidden])) > :not(.cf-archiv-titel, .cf-archiv-text, .cfs-siegel-kat) { order: 3; }
}
