/* Blog-Animationen – nur aktiv, wenn blog-anim.js läuft (html.ba-js) */
.ba-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); z-index: 1000; pointer-events: none; }

html.ba-js .ba-item { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--ba-d, 0s); }
html.ba-js .ba-item.ba-in { opacity: 1; transform: none; }

/* Liste: Zeilen nacheinander */
html.ba-js .ba-seq > * { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--ba-d, 0s); }
html.ba-js .ba-seq.ba-in > * { opacity: 1; transform: none; }

/* Schritte: Nummern ploppen, rote Linie zeichnet den Weg */
html.ba-js .blog-steps { position: relative; }
html.ba-js .blog-steps li::before { position: relative; z-index: 1; background: color-mix(in srgb, var(--red) 14%, var(--bg)); transform: scale(.4); transition: transform .5s cubic-bezier(.3,1.6,.5,1); transition-delay: var(--ba-d, 0s); }
html.ba-js .blog-steps li:last-of-type::before { background: var(--red); color: #fff; }
html.ba-js .blog-steps.ba-in li::before { transform: scale(1); }
.ba-flow { position: absolute; left: 16px; width: 2px; background: var(--red); transform-origin: 50% 0; transform: scaleY(0); transition: transform 1.2s cubic-bezier(.5,0,.2,1) .25s; pointer-events: none; }
.blog-steps.ba-in .ba-flow { transform: scaleY(1); }

/* Markierung wischt ins Bild */
html.ba-js .blog-body mark { background: linear-gradient(color-mix(in srgb, var(--red) 16%, transparent), color-mix(in srgb, var(--red) 16%, transparent)) no-repeat 0 0 / 0% 100%; transition: background-size .9s cubic-bezier(.5,0,.2,1) .35s; }
html.ba-js .blog-body .ba-in mark, html.ba-js .blog-body mark.ba-in { background-size: 100% 100%; }

/* "Geld zurück." wird durchgestrichen */
html.ba-js .blog-stat-red { position: relative; display: inline-block; align-self: flex-start; }
html.ba-js .blog-stat-red::after { content: ""; position: absolute; left: -2px; right: -2px; top: 55%; height: 3px; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s cubic-bezier(.5,0,.2,1) 1.1s; }
html.ba-js .blog-stats.ba-in .blog-stat-red::after { transform: scaleX(1); }

/* Rote Regel-Box */
html.ba-js .blog-rule.ba-item { transform: scale(.94); }
html.ba-js .blog-rule.ba-item.ba-in { transform: none; }
html.ba-js .blog-rule .blog-rule-h { opacity: 0; transform: translateY(12px); transition: opacity .6s ease .35s, transform .6s cubic-bezier(.2,.7,.2,1) .35s; }
html.ba-js .blog-rule.ba-in .blog-rule-h { opacity: 1; transform: none; }

/* Kopfbereich beim Laden */
html.ba-js .blog-head > * { opacity: 0; transform: translateY(20px); animation: ba-up .8s cubic-bezier(.2,.7,.2,1) forwards; }
html.ba-js .blog-head > :nth-child(2) { animation-delay: .08s; }
html.ba-js .blog-head > :nth-child(3) { animation-delay: .16s; }
html.ba-js .blog-head > :nth-child(4) { animation-delay: .3s; }
html.ba-js .blog-head > :nth-child(5) { animation-delay: .4s; }
html.ba-js .blog-h1 em { background: linear-gradient(color-mix(in srgb, var(--red) 14%, transparent), color-mix(in srgb, var(--red) 14%, transparent)) no-repeat 0 88% / 0% 34%; animation: ba-wipe .9s cubic-bezier(.5,0,.2,1) .7s forwards; }
@keyframes ba-up { to { opacity: 1; transform: none; } }
@keyframes ba-wipe { to { background-size: 100% 34%; } }

/* Fallback: Skript nicht geladen oder Bewegung reduziert → alles sofort sichtbar */
html.ba-js.ba-off .ba-item, html.ba-js.ba-off .ba-seq > *, html.ba-js.ba-off .blog-head > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
html.ba-js.ba-off .blog-steps li::before { transform: none !important; transition: none !important; }
html.ba-js.ba-off .ba-flow { transform: none !important; transition: none !important; }
html.ba-js.ba-off .blog-body mark { background-size: 100% 100% !important; transition: none !important; }
html.ba-js.ba-off .blog-h1 em { animation: none !important; background-size: 100% 34%; }
html.ba-js.ba-off .blog-stat-red::after, html.ba-js.ba-off .blog-rule .blog-rule-h { transform: scaleX(1) !important; opacity: 1 !important; transition: none !important; }
html.ba-js.ba-off .blog-rule .blog-rule-h { transform: none !important; }
html.ba-js.ba-off .ba-progress { display: none; }
