
.pm-page {
  --pearl: #FBFAFF; --ink: #17152A; --ink-2: #5A5775; --ink-3: #77738F; --hair: rgba(23, 21, 42, .09); --violet: #8B6CFF;
  --card: #FFFFFF; --glow: 0 24px 60px -18px rgba(108, 86, 210, .2), 0 2px 8px rgba(23, 21, 42, .05);
  --glow-sm: 0 10px 28px -14px rgba(108, 86, 210, .26), 0 1px 3px rgba(23, 21, 42, .05);
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif; --text: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 18px; --gut: 16px;
  margin: 0; background: var(--pearl); color: var(--ink); font: 400 16px/1.5 var(--text); -webkit-text-size-adjust: 100%;
}
.pm-page *, .pm-page *::before, .pm-page *::after { box-sizing: border-box; }
.pm { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut) 120px; }
.pm-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pm-hero { padding: 28px 0 18px; max-width: 760px; }
.pm-chip { display: inline-block; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: #F1ECFF; color: #5B3FD6; font: 600 13px/1.2 var(--text); letter-spacing: .01em; }
.pm-hero h1 { font: 800 clamp(34px, 8.6vw, 60px)/1.02 var(--display); letter-spacing: -.03em; margin: 0 0 14px; }
.pm-lead { font-size: clamp(16px, 4.2vw, 19px); color: var(--ink-2); margin: 0; max-width: 640px; }


.pm-app { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'tpl' 'stage' 'steps'; margin-top: 10px; }
.pm-step-tpl { grid-area: tpl; } .pm-stage { grid-area: stage; } .pm-steps { grid-area: steps; display: grid; gap: 14px; min-width: 0; }
@media (min-width: 900px) {
  .pm { padding-left: 32px; padding-right: 32px; }
  .pm-app { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); grid-template-areas: 'tpl stage' 'steps stage'; align-items: start; gap: 18px 28px; }
  .pm-stage { position: sticky; top: 84px; }
}
.pm-step, .pm-stage { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--glow-sm); padding: 16px; min-width: 0; }
.pm-step h2 { display: flex; align-items: center; gap: 10px; font: 700 19px/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 12px; }
.pm-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 13px/1 var(--text); flex: none; }

