/* ============================================================================
   Runde 6 (05.11.2026): Erfolg/Laden (feier.js), Lebenslauf-Studio (cv-studio.js),
   Fertig-Seite, Foto, «Fast fertig», Liste (cv-fertig.js). Stellio-Farben bleiben.
   ============================================================================ */

/* ── Erfolg und Laden ──────────────────────────────────────────────────── */
.sf-done { position: fixed; left: 50%; bottom: 26px; z-index: 2000; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: var(--card-bg, #FFFCF7); color: var(--text); box-shadow: 0 0 0 1px var(--line-soft, #DED2C5), 0 18px 40px hsl(30deg 22% 28% / .22); transform: translate(-50%, 30px); opacity: 0; transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), opacity .25s; max-width: calc(100vw - 32px); }
.sf-done.is-in { transform: translate(-50%, 0); opacity: 1; }
.sf-done-ico { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--green, #16A34A); color: #fff; animation: sf-pop .45s cubic-bezier(.2, .9, .3, 1.4); }
.sf-done-txt { display: flex; flex-direction: column; gap: 1px; }
.sf-done-txt b { font-size: 15px; }
.sf-done-txt small { font-size: 13px; color: var(--text-muted); }
@keyframes sf-pop { from { transform: scale(.3); } to { transform: scale(1); } }
.sf-burst { position: fixed; left: 0; right: 0; bottom: 0; height: 0; z-index: 1999; pointer-events: none; }
.sf-burst i { position: absolute; bottom: 30px; width: 4px; height: 14px; border-radius: 3px; opacity: 0; animation: sf-fly 1.25s cubic-bezier(.15, .7, .3, 1) forwards; }
.sf-burst i.is-dot { width: 7px; height: 7px; border-radius: 50%; }
@keyframes sf-fly { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); } }
.sf-busy { position: fixed; inset: 0; z-index: 1990; display: grid; place-items: center; background: rgb(245 239 230 / .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s; }
.sf-busy.is-in { opacity: 1; }
.sf-busy-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 30px; border-radius: 22px; background: var(--card-bg, #FFFCF7); box-shadow: 0 0 0 1px var(--line-soft, #DED2C5), 0 20px 50px hsl(30deg 22% 28% / .2); min-width: 240px; text-align: center; }
.sf-busy-txt { font-size: 15.5px; color: var(--text); }
.sf-ring { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--tint-blue, #EAF1FE); border-top-color: var(--gold, #2563EB); animation: sf-spin .8s linear infinite; }
.sf-bar { width: 160px; height: 5px; border-radius: 5px; background: var(--tone-inset, #ECE6DC); overflow: hidden; }
.sf-bar i { display: block; width: 40%; height: 100%; border-radius: 5px; background: var(--gold, #2563EB); animation: sf-slide 1.1s ease-in-out infinite; }
@keyframes sf-spin { to { transform: rotate(360deg); } }
@keyframes sf-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .sf-ring, .sf-bar i, .sf-done-ico { animation: none; } }

/* ── Studio (ganze Seite) ──────────────────────────────────────────────── */
body.cvr-open { overflow: hidden; }
.cvr { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; background: var(--bg-main, #F5EFE6); color: var(--text); }
.cvr .hidden { display: none !important; }
.cvr-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--card-bg, #FFFCF7); border-bottom: 1px solid var(--line-soft, #DED2C5); min-height: 60px; box-sizing: border-box; flex-wrap: wrap; }
.cvr-back { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-soft); background: var(--card-bg); color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: 0 1px 2px hsl(30deg 22% 28% / .12); }
.cvr-back:hover { background: var(--tone-hover, #E5D5C5); }
.cvr-title { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; }
.cvr-title b { font-size: 16px; }
.cvr-saved { font-size: 12.5px; color: var(--green, #16A34A); }
.cvr-saved.is-busy { color: var(--text-muted); }
.cvr-top-mid { display: flex; align-items: center; gap: 6px; }
.cvr-top-right { display: flex; align-items: center; gap: 8px; }
.cvr-dl { display: inline-flex; align-items: center; gap: 6px; }
.cvr-ibtn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; font-size: 18px; }
.cvr-ibtn:hover:not(:disabled) { background: var(--tone-inset, #ECE6DC); }
.cvr-ibtn:disabled { opacity: .35; cursor: default; }
.cvr-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--tone-inset, #ECE6DC); margin-left: 6px; }
.cvr-seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.cvr-seg button.is-on { background: var(--card-bg); color: var(--text); box-shadow: 0 1px 3px hsl(30deg 22% 28% / .18); }
.cvr-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 78px 290px minmax(0, 1fr) 320px; }
.cvr-rail { display: flex; flex-direction: column; gap: 4px; padding: 10px 6px; background: var(--card-bg); border-right: 1px solid var(--line-soft); overflow-y: auto; }
.cvr-rail button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px; border: 0; border-radius: 12px; background: transparent; color: var(--text-muted); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.cvr-rail button:hover { background: var(--tone-inset); color: var(--text); }
.cvr-rail button.is-on { background: var(--tint-blue, #EAF1FE); color: var(--gold); }
.cvr-rail-help { margin-top: auto; }
.cvr-panel { overflow-y: auto; padding: 16px; background: var(--tone-card, #FBF8F2); border-right: 1px solid var(--line-soft); }
.cvr-panel-head { position: relative; margin-bottom: 12px; }
.cvr-panel-head h3 { margin: 0; font-size: 18px; }
.cvr-panel-head p { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.cvr-panel-x { position: absolute; right: -6px; top: -6px; display: none; }
.cvr-grp { margin: 16px 0; }
.cvr-grp h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.cvr-note { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.cvr-tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cvr-tpl { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 2px solid transparent; border-radius: 14px; background: var(--card-bg); cursor: pointer; font: inherit; box-shadow: 0 0 0 1px var(--line-soft); }
.cvr-tpl:hover { box-shadow: 0 0 0 1px var(--btn-line, #D8C3A5), 0 4px 12px hsl(30deg 22% 28% / .12); }
.cvr-tpl.is-on { border-color: var(--gold); }
.cvr-tpl-th { display: block; position: relative; width: 100%; aspect-ratio: 210 / 297; overflow: hidden; border-radius: 8px; background: #fff; }
.cvr-tpl-sc { position: absolute; left: 0; top: 0; width: 794px; transform-origin: top left; pointer-events: none; }
.cvr-tpl-n { font-size: 12.5px; font-weight: 600; color: var(--text); text-align: center; }
.cvr-tpl .cvd-lock { position: absolute; top: 10px; right: 10px; }
.cvr-sws { display: flex; flex-wrap: wrap; gap: 8px; }
.cvr-sw { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-soft); cursor: pointer; padding: 0; position: relative; }
.cvr-sw.is-on { box-shadow: 0 0 0 2px var(--text); }
.cvr-sw-pick { overflow: hidden; background: conic-gradient(#ef4444, #f59e0b, #22c55e, #06b6d4, #3b82f6, #a855f7, #ef4444); }
.cvr-sw-pick input { position: absolute; inset: -6px; opacity: 0; cursor: pointer; width: 50px; height: 50px; }
.cvr-fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cvr-font { padding: 9px 8px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--card-bg); font-size: 15px; cursor: pointer; color: var(--text); }
.cvr-font.is-on { border-color: var(--gold); background: var(--tint-blue); }
.cvr-sl { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; font-size: 13.5px; }
.cvr-sl span { display: flex; justify-content: space-between; color: var(--text); font-weight: 600; }
.cvr-sl b { color: var(--text-muted); font-weight: 600; }
.cvr-sl input { width: 100%; accent-color: var(--gold); }
.cvr-photo-box { display: grid; place-items: center; padding: 14px; border-radius: 18px; background: var(--card-bg); box-shadow: 0 0 0 1px var(--line-soft); margin-bottom: 12px; }
.cvr-photo-prev { width: 120px; height: 120px; overflow: hidden; border-radius: 50%; }
.cvr-photo-prev[data-shape="soft"] { border-radius: 18%; }
.cvr-photo-prev[data-shape="square"] { border-radius: 0; }
.cvr-photo-prev img { width: 100%; height: 100%; object-fit: cover; }
.cvr-photo-empty { width: 120px; height: 120px; border-radius: 50%; border: 2px dashed var(--card-border); display: grid; place-items: center; }
.cvr-photo-empty i { width: 46px; height: 46px; border-radius: 50%; background: var(--btn); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 26px; }
.cvr-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cvr-shapes, .cvf-shapes { display: flex; gap: 6px; flex-wrap: wrap; }
.cvr-shape, .cvf-shapes button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 11px; border: 1px solid var(--line-soft); background: var(--card-bg); font: inherit; font-size: 13px; cursor: pointer; color: var(--text); }
.cvr-shape.is-on, .cvf-shapes button.is-on { border-color: var(--gold); background: var(--tint-blue); }
.cvr-shape i, .cvf-shapes i { width: 16px; height: 16px; background: var(--btn); border-radius: 50%; display: inline-block; }
.cvr-shape i[data-shape="soft"], .cvf-shapes i[data-shape="soft"] { border-radius: 4px; }
.cvr-shape i[data-shape="square"], .cvf-shapes i[data-shape="square"] { border-radius: 0; }
.cvr-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cvr-parts li { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--card-bg); box-shadow: 0 0 0 1px var(--line-soft); font-size: 14px; }
.cvr-parts li span { flex: 1; font-weight: 600; }
.cvr-parts li.is-off span { color: var(--text-muted); text-decoration: line-through; }
.cvr-stage { position: relative; overflow: auto; padding: 28px 32px 60px; }
.cvr-zoomer { position: relative; margin: 0 auto; }
.cvr-paper { width: 794px; transform-origin: top left; box-shadow: 0 2px 6px hsl(30deg 22% 28% / .12), 0 24px 60px hsl(30deg 22% 28% / .18); background: #fff; }
.cvr-paper [data-u] { cursor: grab; transition: box-shadow .12s; }
.cvr-paper [data-u]:not([data-u="photo"]):hover { box-shadow: 0 0 0 1.5px rgb(37 99 235 / .35); border-radius: 3px; }
.cvr-paper .cvr-is-sel { touch-action: none; }
.cvr-paper .cvr-dragging { cursor: grabbing; opacity: .85; z-index: 5; }
.cvr-paper .cvr-editing { cursor: text; outline: 2px solid var(--gold) !important; outline-offset: 2px; background: rgb(37 99 235 / .05); }
.cvr-selbox { position: absolute; pointer-events: none; border: 2px solid var(--gold); border-radius: 6px; box-shadow: 0 0 0 4px rgb(37 99 235 / .12); }
.cvr-selbox::before { content: attr(data-label); position: absolute; left: -2px; bottom: 100%; margin-bottom: 4px; padding: 2px 8px; border-radius: 6px; background: var(--gold); color: #fff; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.cvr-drop { position: absolute; height: 4px; border-radius: 4px; background: var(--gold); box-shadow: 0 0 0 4px rgb(37 99 235 / .18); pointer-events: none; }
.cvr-float { position: absolute; z-index: 10; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 14px; background: var(--card-bg); box-shadow: 0 0 0 1px var(--line-soft), 0 10px 26px hsl(30deg 22% 28% / .2); white-space: nowrap; }
.cvr-float button { border: 0; background: transparent; padding: 7px 10px; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; }
.cvr-float button:hover { background: var(--tone-inset); }
.cvr-float-ask { color: var(--gold) !important; }
.cvr-float-col { position: relative; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; }
.cvr-float-col span { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-soft); }
.cvr-float-col input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.cvr-tip { text-align: center; font-size: 13px; color: var(--text-muted); margin: 18px 0 0; }
.cvr-help { display: flex; flex-direction: column; min-height: 0; background: var(--card-bg); border-left: 1px solid var(--line-soft); }
.cvr-help.is-closed { display: none; }
.cvr-help-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; }
.cvr-help-head > div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.cvr-help-head small { color: var(--text-muted); font-size: 12.5px; }
.cvr-help-ava, .cvw-chat-ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #60A5FA, #2563EB); color: #fff; font-weight: 800; flex: none; }
.cvr-help-sel { padding: 0 14px 8px; display: flex; flex-direction: column; gap: 4px; }
.cvr-pill { display: inline-block; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--tint-blue); color: var(--gold); font-size: 12.5px; }
.cvr-pill.is-empty { background: var(--tone-inset); color: var(--text-muted); }
.cvr-sel-txt { font-size: 12.5px; color: var(--text-muted); }
.cvr-log { flex: 1; overflow-y: auto; padding: 6px 14px; display: flex; flex-direction: column; gap: 8px; }
.cvr-msg { max-width: 92%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.cvr-msg.is-s { background: var(--tone-inset); align-self: flex-start; border-bottom-left-radius: 4px; }
.cvr-msg.is-u { background: var(--gold); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.cvr-undo-chip { display: block; margin-top: 6px; border: 0; background: var(--card-bg); border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--text); }
.cvr-msg.is-wait, .cvw-wait { display: inline-flex; gap: 4px; }
.cvr-msg.is-wait i, .cvw-wait i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: cvr-dot 1s infinite ease-in-out; }
.cvr-msg.is-wait i:nth-child(2), .cvw-wait i:nth-child(2) { animation-delay: .15s; }
.cvr-msg.is-wait i:nth-child(3), .cvw-wait i:nth-child(3) { animation-delay: .3s; }
@keyframes cvr-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.cvr-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; }
.cvr-chips button { border: 1px solid var(--btn-line, #D8C3A5); background: var(--card-bg); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--btn-text, #6B5440); }
.cvr-chips button:hover { background: var(--btn-tint, #F4E9DC); }
.cvr-ask { display: flex; gap: 6px; padding: 10px 14px 14px; border-top: 1px solid var(--line-soft); }
.cvr-ask input { flex: 1; min-width: 0; }
@media (max-width: 1280px) { .cvr-body { grid-template-columns: 72px 260px minmax(0, 1fr) 290px; } }
@media (max-width: 1100px) {
  .cvr-body { grid-template-columns: 72px 250px minmax(0, 1fr); }
  .cvr-help { position: fixed; right: 12px; bottom: 12px; top: 80px; width: min(360px, calc(100vw - 24px)); z-index: 20; border-radius: 20px; box-shadow: 0 20px 50px hsl(30deg 22% 28% / .3); border: 0; }
}
@media (max-width: 900px) {
  .cvr-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .cvr-rail { flex-direction: row; order: 2; border-right: 0; border-top: 1px solid var(--line-soft); overflow-x: auto; padding: 6px; }
  .cvr-rail button { flex: 1 0 60px; }
  .cvr-rail-help { margin-top: 0; }
  .cvr-panel { position: fixed; left: 0; right: 0; bottom: 70px; max-height: 55vh; z-index: 15; border-radius: 22px 22px 0 0; box-shadow: 0 -16px 40px hsl(30deg 22% 28% / .2); transform: translateY(110%); transition: transform .25s; border-right: 0; }
  .cvr-panel.is-open { transform: none; }
  .cvr-panel-x { display: grid; }
  .cvr-stage { padding: 14px 10px 40px; }
  .cvr-seg button { padding: 6px 8px; font-size: 12px; }
  .cvr-dl span { display: none; }
  .cvr-title b { font-size: 14.5px; }
}
@media (max-width: 560px) { .cvr-top-mid { order: 3; width: 100%; justify-content: center; } }

/* ── Seiten und Fenster «Lebenslauf fertig» ────────────────────────────── */
.cvf-page { animation: cvf-in .25s ease-out; }
@keyframes cvf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cvf-head { margin: 4px 0 20px; }
.cvf-head h2 { margin: 8px 0 6px; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.01em; color: var(--text); }
.cvf-head p { margin: 0; font-size: 16px; color: var(--text-muted); max-width: 640px; line-height: 1.5; }
.cvf-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--tint-blue); color: var(--gold); font-size: 13px; font-weight: 700; }
.cvf-badge.is-done, .cvf-check .cvf-badge { background: var(--tint-green, #E7F6EC); color: var(--accent-green-text, #166534); }
.cvf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.cvf-paper { position: relative; width: 100%; max-width: 680px; margin: 0 auto; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 2px 6px hsl(30deg 22% 28% / .1), 0 24px 60px hsl(30deg 22% 28% / .16); aspect-ratio: 210 / 297; }
.cvf-paper[data-grow] { aspect-ratio: auto; }
.cvf-scale { position: absolute; left: 0; top: 0; width: 794px; transform-origin: top left; pointer-events: none; }
.cvf-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
.cvf-big-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border: 0; border-radius: 20px; background: var(--btn, #8A7765); color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: var(--btn-glow-strong); transition: transform .12s, background .12s; }
.cvf-big-btn:hover { background: var(--btn-hover, #7B6857); transform: translateY(-1px); }
.cvf-big-btn > svg { flex: none; width: 26px; height: 26px; }
.cvf-big-btn span { display: flex; flex-direction: column; gap: 2px; }
.cvf-big-btn b { font-size: 17px; }
.cvf-big-btn small { font-size: 13px; opacity: .85; }
.cvf-big-btn.is-ghost { background: var(--card-bg); color: var(--text); box-shadow: 0 0 0 1px var(--line-soft), 0 2px 6px hsl(30deg 22% 28% / .08); }
.cvf-big-btn.is-ghost:hover { background: var(--tone-hover, #E5D5C5); }
.cvf-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cvf-tiles.is-col { grid-template-columns: 1fr 1fr; }
.cvf-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; border: 0; border-radius: 18px; background: var(--card-bg); box-shadow: 0 0 0 1px var(--line-soft); font: inherit; text-align: left; cursor: pointer; color: var(--text); transition: transform .12s, box-shadow .12s; }
.cvf-tile::after { content: ""; position: absolute; right: -18px; bottom: -22px; width: 64px; height: 64px; border-radius: 18px; background: var(--tone-inset, #ECE6DC); transform: rotate(14deg); opacity: .7; }
.cvf-tile:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--btn-line), 0 8px 18px hsl(30deg 22% 28% / .12); }
.cvf-tile > * { position: relative; z-index: 1; }
.cvf-tile-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint-blue); color: var(--gold); margin-bottom: 6px; }
.cvf-tile b { font-size: 14.5px; }
.cvf-tile small { font-size: 12.5px; color: var(--text-muted); line-height: 1.35; }
.cvf-tile.is-danger .cvf-tile-ico { background: #FDECEC; color: var(--red, #DC2626); }
.cvf-hint { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 18px; background: var(--tint-sun, #FEF4DC); font-size: 13.5px; line-height: 1.45; }
.cvf-hint b { color: var(--accent-sun-text, #92400E); }
.cvf-box { padding: 16px; border-radius: 20px; background: var(--card-bg); box-shadow: 0 0 0 1px var(--line-soft); }
.cvf-box h4 { margin: 0 0 10px; font-size: 15px; }
.cvf-found { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cvf-found li { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; font-size: 14px; padding: 6px 8px; border-radius: 10px; background: var(--tone-card, #FBF8F2); }
.cvf-found li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; }
.cvf-found li.is-miss i { background: var(--tone-inset); }
.cvf-found li b { font-weight: 600; color: var(--text); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.cvf-found li.is-miss b { color: var(--text-muted); font-weight: 500; }
.cvf-reading { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px; text-align: center; }
.cvf-spin { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--tint-blue); border-top-color: var(--gold); animation: sf-spin .8s linear infinite; }
@media (max-width: 900px) { .cvf-grid { grid-template-columns: 1fr; } .cvf-side { position: static; } .cvf-paper { max-width: 520px; } }

/* Fenster */
.cvf-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgb(48 40 35 / .45); opacity: 0; transition: opacity .18s; }
.cvf-modal.is-in { opacity: 1; }
.cvf-modal-card { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; border-radius: 26px; background: var(--card-bg, #FFFCF7); box-shadow: 0 30px 70px rgb(48 40 35 / .32); box-sizing: border-box; transform: translateY(10px) scale(.98); transition: transform .22s cubic-bezier(.2, .9, .3, 1.2); }
.cvf-modal.is-in .cvf-modal-card { transform: none; }
.cvf-modal.is-photo .cvf-modal-card { width: min(640px, 100%); }
.cvf-modal.is-wide .cvf-modal-card { width: min(980px, 100%); }
.cvf-mhead { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.cvf-mhead > div { flex: 1; }
.cvf-mhead h3 { margin: 2px 0 4px; font-size: 22px; line-height: 1.2; color: var(--text); }
.cvf-mhead p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.cvf-mico { width: 48px; height: 48px; border-radius: 16px; flex: none; display: grid; place-items: center; background: var(--tint-blue); color: var(--gold); }
.cvf-mico.is-warm { background: var(--tint-sun); color: var(--accent-sun-icon, #D97706); }
.cvf-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--tone-inset); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.cvf-x:hover { background: var(--tone-hover); }
.cvf-mfoot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.cvf-drop { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 20px; border-radius: 22px; border: 2px dashed var(--card-border, #DED2C5); background: var(--tone-card, #FBF8F2); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.cvf-drop:hover, .cvf-drop.is-over { border-color: var(--btn); background: #F3ECE2; }
.cvf-drop:focus-visible { outline: 3px solid rgb(138 119 101 / .4); outline-offset: 3px; }
.cvf-drop b { font-size: 17px; color: var(--text); }
.cvf-drop small { font-size: 13.5px; color: var(--text-muted); }
.cvf-drop-art { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cvf-plus { width: 76px; height: 76px; border-radius: 50%; background: var(--btn, #8A7765); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgb(112 94 78 / .3); transition: transform .15s; }
.cvf-drop:hover .cvf-plus, .cvf-empty-start:hover .cvf-plus { transform: scale(1.06); }
.cvf-ghost { display: block; width: 64px; height: 84px; border-radius: 16px; background: #EDE2D5; box-shadow: inset 0 0 0 1px rgb(138 119 101 / .08); }
.cvf-ghost.is-l { transform: rotate(-10deg); }
.cvf-ghost.is-r { transform: rotate(9deg); background: #E6D8C6; }
.cvf-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.cvf-tip { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; background: var(--tone-card); box-shadow: 0 0 0 1px var(--line-soft); font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.cvf-tip b { font-size: 14px; color: var(--text); }
.cvf-crop-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cvf-crop { position: relative; overflow: hidden; border-radius: 50%; background: var(--tone-inset); cursor: grab; touch-action: none; box-shadow: 0 0 0 6px var(--card-bg), 0 0 0 7px var(--line-soft), 0 18px 40px hsl(30deg 22% 28% / .2); max-width: 100%; }
.cvf-crop[data-shape="soft"] { border-radius: 18%; }
.cvf-crop[data-shape="square"] { border-radius: 4px; }
.cvf-crop.is-drag { cursor: grabbing; }
.cvf-crop img { position: absolute; left: 0; top: 0; max-width: none; user-select: none; pointer-events: none; }
.cvf-crop:focus-visible { outline: 3px solid var(--focus-outline); outline-offset: 8px; }
.cvf-crop-tools { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.cvf-zoom { display: flex; align-items: center; gap: 10px; width: min(320px, 100%); font-size: 13.5px; font-weight: 600; }
.cvf-zoom input { flex: 1; accent-color: var(--btn); }
.cvf-gaps { display: grid; gap: 10px; }
.cvf-gap { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 18px; background: var(--tone-card); box-shadow: 0 0 0 1px var(--line-soft); font: inherit; text-align: left; cursor: pointer; color: var(--text); transition: transform .12s, box-shadow .12s; }
.cvf-gap:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--btn-line), 0 8px 18px hsl(30deg 22% 28% / .12); }
.cvf-gap-ico { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--tint-sun); color: var(--accent-sun-icon, #D97706); }
.cvf-gap-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cvf-gap-t b { font-size: 16px; line-height: 1.3; }
.cvf-gap-t small { font-size: 13.5px; color: var(--text-muted); }
.cvf-gap-go { flex: none; padding: 7px 12px; border-radius: 999px; background: var(--btn); color: #fff; font-size: 13px; font-weight: 700; }
.cvf-miss { border-color: var(--red, #DC2626) !important; box-shadow: 0 0 0 3px rgb(220 38 38 / .18) !important; animation: cvf-shake .4s; }
@keyframes cvf-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.cvf-fixbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border-radius: 14px; background: #FDECEC; color: #991B1B; font-size: 14px; font-weight: 600; }
.cvf-lp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.cvf-lp-side { display: flex; flex-direction: column; gap: 10px; }
.cvf-lp-img { width: 100%; display: block; }
.cvf-lp-grid .cvf-paper { max-width: 560px; }
.cvf-rename { display: flex; gap: 6px; }
.cvf-rename input { flex: 1; min-width: 0; font-size: 16px; }
@media (max-width: 760px) { .cvf-lp-grid { grid-template-columns: 1fr; } .cvf-tips { grid-template-columns: 1fr; } .cvf-ghost { width: 44px; height: 60px; } }
/* Liste leer */
.cvf-empty { display: grid; gap: 14px; margin-top: 14px; }
.cvf-empty-start { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 20px; border-radius: 24px; border: 2px dashed var(--card-border); background: var(--card-bg); cursor: pointer; font: inherit; color: var(--text); text-align: center; }
.cvf-empty-start:hover { border-color: var(--btn); background: #F3ECE2; }
.cvf-empty-start b { font-size: 18px; }
.cvf-empty-start small { font-size: 14px; color: var(--text-muted); }
.cvf-empty-t { margin: 10px 0 0; font-size: 17px; color: var(--text); }
.cvf-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cvf-step { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 20px; background: var(--card-bg); box-shadow: 0 0 0 1px var(--line-soft); font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }
.cvf-step b { font-size: 15.5px; color: var(--text); }
.cvf-step-n { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--tint-blue); color: var(--gold); font-weight: 800; margin-bottom: 4px; }
@media (max-width: 700px) { .cvf-steps { grid-template-columns: 1fr; } }
/* Einstellungen */
.cvf-memo { margin-bottom: 14px; }
.cvf-memo-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.cvf-memo-head h3 { margin: 0 0 4px; font-size: 17px; }
.cvf-memo-head p { margin: 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }
/* Assistent: Chat immer sichtbar */
.cvw-chat.is-open { display: block; margin-top: 18px; padding: 14px; border-radius: 20px; background: var(--card-bg); box-shadow: 0 0 0 1px var(--line-soft); }
.cvw-chat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cvw-chat-head > div { display: flex; flex-direction: column; line-height: 1.25; }
.cvw-chat-head small { color: var(--text-muted); font-size: 12.5px; }
.cvw-field-pill { display: inline-block; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; background: var(--tint-blue); color: var(--gold); font-size: 12.5px; }
.cvw-items small { display: block; width: 100%; margin-bottom: 4px; color: var(--text-muted); font-size: 12.5px; }
.cvp-thumb .cvp-scale, .cvf-fit .cvf-scale { will-change: transform; }
/* Runde 8: «Frag Stellio» zeigt überall die gleiche Figur wie der Knopf unten rechts (statt «S») */
.cvr-help-ava, .cvw-chat-ava { background: var(--btn, #8A7765); box-shadow: 0 4px 12px rgba(112, 94, 78, .28);
  --mascot-hi: #FFFFFF; --mascot-lo: #DCE8FF; --mascot-fold: #BFD3FF; --mascot-shadow: transparent; --on-accent: #2563EB; --mascot-ink: #0B1B3F; }
.cvr-help-ava .mascot, .cvw-chat-ava .mascot { --m-size: 28px !important; width: 28px; height: 28px; display: block; }
