/* ATLAS v7 — Bewerbungs-Werkstatt (Stellen, Lebenslauf, Anschreiben, Notizen).
   Gleiche Zeichenerklärung wie style.css: Lime = du/Auswahl/Hauptaktion,
   Eisblau = belegt, Violett = offen/nicht belegt, Bernstein = Vorbehalt.
   Das eine bewegte Motiv: die Anforderungen der Stelle als Sterne – ein
   offener Stern (Ring, violett) zündet, sobald der Lebenslauf ihn belegt.
   Die Blätter selbst sind Papier (weiß, CV-Inter aus ../cv/cvtemplate.css):
   so sieht der Nutzer genau das, was im PDF steht. */

.stage.wide { max-width: 1360px; }

/* ---------- Kopf der Werkstatt: Stelle + drei Unterlagen ---------- */
.w-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 26px; }
.w-jobchip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.w-star { flex: 0 0 12px; width: 12px; height: 12px; background: var(--here); clip-path: var(--star); filter: drop-shadow(0 0 5px var(--here)); align-self: center; }
.w-jobchip .w-jt { font-weight: 600; font-size: 17px; color: var(--ink); }
.w-jobchip .w-je { font: 400 13px var(--mono); color: var(--m2); }
.w-link { background: none; border: 0; padding: 0; font: 400 13.5px var(--font); color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; cursor: pointer; text-align: left; }
.w-link:hover { color: var(--here); text-decoration-color: var(--here); }
.w-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--glass); }
.w-tab { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; border-radius: 7px; padding: 9px 14px; font: 500 14.5px var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.w-tab small { font: 400 11px var(--mono); color: var(--ink-3); width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--line-3); border-radius: 50%; }
.w-tab:hover { color: var(--ink); }
.w-tab.on { background: var(--here-soft); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(200, 245, 60, .5); }
.w-tab.on small { background: var(--here); color: var(--on-here); border-color: var(--here); }

