/* PACKVANE configurator studio: planner, bonus progress, sharing and local logo preview. */
[class*="pv-"][hidden] { display:none !important; }
body.pv-studio-ready #saving { display:none; }
.pv-copy-buffer { position:fixed; left:-9999px; top:0; opacity:0; pointer-events:none; }

/* Summary tools */
.pv-summary-tools { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.pv-pill { display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:7px 13px 7px 11px; border-radius:999px; border:1px solid rgba(228,207,170,.32); background:rgba(201,165,106,.08); color:#ecdcbc; font:inherit; font-size:13px; font-weight:800; cursor:pointer; transition:background .2s, border-color .2s, color .2s; }
.pv-pill svg { width:15px; height:15px; flex:none; }
.pv-pill:hover { background:rgba(201,165,106,.18); border-color:rgba(228,207,170,.6); color:#fff; }
.pv-pill:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.pv-pill-logo { display:grid; place-items:center; width:22px; height:22px; margin-left:-4px; border-radius:50%; background:#f4f0e7; overflow:hidden; }
.pv-pill-logo img { max-width:78%; max-height:78%; object-fit:contain; }
.pv-pill-logo:not([hidden]) + svg { display:none; }

/* Bonus and free-delivery progress */
.pv-progress { display:grid; gap:14px; margin-top:14px; padding-top:14px; border-top:1px solid rgba(255,255,255,.08); }
.pv-meter p { margin:6px 0 0; font-size:13px; line-height:1.4; color:#cfc6b8; }
.pv-meter-head { display:flex; justify-content:space-between; align-items:baseline; gap:10px; font-size:12px; letter-spacing:.12em; text-transform:uppercase; font-weight:900; color:var(--gold); }
.pv-meter-head b { font-size:13px; letter-spacing:.02em; text-transform:none; color:#b6e4ca; }
.pv-segments { display:grid; grid-template-columns:repeat(5,1fr); gap:4px; margin-top:8px; }
.pv-segments i { position:relative; display:block; height:6px; border-radius:99px; background:rgba(255,255,255,.1); transition:background .35s; }
.pv-segments i.on { background:linear-gradient(90deg,#b8925a,#e7d2ab); }
.pv-segments em { position:absolute; top:9px; left:0; right:0; text-align:center; font-style:normal; font-size:12px; font-weight:800; color:#958d81; }
.pv-segments i.on em { color:#e7d2ab; }
.pv-meter-bonus p { margin-top:22px; }
.pv-bar { height:6px; border-radius:99px; background:rgba(255,255,255,.1); overflow:hidden; }
.pv-bar i { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#8e7650,#c9a56a); transition:width .45s cubic-bezier(.2,.8,.2,1); }
.pv-meter-ship.done .pv-bar i { background:linear-gradient(90deg,#2e8a62,#7fd1a6); }
.pv-meter-ship.done p { color:#b6e4ca; }

/* Delivery planner */
.pv-planner { flex:none; padding:0 22px 18px; background:#151515; color:#eee7dc; }
.pv-planner-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 12px; padding-top:14px; border-top:1px solid rgba(255,255,255,.08); }
.pv-planner h4 { margin:0; font-size:12px; letter-spacing:.12em; text-transform:uppercase; font-weight:900; color:var(--gold); }
.pv-wish { display:flex; align-items:center; gap:8px; font-size:13px; color:#aaa299; }
.pv-wish input { min-height:36px; padding:5px 9px; border:1px solid #4a443c; border-radius:9px; background:#201e1b; color:#f4efe6; font:inherit; font-size:14px; color-scheme:dark; }
.pv-wish input:focus-visible { outline:2px solid var(--gold); outline-offset:1px; }
.pv-plan { margin-top:10px; }
.pv-plan-title { margin:0; font-size:14px; font-weight:800; color:#f4efe6; }
.pv-plan-title::before { content:""; display:inline-block; width:7px; height:7px; margin-right:8px; border-radius:50%; background:currentColor; vertical-align:middle; transform:translateY(-1px); }
.pv-plan-sub { margin:3px 0 0; font-size:13px; line-height:1.45; color:#aaa299; }
.pv-plan-sub:empty { display:none; }
.pv-planner[data-status="ok"] .pv-plan-title { color:#b6e4ca; }
.pv-planner[data-status="tight"] .pv-plan-title { color:#f0cf8a; }
.pv-planner[data-status="late"] .pv-plan-title, .pv-planner[data-status="past"] .pv-plan-title { color:#f2a99b; }
.pv-track { position:relative; display:grid; grid-template-columns:repeat(4,1fr); margin:12px 0 0; padding:0; list-style:none; }
.pv-track::before { content:""; position:absolute; top:5px; left:12.5%; right:12.5%; height:2px; background:linear-gradient(90deg,var(--gold),rgba(201,165,106,.35)); }
.pv-track li { position:relative; padding-top:16px; text-align:center; font-size:12px; line-height:1.35; color:#8f887e; }
.pv-track li::before { content:""; position:absolute; top:0; left:50%; width:12px; height:12px; margin-left:-6px; box-sizing:border-box; border:2px solid var(--gold); border-radius:50%; background:#151515; }
.pv-track li:first-child::before { background:var(--gold); }
.pv-track li:last-child::before { border-color:#e7d2ab; background:#e7d2ab; box-shadow:0 0 0 4px rgba(231,210,171,.15); }
.pv-track span { display:block; text-transform:uppercase; letter-spacing:.08em; font-weight:800; }
.pv-track b { display:block; margin-top:2px; font-size:13px; font-weight:800; color:#eee7dc; }
.pv-plan-note { margin:10px 0 0; font-size:13px; line-height:1.45; color:#958d81; }
.pv-date-hint { margin:7px 0 0; font-size:13px; line-height:1.45; color:var(--muted); }
.pv-date-hint:empty { display:none; }
.pv-date-hint[data-status="ok"] { color:#1f6b4c; }
.pv-date-hint[data-status="tight"] { color:#8a5a00; }
.pv-date-hint[data-status="late"], .pv-date-hint[data-status="past"] { color:#a33a2c; }

/* Teaser above the product grid */
.pv-teaser { position:relative; display:grid; grid-template-columns:minmax(140px,200px) minmax(0,1fr); grid-template-areas:"art copy" "art cta"; align-items:center; gap:12px 22px; margin:0 0 20px; padding:14px 22px 14px 14px; border-radius:24px; overflow:hidden; background:radial-gradient(120% 140% at 0% 0%,#2a2520 0%,#141210 55%,#0e0d0c 100%); color:#f4efe6; box-shadow:0 18px 40px -24px rgba(16,16,16,.55); }
.pv-teaser::after { content:""; position:absolute; inset:0; border:1px solid rgba(228,207,170,.18); border-radius:inherit; pointer-events:none; }
.pv-teaser-art { grid-area:art; aspect-ratio:4/3; border-radius:16px; overflow:hidden; background:#151311; }
.pv-teaser-art svg { display:block; width:100%; height:100%; }
.pv-teaser-copy { grid-area:copy; align-self:end; }
.pv-teaser-copy h3 { margin:7px 0 5px; font-family:var(--pv-font-serif,'Instrument Serif',Georgia,serif); font-size:clamp(24px,2.3vw,31px); font-weight:400; line-height:1.05; letter-spacing:-.01em; color:#fff; }
.pv-teaser-copy p { max-width:54ch; margin:0; font-size:14px; line-height:1.5; color:#c9c0b3; }
.pv-teaser-cta { grid-area:cta; justify-self:start; align-self:start; }
.pv-teaser-cta svg { width:16px; height:16px; }
.pv-badge { display:inline-flex; align-items:center; padding:3px 9px; border-radius:999px; background:rgba(201,165,106,.16); color:#e7d2ab; font-size:12px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }

/* Link inside a configured product card */
.pv-card-studio { display:inline-flex; align-items:center; gap:8px; min-height:40px; margin:0 0 16px; padding:8px 15px 8px 12px; border:1px solid #e2d5bf; border-radius:999px; background:linear-gradient(180deg,#fffaf0,#f6ecda); color:#5d4520; font:inherit; font-size:14px; font-weight:800; cursor:pointer; transition:border-color .2s, box-shadow .2s, transform .2s; }
.pv-card-studio svg { width:15px; height:15px; color:#a8802f; }
.pv-card-studio:hover { border-color:var(--gold); box-shadow:0 6px 16px -10px rgba(122,88,32,.6); transform:translateY(-1px); }
.pv-card-studio:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }

/* Logo studio dialog */
.pv-studio { width:min(1120px,calc(100vw - 48px)); max-width:none; height:min(720px,calc(100dvh - 48px)); max-height:none; padding:0; border:0; border-radius:28px; overflow:hidden; background:#0f0e0d; color:#f4efe6; color-scheme:dark; box-shadow:0 40px 120px -30px rgba(0,0,0,.8); }
.pv-studio::backdrop { background:rgba(12,11,10,.74); backdrop-filter:blur(6px); }
.pv-studio[open] { animation:pv-studio-in .32s cubic-bezier(.2,.8,.2,1); }
@keyframes pv-studio-in { from { opacity:0; transform:translateY(14px) scale(.985); } to { opacity:1; transform:none; } }
html:has(.pv-studio[open]) { overflow:hidden; }
.pv-studio-shell { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(340px,1fr); height:100%; }
.pv-studio-stage { position:relative; display:flex; min-height:0; background:#0c0b0a; }
.pv-studio-canvas { display:flex; flex:1; min-width:0; min-height:0; }
.pv-studio-canvas svg { display:block; width:100%; height:100%; }
.pv-studio-disclaimer { position:absolute; left:20px; right:20px; bottom:14px; margin:0; text-align:center; font-size:12px; line-height:1.4; color:#8f887e; }
.pv-drop-overlay { position:absolute; inset:16px; display:grid; place-content:center; justify-items:center; gap:10px; border:2px dashed rgba(228,207,170,.7); border-radius:20px; background:rgba(15,14,13,.78); color:#e7d2ab; font-weight:800; opacity:0; pointer-events:none; transition:opacity .2s; }
.pv-drop-overlay svg { width:40px; height:40px; }
.pv-dragging .pv-drop-overlay { opacity:1; }
.pv-studio-panel { display:flex; flex-direction:column; gap:16px; min-height:0; padding:26px 26px 0; overflow-y:auto; overscroll-behavior:contain; background:#151413; border-left:1px solid rgba(255,255,255,.06); }
.pv-studio-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.pv-studio-head small { font-size:12px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; color:var(--gold); }
.pv-studio-head h2 { margin:6px 0 0; font-family:var(--pv-font-serif,'Instrument Serif',Georgia,serif); font-size:34px; font-weight:400; line-height:1.02; letter-spacing:-.01em; color:#fff; }
.pv-studio-head h2 em { display:block; font-style:italic; color:#e7d2ab; }
.pv-studio-close { display:grid; place-items:center; flex:none; width:44px; height:44px; border:1px solid rgba(255,255,255,.16); border-radius:50%; background:rgba(15,14,13,.6); color:#f4efe6; cursor:pointer; }
.pv-studio-close svg { width:18px; height:18px; }
.pv-studio-close:hover { background:rgba(255,255,255,.1); }
.pv-studio-close:focus-visible, .pv-upload-btn:focus-visible, .pv-secondary:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.pv-privacy { display:flex; align-items:flex-start; gap:10px; margin:0; padding:10px 12px; border:1px solid rgba(107,198,151,.22); border-radius:12px; background:rgba(31,107,76,.18); color:#b6e4ca; font-size:13px; line-height:1.45; }
.pv-privacy svg { flex:none; width:16px; height:16px; margin-top:1px; }
.pv-upload { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:14px; border:1.5px dashed rgba(228,207,170,.4); border-radius:16px; background:rgba(201,165,106,.05); transition:opacity .2s; }
.pv-upload > svg { width:26px; height:26px; color:var(--gold); }
.pv-upload-copy b { display:block; font-size:14px; color:#fff; overflow-wrap:anywhere; }
.pv-upload-copy span { display:block; margin-top:2px; font-size:13px; color:#9d968b; }
.pv-upload-btn { min-height:40px; padding:8px 15px; border:0; border-radius:999px; background:#f4efe6; color:#111; font:inherit; font-size:14px; font-weight:800; white-space:nowrap; cursor:pointer; }
.pv-upload-btn:hover { background:#fff; }
.pv-busy .pv-upload { opacity:.55; pointer-events:none; }
.pv-studio-status { margin:-6px 0 0; font-size:13px; line-height:1.45; color:#aaa299; }
.pv-studio-status:empty { display:none; }
.pv-studio-status[data-kind="error"] { color:#f2a99b; }
.pv-studio fieldset { min-width:0; margin:0; padding:0; border:0; }
.pv-studio legend { margin-bottom:8px; padding:0; font-size:12px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; color:#8f887e; }
.pv-studio legend span { letter-spacing:.02em; text-transform:none; font-weight:800; color:#e7d2ab; }
.pv-chips { display:flex; flex-wrap:wrap; gap:6px; }
.pv-chip, .pv-swatch { position:relative; cursor:pointer; }
.pv-chip input, .pv-swatch input { position:absolute; width:1px; height:1px; margin:0; opacity:0; }
.pv-chip span { display:inline-flex; align-items:center; min-height:38px; padding:7px 13px; border:1px solid rgba(255,255,255,.14); border-radius:999px; color:#d9d1c4; font-size:14px; font-weight:700; transition:background .2s, border-color .2s, color .2s; }
.pv-chip:hover span { border-color:rgba(228,207,170,.5); }
.pv-chip input:checked + span { border-color:#e7d2ab; background:#e7d2ab; color:#141210; }
.pv-chip input:focus-visible + span, .pv-swatch input:focus-visible + span { outline:2px solid var(--gold); outline-offset:3px; }
.pv-swatches { display:flex; flex-wrap:wrap; gap:10px; }
.pv-swatch span { display:block; width:36px; height:36px; border-radius:50%; background:var(--swatch,#222); box-shadow:inset 0 0 0 1px rgba(255,255,255,.2); transition:transform .2s; }
.pv-swatch:hover span { transform:scale(1.07); }
.pv-swatch input:checked + span { box-shadow:inset 0 0 0 1px rgba(255,255,255,.2), 0 0 0 2px #151413, 0 0 0 4px #e7d2ab; }
.pv-brand { display:grid; gap:8px; margin-top:12px; }
.pv-brand > span { font-size:13px; color:#9d968b; }
.pv-range { display:grid; gap:8px; }
.pv-range > span { display:flex; justify-content:space-between; font-size:12px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; color:#8f887e; }
.pv-range output { letter-spacing:.02em; color:#e7d2ab; }
.pv-range input { width:100%; min-height:28px; accent-color:var(--gold); }
.pv-studio-actions { position:sticky; bottom:0; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; margin:auto -26px 0; padding:18px 26px 22px; background:#151413; box-shadow:0 -16px 22px -16px rgba(0,0,0,.95); }
.pv-studio-actions .gold-btn { min-height:48px; }
.pv-secondary { min-height:48px; padding:10px 18px; border:1px solid rgba(255,255,255,.2); border-radius:999px; background:transparent; color:#f4efe6; font:inherit; font-weight:800; cursor:pointer; }
.pv-secondary:hover { background:rgba(255,255,255,.06); }
.pv-secondary:disabled { opacity:.5; cursor:progress; }

/* Toast */
.pv-toast { position:fixed; left:50%; bottom:calc(24px + env(safe-area-inset-bottom)); z-index:400; max-width:min(92vw,440px); padding:12px 18px; border:1px solid rgba(228,207,170,.3); border-radius:14px; background:#151413; color:#f4efe6; box-shadow:0 18px 50px -12px rgba(0,0,0,.6); font-size:14px; font-weight:700; line-height:1.4; opacity:0; transform:translate(-50%,16px); pointer-events:none; transition:opacity .25s, transform .25s; }
.pv-toast.show { opacity:1; transform:translate(-50%,0); }

/* Review step and print/PDF brand kit */
.pv-review { display:grid; gap:12px; margin-top:16px; }
.pv-review-block { padding:14px 16px; border:1px solid var(--line,#ded8ce); border-radius:15px; background:#fff; }
.pv-review-block h4 { margin:0 0 6px; font-size:10px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; color:#7a5820; }
.pv-review-block p { margin:0; font-size:13px; line-height:1.5; color:var(--ink,#101010); }
.pv-review-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:10px; margin-top:6px; }
.pv-review figure { margin:0; }
.pv-review figure svg { display:block; width:100%; height:auto; aspect-ratio:4/3; border-radius:12px; }
.pv-review figcaption { margin-top:6px; font-size:11.5px; color:var(--muted); }
.pv-review .pv-review-note { margin-top:8px; font-size:11px; color:var(--muted); }
.pv-review-link { margin:0; font-size:13px; }
.pv-review-link a { font-weight:800; color:#7a5820; text-underline-offset:3px; }

@media (max-width:1100px) {
  .pv-toast { bottom:calc(88px + env(safe-area-inset-bottom)); }
}
@media (max-width:820px) {
  .pv-studio { width:100%; height:100%; max-height:none; margin:0; border-radius:0; }
  .pv-studio-shell { grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); }
  .pv-studio-stage { z-index:1; aspect-ratio:4/3; max-height:42dvh; box-shadow:0 16px 22px -14px rgba(0,0,0,.95); }
  .pv-studio-disclaimer { bottom:8px; font-size:12px; }
  .pv-studio-panel { gap:14px; padding:18px 16px 0; border-left:0; }
  .pv-studio-head h2 { font-size:27px; }
  .pv-studio-head h2 em { display:inline; }
  .pv-studio-close { position:absolute; top:max(12px,env(safe-area-inset-top)); right:max(12px,env(safe-area-inset-right)); z-index:2; }
  .pv-studio-actions { margin:auto -16px 0; padding:14px 16px calc(14px + env(safe-area-inset-bottom)); }
}
@media (max-width:600px) {
  .pv-teaser { grid-template-columns:96px minmax(0,1fr); grid-template-areas:"art copy" "cta cta"; gap:12px 14px; padding:12px; border-radius:20px; }
  .pv-teaser-art { border-radius:12px; }
  .pv-teaser-copy { align-self:center; }
  .pv-teaser-copy h3 { margin:5px 0 0; font-size:23px; }
  .pv-teaser-copy p { display:none; }
  .pv-teaser-cta { justify-self:stretch; }
}
@media (max-width:520px) {
  .pv-planner { padding-inline:16px; }
  .pv-upload { grid-template-columns:auto minmax(0,1fr); }
  .pv-upload-btn { grid-column:1 / -1; }
  .pv-studio-actions { grid-template-columns:1fr; }
}
/* Lesbarkeit: Prüfübersicht nur am Bildschirm größer, das Angebots-PDF bleibt unverändert. */
@media screen {
  .pv-review-block h4 { font-size:12px; letter-spacing:.12em; }
  .pv-review-block p, .pv-review-link { font-size:14px; }
  .pv-review figcaption, .pv-review .pv-review-note { font-size:13px; }
}
@media screen and (max-width:820px) {
  /* 16 px verhindert den automatischen Zoom von iOS beim Antippen */
  .pv-wish input { font-size:16px; }
}
@media (prefers-reduced-motion:reduce) {
  .pv-studio[open] { animation:none; }
  .pv-bar i, .pv-segments i, .pv-toast, .pv-card-studio, .pv-swatch span { transition:none; }
}
@media print {
  .pv-summary-tools, .pv-progress, .pv-planner, .pv-teaser, .pv-toast, .pv-card-studio, .pv-studio, .pv-date-hint, .pv-sheen { display:none !important; }
  .pv-review { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .pv-review-block { break-inside:avoid; border-color:#ccc; }
  .pv-review-grid { grid-template-columns:repeat(3,1fr); }
  .pv-review figure { break-inside:avoid; }
  /* PDF export rasterises SVG noise into large incompressible bitmaps. */
  .pv-review rect[filter*="grain"] { display:none; }
}
