/* Leistungen: all modules (module.html). Builds on fern.css. */
html { scroll-padding-top: 7.75rem; }

/* Shared bits: icon tile, preview frame */
.tile { display: grid; place-items: center; flex: none; width: 2.3rem; height: 2.3rem; border-radius: .55rem; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.tile .px { width: 1.35rem; height: 1.35rem; max-width: none; }
.tile--lg { width: 3.5rem; height: 3.5rem; border-radius: .8rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line-2), 0 10px 22px -12px rgba(29, 27, 24, .45); }
.tile--lg .px { width: 2.2rem; height: 2.2rem; }

/* Jump bar */
.jump { position: sticky; top: 4rem; z-index: 15; background: light-dark(rgba(244, 242, 236, .92), rgba(19, 18, 16, .9)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-block: 1px solid var(--line); }
.jump ul { position: relative; display: flex; gap: .2rem; width: max-content; max-width: 100%; margin-inline: auto; padding-block: .45rem; overflow-x: auto; }
/* A mouse needs the scrollbar to reach the hidden entries; touch swipes */
@media (pointer: coarse) {
  .jump ul { scrollbar-width: none; }
  .jump ul::-webkit-scrollbar { display: none; }
}
.jump a { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .7rem; border-radius: .45rem; font-size: .86rem; color: var(--muted); white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s; }
.jump a:hover { color: var(--ink); }
.jump a[aria-current] { color: var(--ink); font-weight: 560; background: var(--paper); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(29, 27, 24, .06); }
.jump i { padding: 0 .35rem; border-radius: .25rem; background: var(--chrome); font: 600 .68rem/1.5 var(--mono); font-style: normal; color: var(--ink-2); }
.jump a[aria-current] i { background: light-dark(#DDEFE3, #18291F); color: var(--brand-deep); }
@media (forced-colors: active) { .jump a[aria-current] { outline: 2px solid Highlight; outline-offset: -2px; } }

/* Die drei Stufen */
.tiers { padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.tiers__stage { margin-top: 1.75rem; padding-bottom: clamp(3.5rem, 7vw, 5rem); }
.tiers__list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 0; list-style: none; }
.tier { display: flex; flex-direction: column; padding: 1.3rem 1.4rem 1.4rem; border-radius: .75rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(29, 27, 24, .5); }
.tier__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tier__n { font: 600 .75rem var(--mono); color: var(--faint); }
.tier__icons { display: flex; gap: .3rem; }
.tier__name { margin-top: 1.5rem; font-size: 1.5rem; font-weight: 650; line-height: 1.1; letter-spacing: -.03em; }
.tier__note { display: flex; gap: .45rem; margin: .6rem 0 1.4rem; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.tier__note svg { flex: none; width: 1rem; height: 1.35rem; color: #2F8A55; }
.tier__price { margin: auto -1.4rem 0; padding: 1.2rem 1.4rem 0; box-shadow: inset 0 1px 0 var(--line); font-size: 2.2rem; font-weight: 650; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.tier__price span { font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }

/* Dark catalog */
.catalog { background: var(--dark); color: var(--on-dark); padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(4rem, 8vw, 6rem); }
.shead { display: grid; grid-template-columns: 1fr auto; gap: 1rem 3rem; align-items: end; }
.shead > p { max-width: 22rem; font-size: .95rem; color: var(--on-dark-2); }
.shead a { font-weight: 560; color: var(--lime); }
.shead a:hover { text-decoration: underline; text-underline-offset: 3px; }

.grp { margin-top: clamp(3rem, 6vw, 4.25rem); }
.grp__h { display: flex; align-items: center; gap: .8rem; font-size: .85rem; font-weight: 600; letter-spacing: 0; color: var(--brand); }
.grp__h::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.grp__h small { order: 2; font: 600 .72rem var(--mono); letter-spacing: 0; color: var(--faint); }
.catalog .grp__h { color: var(--lime); }
.catalog .grp__h::after { background: var(--dark-line); }
.catalog .grp__h small { color: var(--on-dark-3); }

/* Module cards with a preview (in den Stufen) */
.mods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.mod { display: flex; flex-direction: column; padding: .4rem .4rem 1.6rem; border-radius: .8rem; background: var(--dark-2); box-shadow: inset 0 0 0 1px var(--dark-line); }
.mod__row { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: -1.75rem 1.1rem 0; }
.mod__tag { padding: .2rem .55rem; border-radius: .35rem; background: rgba(201, 242, 122, .12); font-size: .75rem; font-weight: 600; color: var(--lime); white-space: nowrap; }
.mod h4 { margin: 1.1rem 1.1rem 0; font-size: 1.35rem; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; }
.mod__p { margin: .55rem 1.1rem 0; max-width: 34rem; font-size: .95rem; line-height: 1.55; color: var(--on-dark-2); }

.viz { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; min-height: 15.5rem; padding: 1.25rem 1rem 2.6rem; overflow: hidden; border-radius: .55rem; background: radial-gradient(circle, #DCD6CA 1px, transparent 1.4px) 0 0 / 14px 14px, var(--cream); color: var(--ink-2); font-size: .74rem; }
.viz svg.i, .lcard__viz svg.i, .out svg.i { width: .85rem; height: .85rem; flex: none; }
.viz .card-ui, .lcard__viz .card-ui { position: relative; left: auto; top: auto; width: min(19rem, 100%); transform: none; }
.viz .card-ui__h svg.i { color: var(--faint); }
.viz__cap { position: absolute; left: 0; right: 0; bottom: .85rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem .4rem; padding-inline: 1rem; font-size: .7rem; color: var(--faint); }
.viz__cap svg.i { margin-left: .35rem; }
.viz__cap svg.i:first-child { margin-left: 0; }
.viz .toast { top: auto; bottom: 2.6rem; }

/* Telefon: transcript and summary */
.viz--call .say { margin-top: .5rem; padding: .4rem .55rem; font-size: .72rem; }
.viz--call .sum { margin-top: .5rem; padding: .45rem .55rem; font-size: .72rem; }
.typing { position: absolute; left: .8rem; bottom: .8rem; display: none; gap: .2rem; padding: .45rem .55rem; border-radius: .45rem; background: var(--paper); border: 1px solid var(--line); }
.typing i { width: .3rem; height: .3rem; border-radius: 50%; background: #B5ADA1; }

/* Termine: week */
.cal { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: auto 9.2rem; width: min(30rem, 100%); overflow: hidden; border-radius: .5rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line-2), 0 12px 24px -14px rgba(29, 27, 24, .35); font-size: .66rem; }
.cal__h { padding: .4rem .45rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); }
.cal__h:nth-child(5) { border-right: 0; }
.cal__h b { color: var(--ink); }
.cal__h.is-on { box-shadow: inset 0 -2px 0 var(--brand); }
.cal__c { position: relative; border-right: 1px solid var(--line); background: repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 1.5rem); }
.cal__c:last-child { border-right: 0; }
.cal .ev { left: .2rem; right: .2rem; padding: .22rem .35rem; font-size: .62rem; }
.cal .ev small { font-size: .56rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swap, .cal .ev .swap { display: grid; white-space: normal; }
.swap > span { grid-area: 1 / 1; overflow: hidden; text-overflow: ellipsis; }
.swap > span + span { opacity: 0; }

/* Rechnungen: three reminder steps */
.dun { margin-top: .5rem; }
.dun li { color: var(--faint); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.dun li svg { color: transparent; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.dun li.is-sent { color: var(--ink-2); background: #F7F4EE; box-shadow: none; }
.dun li.is-sent svg { color: #fff; background: #2F8A55; box-shadow: none; }
.paid { display: inline-grid; }
.paid > span { grid-area: 1 / 1; text-align: center; }
.paid > span + span { opacity: 0; }

/* Zusatzmodule: grid on dark */
.xgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 1.5rem; overflow: clip; border-radius: .8rem; background: var(--dark-line); box-shadow: 0 0 0 1px var(--dark-line); }
.xcell { display: flex; flex-direction: column; padding: 1.5rem 1.4rem 1.4rem; background: var(--dark-2); }
.xcell > .px { width: 2.6rem; height: 2.6rem; }
.xcell h4 { margin-top: 1.2rem; font-size: 1.12rem; font-weight: 620; letter-spacing: -.015em; }
.xcell p { margin-top: .45rem; font-size: .9rem; line-height: 1.5; color: var(--on-dark-2); }
.out { display: flex; align-items: center; gap: .5rem; margin-top: auto !important; padding: .5rem .6rem; border-radius: .45rem; background: var(--cream); color: var(--ink-2) !important; font-size: .74rem !important; line-height: 1.3 !important; }
.xcell p:not(.out) { margin-bottom: 1.3rem; }
.out svg.i { color: var(--faint); }
.out .tag { margin-left: auto; }
.wave { display: flex; align-items: center; gap: 2px; height: .85rem; flex: none; }
.wave i { width: 2px; height: 40%; background: var(--brand); }
.wave i:nth-child(2) { height: 90%; }
.wave i:nth-child(3) { height: 60%; }
.wave i:nth-child(4) { height: 100%; }
.xcell--link { justify-content: flex-start; gap: .5rem; background: #26251F; transition: background-color .2s; }
.xcell--link strong { margin-top: .75rem; font-size: 1.6rem; font-weight: 650; line-height: 1.1; letter-spacing: -.045em; }
.xcell--link > span { font-size: .9rem; color: var(--on-dark-2); }
.xcell--link em { display: inline-flex; align-items: center; gap: .3rem; margin-top: auto; padding-top: 1.2rem; font-size: .9rem; font-style: normal; font-weight: 560; color: var(--lime); }
.xcell--link em svg { width: .95rem; height: .95rem; }
.xcell--link:hover { background: var(--dark-3); }
.xcell--link:hover em { text-decoration: underline; text-underline-offset: 3px; }

/* Zusatzleistungen + weitere Bausteine on cream */
.more { padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(4rem, 8vw, 6rem); }
.more .grp:first-child { margin-top: clamp(2rem, 4vw, 3rem); }
.lgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.lcard { grid-column: span 2; display: flex; flex-direction: column; padding: .4rem .4rem 1.4rem; border-radius: .7rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(29, 27, 24, .05); }
.lcard:nth-child(n+4) { grid-column: span 3; }
.lcard__viz { display: grid; place-items: center; min-height: 12.5rem; padding: 1.2rem 1rem 2.2rem; border-radius: .45rem; background: radial-gradient(circle, #DCD6CA 1px, transparent 1.4px) 0 0 / 14px 14px, #F4F1EA; color: var(--ink-2); font-size: .74rem; }
.lcard > .tile { margin: -1.75rem 0 0 1rem; position: relative; }
.lcard h4, .bcard h4 { margin: 1rem 1rem 0; font-size: 1.15rem; font-weight: 620; line-height: 1.25; letter-spacing: -.015em; }
.lcard > p, .bcard > p { margin: .5rem 1rem 0; font-size: .93rem; line-height: 1.55; color: var(--ink-2); }
.lcard .card-ui__h .tag { margin-left: auto; }
.lcard .done li { white-space: normal; }

/* Link from each card to its own Leistung page */
.card-go { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: auto 1.1rem 0; padding-top: 1.1rem; font-size: .9rem; font-weight: 560; }
.card-go a { display: inline-flex; align-items: center; gap: .25rem; color: var(--lime); }
.card-go a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-go svg.i { width: .95rem; height: .95rem; }
.xcell p.card-go { margin: 0; padding-top: .9rem; font-size: .9rem; }
.lcard > p.card-go { margin: auto 1rem 0; font-size: .9rem; }
.lcard .card-go a { color: var(--brand-deep); }
.done li.is-open { color: var(--faint); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.done li.is-open svg { color: transparent; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.rowsui { display: grid; gap: .3rem; padding: .5rem; }
.rowsui li { display: flex; align-items: center; gap: .5rem; padding: .35rem .45rem; border-radius: .35rem; background: #FAF8F4; }
.rowsui svg.i { color: var(--faint); }
.rowsui b { font-weight: 560; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowsui .tag { margin-left: auto; }
.acts__note { align-self: center; font-size: .68rem; color: var(--faint); }
.bars { display: grid; gap: .35rem; margin-top: .55rem; }
.bars li { display: grid; grid-template-columns: 6.2rem 1fr; align-items: center; gap: .5rem; font-size: .7rem; color: var(--muted); }
.bars i { display: block; width: var(--w); height: .45rem; background: #A8D65A; transform-origin: left; }

.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.bcard { padding: 1.4rem .4rem 1.4rem; border-radius: .7rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(29, 27, 24, .05); }
.bcard > .tile { margin-left: 1rem; }
.more__foot { margin-top: 2rem; font-size: .95rem; color: var(--muted); }
.more__foot a { font-weight: 560; color: var(--brand-deep); }
.more__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Einzeln dazubuchbar (brand band) */
.addons { background: var(--green); color: #fff; padding-block: clamp(4rem, 8vw, 6rem); }
.addons .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; }
.addons .wrap > div:first-child { position: sticky; top: 9rem; }
.addons__lede { margin-top: 1.3rem; max-width: 26rem; font-size: 1.12rem; line-height: 1.55; color: #CFE6D8; }
.addons__notes li { max-width: 28rem; margin-top: .75rem; line-height: 1.5; color: #fff; }
.sheet .prices > div { grid-template-columns: 1fr auto; align-items: baseline; gap: .3rem 1.5rem; padding: .75rem 0; }
.sheet .prices dt { font-size: .92rem; color: var(--ink); }
.prices dt a { font-weight: 600; color: var(--ink); }
.prices dt a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prices dt small { display: block; margin-top: .1rem; font-size: .8rem; line-height: 1.4; color: var(--muted); }
.sheet .prices dd { font-size: 1.05rem; font-weight: 650; letter-spacing: -.02em; color: var(--ink); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prices dd small { display: block; font-size: .72rem; font-weight: 500; letter-spacing: 0; color: var(--faint); }
.sheet .prices .prices__terms { font-size: .85rem; font-weight: 560; color: var(--ink-2); }

/* Büro-Leistungen + Schulung */
.duo { padding-block: clamp(4rem, 8vw, 6rem); }
.duo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.bl, .train { display: flex; flex-direction: column; align-items: flex-start; padding: 1.8rem 1.8rem 1.6rem; border-radius: .8rem; }
.bl { background: var(--paper); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(29, 27, 24, .05); }
.train { background: var(--dark); color: var(--on-dark); }
.duo__h { margin-top: 1.5rem; font-size: clamp(1.7rem, .72rem + 1.95vw, 2.3rem); font-weight: 650; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.duo__lede { margin-top: 1rem; font-size: 1.05rem; font-weight: 560; line-height: 1.45; color: var(--ink); }
.bl > p:not(.duo__lede) { margin-top: .7rem; color: var(--muted); }
.train > p { margin-top: 1rem; color: var(--on-dark-2); }
.duo__more { margin-top: auto; padding-top: 1.6rem; font-weight: 560; color: var(--brand-deep); }
.duo__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.seven { display: flex; gap: .35rem; height: 3.5rem; align-items: flex-end; }
.seven i { width: .9rem; height: .9rem; background: var(--brand); }
.seven i:nth-child(2) { background: var(--lime); }
.seven i:nth-child(3) { background: var(--mustard); }
.seven i:nth-child(4) { background: var(--orange); }
.seven i:nth-child(5) { background: var(--brand); }
.seven i:nth-child(6) { background: #A8D65A; }
.seven i:nth-child(7) { background: var(--ink); }
.train > .tile { background: var(--dark-2); box-shadow: inset 0 0 0 1px var(--dark-line); }
.train__book { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; width: 100%; margin-top: auto; padding-top: 1.6rem; }
.train__book p { font-size: .85rem; color: var(--on-dark-2); }
.train__book strong { display: block; margin-top: .15rem; font-size: 2rem; font-weight: 650; line-height: 1; letter-spacing: -.05em; color: #fff; }

/* Responsive */
@media (max-width: 66.25em) {
  .lgrid { grid-template-columns: repeat(2, 1fr); }
  .lcard, .lcard:nth-child(n+4) { grid-column: span 1; }
  .lcard:last-child { grid-column: 1 / -1; }
}

@media (max-width: 53.75em) {
  .tiers__list, .mods, .bgrid, .duo__grid { grid-template-columns: 1fr; }
  .tiers__stage .band { height: 30%; }
  .shead { grid-template-columns: 1fr; }
  .xgrid { grid-template-columns: 1fr 1fr; }
  .addons .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 37.5em) {
  .jump ul { margin-inline: 0; }
  .lgrid, .xgrid { grid-template-columns: minmax(0, 1fr); }
  .lcard:last-child { grid-column: auto; }
  .viz { padding: 1.25rem .7rem 3.4rem; }
  .viz__cap { left: 4.4rem; justify-content: flex-end; text-align: right; padding-inline: 0 .8rem; }
  .cal { grid-template-columns: repeat(3, 1fr); }
  .cal > :is(:nth-child(1), :nth-child(5), :nth-child(6), :nth-child(10)) { display: none; }
  .cal__h:nth-child(4), .cal__c:nth-child(9) { border-right: 0; }
  .cal .ev small { display: block; white-space: normal; }
  .tier__price { font-size: 2rem; }
  .bl, .train { padding: 1.5rem 1.3rem 1.4rem; }
  .sheet .prices > div { grid-template-columns: 1fr; }
  .sheet .prices dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35rem; text-align: left; }
  .addons .wrap > div:first-child { position: static; }
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .tier.in .is-new { animation: pop .45s steps(3) both; animation-delay: calc(var(--i, 0) * 90ms + .45s); }
  .tier:hover .tile .px { animation: hop .5s steps(2); }

  .mods > *, .lgrid > * { --rise-from: translateY(24px); }
  .mod.in > .mod__row .px, .lcard.in > .tile .px, .bcard.in > .tile .px, .xcell.in > .px { animation: pop .45s steps(3) both; animation-delay: calc(var(--i, 0) * 90ms + .3s); }
  .mod:hover > .mod__row .px, .lcard:hover > .tile .px, .bcard:hover > .tile .px, .xcell:hover > .px, .train:hover > .tile .px { animation: hop .5s steps(2); }

  /* Telefon: the caller speaks, Handem types, the summary lands. */
  .mod.in .viz--call .say { animation: call-say 8s ease-out infinite both; }
  .mod.in .viz--call .typing { display: flex; animation: call-typing 8s steps(1) infinite both; }
  .mod.in .viz--call .typing i { animation: dot 1s ease-in-out infinite; }
  .mod.in .viz--call .typing i:nth-child(2) { animation-delay: .15s; }
  .mod.in .viz--call .typing i:nth-child(3) { animation-delay: .3s; }
  .mod.in .viz--call .sum { animation: call-sum 8s cubic-bezier(.2, .7, .2, 1) infinite both; }

  /* Termine: the proposed slot gets approved, the reminder is planned. */
  .mod.in .cal__new { animation: slot-ok 7s steps(1) infinite both; }
  .mod.in .cal__new .swap > span:first-child { animation: out-loop 7s steps(1) infinite; }
  .mod.in .cal__new .swap > span + span { animation: in-loop 7s steps(1) infinite; }
  .mod.in .viz--cal .toast { animation: toast-loop 7s cubic-bezier(.2, .7, .2, 1) infinite; }

  /* Angebote: point, approve, sent. */
  .mod.in .viz--offer .cursor { animation: point-loop 6s cubic-bezier(.5, 0, .2, 1) infinite; }
  .mod.in .viz--offer .chip--go { animation: press-loop 6s infinite; }
  .mod.in .viz--offer .flip > span:first-child { animation: out-loop 6s steps(1) infinite; }
  .mod.in .viz--offer .flip > span + span { animation: in-loop 6s steps(1) infinite; }
  .mod.in .viz--offer .toast { animation: toast-loop 6s cubic-bezier(.2, .7, .2, 1) infinite; }

  /* Rechnungen: Handem stays on it until the money is in. */
  .mod.in .dun li:nth-child(2) { animation: dun-row 8s steps(1) infinite both; }
  .mod.in .dun li:nth-child(2) svg { animation: dun-tick 8s steps(1) infinite both; }
  .mod.in .paid { animation: paid-tag 8s steps(1) infinite both; }
  .mod.in .paid > span:first-child { animation: paid-out 8s steps(1) infinite; }
  .mod.in .paid > span + span { animation: paid-in 8s steps(1) infinite; }

  /* Zusatzmodule: the result slides in, the voice note plays. */
  .xcell.in .out { animation: slot .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 90ms + .45s); }
  .xcell.in .wave i { animation: wave 1.1s ease-in-out infinite; }
  .xcell.in .wave i:nth-child(2) { animation-delay: -.2s; }
  .xcell.in .wave i:nth-child(3) { animation-delay: -.5s; }
  .xcell.in .wave i:nth-child(4) { animation-delay: -.7s; }
  .xcell.in .wave i:nth-child(5) { animation-delay: -.35s; }

  /* Zusatzleistungen: rows arrive one by one once the card is in view. */
  .lcard.in .rowsui li, .lcard.in .done li, .lcard.in .card-ui__l, .lcard.in .bars li { animation: slot .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .35s; }
  .lcard.in .card-ui__l + .card-ui__l { animation-delay: .5s; }
  /* Rows .15s apart (.35s, .5s, .65s, …); :nth-child only where sibling-index() is missing. */
  @supports (animation-delay: calc(sibling-index() * .15s)) {
    .lcard.in :is(.rowsui, .done, .bars) li { animation-delay: calc(.2s + sibling-index() * .15s); }
  }
  @supports not (animation-delay: calc(sibling-index() * .15s)) {
    .lcard.in li:nth-child(2) { animation-delay: .5s; }
    .lcard.in li:nth-child(3) { animation-delay: .65s; }
    .lcard.in li:nth-child(4) { animation-delay: .8s; }
  }
  .lcard.in .done li:not(.is-open) svg { animation: pop .45s steps(3) both; animation-delay: .7s; }
  .lcard.in .done li:nth-child(2) svg { animation-delay: .85s; }
  .lcard.in .done li:nth-child(3) svg { animation-delay: 1s; }
  .lcard.in .bars i { animation: bar .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .6s; }
  .lcard.in .bars li:nth-child(2) i { animation-delay: .75s; }
  .lcard.in .bars li:nth-child(3) i { animation-delay: .9s; }
  .lcard.in .bars li:nth-child(4) i { animation-delay: 1.05s; }

  .train.in > .tile .px { animation: pop .45s steps(3) both; animation-delay: .5s; }
}

/* "Animationen anhalten" (site.js, rules in fern.css): the demo loops stop on their still frame */
.paused :is(.mod.in .viz--call :is(.say, .typing i, .sum), .mod.in .cal__new, .mod.in .cal__new .swap > span, .mod.in .viz--cal .toast,
  .mod.in .viz--offer :is(.cursor, .chip--go, .flip > span, .toast), .mod.in .dun li:nth-child(2), .mod.in .dun li:nth-child(2) svg,
  .mod.in .paid, .mod.in .paid > span, .xcell.in .wave i) { animation: none; }
.paused .mod.in .viz--call .typing { display: none; }

@keyframes call-say { 0%, 4% { opacity: 0; transform: translateY(8px); } 10%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes call-typing { 0%, 14% { opacity: 0; } 16%, 36% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes call-sum { 0%, 37% { opacity: 0; transform: translateY(10px); } 44%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes slot-ok { 0%, 44% { background: repeating-linear-gradient(135deg, #FFF7E2 0 6px, #FDF0CC 6px 12px); border: 1px dashed #D8B24E; border-left: 3px solid #D8B24E; } 45%, 93% { background: #E3F0E7; border: 0; border-left: 3px solid var(--brand); } }
@keyframes dun-row { 0%, 29% { color: var(--faint); background: transparent; box-shadow: inset 0 0 0 1px var(--line); } 30%, 93% { color: var(--ink-2); background: #F7F4EE; box-shadow: none; } }
@keyframes dun-tick { 0%, 29% { color: transparent; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); } 30%, 93% { color: #fff; background: #2F8A55; box-shadow: none; } }
@keyframes paid-tag { 0%, 59% { background: #FBF0D2; color: #8A6511; } 60%, 93% { background: #E1F1E6; color: #24774A; } }
@keyframes paid-out { 0%, 59% { opacity: 1; } 60%, 93% { opacity: 0; } }
@keyframes paid-in { 0%, 59% { opacity: 0; } 60%, 93% { opacity: 1; } }
@keyframes wave { 50% { transform: scaleY(.35); } }
@keyframes bar { from { transform: scaleX(0); } }
