/* Erklärungs-Slides (assets/help-slides.js) */
.pmh-btn {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 10px; vertical-align: middle;
  border-radius: 50%; border: 1px solid rgba(255, 141, 119, .45); background: rgba(255, 141, 119, .1);
  color: #ffb9a6; font: 600 15px/1 system-ui, sans-serif; cursor: pointer;
}
.pmh-btn:hover, .pmh-btn:focus-visible { background: rgba(255, 141, 119, .22); outline: 2px solid #ffb9a6; outline-offset: 2px; }
h1 + .pmh-btn { position: relative; top: -2px; }

body.pmh-open { overflow: hidden; }
.pmh {
  position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column;
  background: radial-gradient(120% 80% at 50% 0%, #2a1a2e 0%, #0e0a12 70%); color: #fff8f6;
  animation: pmh-in .3s ease;
}
.pmh.pmh-leave { animation: pmh-out .3s ease forwards; }
.pmh-top { display: flex; align-items: center; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 16px 8px; }
.pmh-back, .pmh-skip {
  min-width: 44px; min-height: 44px; border: 0; background: none; color: #b5a9b8; font: 500 15px system-ui, sans-serif; cursor: pointer;
}
.pmh-back { font-size: 28px; line-height: 1; }
.pmh-progress { flex: 1; display: flex; gap: 6px; }
.pmh-progress i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); transition: background .3s; }
.pmh-progress i.on { background: linear-gradient(90deg, #ff8d77, #c7a2fc); }
.pmh-stage { position: relative; flex: 1; overflow: hidden; touch-action: pan-y; }
.pmh-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 8px 24px max(28px, env(safe-area-inset-bottom)); text-align: center;
  max-width: 460px; margin: 0 auto; transition: transform .32s ease, opacity .32s ease;
}
.pmh-in-right { transform: translateX(40px); opacity: 0; }
.pmh-in-left { transform: translateX(-40px); opacity: 0; }
.pmh-out-left { transform: translateX(-40px); opacity: 0; }
.pmh-out-right { transform: translateX(40px); opacity: 0; }
.pmh-art { width: min(220px, 52vw); aspect-ratio: 1; }
.pmh-art svg { width: 100%; height: 100%; overflow: visible; }
.pmh-core { animation: pmh-pulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.pmh-a { animation: pmh-float 5s ease-in-out infinite; transform-box: fill-box; }
.pmh-b { animation: pmh-float 5s ease-in-out infinite reverse; transform-box: fill-box; }
.pmh-sweep { animation: pmh-spin 4s linear infinite; transform-origin: 100px 100px; }
.pmh-eyebrow { margin: 6px 0 0; font: 600 12px/1.4 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #ff8d77; }
.pmh-slide h2 { margin: 0; font-size: clamp(26px, 7vw, 34px); line-height: 1.15; font-weight: 700; }
.pmh-slide h2 em { font-style: normal; background: linear-gradient(90deg, #ff8d77, #c7a2fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pmh-text { margin: 4px 0 0; font-size: 16px; line-height: 1.55; color: #e9dfe7; }
.pmh-points { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; text-align: left; width: 100%; }
.pmh-points li { position: relative; padding: 10px 12px 10px 34px; border-radius: 12px; background: rgba(255, 255, 255, .05); font-size: 14px; line-height: 1.45; color: #e9dfe7; }
.pmh-points li::before { content: ''; position: absolute; left: 14px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #ff8d77, #c7a2fc); }
.pmh-primary {
  margin-top: 14px; min-height: 48px; width: 100%; max-width: 320px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, #ff8d77, #c7a2fc); color: #1a1020; font: 700 16px system-ui, sans-serif;
}
.pmh-primary:focus-visible, .pmh-back:focus-visible, .pmh-skip:focus-visible { outline: 2px solid #ffb9a6; outline-offset: 3px; }

.pmh-overview { margin: 18px 0; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.pmh-overview h2 { margin: 0 0 4px; font-size: 20px; }
.pmh-overview p { margin: 0 0 12px; color: #b5a9b8; }
.pmh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pmh-grid button, .pmh-reset {
  min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 141, 119, .3);
  background: rgba(255, 141, 119, .08); color: #fff8f6; font: 600 14px system-ui, sans-serif; cursor: pointer; text-align: left;
}
.pmh-reset { margin-top: 12px; border: 0; background: none; color: #ffb9a6; padding-left: 0; font-weight: 500; }

@keyframes pmh-in { from { opacity: 0; } }
@keyframes pmh-out { to { opacity: 0; } }
@keyframes pmh-pulse { 50% { transform: scale(1.35); opacity: .7; } }
@keyframes pmh-float { 50% { transform: translateY(-6px); } }
@keyframes pmh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .pmh, .pmh.pmh-leave, .pmh-core, .pmh-a, .pmh-b, .pmh-sweep { animation: none; }
  .pmh-slide { transition: none; }
}
