/* ============================================================
   Herz aus Stimmen — module styles
   Relies on ../colors_and_type.css for tokens & base.
   ============================================================ */

.wm {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--rv-paper);
  overflow: hidden;
}

/* ---- top bar ---------------------------------------------------- */
.wm-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--rv-space-4);
  padding: 8px clamp(16px, 3vw, 32px);
  flex: none;
  border-bottom: 1px solid var(--rv-border);
}
.wm-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.wm-brand img { height: 34px; width: auto; flex: none; }
.wm-brand .wm-wordmark { font-family: var(--rv-font-display); font-weight: 900; text-transform: uppercase; font-size: 14px; line-height: 1; letter-spacing: -0.01em; color: var(--rv-ink-600); }
.wm-brand .wm-wordmark small { display: block; font-family: var(--rv-font-body); font-weight: 700; font-size: 9px; letter-spacing: 0.18em; color: var(--rv-ink-300); margin-top: 4px; }
.wm-top-right { display: flex; align-items: center; gap: 14px; }

/* ---- intro band: the demand in one breath ----------------------- */
.wm-intro {
  flex: none;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 48px);
  padding: 6px clamp(16px, 3vw, 32px) 0;
}
.wm-intro-text { flex: none; max-width: 46%; }
.wm-intro-eyebrow {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--rv-pink-400); margin-bottom: 3px;
}
.wm-intro-h {
  font-family: var(--rv-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(17px, 1.8vw, 25px); line-height: 1; letter-spacing: -0.02em;
  color: var(--rv-ink-600); margin: 0;
}
.wm-intro-sub {
  margin: 0; font-size: clamp(12px, .96vw, 14px); line-height: 1.28; font-weight: 500;
  color: var(--rv-ink-400); max-width: 72ch;
}
.wm-intro-sub b { color: var(--rv-ink-600); font-weight: 700; }
@media (max-width: 860px) {
  .wm-intro { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 8px; }
  .wm-intro-text { max-width: 100%; }
  .wm-intro-sub { font-size: 14px; }
}

/* ---- stage layout ----------------------------------------------- */
.wm-stage {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 12px;
  padding: 10px clamp(16px, 3vw, 32px) 14px;
}

/* ---- wall panel ------------------------------------------------- */
.wm-wall {
  position: relative;
  border-radius: var(--rv-radius-lg);
  overflow: hidden;
  background: #0b1118;
  box-shadow: var(--rv-shadow-md), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.wm-wall canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.wm-wall canvas:active { cursor: grabbing; }
/* soft vignette so edges fade into the panel */
.wm-wall::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 120px 24px rgba(8,12,17,0.7);
  border-radius: inherit;
}

/* loader */
.wm-loader {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: #0b1118; z-index: 6; gap: 14px; color: var(--rv-paper);
  transition: opacity 400ms var(--rv-ease-out);
}
.wm-loader.hide { opacity: 0; pointer-events: none; }
.wm-loader .pip { height: 54px; width: auto; animation: wmpulse 1.6s ease-in-out infinite; }
.wm-loader span { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--rv-ink-200); }
@keyframes wmpulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.86); opacity: 0.55; } }

/* toolbar */
.wm-tools {
  position: absolute; left: 14px; top: 14px; z-index: 5;
  display: flex; flex-direction: column; gap: 8px;
}
.wm-tools button {
  width: 40px; height: 40px; border-radius: 12px; border: none;
  background: rgba(20,30,40,0.72); color: var(--rv-paper);
  backdrop-filter: blur(6px); cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--rv-shadow-sm);
  transition: background var(--rv-dur-fast) var(--rv-ease-out), transform var(--rv-dur-fast);
}
.wm-tools button:hover { background: rgba(40,56,69,0.92); }
.wm-tools button:active { transform: scale(0.94); }
.wm-tools button svg { width: 20px; height: 20px; }

