/* mb-phone.css: motion B as a reusable header block, "phone with a stylised reel" (30.11.2026).
   The owner picked proposal B (_berichte/tag_2026-11-30/marketing/release/motion/vorschlag_b.html); this is its header
   figure as a block any guide can put between <!--bm:start--> and <!--bm:end-->. Companion of mb-phone.js.
   A drawn phone (no photo, no real person or account), a reel of abstract shapes with overlays that light up one by one,
   optional counter ring and progress bar, then follow / story link / OnlyFans scenes; a legend beside the phone.
   Static markup = end state (picked by data-mbp-end). Motion only under html.mo + .is-armed (set by mb-phone.js).
   Usage and data attributes: _berichte/tag_2026-11-30/marketing/release/motion/baustein_b.md */

/* ------------------------------------------------------------ card */
.mbp {
  /* drawn colours of proposal B (phone silver as on the homepage hero phone, warm browns of the reel) */
  --mbp-glow-1: #3A2F22; --mbp-glow-2: #1C1813; --mbp-glow-3: #0E0C0A;
  --mbp-floor: #15120E; --mbp-floor-line: #2A2621; --mbp-plate: #2B251D; --mbp-plate-line: #4A4034;
  --mbp-fg: rgba(244, 238, 228, .86); --mbp-fg-dim: rgba(244, 238, 228, .3);
  margin: 26px 0 0; min-width: 0; max-width: 100%; padding: 18px 16px 14px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 72%, transparent), color-mix(in srgb, var(--surface) 18%, transparent));
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, .04);
}
.mbp__cap { margin: 14px 2px 0; font: 400 12.5px/1.5 var(--f-body); color: var(--muted); text-wrap: pretty; }
.mbp__tag { display: block; margin-bottom: 4px; font: 600 10px/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ember); }

/* ------------------------------------------------------------ placement in the article header */
/* phones and tablets: under the title, like every guide motif */
@media (max-width: 980px) {
  .arthead__grid > .mbp { max-width: 560px; }
}
@media (min-width: 981px) {
  /* fallback for browsers without :has(): the narrow motif column on the left, legend under the phone */
  .arthead__grid > .mbp { grid-column: 1; grid-row: 1; align-self: center; margin-top: 0; }
  .arthead__grid > .mbp .mbp__stage { grid-template-columns: 160px; justify-content: center; }
  /* proposal B: title left, the phone right of it */
  .arthead__grid:has(> .mbp) { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 56px; align-items: center; max-width: 1120px; margin-inline: auto; }
  .arthead__grid:has(> .mbp) > .arthead__body { grid-column: 1; }
  .arthead__grid:has(> .mbp) > .mbp { grid-column: 2; }
  .arthead__grid:has(> .mbp) > .mbp .mbp__stage { grid-template-columns: 160px minmax(0, 1fr); justify-content: normal; }
}

.mbp__stage { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 22px; align-items: center; }
@media (max-width: 370px) { .mbp__stage { gap: 14px; } }
/* very narrow screens: the whole drawing (overlays and counter included) scales down to 138 px instead of the overlays
   keeping their size in a smaller phone and covering the counter; browsers without zoom show the 160 px phone */
@media (max-width: 350px) {
  .mbp__stage { grid-template-columns: auto minmax(0, 1fr); }
  .mbp__stage > .mbp__phone { width: 160px; zoom: .8625; }
}
/* without a legend the phone stands alone in the middle of the card */
.mbp__stage > .mbp__phone:only-child { grid-column: 1 / -1; justify-self: center; width: 160px; max-width: 100%; }