/* ---------- Raster: Leiste links, Blatt rechts ---------- */
.w-grid { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 34px; align-items: start; }
.w-rail { display: grid; gap: 18px; min-width: 0; }
.w-rail > section, .w-railnote { border: 1px solid var(--line-2); border-radius: 10px; background: var(--glass); padding: 16px 16px 15px; }
.w-rail b { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.w-sub { font-size: 13px; color: var(--ink-3); line-height: 1.45; margin: 0 0 8px; }
.w-sub.ok { color: var(--m1); } .w-sub.bad { color: var(--alarm); }
.w-railnote { font-size: 13px; color: var(--ink-2); line-height: 1.45; border-color: rgba(255, 182, 72, .35); background: var(--cond-soft); }
.w-railnote b { color: var(--cond); font-size: 13.5px; margin-bottom: 4px; }
.w-railnote span { display: block; }
.w-main { min-width: 0; display: grid; gap: 14px; }
.w-hint { font-size: 13.5px; color: var(--ink-3); margin: 0; max-width: 72ch; }

/* ---------- Anforderungen als Sterne (das eine Motiv) ---------- */
.w-reqs-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.w-reqs-h b { margin: 0; }
.w-count { font: 400 12px var(--mono); color: var(--ink-3); white-space: nowrap; }
.w-reqs ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 11px; }
.w-reqs li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; }
.w-rl { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.w-rb { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; margin-top: 2px; overflow-wrap: anywhere; }
.w-reqs li .w-link { font-size: 12.5px; color: var(--open); text-decoration-color: rgba(169, 139, 255, .45); margin-top: 2px; display: inline-block; }
.w-rstar { display: inline-block; width: 14px; height: 14px; flex: 0 0 14px; clip-path: var(--star); margin-top: 2px; }
.lit > .w-rstar, .lit .w-rstar { background: var(--m1); filter: drop-shadow(0 0 4px var(--m2)); }
.open > .w-rstar, .open .w-rstar { clip-path: none; border-radius: 50%; border: 1.5px dashed var(--open); width: 13px; height: 13px; background: transparent; }
.w-reqs li.ignite .w-rstar { animation: ignite .9s cubic-bezier(.2, .8, .3, 1.3); }
.w-reqs li.ignite .w-rl { animation: fade .6s ease; }
@keyframes ignite { 0% { scale: .2; filter: drop-shadow(0 0 0 var(--m1)); } 55% { scale: 1.8; filter: drop-shadow(0 0 12px var(--m1)); } 100% { scale: 1; } }
.w-reqs.compact { border: 1px solid var(--line-2); border-radius: 10px; background: var(--glass); padding: 14px 16px; }
.w-reqs.compact ul { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; }
.w-reqs.compact .w-rl { font-size: 13.5px; }

.w-legend { display: grid; gap: 6px; padding: 2px 4px; }
.w-legend .lg { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.w-legend .lg::before { content: ""; width: 22px; height: 10px; border-radius: 2px; flex: none; }
.w-legend .atlas::before { background: linear-gradient(90deg, rgba(85, 210, 242, .55), rgba(85, 210, 242, .1)); }
.w-legend .notiz::before { background: rgba(200, 245, 60, .55); }
.w-legend .korr::before { background: rgba(255, 182, 72, .5); }

.w-sugg .w-sg { border-top: 1px dashed var(--line-2); padding: 10px 0 2px; display: grid; gap: 4px; }
.w-sugg .w-sg p { margin: 0; font-size: 13.5px; line-height: 1.4; }
.w-sugg .w-cond { font-size: 12.5px !important; color: var(--cond); }
.w-sugg .w-cond::before { content: "Nur wenn: "; color: var(--ink-3); }

/* ---------- PDF-Leiste ---------- */
.w-pdfbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.w-pdfbtn { border-color: var(--here); color: var(--here); }
.w-pdfbtn:disabled { opacity: .6; cursor: progress; }
.w-pages { font: 400 12.5px var(--mono); color: var(--ink-3); }
.w-pdfmsg { flex-basis: 100%; }
.w-pdfmsg:empty { display: none; }
.w-ok { display: inline-flex; gap: 12px; align-items: baseline; font-size: 14px; color: var(--ink-2); }
.w-ok b { color: var(--here); font-weight: 600; margin: 0; }
.w-keyform { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.w-keyform input { font: inherit; padding: 9px 12px; border-radius: 6px; border: 1px solid var(--line-3); background: var(--night); color: var(--ink); }

/* ---------- Das Blatt (A4, skaliert) ---------- */
.w-sheet { position: relative; width: 100%; }
.w-scale { transform-origin: 0 0; width: max-content; }
.w-cvhost { width: max-content; }
.w-doc { position: relative; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 60px rgba(0, 0, 0, .45), 0 0 90px rgba(85, 210, 242, .06) !important; --w-fluid: 0; }
.w-doc ::selection { background: rgba(15, 141, 129, .25); color: inherit; }
.w-edit [data-k] { border-radius: 2px; outline: 1px dashed transparent; outline-offset: 1.5px; transition: outline-color .15s, background .15s; cursor: text; }
.w-edit [data-k]:hover { outline-color: rgba(15, 141, 129, .45); }
.w-edit [data-k]:focus { outline: 1.5px solid #0f8d81; background: rgba(15, 141, 129, .05); }
.w-letter[data-state="writing"] [data-k]:empty::before { content: none !important; }
.w-doc [data-k]:empty::before { content: attr(data-ph); color: #9aa8b5; font-weight: 400; font-style: italic; }
.w-doc .cv-when[data-k], .w-doc .cv-when { min-height: 1.2em; }
.w-doc .w-bad { color: #b3261e !important; outline: 1px dashed #b3261e !important; }
.w-doc .w-li { display: inline; }
.w-doc .cv-list li { position: relative; }
.w-doc li.w-atlas { background: linear-gradient(90deg, rgba(85, 210, 242, .2), rgba(85, 210, 242, 0) 75%); border-radius: 2px; }
.w-doc li.w-notiz { background: rgba(200, 245, 60, .3); border-radius: 2px; }
.w-doc li.w-notiz::after { content: "aus deinen Notizen"; display: inline-block; margin-left: 2mm; padding: 0 1.4mm; border-radius: 1mm; font-size: 6.8pt; font-weight: 600; color: #3f5200; background: rgba(200, 245, 60, .55); vertical-align: 1px; }
.w-doc .w-korr > .cv-what .cv-pos::after { content: "von dir korrigiert"; display: inline-block; margin-left: 2mm; padding: 0 1.4mm; border-radius: 1mm; font-size: 6.8pt; font-weight: 600; color: #7a4a00; background: rgba(255, 182, 72, .35); vertical-align: 1px; }
.w-doc .w-row { position: relative; }
.w-doc .w-tools { position: absolute; right: -15.5mm; top: -.5mm; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; z-index: 2; }
.w-doc .w-row > .w-tools { right: -15.5mm; top: -1mm; }
.w-doc .cv-list li > .w-tools { right: -15.5mm; }
.w-doc li:hover > .w-tools, .w-doc li:focus-within > .w-tools, .w-doc .w-row:hover > .w-tools, .w-doc .w-row:focus-within > .w-tools { opacity: 1; }
.w-doc .w-tools button { width: 4.6mm; height: 4.6mm; display: grid; place-items: center; border: 0; border-radius: 1mm; background: #e3e9ef; color: #0b1826; font: 600 8pt var(--font); cursor: pointer; padding: 0; }
.w-doc .w-tools button:hover { background: #0f8d81; color: #fff; }
.w-doc .w-tools button:focus-visible { outline: 1.5px solid #0f8d81; outline-offset: 1px; }
.w-doc .w-row > .w-tools button { background: #d3dce4; }
.w-doc .w-add { display: inline-block; margin-top: 1.2mm; background: none; border: 1px dashed #b9c6d0; border-radius: 1mm; padding: .6mm 2.4mm; font: 500 8pt "CV Inter", sans-serif; color: #0f8d81; cursor: pointer; opacity: .55; transition: opacity .15s; }
.w-doc .w-add.small { margin-left: 4mm; }
.w-doc .w-add:hover, .w-doc .w-add:focus-visible, .w-doc .w-row:hover .w-add { opacity: 1; }
.w-doc .cv-sec > .w-add { margin: 0 0 2mm 38mm; }
.w-doc .w-pg { position: absolute; left: 0; right: 0; border-top: 1px dashed #c5d0d9; pointer-events: none; }
.w-doc .w-pg { font: 500 7pt "CV Inter", sans-serif; color: #9aa8b5; text-align: right; padding: .6mm 4mm 0; }
.w-view .w-pg { display: none; }
.w-measure .w-add { display: none !important; }
.w-doc .w-flash { animation: landed 2.2s ease-out; }
@keyframes landed { 0%, 30% { box-shadow: 0 0 0 2.5mm rgba(200, 245, 60, .9); background: rgba(200, 245, 60, .7); } 100% { box-shadow: 0 0 0 0 rgba(200, 245, 60, 0); } }

/* ---------- Stellen ---------- */
.w-mocknote { font-size: 13.5px; color: var(--ink-2); border-left: 2px solid var(--cond); padding: 2px 0 2px 12px; margin: -10px 0 30px; max-width: 70ch; }
.w-mocknote b { color: var(--cond); font-weight: 600; }
.w-jgroups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.w-jgroup { animation: rise .6s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(.15s + var(--i, 0) * .12s); }
.w-jg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.w-jg-head h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.w-jg-head .w-star { background: var(--m1); filter: drop-shadow(0 0 5px var(--m2)); }
.w-tag { font: 400 11.5px var(--mono); color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.w-jlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.w-job { position: relative; display: grid; gap: 7px; align-content: start; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  padding: 18px 18px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--glass); transition: border-color .15s, box-shadow .2s, background .15s; }
.w-job:hover { border-color: var(--line-3); background: var(--night-2); }
.w-job.on { border-color: var(--here); box-shadow: 0 0 0 1px var(--here), 0 0 30px rgba(200, 245, 60, .14); background: color-mix(in srgb, var(--here) 6%, var(--night)); }
.w-job .w-jsel { position: absolute; top: -10px; right: 14px; font: 500 11.5px var(--mono); background: var(--here); color: var(--on-here); padding: 2px 9px; border-radius: 999px; opacity: 0; scale: .8; transition: opacity .2s, scale .2s; }
.w-job.on .w-jsel { opacity: 1; scale: 1; }
.w-job .w-jt { font-weight: 600; font-size: 16.5px; line-height: 1.3; text-wrap: balance; }
.w-job .w-jm { font: 400 12.5px var(--mono); color: var(--m2); }
.w-job .w-jx { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.w-jreqs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.w-jr { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); padding: 3px 9px 3px 7px; border-radius: 999px; border: 1px solid var(--line-2); }
.w-jr .w-rstar { width: 11px; height: 11px; flex-basis: 11px; margin: 0; }
.w-jr.open .w-rstar { width: 10px; height: 10px; }
.w-jr.open { border-color: rgba(169, 139, 255, .35); }
.w-jf { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font: 400 11.5px var(--mono); color: var(--ink-3); margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.w-jf b { font-weight: 500; color: var(--m1); }

/* ---------- Anschreiben ---------- */
.w-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--night); }
.w-segb { background: none; border: 0; border-radius: 6px; padding: 8px 4px; font: 500 13px var(--font); color: var(--ink-2); cursor: pointer; }
.w-segb:hover { color: var(--ink); }
.w-segb.on { background: var(--here); color: var(--on-here); }
.w-regenrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.w-regen { padding: 8px 14px; font-size: 14px; white-space: nowrap; }
.w-variant { font: 400 12px var(--mono); color: var(--ink-3); white-space: nowrap; }
.w-evlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.w-evlist li { padding-left: 22px; position: relative; font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.w-evlist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 13px; height: 13px; background: var(--m1); clip-path: var(--star); filter: drop-shadow(0 0 4px var(--m2)); }
.w-evlist li.notiz::before { background: var(--here); }
.w-evlist li.empty::before { background: none; border: 1.5px dashed var(--open); border-radius: 50%; clip-path: none; width: 11px; height: 11px; }
.w-evlist li b { font-size: 13.5px; color: var(--ink); margin: 0 0 1px; font-weight: 500; }
.w-outrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.w-outrow .secondary { padding: 8px 13px; font-size: 13.5px; }
.w-out .w-sub { margin: 0; }

.w-writing { max-width: 210mm; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 11px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--glass); font-size: 14px; }
.w-writing .w-pen { width: 14px; height: 14px; background: var(--here); clip-path: var(--star); filter: drop-shadow(0 0 5px var(--here)); animation: pen 1.1s ease-in-out infinite; }
.w-writing.done .w-pen { animation: none; }
@keyframes pen { 50% { rotate: 45deg; scale: .7; } }
.w-writing .w-wstate { font-weight: 500; }
.w-writing ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0; margin: 0; font: 400 12.5px var(--mono); color: var(--ink-3); flex: 1; }
.w-writing ol li { animation: fade .3s ease; }
.w-writing ol li::before { content: "✓ "; color: var(--m1); }
.w-writing.done ol { display: none; }
.w-writing.done .w-skip { display: none; }
.w-writing .w-skip { margin-left: auto; font-size: 13px; }

.w-letter { padding: 20mm 22mm 22mm !important; font-size: 10.2pt; line-height: 1.55; }
.w-l-head { border-bottom: 1.4pt solid var(--cv-accent); padding-bottom: 4mm; }
.w-l-name { font-size: 17pt; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.w-l-contact { font-size: 8.8pt; color: var(--cv-ink-2); margin-top: 1mm !important; white-space: pre-wrap; }
.w-l-to { margin-top: 10mm; font-size: 10pt; line-height: 1.45; }
.w-l-date { text-align: right; margin-top: 8mm !important; color: var(--cv-ink-2); }
.w-l-subj { font-weight: 700; margin: 8mm 0 6mm !important; }
.w-l-body { display: grid; gap: 3.6mm; }
.w-p { white-space: pre-line; }
.w-p.w-ev { padding-left: 0; }
.w-p.typing::after { content: ""; display: inline-block; width: .5em; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: #0f8d81; animation: blink 1s steps(1) infinite; }
.w-p.w-notiz { background: rgba(200, 245, 60, .3); border-radius: 2px; box-shadow: -2mm 0 0 rgba(200, 245, 60, .3), 2mm 0 0 rgba(200, 245, 60, .3); }
.w-p.w-notiz::before { content: "aus deinen Notizen"; display: block; width: max-content; margin-bottom: 1mm; padding: 0 1.4mm; border-radius: 1mm; font-size: 6.8pt; font-weight: 600; color: #3f5200; background: rgba(200, 245, 60, .55); }
.w-p.w-notiz:empty::before { content: attr(data-ph); }
.w-l-gruss { margin-top: 6mm !important; }
.w-l-sig { margin-top: 10mm !important; font-weight: 600; }

/* ---------- Notizen ---------- */
.s-wnotes h1.display { margin-bottom: 12px; }
.s-wnotes .lead { margin-bottom: 26px; }
.w-ngrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 34px; align-items: start; }
.w-nleft { display: grid; gap: 20px; min-width: 0; }
.w-ask { display: grid; gap: 10px; }
.w-ask > b { font-weight: 600; font-size: 14.5px; margin-top: 4px; }
.w-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.w-chip { display: inline-flex; align-items: center; gap: 7px; font: 500 13.5px var(--font); color: var(--ink); background: var(--glass); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 13px; cursor: pointer; transition: border-color .15s, color .15s; }
.w-chip:hover { border-color: var(--here); color: var(--here); }
.w-chip.open { border-color: rgba(169, 139, 255, .5); }
.w-chip.open .w-rstar { margin: 0; width: 11px; height: 11px; }
.w-quick { display: flex; gap: 10px; }
.w-quick .ftext { flex: 1; min-width: 0; font-size: 15.5px; padding: 12px 14px; }
.w-quick .primary { padding: 12px 18px; white-space: nowrap; font-size: 14.5px; }
.w-shake { animation: shake .35s; border-color: var(--open) !important; }
@keyframes shake { 25% { translate: -5px 0; } 75% { translate: 5px 0; } }
.w-notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.w-nempty { font-size: 14.5px; color: var(--ink-3); border: 1px dashed var(--line-3); border-radius: 10px; padding: 22px 20px; text-align: center; }
.w-note { border: 1px solid var(--line-2); border-radius: 10px; background: var(--glass); padding: 12px 12px 12px 14px; display: grid; gap: 10px; }
.w-note.fresh { animation: rise .45s cubic-bezier(.2, .7, .2, 1); border-color: var(--line-3); }
.w-ntop { display: grid; grid-template-columns: 22px minmax(0, 1fr) 28px; gap: 10px; align-items: start; }
.w-nnum { font: 400 12px var(--mono); color: var(--here); padding-top: 9px; text-align: right; }
.w-ntext { width: 100%; resize: vertical; min-height: 54px; font: 400 15px/1.45 var(--font); color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 6px 8px; field-sizing: content; }
.w-ntext:hover { border-color: var(--line-2); }
.w-ntext:focus { outline: none; border-color: var(--here); background: var(--night); }
.w-ndel { width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--ink-3); cursor: pointer; font-size: 14px; }
.w-ndel:hover { color: var(--alarm); background: rgba(255, 93, 108, .1); }
.w-nact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-left: 32px; }
.w-pushrow { display: inline-flex; gap: 0; }
.w-nsel { font: 400 13px var(--font); color: var(--ink); background: var(--night); border: 1px solid var(--line-3); border-right: 0; border-radius: 6px 0 0 6px; padding: 7px 8px; max-width: 220px; min-width: 0; }
.w-push { font: 500 13px var(--font); color: var(--ink); background: var(--night-2); border: 1px solid var(--line-3); border-radius: 6px; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.w-pushrow .w-push { border-radius: 0 6px 6px 0; }
.w-push:hover { border-color: var(--here); color: var(--here); }
.w-landed { font-size: 13px; color: var(--ink-2); }
.w-landed b { font-weight: 600; }
.w-landed.cv b, .w-landed.brief b { color: var(--here); }
.w-nact .w-link { font-size: 12.5px; }
.w-nright { position: sticky; top: calc(var(--head-h) + 20px); display: grid; gap: 10px; min-width: 0; }
.w-ptabs { display: flex; gap: 4px; }
.w-ptab { background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; font: 500 13.5px var(--font); color: var(--ink-2); cursor: pointer; }
.w-ptab.on { border-color: var(--here); color: var(--here); background: var(--here-soft); }
.w-pscroll { max-height: calc(100vh - var(--head-h) - 90px); overflow: auto; border-radius: 6px; scrollbar-width: thin; padding: 6px; margin: -6px; }

/* ---------- Toast ---------- */
.w-toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; translate: -50% 0; display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 10px; background: var(--night-3); border: 1px solid var(--line-3); box-shadow: 0 10px 40px rgba(0, 0, 0, .45); font-size: 14px; animation: rise .3s ease; }
.w-toast .w-link { color: var(--here); text-decoration-color: rgba(200, 245, 60, .5); white-space: nowrap; }

/* ---------- schmal ---------- */
@media (max-width: 1100px) {
  .w-ngrid { grid-template-columns: minmax(0, 1fr); }
  .w-nright { position: static; }
  .w-pscroll { max-height: 70vh; }
}
@media (max-width: 960px) {
  .w-grid { grid-template-columns: minmax(0, 1fr); }
  .w-rail { order: 2; }
}
/* Telefon: das Blatt bricht um statt auf 45 % zu schrumpfen – Schreiben auf
   einem Miniatur-A4 ginge nicht. Das PDF bleibt A4 (die API druckt das JSON). */
@media (max-width: 760px) {
  .w-head { gap: 12px; }
  .w-tabs { width: 100%; }
  .w-tab { flex: 1; justify-content: center; padding: 9px 6px; font-size: 13px; white-space: normal; text-align: center; line-height: 1.2; }
  .w-tab small { display: none; }
  .w-doc { --w-fluid: 1; width: auto !important; min-height: 0 !important; padding: 22px 18px 26px !important; font-size: 13px !important; }
  .w-scale, .w-cvhost { width: auto; }
  .w-doc .cv-row { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .w-doc .cv-head { flex-direction: column; }
  .w-doc .cv-name { font-size: 22px; }
  /* Werkzeuge als Leiste UNTER der fokussierten Zeile/Station statt darüber gelegt (überdeckten Text) */
  .w-doc .w-tools, .w-doc .w-row > .w-tools, .w-doc .cv-list li > .w-tools { display: none; position: static; opacity: 1; margin: 4px 0 6px; gap: 6px; }
  .w-doc li:focus-within > .w-tools, .w-doc .w-row:focus-within > .w-tools { display: flex; }
  .w-doc .w-row:focus-within > .w-tools::before { content: "Station:"; font-size: 11px; color: #5b6b7a; align-self: center; }
  .w-doc .cv-list li:focus-within > .w-tools::before { content: "Zeile:"; font-size: 11px; color: #5b6b7a; align-self: center; }
  /* Notizen: Stationswahl und Knöpfe untereinander, nichts ragt raus */
  .w-pushrow { flex-direction: column; align-items: stretch; gap: 6px; }
  .w-nsel, .w-pushrow .w-push { width: 100%; border-radius: 6px; border-right: 1px solid var(--line-3); }
  .w-nact > .w-push { width: 100%; }
  .w-ntop { grid-template-columns: 18px minmax(0, 1fr) 28px; gap: 6px; }
  .w-doc .w-tools button { width: 26px; height: 26px; font-size: 13px; }
  .w-doc .cv-sec > .w-add { margin-left: 0; }
  .w-doc .w-add { opacity: 1; font-size: 12px; padding: 3px 9px; }
  .w-letter { padding: 22px 18px 26px !important; }
  .w-l-to { margin-top: 18px; }
  .w-quick { flex-direction: column; }
  .w-writing ol { flex-basis: 100%; order: 3; }
  .w-nact { padding-left: 0; }
  .w-pushrow { width: 100%; }
  .w-nsel { flex: 1; max-width: none; }
  .w-jlist { grid-template-columns: minmax(0, 1fr); }
  .w-reqs.compact ul { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .w-reqs li.ignite .w-rstar, .w-writing .w-pen, .w-jgroup, .w-note.fresh, .w-doc .w-flash, .w-toast { animation: none; }
}

/* ---------- Fix-Runde 2026-10-26 ---------- */
.w-note, .w-nact, .w-pushrow, .w-ntop > * { min-width: 0; }
@media (min-width: 761px) { .w-pushrow { flex-wrap: wrap; max-width: 100%; } .w-nsel { flex: 1 1 140px; min-width: 0; } }
.w-pushrow { display: flex; }
/* Telefonnummer und Mail brechen nicht mitten im Wert um */
.w-doc .cv-contact [data-k] { white-space: nowrap; }
/* Leere Arbeitgeber/Ausbildungsstätte: als Aufforderung, nicht als grauer Fülltext (im PDF steht nichts) */
.w-edit [data-k^="org:"]:empty::before, .w-edit [data-k^="edu-i:"]:empty::before { content: "+ " attr(data-ph) " ergänzen"; font-style: normal; font-size: 8pt; color: #0f8d81; border: 1px dashed #b9c6d0; border-radius: 1mm; padding: 0 1.6mm; }
.w-doc .w-nonjob .cv-pos { color: #5b6b7a; }
.w-doc li.w-long { outline: 1.5px dashed #b3261e; outline-offset: 2px; }
/* Abschluss */
.w-done { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.w-dcard { border: 1px solid var(--line-2); border-radius: 12px; background: var(--glass); padding: 20px 20px 18px; display: grid; gap: 14px; align-content: start; }
.w-dcard h3 { font-size: 19px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 10px; }
.w-dcard h3::before { content: ""; width: 13px; height: 13px; background: var(--m1); clip-path: var(--star); filter: drop-shadow(0 0 5px var(--m2)); }
.w-dstats { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.w-dcard .w-link { justify-self: start; }
.w-side { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.w-confirm:not([hidden]) { flex-basis: 100%; display: grid; gap: 12px; max-width: 620px; padding: 16px 18px; border: 1px solid rgba(255, 93, 108, .5); border-radius: 10px; background: rgba(255, 93, 108, .08); }
.w-confirm p { margin: 0; font-size: 14.5px; }
.w-confirm .primary { padding: 10px 18px; font-size: 14.5px; }
@media (max-width: 960px) { .w-done { grid-template-columns: minmax(0, 1fr); } }
.w-doc .w-emptyhint { font-size: 8pt; color: #5b6b7a; font-style: italic; margin-top: 1mm !important; }
/* Fix-Runde 2: was das PDF blockiert, vor dem Klick */
.w-check:empty { display: none; }
.w-check { flex-basis: 100%; border: 1px solid rgba(255, 182, 72, .45); background: var(--cond-soft); border-radius: 10px; padding: 12px 16px; display: grid; gap: 6px; }
.w-check b { color: var(--cond); font-size: 14px; font-weight: 600; }
.w-check ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.w-check .w-link { color: var(--ink); font-size: 13.5px; text-decoration-color: rgba(255, 182, 72, .6); }
