/* Kaufleiste (Sticky Add-to-Cart) auf der Produktseite – inc/kern/kaufleiste.php, Leitstand 1, Felix 15.11.2026.
   Bauform wie die vorhandene Hinweisleiste unten (App-Leiste .cfa-leiste: schwebende Karte, 12 px Ecken, grüner Rand, #12170f),
   Preis wie in der Shop-Karte (Betrag + „inkl. MwSt. / zzgl. Versandkosten“ bündig daneben), Knopf wie „In den Warenkorb“ der Kaufbox.
   Nur der Knopf ist bedienbar (legt direkt in den Warenkorb) und der Versandkosten-Link – die Fläche selbst tut nichts. */
.cfs-kl {
  --cfs-kl-kurve: cubic-bezier(.23, 1, .32, 1);
  position: fixed; z-index: 990; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  margin: 0 auto; max-width: 1180px; box-sizing: border-box;
  display: flex; align-items: center; gap: 12px; padding: 7px 7px 7px 14px; min-height: 60px;
  border-radius: 12px; border: 1px solid rgba(127,184,87,.55);
  background: rgba(18,23,15,.94); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 8px 24px rgba(0,0,0,.5); color: rgba(255,255,255,.97); font-family: inherit; line-height: 1.2;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom, 0px))); visibility: hidden;
  transition: transform .22s var(--cfs-kl-kurve), visibility 0s linear .22s;
}
.cfs-kl.ist-offen { transform: none; visibility: visible; transition: transform .24s var(--cfs-kl-kurve), visibility 0s; }
.cfs-kl[hidden], .cfs-kl [hidden] { display: none !important; }