/* ------------------------------------------------------------ the phone */
.mbp__phone {
  position: relative; width: 100%; aspect-ratio: 71.9 / 150; padding: 3.5px; border-radius: 25px;
  background: linear-gradient(155deg, #eef0f2 0%, #b9bdc3 16%, #7d828a 44%, #b9bdc3 72%, #eef0f2 100%);
  box-shadow: 0 0 0 1px color-mix(in srgb, #7d828a 45%, var(--bg)), 0 30px 60px -30px #000, 0 40px 80px -50px rgba(217, 195, 160, .35);
}
.mbp__screen { position: relative; height: 100%; overflow: hidden; border-radius: 22px; background: var(--inset); isolation: isolate; }
.mbp__island { position: absolute; z-index: 5; top: 10px; left: 50%; width: 31%; height: 12px; translate: -50% 0; border-radius: 99px; background: #050404; }
/* everything on the display sits in one layer, so a loop can fade it to the black display (never the screen itself,
   or the silver rim would show through) */
.mbp__view { position: absolute; inset: 0; }

/* scenes: only one is shown. Static (no JS, reduced motion, off screen) = the scene named in data-mbp-end (default reel);
   while playing, mb-phone.js sets data-scene. */
.mbp__scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.mbp:not([data-scene]):not([data-mbp-end]) .mbp__scene--reel,
.mbp:not([data-scene])[data-mbp-end="reel"] .mbp__scene--reel,
.mbp:not([data-scene])[data-mbp-end="follow"] .mbp__scene--follow,
.mbp:not([data-scene])[data-mbp-end="story"] .mbp__scene--story,
.mbp:not([data-scene])[data-mbp-end="of"] .mbp__scene--of,
.mbp[data-scene="reel"] .mbp__scene--reel, .mbp[data-scene="follow"] .mbp__scene--follow,
.mbp[data-scene="story"] .mbp__scene--story, .mbp[data-scene="of"] .mbp__scene--of { opacity: 1; visibility: visible; }
/* a page's own scenes (any other name in data-mbp-scenes, since ?v=1130c): mb-phone.js marks the current one .is-cur and
   an own end picture .is-end (the built-in scenes never get either class) */
.mbp:not([data-scene]) .mbp__scene.is-end, .mbp[data-scene] .mbp__scene.is-cur { opacity: 1; visibility: visible; }

/* reel: abstract shapes (glow, floor, plate), optional counter ring and progress bar, action icons, caption lines */
.mbp__scene--reel { background: radial-gradient(70% 70% at 50% 38%, var(--mbp-glow-1) 0%, var(--mbp-glow-2) 55%, var(--mbp-glow-3) 100%); }
.mbp__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.mbp__floor { fill: var(--mbp-floor); stroke: var(--mbp-floor-line); stroke-width: 1; }
.mbp__plate { fill: var(--mbp-plate); stroke: var(--mbp-plate-line); stroke-width: 1; }
.mbp__ringb { fill: none; stroke: rgba(244, 238, 228, .12); stroke-width: 5; }
.mbp__ring { fill: none; stroke: var(--ember); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--mbp-ring-off, 10); }
.mbp__count { font: 600 14px var(--f-mono); fill: var(--ink); letter-spacing: .02em; }
/* without a counter: a soft disc with a play mark in its place */
.mbp__disc { fill: rgba(244, 238, 228, .05); stroke: rgba(244, 238, 228, .12); stroke-width: 1.5; }
.mbp__play { fill: color-mix(in srgb, var(--ember) 70%, transparent); }
.mbp__shapes { display: none; }
.mbp:not([data-mbp-counter]) .mbp__counter, .mbp[data-mbp-counter="off"] .mbp__counter { display: none; }
.mbp:not([data-mbp-counter]) .mbp__shapes, .mbp[data-mbp-counter="off"] .mbp__shapes { display: inline; }

.mbp__bar { position: absolute; z-index: 2; top: 28px; left: 10px; right: 10px; height: 2.5px; border-radius: 2px; background: var(--mbp-fg-dim); overflow: hidden; }
.mbp__bar i { display: block; width: 100%; height: 100%; background: var(--ink); transform-origin: 0 50%; }
.mbp[data-mbp-bar="off"] .mbp__bar { display: none; }
.mbp__acts { position: absolute; z-index: 2; right: 8px; bottom: 58px; display: grid; gap: 11px; }
.mbp__acts svg { display: block; width: 17px; height: 17px; fill: none; stroke: var(--mbp-fg); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.mbp__capt { position: absolute; z-index: 2; left: 10px; bottom: 18px; display: grid; gap: 5px; }
.mbp__capt i { display: block; width: 78px; height: 4px; border-radius: 2px; background: var(--mbp-fg-dim); }
.mbp__capt i + i { width: 50px; }

/* overlays: stacked from the bottom, one row each; a long text is cut with … instead of running under the icons */
.mbp__chips { position: absolute; z-index: 3; left: 7px; right: 26px; bottom: 44px; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; justify-items: start; }
.mbp__chips li {
  display: flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; padding: 2.5px 7px 2.5px 2.5px; border-radius: 99px;
  background: rgba(10, 9, 7, .74); border: 1px solid rgba(244, 238, 228, .12); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  font: 600 9px/1.25 var(--f-body); color: var(--ink); white-space: nowrap;
}
.mbp__chips li.is-skip { display: none; }
.mbp__chips span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mbp__chips b { flex: none; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--sage); color: var(--on-ember); font: 700 8px/1 var(--f-mono); }
.mbp__tick { flex: none; width: 10px; height: 10px; fill: none; stroke: var(--sage); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* follow (a drawn profile). Static = after the tap ("Following"); armed it starts as the ember "Follow" button. */
.mbp__ava { position: absolute; top: 46px; left: 11px; width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #5a4a37, #231d16); box-shadow: 0 0 0 2px var(--inset), 0 0 0 3.5px var(--ember-lo); }
.mbp__line { position: absolute; height: 5px; border-radius: 3px; background: var(--mbp-fg-dim); }
.mbp__line--name { top: 56px; left: 64px; width: 62px; background: rgba(244, 238, 228, .55); }
.mbp__line--bio { top: 68px; left: 64px; width: 44px; }
.mbp__btn { position: absolute; left: 11px; right: 11px; display: grid; place-items: center; height: 23px; border-radius: 7px; font: 700 9.5px/1 var(--f-body); letter-spacing: .02em; }
.mbp__btn--follow { top: 102px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.mbp__btn--follow > span { grid-area: 1 / 1; }
.mbp__btn-a { opacity: 0; }
.mbp__grid { position: absolute; top: 136px; left: 3px; right: 3px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.mbp__grid i { display: block; aspect-ratio: 3 / 4; background: linear-gradient(160deg, #2a241c, #15120e); }
.mbp__grid i:nth-child(2n) { background: linear-gradient(160deg, #332a20, #1a1612); }

/* story with a link sticker */
.mbp__scene--story { background: radial-gradient(120% 70% at 50% 40%, var(--mbp-glow-1), #14110d 70%); }
.mbp__segs { position: absolute; top: 28px; left: 9px; right: 9px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.mbp__segs i { display: block; height: 2.5px; border-radius: 2px; background: rgba(244, 238, 228, .85); }
.mbp__segs i:last-child { background: linear-gradient(90deg, rgba(244, 238, 228, .85) 45%, rgba(244, 238, 228, .25) 45%); }
.mbp__sava { position: absolute; top: 38px; left: 10px; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #5a4a37, #231d16); box-shadow: 0 0 0 1.5px var(--ember-lo); }
.mbp__sticker {
  position: absolute; top: 56%; left: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px 7px 9px; border-radius: 9px; background: var(--paper); color: #1F1A14; font: 700 11px/1 var(--f-body); white-space: nowrap;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .8);
}
.mbp__sticker svg { width: 13px; height: 13px; fill: none; stroke: #8A6A3A; stroke-width: 2.4; stroke-linecap: round; }
.mbp__tap { position: absolute; top: 56%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid rgba(244, 238, 228, .9); opacity: 0; }

/* OnlyFans page (drawn, no logo) */
.mbp__banner { position: absolute; top: 0; left: 0; right: 0; height: 84px; background: linear-gradient(160deg, #4a3d2c, #1d1913); }
.mbp__ava--of { top: 62px; }
.mbp__scene--of .mbp__line--name { top: 116px; left: 11px; width: 70px; }
.mbp__scene--of .mbp__line--bio { top: 128px; left: 11px; width: 96px; }
.mbp__btn--sub { top: 150px; height: 26px; border-radius: 99px; background: var(--ember); color: var(--on-ember); }
.mbp__ok { position: absolute; top: 186px; left: 50%; translate: -50% 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--sage) 18%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--sage) 50%, transparent); }
.mbp__ok .mbp__tick { width: 13px; height: 13px; }

/* ------------------------------------------------------------ legend beside the phone (one row per scene) */
.mbp__legend { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.mbp__legend li { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 11px; align-items: start; }
.mbp__legend li + li::before { content: ""; position: absolute; left: 6.5px; top: -14px; width: 1px; height: 13px; background: var(--line-strong); }
.mbp__dot { width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; border: 1.5px solid var(--ember); background: var(--ember); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ember) 14%, transparent); }
.mbp__legend b { display: block; font: 600 14.5px/1.35 var(--f-display); letter-spacing: -.01em; color: var(--ink); }
.mbp__legend small { display: block; margin-top: 2px; font: 400 12.5px/1.4 var(--f-body); color: var(--muted); }

/* ------------------------------------------------------------ motion (html.mo + .is-armed only; timing as in proposal B) */
/* loop end / start: the display content fades out, resets without transitions (.is-snap) and fades back in */
html.mo .mbp .mbp__view { transition: opacity .42s var(--ease); }
html.mo .mbp.is-out .mbp__view { opacity: 0; }
html.mo .mbp.is-snap, html.mo .mbp.is-snap * { transition: none !important; animation: none !important; }

/* scene change = a short swipe: the old screen leaves upwards in 0.28 s, the new one rises in after it */
html.mo .mbp.is-armed .mbp__scene { transform: translateY(14px); transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s linear .28s; }
html.mo .mbp.is-armed .mbp__scene.is-prev { transform: translateY(-14px); }
html.mo .mbp.is-armed[data-scene="reel"] .mbp__scene--reel, html.mo .mbp.is-armed[data-scene="follow"] .mbp__scene--follow,
html.mo .mbp.is-armed[data-scene="story"] .mbp__scene--story, html.mo .mbp.is-armed[data-scene="of"] .mbp__scene--of,
html.mo .mbp.is-armed[data-scene] .mbp__scene.is-cur {
  transform: none; transition: opacity calc(var(--dur) * .7) var(--ease) .24s, transform calc(var(--dur) * .7) var(--ease) .24s, visibility 0s linear 0s;
}

/* reel: progress bar and counter ring run together (--mbp-run is set by mb-phone.js) */
html.mo .mbp.is-armed .mbp__bar i { transform: scaleX(0); }
html.mo .mbp.is-armed .mbp__ring { stroke-dashoffset: 100; }
html.mo .mbp.is-armed.is-play .mbp__bar i { transform: none; transition: transform var(--mbp-run, 6000ms) linear; }
html.mo .mbp.is-armed.is-play .mbp__ring { stroke-dashoffset: var(--mbp-ring-off, 10); transition: stroke-dashoffset var(--mbp-run, 6000ms) linear; }
/* overlays: slide in, then the number turns sage and the tick draws itself */
html.mo .mbp.is-armed .mbp__chips li { opacity: 0; transform: translateX(-10px); transition: opacity calc(var(--dur) * .6) var(--ease), transform calc(var(--dur) * .6) var(--ease); }
html.mo .mbp.is-armed .mbp__chips b { background: var(--line-strong); color: var(--ink); transition: background-color var(--dur-hover) var(--ease) .38s, color var(--dur-hover) var(--ease) .38s; }
html.mo .mbp.is-armed .mbp__chips .mbp__tick path { stroke-dasharray: 12; stroke-dashoffset: 12; transition: stroke-dashoffset calc(var(--dur) * .6) var(--ease) .45s; }
html.mo .mbp.is-armed .mbp__chips li.is-on { opacity: 1; transform: none; }
html.mo .mbp.is-armed .mbp__chips li.is-on b { background: var(--sage); color: var(--on-ember); }
html.mo .mbp.is-armed .mbp__chips li.is-on .mbp__tick path { stroke-dashoffset: 0; }

/* follow: ember "Follow" until the tap, then "Following" */
html.mo .mbp.is-armed .mbp__btn--follow, html.mo .mbp.is-armed .mbp__btn--sub { transition: background-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease), transform var(--dur-press) var(--ease); }
html.mo .mbp.is-armed .mbp__btn > span { transition: opacity var(--dur-hover) var(--ease); }
html.mo .mbp.is-armed .mbp__btn--follow:not(.is-pressed) { background: var(--ember); color: var(--on-ember); border-color: transparent; }
html.mo .mbp.is-armed .mbp__btn--follow:not(.is-pressed) .mbp__btn-a { opacity: 1; }
html.mo .mbp.is-armed .mbp__btn--follow:not(.is-pressed) .mbp__btn-b { opacity: 0; }
html.mo .mbp.is-armed .is-press { transform: scale(.95); }
/* story: the sticker pops in, a tap ring on it */
html.mo .mbp.is-armed .mbp__sticker { opacity: 0; transform: scale(.6); transition: opacity calc(var(--dur) * .5) var(--ease), transform calc(var(--dur) * .7) cubic-bezier(.34, 1.5, .64, 1); }
html.mo .mbp.is-armed .mbp__sticker.is-on { opacity: 1; transform: none; }
html.mo .mbp.is-armed .mbp__sticker.is-on.is-press { transform: scale(.95); }
html.mo .mbp.is-armed .mbp__tap { transform: scale(.3); }
html.mo .mbp.is-armed .mbp__tap.is-on { animation: mbp-tap .7s var(--ease) 1 both; }
@keyframes mbp-tap { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.9); } }
/* OnlyFans: subscribe, then the tick */
html.mo .mbp.is-armed .mbp__ok { opacity: 0; transform: scale(.4); transition: opacity calc(var(--dur) * .5) var(--ease), transform calc(var(--dur) * .6) cubic-bezier(.34, 1.5, .64, 1); }
html.mo .mbp.is-armed .mbp__ok.is-on { opacity: 1; transform: none; }

/* legend: the current scene in ember, the ones before it in sage, the rest dimmed */
html.mo .mbp.is-armed .mbp__dot { border-color: var(--line-strong); background: var(--bg); box-shadow: none; transition: background-color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease), box-shadow var(--dur-hover) var(--ease); }
html.mo .mbp.is-armed .mbp__legend li { transition: opacity var(--dur-hover) var(--ease); opacity: .55; }
html.mo .mbp.is-armed .mbp__legend li.is-done { opacity: .9; }
html.mo .mbp.is-armed .mbp__legend li.is-done .mbp__dot { border-color: var(--sage); background: var(--sage); }
html.mo .mbp.is-armed .mbp__legend li.is-on { opacity: 1; }
html.mo .mbp.is-armed .mbp__legend li.is-on .mbp__dot { border-color: var(--ember); background: var(--ember); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ember) 16%, transparent); }

/* reduced motion switched on while the page is open: mb-phone.js drops back to the end state; nothing moves in between */
@media (prefers-reduced-motion: reduce) {
  .mbp, .mbp * { transition: none !important; animation: none !important; }
}