/* hint — erklärt erstbesuchern die wand, verschwindet bei der ersten interaktion */
.wm-hint {
  position: absolute; left: 50%; bottom: 86px; transform: translateX(-50%);
  z-index: 4; display: flex; align-items: flex-start; gap: 10px;
  max-width: min(460px, calc(100% - 32px));
  padding: 12px 18px; border-radius: 14px;
  background: rgba(20,30,40,0.78); backdrop-filter: blur(6px);
  color: var(--rv-paper); font-size: 13px; font-weight: 500; line-height: 1.45;
  box-shadow: var(--rv-shadow-sm);
  transition: opacity 360ms var(--rv-ease-out);
}
.wm-hint b { font-weight: 800; color: var(--rv-sun-300); }
.wm-hint svg { width: 16px; height: 16px; opacity: 0.85; flex: none; margin-top: 2px; }
.wm-hint.fade { opacity: 0; pointer-events: none; }
@media (max-width: 720px) { .wm-hint { font-size: 12px; bottom: 60px; } }

/* hashtag — large campaign mark, part of the wall composition */
.wm-hashtag {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3;
  text-align: center; pointer-events: none;
  font-family: var(--rv-font-display); font-weight: 900; text-transform: none;
  font-size: clamp(20px, 2.4vw, 38px); line-height: 1; letter-spacing: 0.005em;
  color: var(--rv-sun-300);
  opacity: .42;
  text-shadow: 0 2px 22px rgba(252,198,82,0.25), 0 1px 14px rgba(8,12,17,0.78);
  transition: opacity 220ms var(--rv-ease-out);
}
.wm-wall.has-card .wm-hashtag,
.wm-wall.live-active .wm-hashtag { opacity: .08; }
@media (max-width: 720px) { .wm-hashtag { bottom: 16px; font-size: clamp(18px, 5.5vw, 28px); } }

/* live ticker — newest signature pulled from the feed */
.wm-live {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%) translateY(-8px);
  z-index: 5; display: none; align-items: center; gap: 9px;
  max-width: calc(100% - 120px);
  padding: 9px 16px; border-radius: 999px;
  background: rgba(20,30,40,0.78); backdrop-filter: blur(6px);
  color: var(--rv-paper); font-size: 13px; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  box-shadow: var(--rv-shadow-sm);
  cursor: pointer; user-select: none;
  opacity: 0; transition: opacity 360ms var(--rv-ease-out), transform 360ms var(--rv-ease-out);
}
.wm-live.show { display: flex; opacity: 1; transform: translateX(-50%) translateY(0); }
.wm-live:focus-visible { outline: 2px solid var(--rv-sun-300); outline-offset: 3px; }
.wm-live b { font-weight: 800; color: var(--rv-sun-300); }
.wm-live .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rv-success); flex: none; box-shadow: 0 0 0 3px rgba(47,158,106,0.3); }