.cfs-kl__name { flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; display: none; }
.cfs-kl.mit-name .cfs-kl__name { display: block; }
.cfs-kl__preis { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; margin-right: auto; white-space: nowrap; }
.cfs-kl.mit-name .cfs-kl__preis { margin-right: 0; }
.cfs-kl__betrag { display: flex; align-items: baseline; gap: 4px; }
.cfs-kl__ab { font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .02em; color: var(--cf-schrift-matt, #b9c7b4); }
.cfs-kl__zahl { font-size: clamp(18px, 5vw, 22px); font-weight: 700; line-height: 1; color: #7fb857; font-variant-numeric: tabular-nums; }
.cfs-kl .cf-preis-info.cfs-kl__info { display: flex; flex-direction: column; justify-content: center; gap: 1px; height: auto;
  font-size: 10.5px; line-height: 1.15; font-weight: 400; color: var(--cf-schrift-matt, #b9c7b4); white-space: nowrap; }
.cfs-kl .cfs-kl__info .cf-versand-knopf { all: unset; position: relative; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; color: inherit; font: inherit; }
.cfs-kl .cfs-kl__info .cf-versand-knopf:focus-visible { outline: 2px solid #9ad072; outline-offset: 2px; border-radius: 2px; }

/* Knopf = „In den Warenkorb“ der Kaufbox (seller.css: Verlauf, Glanzkante, Schatten, Warenkorb-Symbol) – etwas flacher für die schmale Leiste */
.cfs-kl__knopf {
  --cfs-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='20' r='1.4'/><circle cx='17' cy='20' r='1.4'/><path d='M3 4h2.2l2.3 11h10.9L21 8H6.3'/></svg>");
  flex: 0 0 auto; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; min-height: 46px; margin: 0; padding: 0 16px; border: 0; border-radius: 8px; cursor: pointer;
  background: linear-gradient(180deg, #a5dc74 0%, #7fb857 55%, #5f9a3d 100%); color: #12170f;
  font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
  box-shadow: 0 6px 14px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.18);
  transition: transform .15s var(--cfs-kl-kurve), box-shadow .15s, filter .15s;
}
.cfs-kl__knopf::after { content: ""; width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask: var(--cfs-icon) center / contain no-repeat; mask: var(--cfs-icon) center / contain no-repeat; }
.cfs-kl__knopf:focus-visible { outline: 2px solid #c8f59d; outline-offset: 2px; }
.cfs-kl__knopf:active { transform: scale(.97); }
/* Ladezustand (kurz, ohne Layoutsprung): Knopf gedämpft, Symbol wird zur Sanduhr; danach 1,8 s Haken – Breite bleibt gleich */
.cfs-kl__knopf.laedt { cursor: progress; filter: saturate(.7) brightness(.92); }
.cfs-kl__knopf.laedt::after { --cfs-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M7 3h10M7 21h10M8 3c0 5 8 5 8 9s-8 4-8 9M16 3c0 5-8 5-8 9s8 4 8 9'/></svg>"); }
.cfs-kl__knopf.drin::after { --cfs-icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M4.5 12.5l5 5L19.5 7'/></svg>"); }
@media (hover: hover) and (pointer: fine) {
  .cfs-kl__knopf:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 9px 18px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.18); }
}
/* Handys: Preisangaben unter den Betrag (neben dem Betrag ist kein Platz); ganz schmal ohne Symbol – Knopftext bleibt in einer Zeile */
@media (max-width: 480px) {
  .cfs-kl { left: 6px; right: 6px; gap: 10px; padding-left: 12px; }
  .cfs-kl__preis { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; }
  .cfs-kl__zahl { font-size: 19px; }
  .cfs-kl .cf-preis-info.cfs-kl__info { font-size: 10px; line-height: 1.1; gap: 0; }
}
@media (max-width: 374px) {
  .cfs-kl__knopf { padding: 0 14px; letter-spacing: .03em; }
  .cfs-kl__knopf::after { display: none; }
}
/* PC: Leiste auf den Kanten des Produktbereichs (kaufleiste.js setzt --cfs-kl-l/--cfs-kl-r), Name links */
@media (min-width: 1025px) {
  .cfs-kl { left: var(--cfs-kl-l, 24px); right: var(--cfs-kl-r, 24px); max-width: none; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); gap: 20px; padding: 8px 8px 8px 20px; min-height: 64px; }
  .cfs-kl__knopf { height: 48px; min-height: 48px; padding: 0 22px; }
  .cfs-kl__zahl { font-size: 22px; }
}

/* Während die Leiste zu sehen ist: Nach-oben-Knopf weg, Trusted-Shops-Siegel schwebt darüber (Höhe misst kaufleiste.js: --cfs-kl-hub) */
html.cfs-kl-an #to-top { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
#to-top { transition: opacity .2s ease, visibility 0s linear .2s; }
html.cfs-kl-an [id^="trustbadge-container"] > div > div { translate: 0 calc(-1 * var(--cfs-kl-hub, 0px)) !important; }
html.cfs-kl-bereit [id^="trustbadge-container"] > div > div { transition: opacity .2s linear, translate .24s cubic-bezier(.23, 1, .32, 1) !important; }

/* Einmaliges Aufleuchten der Kaufbox nach dem Sprung (kein Dauereffekt) */
.cfs-kl-ziel { box-shadow: var(--cf-glow-stark, 0 0 30px rgba(154,208,114,.6), 0 0 0 1px rgba(154,208,114,.55)) !important; transition: box-shadow .5s ease-out; }
.cfs-kl-ziel-weg { transition: box-shadow 1.2s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .cfs-kl { transform: none; opacity: 0; transition: opacity .16s linear, visibility 0s linear .16s; }
  .cfs-kl.ist-offen { opacity: 1; transition: opacity .16s linear, visibility 0s; }
  .cfs-kl__knopf, .cfs-kl__knopf:active, .cfs-kl__knopf:hover { transform: none; transition: none; }
  html.cfs-kl-bereit [id^="trustbadge-container"] > div > div { transition: opacity .2s linear !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .cfs-kl { background: #12170f; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media print { .cfs-kl { display: none !important; } }
