:root {
  --sun: #ffe14f;
  --sun-2: #fff3a6;
  --ink: #1f1a3d;
  --ink-2: #4a4568;
  --berry: #ff3d7f;
  --teal: #13a89e;
  --paper: #ffffff;
  --mist: #f3f1fb;
  --line: #1f1a3d;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 28px;
  --shadow: 0 4px 0 var(--ink);
  --display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --text: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 12px clamp(16px, 4vw, 48px); background: var(--sun); border-bottom: 3px solid var(--ink); }
.logo { font: 400 32px/1 var(--display); text-decoration: none; letter-spacing: .5px; color: var(--ink); text-shadow: 3px 3px 0 var(--berry); }
.logo.small { font-size: 22px; text-shadow: 2px 2px 0 var(--berry); }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { text-decoration: none; font-weight: 600; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.langsel { margin-left: auto; }
.langsel select { border: 2px solid var(--ink); border-radius: 999px; padding: 7px 12px; background: #fff; font-weight: 600; }
.cartbtn { display: inline-flex; align-items: center; gap: 8px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; padding: 7px 14px; font-weight: 800; cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.cartbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.badge { min-width: 26px; height: 26px; border-radius: 999px; background: var(--berry); color: #fff; display: inline-grid; place-items: center; font-size: 14px; padding: 0 6px; }
.cartbtn.bump .badge { animation: bump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5) rotate(-8deg); } 100% { transform: scale(1); } }

/* Studio */
.studio { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 48px) 56px; background: var(--sun); border-bottom: 3px solid var(--ink); }
.stage { position: relative; }
.stage-inner { position: sticky; top: 88px; }
.mock-wrap { position: relative; min-height: 280px; border-radius: var(--r-l); background: radial-gradient(circle at 50% 50%, var(--sun-2) 0 50%, transparent 51%); display: grid; place-items: center; padding: 2%; }
.mock-wrap.is-banner { background: radial-gradient(ellipse at 50% 50%, var(--sun-2) 0 46%, transparent 47%); padding: 8% 0; }
.mock-wrap .mock { width: 100%; height: auto; filter: drop-shadow(0 18px 22px rgba(31, 26, 61, .18)); }
.mock-wrap.loading::after { content: ''; position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; border: 6px solid var(--ink); border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.side-toggle { display: flex; justify-content: center; gap: 0; margin-top: 10px; }
.side-toggle button { border: 2px solid var(--ink); background: #fff; padding: 6px 18px; font-weight: 700; cursor: pointer; }
.side-toggle button:first-child { border-radius: 999px 0 0 999px; }
.side-toggle button:last-child { border-radius: 0 999px 999px 0; border-left: 0; }
.side-toggle button.on { background: var(--ink); color: #fff; }
.photo-hint { text-align: center; font-size: 15px; margin: 10px 0 0; }

.panel { max-width: 620px; }
.panel h1 { font: 400 clamp(40px, 5.4vw, 72px)/0.98 var(--display); margin: 0 0 14px; letter-spacing: .2px; }
.lead { margin: 0 0 22px; max-width: 54ch; color: var(--ink-2); font-size: 18px; }

.namebox { display: grid; grid-template-columns: 1fr 112px; gap: 12px; margin-bottom: 26px; }
.namefield, .agefield, .rolefield { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.namefield input, .agefield input { width: 100%; border: 3px solid var(--ink); border-radius: var(--r-m); background: #fff; padding: 12px 16px; font: 400 clamp(30px, 3.6vw, 42px)/1.1 var(--display); box-shadow: var(--shadow); }
.namefield input::placeholder, .agefield input::placeholder { color: #b9b4cf; }
.namefield input:focus, .agefield input:focus { outline: none; border-color: var(--berry); box-shadow: 0 4px 0 var(--berry); }
.rolefield input { border: 2px solid var(--ink); border-radius: var(--r-s); padding: 10px 12px; background: #fff; font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 22px; }
.step { counter-increment: st; background: #fff; border: 3px solid var(--ink); border-radius: var(--r-m); padding: 18px 18px 20px; box-shadow: var(--shadow); }
.step h2 { display: flex; align-items: center; gap: 10px; font: 400 22px/1.1 var(--display); margin: 0 0 14px; }
.step h2::before { content: counter(st); width: 30px; height: 30px; border-radius: 50%; background: var(--berry); color: #fff; display: grid; place-items: center; font-size: 17px; }
.mini-label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 8px; color: var(--ink-2); }
.step > div > .mini-label:first-child { margin-top: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: grid; gap: 0; text-align: left; border: 2px solid var(--ink); background: #fff; border-radius: 12px; padding: 8px 14px; cursor: pointer; font-weight: 700; line-height: 1.2; }
.chip small { font-weight: 600; color: var(--ink-2); font-size: 13px; }
.chip:hover { background: var(--mist); }
.chip.on { background: var(--ink); color: #fff; }
.chip.on small { color: #d9d5ef; }

.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.tpl { border: 2px solid transparent; border-radius: 14px; background: var(--mist); padding: 6px 6px 8px; cursor: pointer; display: grid; gap: 4px; }
.tpl:hover { border-color: #c9c4e3; }
.tpl.on { border-color: var(--ink); background: #fff; box-shadow: 0 3px 0 var(--ink); }
.tpl-img .mock { width: 100%; height: auto; }
.tpl-name { font-weight: 700; font-size: 14px; text-align: center; }
.row-pal { margin-top: 4px; }
.pals { display: flex; gap: 10px; flex-wrap: wrap; }
.pal { display: flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; padding: 0; cursor: pointer; background: #fff; }
.pal i { width: 20px; height: 28px; display: block; }
.pal.on { outline: 3px solid var(--berry); outline-offset: 2px; }
.rolefield { margin-top: 16px; }
.photobox { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 16px; }
.btn-ghost { border: 2px dashed var(--ink); border-radius: 12px; padding: 10px 16px; font-weight: 700; cursor: pointer; background: #fff; }
.btn-ghost:hover { background: var(--mist); }
.zoom { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.zoom input { accent-color: var(--berry); }
.linkbtn { border: 0; background: none; padding: 0; text-decoration: underline; cursor: pointer; font-size: 14px; color: var(--ink-2); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sw); cursor: pointer; }
.sw.on { outline: 3px solid var(--berry); outline-offset: 3px; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.sz { display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 2px solid #d6d2ea; border-radius: 12px; padding: 6px 6px 6px 12px; font-weight: 700; }
.sz.has { border-color: var(--ink); background: var(--sun-2); }
.qty { display: flex; align-items: center; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-weight: 800; cursor: pointer; line-height: 1; }
.qty output { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--berry); flex: none; }
.note { font-size: 14px; color: var(--ink-2); margin: 10px 0 0; }

.buy { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; background: var(--ink); color: #fff; border-radius: var(--r-m); padding: 12px 12px 12px 20px; }
.buy-price { display: grid; line-height: 1.15; }
.buy-price strong { font: 400 30px/1 var(--display); }
.buy-price span { font-size: 14px; color: #d9d5ef; }
.btn { border: 3px solid var(--ink); background: var(--berry); color: #fff; font-weight: 800; font-size: 17px; border-radius: 999px; padding: 12px 24px; cursor: pointer; box-shadow: 0 4px 0 #b3134f; }
.buy .btn { border-color: #fff; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #b3134f; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.wide { width: 100%; }
.msg { min-height: 1.4em; margin: 10px 0 0; font-weight: 700; }
.msg.bad { color: #c4003b; }

/* Abschnitte */
.how, .ship, .faq { padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px); }
.how h2, .ship h2, .faq h2 { font: 400 clamp(30px, 3.6vw, 44px)/1.05 var(--display); margin: 0 0 24px; }
.how-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.how-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.how-list p { margin: 6px 0 0; font-size: 18px; max-width: 34ch; }
.num { width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--ink); background: var(--sun); display: grid; place-items: center; font: 400 24px/1 var(--display); box-shadow: 0 3px 0 var(--ink); }
.ship { background: var(--mist); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: start; }
.ship-text p { max-width: 52ch; margin: 0 0 14px; font-size: 18px; }
.yt { font-weight: 600; }
.flags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.flags li { background: #fff; border: 2px solid #d6d2ea; border-radius: 999px; padding: 3px 10px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.faq { max-width: 860px; }
.faq details { border-bottom: 2px solid #d6d2ea; padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font: 400 26px/1 var(--display); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 10px 0 0; max-width: 68ch; color: var(--ink-2); }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 26px clamp(16px, 4vw, 48px); background: var(--ink); color: #fff; font-size: 15px; }
.foot .logo { color: #fff; }

/* Warenkorb */
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(480px, 100vw); border: 0; border-left: 3px solid var(--ink); padding: 0; display: none; flex-direction: column; background: #fff; }
.drawer[open] { display: flex; }
.drawer::backdrop { background: rgba(31, 26, 61, .45); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--sun); border-bottom: 3px solid var(--ink); }
.drawer-head h2 { font: 400 28px/1 var(--display); margin: 0; }
.x { border: 2px solid var(--ink); background: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 22px; cursor: pointer; line-height: 1; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 20px; }
.drawer-foot { border-top: 3px solid var(--ink); padding: 14px 20px 18px; background: #fff; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ci { display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; align-items: center; border: 2px solid #d6d2ea; border-radius: 14px; padding: 8px; }
.ci-img { background: var(--mist); border-radius: 10px; padding: 4px; }
.ci-txt { font-size: 14px; line-height: 1.4; }
.ci-p { display: grid; justify-items: end; gap: 4px; font-weight: 800; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--ink); vertical-align: -1px; }
.empty { color: var(--ink-2); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0 0 12px; }
.totals dt, .totals dd { margin: 0; }
.totals dd { text-align: right; font-variant-numeric: tabular-nums; }
.totals .tot { font-weight: 800; font-size: 19px; padding-top: 6px; border-top: 2px solid var(--ink); }
#orderForm { margin-top: 20px; display: grid; gap: 10px; }
#orderForm h3 { font: 400 22px/1 var(--display); margin: 4px 0; }
#orderForm label:not(.check) { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
#orderForm input:not([type=checkbox]), #orderForm select, #orderForm textarea { width: 100%; border: 2px solid var(--ink); border-radius: var(--r-s); padding: 10px 12px; background: #fff; font-size: 16px; }
#orderForm .two { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
#orderForm .check { margin-top: 4px; font-size: 14px; }
.hp { position: absolute; left: -5000px; }

@media (max-width: 980px) {
  .studio { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .panel { display: contents; }
  .panel > h1 { order: 1; }
  .lead { order: 2; }
  .namebox { order: 3; margin-bottom: 8px; }
  .stage { order: 4; margin-bottom: 18px; }
  .steps { order: 5; }
  .buy { order: 6; }
  #rabattHint { order: 7; }
  #addMsg { order: 8; }
  .stage-inner { position: static; }
  .mock-wrap { max-width: 440px; margin: 0 auto; width: 100%; }
  .ship { grid-template-columns: 1fr; }
  .how-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .top { gap: 10px; }
  .logo { font-size: 26px; }
  .langsel select { padding: 6px 8px; font-size: 14px; }
  .studio { padding-top: 16px; }
  .namebox { grid-template-columns: 1fr 86px; }
  .tpls { grid-template-columns: repeat(3, 1fr); }
  .buy { bottom: 8px; padding-left: 14px; }
  .buy .btn { padding: 11px 16px; font-size: 16px; }
  .ci { grid-template-columns: 64px 1fr; }
  .ci-p { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; }
}