/* ---- floating tile card ----------------------------------------- */
.wm-card {
  position: absolute; z-index: 7; width: 278px; max-width: calc(100% - 28px);
  background: var(--rv-paper-card); color: var(--rv-fg);
  border-radius: var(--rv-radius-md); padding: 13px 13px 12px;
  box-shadow: var(--rv-shadow-md);
  opacity: 0; transform: translateY(8px) scale(0.97); pointer-events: none;
  transition: opacity 200ms var(--rv-ease-out), transform 220ms var(--rv-ease-spring);
}
.wm-card.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.wm-card .head { display: flex; align-items: center; gap: 11px; }
.wm-card .av {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  color: var(--rv-ink-600);
  background: radial-gradient(120% 120% at 30% 20%, var(--rv-sun-200), var(--rv-sun-400));
}
.wm-card .who { min-width: 0; }
.wm-card .who .nm { font-weight: 800; font-size: 14px; color: var(--rv-ink-600); line-height: 1.1; }
.wm-card .who .cond { font-size: 12px; color: var(--rv-ink-400); margin-top: 3px; }
.wm-card .close {
  margin-left: auto; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: none; background: var(--rv-ink-50); color: var(--rv-ink-400); cursor: pointer;
  display: grid; place-items: center;
}
.wm-card .close:hover { background: var(--rv-ink-100); color: var(--rv-ink-600); }
.wm-card .close svg { width: 15px; height: 15px; }
.wm-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--rv-sun-100); color: var(--rv-sun-600);
}
.wm-badge.angehoerig { background: var(--rv-pink-100); color: var(--rv-pink-500); }
.wm-badge.unterstuetzer { background: var(--rv-sky-100); color: var(--rv-sky-500); }
.wm-badge.medizin { background: var(--rv-ink-100); color: var(--rv-ink-500); }
.wm-badge.organisation { background: var(--rv-ink-100); color: var(--rv-ink-500); }
.wm-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wm-card .quote {
  margin: 10px 0 0; font-style: italic; font-weight: 600; font-size: 14px;
  line-height: 1.42; color: var(--rv-ink-600);
}
.wm-card .quote.nolite { font-style: normal; font-weight: 600; color: var(--rv-ink-400); }
.wm-card .foot {
  margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--rv-border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--rv-ink-400);
}
.wm-card .foot .loc { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.wm-card .foot svg { width: 13px; height: 13px; }
.wm-card .foot .snum { font-variant-numeric: tabular-nums; }

/* like — a small act of solidarity ------------------------------- */
.like {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  border: 1px solid var(--rv-border); background: var(--rv-surface, #fff);
  color: var(--rv-ink-500); font: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer; line-height: 1; transition: background .16s, border-color .16s, color .16s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.like .lk-ic { display: inline-flex; width: 15px; height: 15px; }
.like .lk-ic svg { width: 15px; height: 15px; transition: transform .18s; }
.like .lk-n { font-variant-numeric: tabular-nums; min-width: 1ch; }
.like:hover { border-color: var(--rv-pink-200); color: var(--rv-pink-400); background: var(--rv-pink-50); }
.like:active { transform: scale(.94); }
.like:disabled { opacity: .62; cursor: wait; }
.like.error { border-color: #d94b4b; color: #d94b4b; background: #fff0f0; }
.like.on {
  border-color: var(--rv-pink-300); background: var(--rv-pink-50); color: var(--rv-pink-500);
}
.like.on .lk-ic svg { fill: var(--rv-pink-400); stroke: var(--rv-pink-400); }
.like.pop .lk-ic svg { animation: lkpop .42s cubic-bezier(.2,1.5,.4,1); }
@keyframes lkpop { 0%{transform:scale(1)} 35%{transform:scale(1.42)} 100%{transform:scale(1)} }

/* floating hearts on like */
.lk-spark {
  position: absolute; z-index: 60; width: 16px; height: 16px; pointer-events: none;
  color: var(--rv-pink-400); transform: translate(-50%, 0);
  animation: lkrise 1s ease-out forwards;
}
.lk-spark svg { width: 100%; height: 100%; fill: currentColor; stroke: currentColor; }
@keyframes lkrise {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.4) rotate(0); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0)), -54px) scale(1) rotate(var(--rot, 0)); }
}

/* like inside the "Stimme des Moments" footer */
.wm-mfoot .meta .like { margin-left: auto; }
@media (prefers-reduced-motion: reduce) {
  .like.pop .lk-ic svg { animation: none; }
  .lk-spark { display: none; }
}

.wm-card.seat .av { background: var(--rv-ink-50); color: var(--rv-ink-300); }
.wm-card.seat .av .ini { color: var(--rv-ink-300); }

/* portrait avatars — real photo over the initials fallback */
.wm-card .av, .wm-moment .av { position: relative; overflow: hidden; }
.wm-card .av .ini, .wm-moment .av .ini { position: relative; z-index: 1; }
.wm-card .av img, .wm-moment .av img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.wm-card.seat .seat-cta {
  margin-top: 14px; width: 100%; justify-content: center;
}

/* ---- aside ------------------------------------------------------ */
.wm-aside {
  min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  padding-right: 2px;
}
.wm-aside::-webkit-scrollbar { width: 8px; }
.wm-aside::-webkit-scrollbar-thumb { background: var(--rv-ink-100); border-radius: 999px; }

.wm-panel {
  background: var(--rv-paper-card); border: 1px solid var(--rv-border);
  border-radius: var(--rv-radius-lg); padding: 16px;
}

