/* Lebenslauf Runde 3 (31.10.2026) – siehe js/cv-editor.js */
/* Start: zwei grosse Felder in der Mitte */
.cvb-start { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 780px; margin: 30px auto; }
.cvb-start .cvb-choice { min-height: 210px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 28px !important; border-radius: 22px !important; }
.cvb-start .cvb-choice-title { font-size: 19px !important; font-weight: 700; }
.cvb-start .cvb-choice-sub { font-size: 14.5px; color: var(--text-muted); max-width: 280px; }
@media (max-width: 640px) { .cvb-start { grid-template-columns: 1fr; margin: 12px auto; } .cvb-start .cvb-choice { min-height: 150px; } }
/* Lese-Animation */
.cvs-scan { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 16px; text-align: center; }
.cvs-scan b { font-size: 17px; color: var(--text); }
.cvs-scan > span { font-size: 13.5px; color: var(--text-muted); max-width: 320px; }
.cvs-scan-doc { position: relative; width: 96px; height: 124px; border-radius: 10px; background: #fff; border: 1.5px solid var(--card-border); box-shadow: 0 10px 24px rgba(48, 40, 35, .12); padding: 16px 12px; box-sizing: border-box; display: flex; flex-direction: column; gap: 9px; overflow: hidden; margin-bottom: 8px; }
.cvs-scan-doc i { display: block; height: 6px; border-radius: 3px; background: #E5D5C5; }
.cvs-scan-doc i:nth-child(1) { width: 70%; background: #B8A48F; }
.cvs-scan-doc i:nth-child(3), .cvs-scan-doc i:nth-child(5) { width: 80%; }
.cvs-scan-bar { position: absolute; left: 0; right: 0; height: 22px; top: -22px; background: linear-gradient(transparent, rgba(138, 119, 101, .45), transparent); animation: cvs-scan 1.6s ease-in-out infinite; }
@keyframes cvs-scan { 0% { top: -22px; } 100% { top: 124px; } }
@media (prefers-reduced-motion: reduce) { .cvs-scan-bar { animation: none; top: 50px; } }
/* Import-Fenster */
.cvs-imp-card { width: min(560px, 100%); }
.cvs-modal.is-wide .cvs-imp-card { width: min(960px, 100%); }
.cvs-imp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cvs-imp-head h3 { margin: 0; }
.cvs-x { width: 36px; height: 36px; border: none; border-radius: 10px; background: none; font-size: 24px; color: var(--text-muted); cursor: pointer; }
.cvs-x:hover { background: var(--bg-second); }
.cvs-imp-card .su-field { margin: 14px 0 10px; }
.cvs-paste { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg-second); color: var(--text); font-size: 14px; }
.cvs-paste b { display: block; }
.cvs-paste kbd { padding: 1px 6px; border-radius: 5px; border: 1px solid var(--card-border); background: #fff; font: inherit; font-size: 12px; font-weight: 700; }
.cvs-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0 16px; }
.cvs-compare figure { margin: 0; min-width: 0; }
.cvs-compare figcaption { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 6px; }
.cvs-compare img { width: 100%; border-radius: 10px; border: 1px solid var(--card-border); display: block; }
.cvs-compare-page { position: relative; width: 100%; aspect-ratio: 210 / 297; overflow: hidden; min-width: 0; border-radius: 10px; border: 1px solid var(--card-border); background: #fff; }
.cvs-compare-scale { position: absolute; left: 0; top: 0; width: 794px; transform-origin: 0 0; pointer-events: none; }
@media (max-width: 640px) { .cvs-compare { grid-template-columns: 1fr; } }
/* Editor: Chat rechts, Texte anwählen */
#cvd-overlay .cvd-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; }
.cve-chat { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-left: 1px solid var(--card-border); background: var(--card-bg, #FBF8F2); min-height: 0; overflow: hidden; }
.cve-chat-head b { display: block; font-size: 15px; color: var(--text); }
.cve-chat-head span { font-size: 12.5px; color: var(--text-muted); }
.cve-sel { padding: 9px 11px; border-radius: 10px; background: #F6E9D2; font-size: 13px; color: var(--text); }
.cve-sel span { display: block; font-size: 11.5px; font-weight: 700; color: #7A5A22; }
.cve-log { flex: 1; min-height: 80px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.cve-msg { align-self: flex-start; max-width: 95%; padding: 8px 11px; border-radius: 11px 11px 11px 4px; background: var(--bg-second); font-size: 13.5px; line-height: 1.45; color: var(--text); white-space: pre-wrap; }
.cve-msg.is-u { align-self: flex-end; border-radius: 11px 11px 4px 11px; background: var(--btn, #8A7765); color: #fff; }
.cve-sugg { background: #E6F0E6; }
.cve-sugg .btn { display: block; margin-top: 6px; }
.cve-chips { display: flex; flex-direction: column; gap: 5px; }
.cve-chips button { text-align: left; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--card-border); background: var(--card-bg); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.cve-chips button:hover { border-color: var(--btn, #8A7765); }
.cve-ask { display: flex; gap: 6px; }
.cve-ask input { flex: 1; min-width: 0; padding: 8px 10px; border: 1.5px solid var(--card-border); border-radius: 9px; font: inherit; font-size: 13.5px; }
#cvd-stage-inner [contenteditable="true"]:hover { outline: 2px dashed rgba(138, 119, 101, .55); outline-offset: 2px; cursor: text; }
#cvd-stage-inner .cve-on { outline: 2px solid #8A7765 !important; outline-offset: 2px; background: rgba(246, 233, 210, .5); }
.btn-canva { background: linear-gradient(135deg, #00C4CC, #7D2AE8) !important; color: #fff !important; border: none !important; font-weight: 700; }
.btn-canva:hover { filter: brightness(1.05); }
@media (max-width: 980px) { #cvd-overlay .cvd-layout { grid-template-columns: 1fr; } .cve-chat { border-left: none; border-top: 1px solid var(--card-border); max-height: 320px; } }
/* Bibliothek-Dateien als Vorschau */
.cve-lib { display: flex !important; flex-wrap: wrap; gap: 10px !important; }
.cve-lib-item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 120px; padding: 8px; border-radius: 12px; border: 1px solid var(--card-border); background: var(--card-bg); font: inherit; cursor: pointer; }
.cve-lib-item:hover { border-color: var(--btn, #8A7765); }
.cve-lib-thumb { width: 100%; height: 130px; border-radius: 8px; background: var(--bg-second); display: grid; place-items: center; overflow: hidden; color: var(--text-muted); }
.cve-lib-thumb canvas { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cve-lib-name { font-size: 12px; color: var(--text); width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