.pm-tpls { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(132px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 6px; margin: 0 -2px; -webkit-overflow-scrolling: touch; }
.pm-tpl { scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 8px; border-radius: 14px; border: 1.5px solid var(--hair); background: #fff; color: var(--ink); cursor: pointer; font: inherit; min-width: 0; transition: border-color .15s, box-shadow .15s, transform .12s; }
.pm-tpl:hover { transform: translateY(-1px); box-shadow: var(--glow-sm); }
.pm-tpl[aria-checked="true"] { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 108, 255, .22); }
.pm-tpl:focus-visible, .pm-seg button:focus-visible, .pm-go:focus-visible, .pm-small:focus-visible, .pm-ctl:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.pm-thumb { display: block; aspect-ratio: 9 / 16; border-radius: 9px; overflow: hidden; background: #F2F0F8; }
.pm-thumb canvas { display: block; width: 100%; height: 100%; }
.pm-tpl b { font: 700 15px/1.2 var(--display); margin-top: 4px; }
.pm-tpl small { color: var(--ink-3); font-size: 12.5px; line-height: 1.35; }


.pm-screen { position: relative; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #EEECF5; box-shadow: inset 0 0 0 1px var(--hair); }
.pm-screen[data-shape="9x16"] { aspect-ratio: 9 / 16; max-height: 68vh; }
.pm-screen[data-shape="1x1"] { aspect-ratio: 1 / 1; }
.pm-screen[data-shape="4x5"] { aspect-ratio: 4 / 5; max-height: 68vh; }
.pm-screen canvas { display: block; width: 100%; height: 100%; }
.pm-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--ink-3); font-size: 14px; }
.pm-app:not([data-pm-state="loading"]) .pm-loading { display: none; }
.pm-controls { display: flex; align-items: center; gap: 10px; margin: 10px 0 12px; }
.pm-ctl { flex: none; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--hair); background: #fff; color: var(--ink); font: 600 14px/1 var(--text); cursor: pointer; }
.pm-sound[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pm-bar { flex: 1; min-width: 0; accent-color: var(--violet); height: 44px; margin: 0; }
.pm-go { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 700 17px/1 var(--text); letter-spacing: -.01em; cursor: pointer; text-decoration: none; box-shadow: 0 12px 30px -12px rgba(108, 86, 210, .6), 0 2px 6px rgba(23, 21, 42, .18); transition: transform .12s, box-shadow .12s; }
.pm-go:hover { transform: translateY(-1px); }
.pm-go:active { transform: translateY(1px); }
.pm-go[disabled] { opacity: .55; cursor: progress; }
.pm-go-ink { background: linear-gradient(135deg, #8B6CFF, #6C4BFF); }
.pm-progress { height: 8px; border-radius: 99px; background: #EEEAFB; overflow: hidden; margin: 10px 0 0; }
.pm-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8B6CFF, #FF8A5C); transition: width .15s; }
.pm-status { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.pm-status.pm-warn { color: #9A3B12; }
.pm-check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--ink-2); margin-top: 6px; cursor: pointer; }
.pm-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--violet); flex: none; }


.pm-field { display: grid; gap: 5px; margin: 0 0 12px; }
.pm-field span { font: 600 13.5px/1.2 var(--text); color: var(--ink-2); }
.pm-field input, .pm-field textarea { width: 100%; font: 400 16px/1.35 var(--text); color: var(--ink); background: #FBFAFF; border: 1.5px solid #E3E0EE; border-radius: 12px; padding: 11px 12px; min-height: 46px; }
.pm-field textarea { resize: vertical; min-height: 64px; }
.pm-field input:focus, .pm-field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 108, 255, .2); background: #fff; }
.pm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-hint { font-size: 13.5px; color: var(--ink-3); margin: 4px 0 0; }
.pm-seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.pm-seg button { flex: 1 1 auto; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid #E3E0EE; background: #fff; color: var(--ink); font: 600 15px/1.2 var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pm-seg button[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.pm-seg button small { display: block; font-weight: 400; font-size: 12px; opacity: .75; }
.pm-shapes button { flex-direction: column; gap: 4px; padding: 10px 8px; }
.pm-sh { display: block; border: 2px solid currentColor; border-radius: 3px; }
.pm-sh-916 { width: 12px; height: 21px; } .pm-sh-11 { width: 18px; height: 18px; } .pm-sh-45 { width: 16px; height: 20px; }


.pm-ups { display: grid; gap: 12px; }
@media (min-width: 560px) { .pm-ups { grid-template-columns: 1fr 1fr; } }
.pm-drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px dashed #CFC8E8; border-radius: 14px; background: #FBFAFF; cursor: pointer; min-height: 84px; }
.pm-drop:hover, .pm-drop.pm-over { border-color: var(--violet); background: #F6F2FF; }
.pm-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.pm-drop:focus-within { outline: 3px solid var(--violet); outline-offset: 2px; }
.pm-drop-img { flex: none; width: 60px; height: 60px; border-radius: 10px; display: grid; place-items: center; overflow: hidden;
  background-color: #fff; background-image: linear-gradient(45deg, #EEEAF6 25%, transparent 25%, transparent 75%, #EEEAF6 75%), linear-gradient(45deg, #EEEAF6 25%, transparent 25%, transparent 75%, #EEEAF6 75%); background-size: 12px 12px; background-position: 0 0, 6px 6px; }
.pm-drop-img img { max-width: 52px; max-height: 52px; object-fit: contain; }
.pm-drop-img img:not([src]) { display: none; }
.pm-drop-t { display: grid; gap: 2px; min-width: 0; }
.pm-drop-t b { font: 700 15px/1.2 var(--display); }
.pm-drop-t small { color: var(--ink-3); font-size: 12.5px; line-height: 1.35; }
.pm-found { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pm-found li { font-size: 12.5px; padding: 4px 9px; border-radius: 99px; background: #F2F0F8; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.pm-found li.pm-ok { background: #E3F6EC; color: #1C6B43; }
.pm-found li.pm-warn { background: #FFF1E6; color: #9A3B12; border-radius: 10px; }
.pm-found i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.pm-small { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px; margin-top: 10px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font: 600 14.5px/1.1 var(--text); cursor: pointer; text-decoration: none; }
.pm-small.pm-cut { background: #FFE9DE; border-color: #FF8A5C; }
.pm-small[disabled] { opacity: .55; cursor: progress; }

.pm-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pm-col { display: grid; justify-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.pm-col input { width: 100%; height: 48px; font-size: 16px; padding: 0; border: 1.5px solid #E3E0EE; border-radius: 12px; background: none; cursor: pointer; }
.pm-col input::-webkit-color-swatch-wrapper { padding: 3px; } .pm-col input::-webkit-color-swatch { border: 0; border-radius: 9px; }
.pm-col input::-moz-color-swatch { border: 0; border-radius: 9px; }
.pm-type { margin-top: 14px; }


.pm-done { margin: 26px 0 0; }
.pm-done-card { max-width: 720px; margin: 0 auto; background: var(--card); border-radius: 24px; padding: 24px 20px; box-shadow: var(--glow); border: 1px solid var(--hair); text-align: center; }
.pm-done h2 { font: 800 clamp(26px, 6vw, 36px)/1.05 var(--display); letter-spacing: -.02em; margin: 0 0 8px; }
.pm-done p { color: var(--ink-2); }
.pm-done-file { font-size: 14px; }
.pm-done-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.pm-done .pm-go { max-width: 420px; margin: 16px auto 18px; }
.pm-mail { text-align: left; max-width: 480px; margin: 8px auto 0; border-top: 1px solid var(--hair); padding-top: 16px; }
.pm-mail .nyheit-lbl { display: block; font: 600 15px/1.3 var(--text); margin-bottom: 8px; }
.pm-mail .nyheit-rad { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-mail input[type="email"] { flex: 1 1 200px; min-height: 44px; font: 400 16px var(--text); border: 1.5px solid #E3E0EE; border-radius: 12px; padding: 10px 12px; }
.pm-mail .pm-small { margin-top: 0; }
.pm-mail .nyheit-felle { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pm-mail .nyheit-svar { font-size: 14px; margin: 8px 0 0; }


.pm-info { max-width: 860px; margin: 44px auto 0; }
.pm-info h2 { font: 800 clamp(24px, 5.4vw, 34px)/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 14px; }
.pm-info p { color: var(--ink-2); font-size: 17px; }
.pm-how { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: s; }
.pm-how li { counter-increment: s; background: #fff; border: 1px solid var(--hair); border-radius: 16px; padding: 14px 16px 14px 56px; position: relative; color: var(--ink-2); box-shadow: var(--glow-sm); }
.pm-how li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: #F1ECFF; color: #5B3FD6; display: grid; place-items: center; font: 700 14px/1 var(--text); }
.pm-how b { color: var(--ink); }
.pm-info-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .pm-info-grid { grid-template-columns: 1fr 1fr; } }
.pm-info-grid article { background: #fff; border: 1px solid var(--hair); border-radius: 16px; padding: 16px 18px; box-shadow: var(--glow-sm); }
.pm-info-grid h3 { font: 700 19px/1.2 var(--display); margin: 0 0 6px; }
.pm-info-grid p { font-size: 15.5px; margin: 0; }
.pm-faq details { background: #fff; border: 1px solid var(--hair); border-radius: 14px; padding: 4px 16px; margin: 0 0 10px; }
.pm-faq details[open] { padding-bottom: 12px; }
.pm-faq summary { cursor: pointer; font: 700 16.5px/1.3 var(--display); min-height: 44px; display: flex; align-items: center; padding: 4px 0; }
.pm-faq details p { font-size: 15.5px; margin: 8px 0 2px; }

.pm-end { display: grid; gap: 4px; justify-items: center; }
.pm-end .pm-small { border: 0; background: none; text-decoration: underline; }
@media (min-width: 900px) { .pm-end { display: none; } }
@media (prefers-reduced-motion: reduce) { .pm-tpl, .pm-go, .pm-progress span { transition: none; } }
.pm-faq summary { list-style: none; gap: 12px; }
.pm-faq summary::-webkit-details-marker { display: none; }
.pm-faq summary::after { content: '+'; margin-left: auto; font: 600 22px/1 var(--text); color: var(--violet); }
.pm-faq details[open] summary::after { content: '–'; }
.pm-page [hidden] { display: none !important; }

.pm-col { position: relative; }
.pm-sw { display: block; width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid #E3E0EE; box-shadow: inset 0 0 0 3px #fff; }
.pm-col input { position: absolute; left: 0; top: 0; width: 100%; height: 48px; opacity: 0; cursor: pointer; }
.pm-col:focus-within .pm-sw { outline: 3px solid var(--violet); outline-offset: 2px; }