/* counter */
.wm-counter .nums { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wm-counter .big {
  font-family: var(--rv-font-display); font-weight: 900; font-size: 44px; line-height: 0.92;
  letter-spacing: -0.02em; color: var(--rv-ink-600); font-variant-numeric: tabular-nums;
}
.wm-counter .of { font-size: 14px; font-weight: 700; color: var(--rv-ink-400); }
.wm-counter .of b { color: var(--rv-ink-600); }
.wm-bar { margin-top: 14px; height: 11px; border-radius: 999px; background: var(--rv-ink-100); overflow: hidden; }
.wm-bar i { display: block; height: 100%; border-radius: 999px; background: var(--rv-sun-300); box-shadow: inset 0 -2px 0 var(--rv-sun-400); transition: width 900ms var(--rv-ease-out); }
.wm-counter .sub { margin-top: 9px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--rv-ink-400); }
.wm-counter .sub b { color: var(--rv-ink-600); }

/* stats row under counter */
.wm-stats { display: flex; gap: 18px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--rv-border); }
.wm-stats .s .n { font-family: var(--rv-font-display); font-weight: 900; font-size: 20px; color: var(--rv-ink-600); line-height: 1; }
.wm-stats .s .l { font-size: 11px; font-weight: 600; color: var(--rv-ink-400); margin-top: 4px; }

/* concrete demand line in the intro */
.wm-intro-right { flex: 1; min-width: 0; }
.wm-intro-demand {
  margin: 9px 0 0; font-size: clamp(13px, 1.02vw, 14.5px); line-height: 1.42;
  font-weight: 600; color: var(--rv-ink-500); max-width: 58ch;
}
.wm-intro-demand .tag {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--rv-sun-500); background: var(--rv-sun-100);
  padding: 2px 9px; border-radius: 999px; margin-right: 8px; vertical-align: 1px;
}
.wm-intro-demand b { color: var(--rv-ink-600); font-weight: 800; }

/* primary CTA + share under the counter */
.wm-cta { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.wm-btn.block { width: 100%; }
.wm-share { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.wm-share .wm-btn { font-size: 13px; padding: 11px 12px; }
.wm-share .wm-btn svg { width: 16px; height: 16px; }
.wm-btn.ghost.ok { background: var(--rv-success); color: #fff; }

/* petition meta: addressee + deadline */
.wm-petmeta {
  margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--rv-border);
  display: flex; flex-direction: column; gap: 8px; font-size: 12px;
}
.wm-petmeta > div { display: flex; gap: 10px; align-items: baseline; }
.wm-petmeta .k {
  flex: none; width: 74px; color: var(--rv-ink-300); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px;
}
.wm-petmeta b { color: var(--rv-ink-600); font-weight: 700; }

/* credibility: initiator · supporters · press */
.wm-cred { display: flex; flex-direction: column; gap: 12px; }
.wm-cred .cred-row { display: flex; flex-direction: column; gap: 4px; }
.wm-cred .k {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--rv-pink-400);
}
.wm-cred b { font-size: 15px; font-weight: 800; color: var(--rv-ink-600); }
.wm-cred .vals {
  font-size: 13px; font-weight: 600; color: var(--rv-ink-500);
  display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
}
.wm-cred .vals i { color: var(--rv-ink-200); font-style: normal; }

/* eyebrow */
.wm-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rv-pink-400);
}
.wm-eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--rv-pink-400); animation: wmdot 1.8s ease-in-out infinite; }
@keyframes wmdot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.5); opacity: 0.4; } }

/* moment voice */
.wm-moment { min-height: 326px; display: flex; flex-direction: column; }
.wm-moment .who { display: flex; align-items: center; gap: 12px; }
.wm-moment .av {
  width: 50px; height: 50px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 16px; color: var(--rv-ink-600);
  background: radial-gradient(120% 120% at 30% 20%, var(--rv-sun-200), var(--rv-sun-400));
  box-shadow: 0 0 0 4px var(--rv-sun-100);
}
.wm-moment .nm { font-weight: 800; font-size: 17px; color: var(--rv-ink-600); line-height: 1.1; }
.wm-moment .cond { font-size: 13px; color: var(--rv-ink-400); margin-top: 3px; }
.wm-moment .quote {
  margin: 14px 0 0; font-style: italic; font-weight: 600; font-size: 16px; line-height: 1.38;
  color: var(--rv-ink-600); text-wrap: pretty;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden;
}
.wm-mfoot { margin-top: auto; }
.wm-moment .quote::before { content: "\201E"; color: var(--rv-pink-300); font-weight: 900; }
.wm-moment .quote::after { content: "\201C"; color: var(--rv-pink-300); font-weight: 900; }
.wm-moment .meta {
  margin-top: 15px; display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--rv-ink-400); font-weight: 600;
}
.wm-moment .meta .loc { display: inline-flex; align-items: center; gap: 5px; }
.wm-moment .meta svg { width: 13px; height: 13px; }
.wm-moment .meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--rv-ink-200); }
.wm-moment .show-btn {
  margin-top: 18px; width: 100%; justify-content: center;
}
.wm-moment .pager { display: flex; gap: 5px; margin-top: 16px; justify-content: center; }
.wm-moment .pager i { width: 6px; height: 6px; border-radius: 999px; background: var(--rv-ink-100); transition: all 220ms; }
.wm-moment .pager i.on { width: 20px; background: var(--rv-sun-300); }

/* milestones */
.wm-mile h4 { font-family: var(--rv-font-display); font-weight: 900; text-transform: uppercase; font-size: 13px; letter-spacing: 0; color: var(--rv-ink-600); margin: 0 0 16px; }
.wm-mile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.wm-mile li { display: flex; align-items: center; gap: 12px; padding: 7px 0; position: relative; }
.wm-mile li + li::before { content: ""; position: absolute; left: 10px; top: -8px; height: 16px; width: 2px; background: var(--rv-ink-100); }
.wm-mile li.done + li::before, .wm-mile li.current + li::before { background: var(--rv-sun-300); }
.wm-mile .ic { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--rv-ink-50); color: var(--rv-ink-300); border: 2px solid var(--rv-ink-100); }
.wm-mile .ic svg { width: 13px; height: 13px; }
.wm-mile li.done .ic { background: var(--rv-sun-300); border-color: var(--rv-sun-300); color: var(--rv-ink-600); }
.wm-mile li.current .ic { background: var(--rv-paper); border-color: var(--rv-sun-300); color: var(--rv-sun-500); box-shadow: 0 0 0 4px var(--rv-sun-100); animation: wmdot 2s ease-in-out infinite; }
.wm-mile .lbl { font-weight: 700; font-size: 14px; color: var(--rv-ink-600); }
.wm-mile li.next .lbl { color: var(--rv-ink-300); }
.wm-mile .tag { margin-left: auto; font-size: 11px; font-weight: 700; }
.wm-mile li.done .tag { color: var(--rv-success); }
.wm-mile li.current .tag { color: var(--rv-sun-600); }
.wm-mile li.next .tag { color: var(--rv-ink-300); }

/* buttons (module-local, mirrors kit) */
.wm-btn {
  font-family: inherit; cursor: pointer; border: none; font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; transition: all 140ms var(--rv-ease-out); text-decoration: none;
}
.wm-btn svg { width: 18px; height: 18px; }
.wm-btn.primary { background: var(--rv-sun-300); color: var(--rv-ink-600); box-shadow: var(--rv-shadow-glow-sun); }
.wm-btn.primary:hover { background: var(--rv-sun-400); transform: translateY(-1px); }
.wm-btn.primary:active { background: var(--rv-sun-500); transform: scale(0.98); }
.wm-btn.ghost { background: var(--rv-paper-tint); color: var(--rv-ink-600); }
.wm-btn.ghost:hover { background: var(--rv-sun-100); }
.wm-btn.small { font-size: 13px; padding: 10px 16px; }

/* hinweis zu darstellung & inhalten dritter — eingeklappt, auf klick lesbar */
.wm-note {
  padding: 0 14px;
  font-size: 11px; font-weight: 600; color: var(--rv-ink-300);
}
.wm-note summary {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0; cursor: pointer; list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.wm-note summary::-webkit-details-marker { display: none; }
.wm-note summary:hover { color: var(--rv-ink-500); }
.wm-note svg { width: 14px; height: 14px; flex: none; }
.wm-note .chev { margin-left: auto; transition: transform 160ms var(--rv-ease-out); }
.wm-note[open] .chev { transform: rotate(180deg); }
.wm-note p { margin: 0; padding: 0 0 10px 22px; line-height: 1.5; }

/* impressum + datenschutz */
.wm-legal {
  display: flex; align-items: center; gap: 8px; padding: 0 14px 12px;
  font-size: 11px; font-weight: 600; color: var(--rv-ink-300);
}
.wm-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wm-legal a:hover { color: var(--rv-ink-500); }
.wm-legal i { font-style: normal; opacity: 0.6; }

/* ---- fullscreen mode -------------------------------------------- */
.wm.fs .wm-top, .wm.fs .wm-aside { display: none; }
.wm.fs .wm-stage { grid-template-columns: 1fr; padding: 0; gap: 0; }
.wm.fs .wm-wall { border-radius: 0; }
.wm-fschip {
  position: absolute; right: 16px; top: 16px; z-index: 8; display: none;
  align-items: center; gap: 14px; padding: 12px 18px; border-radius: 16px;
  background: rgba(20,30,40,0.74); backdrop-filter: blur(8px); color: var(--rv-paper);
  box-shadow: var(--rv-shadow-md);
}
.wm.fs .wm-fschip { display: flex; }
.wm-fschip .big { font-family: var(--rv-font-display); font-weight: 900; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--rv-sun-300); }
.wm-fschip .of { font-size: 12px; font-weight: 600; opacity: 0.8; }
.wm-fschip .of b { color: var(--rv-paper); }
.wm-fschip .x { width: 34px; height: 34px; border-radius: 10px; border: none; background: rgba(255,255,255,0.12); color: var(--rv-paper); cursor: pointer; display: grid; place-items: center; }
.wm-fschip .x:hover { background: rgba(255,255,255,0.22); }
.wm-fschip .x svg { width: 18px; height: 18px; }

/* ---- success toast ---------------------------------------------- */
.wm-success {
  position: absolute; left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(140%); z-index: 30;
  display: flex; align-items: center; gap: 14px; padding: 16px 22px;
  background: var(--rv-ink-600); color: var(--rv-paper); border-radius: 18px;
  box-shadow: var(--rv-shadow-lg);
  transition: transform 480ms var(--rv-ease-spring);
}
.wm-success.show { transform: translateX(-50%) translateY(0); }
.wm-success.compact {
  bottom: 18px;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
}
.wm-success.compact img { height: 30px; }
.wm-success.compact .t { font-size: 13px; }
.wm-success.compact .s { font-size: 11px; }
.wm-success img { height: 40px; width: auto; }
.wm-success .t { font-family: var(--rv-font-display); font-weight: 900; text-transform: uppercase; font-size: 17px; letter-spacing: -0.01em; }
.wm-success .s { font-size: 13px; opacity: 0.8; margin-top: 2px; }
.wm-success .close {
  width: 26px; height: 26px; border: none; border-radius: 999px;
  display: grid; place-items: center; flex: none;
  background: rgba(255,255,255,0.12); color: var(--rv-paper);
  font-size: 18px; line-height: 1; cursor: pointer;
  transition: background 140ms var(--rv-ease-out), transform 140ms var(--rv-ease-out);
}
.wm-success .close:hover { background: rgba(255,255,255,0.22); }
.wm-success .close:active { transform: scale(.94); }

.wm-stickycta { display: none; }

/* ---- responsive / mobile ---------------------------------------- */
@media (max-width: 900px) {
  .wm {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .wm.fs {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding-bottom: 0;
  }
  .wm.fs .wm-stickycta { display: none; }
  .wm-top {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 7px 12px;
    background: rgba(254,252,246,0.94);
    backdrop-filter: blur(10px);
  }
  .wm-brand { gap: 9px; }
  .wm-brand img { height: 30px; }
  .wm-brand .wm-wordmark { font-size: 12px; }
  .wm-brand .wm-wordmark small { font-size: 8px; margin-top: 3px; }
  .wm-top-right { display: none; }

  .wm-intro {
    gap: 7px;
    padding: 10px 14px 2px;
  }
  .wm-intro-h {
    font-size: clamp(18px, 6.2vw, 24px);
    line-height: .96;
  }
  .wm-intro-eyebrow {
    margin-bottom: 4px;
    font-size: 9px;
    letter-spacing: .1em;
  }
  .wm-intro-sub {
    font-size: 13px;
    line-height: 1.34;
    max-width: none;
  }
  /* Mobil nur der kurze Kernsatz — die lange Forderung würde
     mitten im Satz abgeschnitten und erschlägt den Einstieg. */
  .wm-intro-sub b { display: none; }

  .wm-stage {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px 10px 14px;
    height: auto;
  }
  .wm-wall {
    height: min(64vh, 560px);
    min-height: 390px;
    border-radius: 12px;
    /* Ziel von scrollIntoView ("Im Herzen ansehen") — Abstand für den
       Sticky-Header, damit das Herz nicht darunter verschwindet. */
    scroll-margin-top: 54px;
  }
  .wm-wall::after {
    box-shadow: inset 0 0 74px 14px rgba(8,12,17,0.62);
  }

  .wm-tools {
    left: 10px;
    top: 10px;
    gap: 6px;
  }
  .wm-tools button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .wm-tools button svg { width: 18px; height: 18px; }

  /* Ticker rechts neben der Toolbar über die volle Restbreite,
     statt zentriert — so werden Namen nicht abgeschnitten. */
  .wm-live,
  .wm-live.show {
    top: 10px;
    left: 56px;
    right: 10px;
    transform: none;
    max-width: none;
    padding: 8px 12px;
    font-size: 12px;
    gap: 7px;
  }
  .wm-live .live-dot {
    width: 7px;
    height: 7px;
  }
  .wm-hint {
    left: 12px;
    right: 12px;
    bottom: 58px;
    transform: none;
    max-width: none;
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.4;
  }
  .wm-hashtag {
    bottom: 14px;
    font-size: clamp(12px, 4.6vw, 24px);
    padding: 0 12px;
    white-space: nowrap;
  }

  .wm-card {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    top: auto !important;
    width: auto;
    max-width: none;
    max-height: min(46%, 290px);
    overflow: auto;
    border-radius: 12px;
    padding: 12px;
  }
  .wm-card .quote {
    font-size: 13px;
    line-height: 1.36;
  }
  .wm-card .foot {
    gap: 10px;
    align-items: flex-start;
  }
  .wm-card .foot .snum {
    text-align: right;
  }

  .wm-aside {
    overflow: visible;
    gap: 12px;
    padding: 0;
  }
  .wm-panel {
    border-radius: 12px;
    padding: 14px;
  }
  .wm-counter {
    order: -1;
  }
  .wm-counter .big {
    font-size: clamp(38px, 13vw, 52px);
  }
  .wm-counter .of {
    font-size: 13px;
  }
  .wm-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 13px;
    padding-top: 13px;
  }
  .wm-petmeta {
    font-size: 11px;
  }

  /* Ein Share-Button reicht mobil — navigator.share öffnet das
     System-Sheet, das WhatsApp & Co. bereits enthält. */
  .wm-share { grid-template-columns: 1fr; }
  #waBtn { display: none; }

  /* Etappenziele kompakter */
  .wm-mile h4 { margin-bottom: 10px; }
  .wm-mile li { padding: 5px 0; }
  .wm-mile .lbl { font-size: 13px; }

  .wm-moment {
    min-height: 0;
  }
  .wm-moment .quote {
    font-size: 14px;
    line-height: 1.36;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
  .wm-moment .meta {
    flex-wrap: wrap;
    gap: 8px;
  }
  .wm-moment .meta .like {
    margin-left: 0;
  }
  .wm-moment .show-btn {
    margin-top: 14px;
  }

  .wm-stickycta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(254,252,246,0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--rv-border);
    box-shadow: 0 -10px 30px rgba(21,31,43,0.08);
  }
  .wm-stickycta .lbl {
    min-width: 0;
    flex: 1;
    font-size: 12px;
    font-weight: 800;
    color: var(--rv-ink-600);
    line-height: 1.2;
  }
  .wm-stickycta .lbl small {
    display: block;
    font-weight: 600;
    color: var(--rv-ink-400);
    font-size: 10px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .wm-stickycta .wm-btn {
    flex: none;
    padding: 11px 14px;
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .wm-wall {
    height: 58vh;
    min-height: 360px;
  }
  .wm-card {
    max-height: 52%;
  }
}

@media (max-width: 380px) {
  .wm-stickycta .lbl { display: none; }
  .wm-stickycta .wm-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .wm-loader .pip, .wm-eyebrow .pulse, .wm-mile li.current .ic { animation: none; }
}
