/* Photo-guide images retain their complete original rectangle. */
.wf-root .wf-tutorial{grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);align-items:start;gap:28px}
.wf-guide{min-width:0}.wf-guide>.h3{margin-top:8px}.wf-guide>.muted{margin:10px 0 18px}
.wf-guide-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:22px}
.wf-guide-tabs button{display:flex;gap:9px;align-items:center;text-align:left;min-height:58px;padding:10px 12px;border:1px solid var(--line-2);border-radius:6px;background:var(--bg-2);color:var(--ink-2);font:inherit;font-size:12px;cursor:pointer}
.wf-guide-tabs button span{font-family:var(--mono);color:var(--muted)}
.wf-guide-tabs button[aria-pressed=true]{border-color:var(--plat);color:var(--ink);background:var(--surface-2)}
.wf-guide-tabs button:focus-visible,.wf-photo-picker:focus-visible{outline:2px solid var(--plat);outline-offset:4px}
.wf-guide-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.wf-guide-example{margin:0;min-width:0;border:1px solid var(--line-2);border-radius:6px;overflow:hidden;background:var(--bg-2)}
.wf-guide-badge{padding:9px 12px;font-family:var(--mono);font-size:10px;letter-spacing:.06em}
.wf-guide-example.is-good .wf-guide-badge{color:#90dfb4;background:rgba(55,161,105,.1)}
.wf-guide-example.is-avoid .wf-guide-badge{color:#ffb4a6;background:rgba(199,88,66,.1)}
.wf-guide-example img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;background:#13171f;transform:none}
.wf-guide-example figcaption{padding:14px 14px 8px}.wf-guide-example ul{margin:0;padding-left:17px;font-size:12px;line-height:1.6;color:var(--ink-2)}
.wf-guide-example li{margin-bottom:8px}
.wf-root button.wf-photo-picker{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;padding:0;color:var(--ink);font:inherit;cursor:pointer;min-height:340px;max-height:none}
.wf-root button.wf-photo-picker>img{display:block;width:100%;height:auto;max-height:72vh;object-fit:contain;transform:none}
.wf-photo-picker .wf-photo-empty{display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center}
.wf-photo-picker:hover,.wf-photo-picker.is-dragover{border-color:var(--plat);background:var(--surface-2)}
.wf-photo-picker.is-dragover{outline:2px dashed var(--plat);outline-offset:-8px}
.wf-photo-picker:disabled{cursor:wait;opacity:.72}
@media(max-width:800px){.wf-root .wf-tutorial{grid-template-columns:minmax(0,1fr)}.wf-root button.wf-photo-picker{min-height:280px}}
@media(max-width:440px){.wf-guide-tabs{grid-template-columns:minmax(0,1fr)}.wf-guide-pair{gap:8px}.wf-guide-example figcaption{padding:11px 9px 5px}.wf-guide-example ul{font-size:11px;padding-left:14px}}
/* One-point preview and full guided review intentionally share this editor. */
.wf-root .wf-zoom-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 14px;border-bottom:1px solid var(--line)}
.wf-zoom-tools output{min-width:48px;text-align:center;font:11px var(--mono);color:var(--ink-2)}
.wf-zoom-tools button{min-height:36px}.wf-zoom-tools button[aria-pressed=true]{background:var(--plat);color:var(--bg)}
.wf-root .wf-map-frame>svg{cursor:grab}.wf-root .wf-map-frame>svg[data-wf-editing=true]{cursor:crosshair}
.wf-root .wf-map-frame>svg:focus-visible{outline:none}
.wf-root .wf-map-frame .wf-point{cursor:pointer}.wf-root .is-point-editing .wf-point.is-selected{cursor:crosshair}
.wf-root .wf-zoom-hint{margin:0;padding:12px 16px;border-top:1px solid var(--line);line-height:1.65}
.wf-root .wf-point-instruction{margin:18px 0;font-size:15px;line-height:1.75;color:var(--ink)}
.wf-root .wf-point-reference{margin:20px 0 0;border:1px solid var(--line-2);background:var(--bg-2);overflow:hidden;border-radius:4px}
.wf-point-reference figcaption{padding:12px 14px;font-size:10px;border-bottom:1px solid var(--line)}
.wf-root .wf-point-reference svg{display:block;width:100%;height:230px;touch-action:auto;background:var(--bg-2)}
.wf-root .wf-point-popover{padding:18px 0 0}.wf-point-popover.is-open{padding:18px;border:1px solid var(--line-2);background:var(--bg-2);margin-top:20px;border-radius:4px}
.wf-point-popover .hint{margin:14px 0 0;line-height:1.7}.wf-root .wf-review-choices>.btn{white-space:normal;text-align:center}
.wf-root [data-wf-editor-title]:focus{outline:none}.wf-root [data-wf-placement-status]{min-height:38px}
@media(max-width:760px){.wf-root .is-point-editing .wf-point-panel{grid-row:1}.wf-root .wf-point-reference svg{height:190px}.wf-root .wf-point-instruction{font-size:14px}.wf-root .wf-zoom-tools{gap:8px;padding:10px}.wf-root .wf-review-grid{gap:18px}}

/* ---------- Punktprüfung v2: große Fotobühne, Kontrolle daneben, Referenz als Nahaufnahme ---------- */
.wf-root{--wf-wide:min(1180px,calc(100vw - 48px))}
.wf-root .wf-review-toolbar,.wf-root .wf-review-grid,.wf-root .wf-review-grid~.flow-actions,.wf-root .wf-review-grid~.wf-error{width:var(--wf-wide);max-width:none;margin-inline:calc((100% - var(--wf-wide)) / 2)}
.wf-root .wf-review-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;margin-top:26px;margin-bottom:14px}
.wf-root .wf-review-continue{display:none}
.wf-root .wf-view-seg button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 16px}
.wf-root .wf-view-seg button:disabled{cursor:not-allowed}
.wf-root .wf-view-seg button:disabled:not([aria-pressed=true]){opacity:.45}
.wf-progress{display:flex;align-items:center;gap:12px;min-width:0}
.wf-progress .label-mono{font-size:9.5px;white-space:nowrap}
.wf-progress-bar{position:relative;flex:none;width:140px;height:3px;border-radius:3px;background:var(--line-2);overflow:hidden}
.wf-progress-bar i{position:absolute;inset:0 auto 0 0;border-radius:inherit;background:var(--plat);box-shadow:0 0 10px rgba(205,220,255,.35);transition:width .45s var(--ease)}
.wf-root .wf-review-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,392px);gap:18px;align-items:start}

/* Fotobühne: füllt die Bildschirmhöhe, Werkzeuge schweben über dem Foto */
.wf-root .wf-map-frame{border-radius:12px;border-color:var(--line-2);background:#07090d}
.wf-root .wf-stage{position:relative}
.wf-root .wf-stage>svg[data-wf-map]{display:block;width:100%;height:clamp(400px,calc(100vh - 220px),860px);background:#07090d;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.wf-root .wf-stage>svg[data-wf-editing=true]{cursor:crosshair}
.wf-root .wf-stage>svg[data-wf-editing=false].is-dragging,.wf-root .wf-stage>svg[data-wf-editing=false].is-panning{cursor:grabbing}
.wf-root .wf-stage>svg[data-wf-editing=true],.wf-root .wf-stage>svg[data-wf-editing=true].is-near,.wf-root .wf-stage>svg[data-wf-editing=true].is-dragging,.wf-root .wf-stage>svg[data-wf-editing=true].is-panning,.wf-root .wf-stage>svg[data-wf-editing=true] .wf-point{cursor:crosshair}
.wf-root .wf-stage>svg:focus-visible{outline:none}
.wf-root .wf-zoom-tools{position:absolute;z-index:3;top:12px;left:12px;display:flex;align-items:center;flex-wrap:nowrap;gap:2px;padding:4px;border:1px solid rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.1);border-radius:999px;background:rgba(7,9,13,.8);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 8px 24px rgba(0,0,0,.35)}
.wf-root .wf-zoom-tools output{min-width:44px;text-align:center;font:500 10.5px var(--mono);color:var(--ink-2)}
.wf-root .wf-tool{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:32px;height:32px;min-height:32px;padding:0 9px;border:0;border-radius:999px;background:none;color:var(--ink-2);font:600 12px/1 var(--sans);white-space:nowrap;cursor:pointer;transition:background-color .2s,color .2s}
.wf-root .wf-tool:hover{background:rgba(255,255,255,.09);color:#fff}
.wf-root .wf-map-frame .wf-tool svg{display:block;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;background:none}
.wf-root .wf-tool-sep{flex:none;width:1px;height:18px;margin:0 4px;background:rgba(255,255,255,.14)}

/* Punkte: der gewählte Punkt bekommt ein Fadenkreuz; beim Bearbeiten treten die übrigen zurück */
.wf-root .wf-point{fill:#78a8ff;stroke:rgba(5,8,13,.9);stroke-width:1.2px;cursor:pointer}
.wf-root .wf-point.is-manual{fill:#f2b65a}
.wf-root .wf-point.is-selected{fill:#fff;stroke:rgba(5,8,13,.9);stroke-width:1.2px;filter:none}
.wf-root .wf-point.is-selected.is-manual{fill:#f2b65a}
.wf-root .is-point-editing .wf-point{cursor:inherit}
.wf-root .is-point-editing .wf-point:not(.is-selected){opacity:.5}
.wf-root .wf-auto-point{stroke:#78a8ff;stroke-width:1.4px;opacity:.85}
.wf-target{pointer-events:none}
.wf-target .wf-target-halo{fill:none;stroke:rgba(4,6,10,.6);stroke-width:4px;vector-effect:non-scaling-stroke}
.wf-target .wf-target-ring{fill:none;stroke:#fff;stroke-width:1.6px;vector-effect:non-scaling-stroke}
.wf-target .wf-target-arm{fill:none;stroke:#fff;stroke-width:1.4px;stroke-linecap:round;vector-effect:non-scaling-stroke}
.wf-target.is-manual .wf-target-ring,.wf-target.is-manual .wf-target-arm{stroke:#f2b65a}
.wf-target:not(.is-editing) .wf-target-cross{display:none}
.wf-shift{stroke:#f2b65a;stroke-width:1.2px;stroke-dasharray:3 3;vector-effect:non-scaling-stroke;pointer-events:none}
.wf-auto-ghost{fill:none;stroke:#78a8ff;stroke-width:1.4px;vector-effect:non-scaling-stroke;pointer-events:none}
.wf-root .wf-map-foot{display:flex;align-items:center;flex-wrap:wrap;gap:6px 20px;padding:10px 14px;border-top:1px solid var(--line);background:var(--bg-2)}
.wf-root .wf-map-legend{flex:none;padding:0;border:0;gap:16px;font-size:9.5px;letter-spacing:.06em}
.wf-root .wf-zoom-hint{flex:1 1 300px;margin:0;padding:0;border:0;font-size:11.5px;line-height:1.5;color:var(--muted)}

/* Kontrolle: Text scrollt, Bestätigen bleibt immer sichtbar */
.wf-root .wf-point-panel{position:sticky;top:72px;padding:0;border-radius:12px;overflow:hidden}
.wf-root .wf-panel-body{padding:20px 22px 18px}
.wf-root .wf-point-panel.is-editing{display:flex;flex-direction:column;max-height:calc(clamp(400px,calc(100vh - 220px),860px) + 58px)}
.wf-root .wf-point-panel.is-editing>.wf-panel-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.wf-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.wf-point-count{flex:none;font-size:9.5px;color:var(--ink-2)}
.wf-root .wf-point-panel .lbl{margin:2px 0 8px}
.wf-root .wf-point-title{margin:0 0 8px;font-size:20px;line-height:1.25}
.wf-root select+.wf-point-title{margin-top:20px}
.wf-root .wf-point-instruction{margin:0 0 14px;font-size:13.5px;line-height:1.6;color:var(--ink-2)}
.wf-root .wf-point-reference{margin:2px 0 14px;border:1px solid var(--line-2);border-radius:10px;background:#0a0d13;overflow:hidden}
.wf-root .wf-ref-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 6px 6px 12px;border-bottom:1px solid var(--line);font-size:inherit}
.wf-root .wf-ref-head .label-mono{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;letter-spacing:.1em;color:var(--ink-2)}
.wf-ref-modes{display:inline-flex;flex:none;padding:2px;border:1px solid var(--line-2);border-radius:999px;background:var(--bg-2)}
.wf-ref-modes button{min-height:24px;padding:3px 10px;border:0;border-radius:999px;background:none;color:var(--muted);font:600 11px/1.2 var(--sans);cursor:pointer;transition:background-color .2s,color .2s}
.wf-ref-modes button:hover{color:var(--ink)}
.wf-ref-modes button[aria-pressed=true]{background:var(--plat);color:#07080c}
.wf-root .wf-point-reference svg{display:block;width:100%;height:auto;aspect-ratio:4/3;background:#0a0d13;touch-action:auto}
.wf-ref-mark .wf-ref-halo{fill:none;stroke:rgba(4,6,10,.65);stroke-width:4px;vector-effect:non-scaling-stroke}
.wf-ref-mark .wf-ref-ring{fill:none;stroke:#fff;stroke-width:1.8px;vector-effect:non-scaling-stroke}
.wf-ref-mark .wf-ref-arm{fill:none;stroke:#fff;stroke-width:1.5px;stroke-linecap:round;vector-effect:non-scaling-stroke}
.wf-ref-mark .wf-ref-dot{fill:#5fd4a4;stroke:rgba(4,6,10,.8);stroke-width:1px;vector-effect:non-scaling-stroke}
.wf-ref-mark .wf-ref-pulse{fill:none;stroke:#5fd4a4;stroke-width:2px;vector-effect:non-scaling-stroke;opacity:0;transform-box:fill-box;transform-origin:center;animation:wfRefPulse 1.5s var(--ease) .15s 2}
@keyframes wfRefPulse{0%{transform:scale(1);opacity:.9}100%{transform:scale(2.6);opacity:0}}
.wf-root .wf-place-state{display:flex;align-items:center;gap:9px;margin:0 0 4px;min-height:20px}
.wf-root .wf-place-state>i{flex:none;width:7px;height:7px;border-radius:50%;background:var(--faint);transition:background-color .2s,box-shadow .2s}
.wf-root .wf-place-state.is-dirty>i{background:#f2b65a;box-shadow:0 0 10px rgba(242,182,90,.55)}
.wf-root .wf-place-state [data-wf-placement-status]{min-height:0;margin:0;font-size:12.5px;line-height:1.5;color:var(--ink-2)}
.wf-root .wf-point-tools{display:flex;flex-wrap:wrap;gap:0 18px;margin:0 0 2px}
.wf-root .wf-text-btn{display:inline-flex;align-items:center;min-height:34px;padding:0;border:0;background:none;color:var(--ink-2);font:500 12.5px/1.3 var(--sans);text-align:left;text-decoration:underline;text-decoration-color:var(--line-3);text-underline-offset:4px;cursor:pointer;transition:color .2s,text-decoration-color .2s}
.wf-root .wf-text-btn:hover:not(:disabled){color:#fff;text-decoration-color:currentColor}
.wf-root .wf-text-btn:disabled{opacity:.38;cursor:not-allowed;text-decoration:none}
.wf-root .wf-coords{margin:4px 0 0;border-top:1px solid var(--line)}
.wf-root .wf-coords summary{display:flex;align-items:center;gap:9px;padding:12px 0 2px;list-style:none;cursor:pointer;font:500 9.5px var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.wf-root .wf-coords summary::-webkit-details-marker{display:none}
.wf-root .wf-coords summary::before{content:'';width:5px;height:5px;margin-left:2px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .2s}
.wf-root .wf-coords[open] summary::before{transform:rotate(45deg)}
.wf-root .wf-coords summary:hover{color:var(--ink-2)}
.wf-root .wf-coords .wf-coordinates{margin:10px 0 2px}
.wf-root .wf-coords .wf-coordinates .field{min-height:40px;padding:8px 10px}
.wf-root .wf-keys{margin:12px 0 0;font:10px/1.6 var(--mono);color:var(--faint)}
.wf-root .wf-point-panel.is-editing>.wf-review-choices{display:grid;gap:8px;margin:0;padding:14px 22px 16px;border-top:1px solid var(--line);background:linear-gradient(180deg,rgba(255,255,255,.025),transparent),var(--surface)}
.wf-root .wf-review-choices .btn{width:100%;white-space:normal;text-align:center}
.wf-root .wf-bar-title,.wf-root .wf-short{display:none}
.wf-root .wf-review-choices--overview{display:grid;gap:8px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.wf-root .wf-review-choices--overview .wf-text-btn{justify-self:center}
/* Geführte Prüfung: Zurück neben Bestätigen, darunter Pausieren und Abbrechen */
.wf-root .wf-choice-row{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.wf-root .is-guided .wf-choice-row{grid-template-columns:auto minmax(0,1fr)}
.wf-root .wf-review-choices .wf-prev{width:auto;gap:6px;padding-inline:13px 16px}
.wf-root .wf-prev svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.wf-root .wf-exits{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 16px}
.wf-root .wf-exits--foot{margin-top:-2px}
.wf-root .wf-exits--foot .wf-text-btn{min-height:30px;font-size:12px}
.wf-root .wf-exits--body{display:none}
.wf-root .wf-text-btn--danger{color:#ff9f8f;text-decoration-color:rgba(255,159,143,.45)}
.wf-root .wf-text-btn--danger:hover:not(:disabled){color:#ffc4b8;text-decoration-color:currentColor}
/* Rote Rückfrage vor dem kompletten Abbruch */
.wf-root .wf-abort{display:grid;gap:10px;padding:14px;border:1px solid rgba(232,96,74,.8);border-radius:10px;background:linear-gradient(180deg,rgba(232,96,74,.18),rgba(232,96,74,.08));box-shadow:0 0 0 3px rgba(232,96,74,.08);animation:wfAsk .22s var(--ease)}
.wf-root .wf-abort-title{display:flex;align-items:center;gap:8px;margin:0;font-size:14.5px;font-weight:650;line-height:1.3;color:#ffb4a6}
.wf-root .wf-abort-title svg{flex:none;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.wf-root .wf-abort-text{margin:0;font-size:12.5px;line-height:1.55;color:#ffd9d0}
.wf-root .wf-abort-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.wf-root .wf-review-choices .wf-btn-danger{background:#d9573f;border-color:#d9573f;color:#fff}
.wf-root .wf-review-choices .wf-btn-danger:hover{background:#e8664d;border-color:#e8664d}
@keyframes wfAsk{from{opacity:0;transform:translateY(6px)}}
.wf-root .wf-point-popover{padding:0}
.wf-root .wf-point-popover.is-open{margin-top:2px;padding:14px;border:1px solid var(--line-3);border-radius:10px;background:var(--bg-2)}
.wf-root .wf-point-popover .btn{width:100%}
.wf-root .wf-ref-pip,.wf-root .wf-stage-pop{display:none}
.wf-root .wf-panel-error{margin:0 0 4px;padding:9px 11px;border:1px solid #8b493f;border-radius:8px;background:rgba(139,73,63,.12);color:#ffc0b2;font-size:12.5px;line-height:1.45}
.wf-root .wf-review-grid.is-point-editing~.wf-error[data-wf-error-code]{display:none}
@media(hover:none){.wf-root .wf-keys{display:none}}
@media(max-height:780px) and (min-width:761px){.wf-root .wf-point-reference svg{aspect-ratio:16/9}.wf-root .wf-point-title{font-size:18px}}
@media(max-width:1050px){.wf-root .wf-review-grid{grid-template-columns:minmax(0,1fr) minmax(290px,340px)}}
@media(max-width:760px){
  .wf-root{--wf-wide:100%}
  .wf-root .wf-review-toolbar{margin-top:18px;margin-bottom:10px}
  .wf-root .wf-review-continue{display:flex;width:100%;min-height:44px;margin-bottom:12px;white-space:normal;text-align:center}
  .wf-root .wf-review-grid{grid-template-columns:minmax(0,1fr);gap:14px}
  .wf-root .is-point-editing .wf-point-panel{grid-row:auto}
  .wf-root .wf-stage>svg[data-wf-map]{height:min(58vh,540px)}
  .wf-root .wf-stage>svg[data-wf-editing=false][data-wf-zoomed=false]{touch-action:pan-y}
  .wf-root .wf-zoom-tools{top:8px;left:8px}
  .wf-root .wf-tool--label span{display:none}
  .wf-root .wf-map-foot{padding:9px 12px}
  .wf-root .wf-zoom-hint{flex-basis:100%;font-size:11px}
  .wf-root .wf-progress-bar{width:72px}
  .wf-root .wf-point-panel{position:static}
  .wf-root .wf-point-panel.is-editing{display:block;max-height:none;overflow:visible}
  .wf-root .wf-point-panel.is-editing>.wf-panel-body{overflow:visible}
  .wf-root .wf-point-panel.is-editing>.wf-review-choices{position:fixed;z-index:40;left:0;right:0;bottom:0;grid-template-columns:minmax(0,1fr);align-items:center;gap:8px 10px;padding:10px 14px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line-2);background:rgba(8,10,15,.95);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
  .wf-root .wf-review-choices .wf-bar-title{display:flex;grid-column:1/-1;align-items:baseline;justify-content:space-between;gap:12px;margin:0;font-size:12.5px;color:var(--ink-2)}
  .wf-root .wf-bar-title b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:var(--ink)}
  .wf-root .wf-bar-title span{flex:none;font:10px var(--mono);color:var(--muted)}
  .wf-root .wf-choice-row{grid-template-columns:auto minmax(0,1fr)}
  .wf-root .wf-review-choices .wf-cancel{order:-1;width:auto;padding-inline:16px}
  .wf-root .wf-exits--foot{display:none}
  .wf-root .wf-exits--body{display:flex;margin-top:14px;padding-top:10px;border-top:1px solid var(--line)}
  .wf-root .wf-review-choices .wf-place-state{display:none}
  .wf-root .wf-long{display:none}.wf-root .wf-short{display:inline}
  .wf-root .wf-review-grid.is-point-editing{margin-bottom:118px}
  .wf-root .wf-ref-pip{display:block;position:absolute;z-index:2;right:10px;bottom:10px;width:min(34%,128px);margin:0;padding:0;border:1px solid rgba(255,255,255,.24);border-radius:10px;overflow:hidden;background:#0a0d13;box-shadow:0 10px 24px rgba(0,0,0,.5);cursor:zoom-in;transition:width .28s var(--ease)}
  .wf-root .wf-ref-pip.is-large{width:min(72%,300px);cursor:zoom-out}
  .wf-root .wf-map-frame .wf-ref-pip svg{display:block;width:100%;height:auto;aspect-ratio:1/1;background:#0a0d13}
  .wf-root .wf-panel-body{padding:18px 16px 16px}
  .wf-root .wf-stage-pop{display:flex;position:absolute;z-index:2;left:8px;right:8px;bottom:8px;align-items:center;justify-content:space-between;gap:10px;padding:8px 8px 8px 14px;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(7,9,13,.86);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 8px 22px rgba(0,0,0,.4)}
  .wf-root .wf-stage-pop b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600}
  .wf-root .wf-stage-pop .btn{flex:none}
}
@media(prefers-reduced-motion:reduce){.wf-root .wf-abort{animation:none}.wf-ref-mark .wf-ref-pulse{display:none}.wf-progress-bar i,.wf-root .wf-place-state>i{transition:none}}

/* Einzelner Messpunkt aus dem Bericht: gewohnter Editor, ohne Schritte und geführte Prüfung */
.wf-report-head { display: grid; gap: 8px; margin: 0 0 16px; }
.wf-report-title { margin: 6px 0 0; font: 700 clamp(21px, 2.1vw, 27px)/1.15 var(--sans); letter-spacing: -.02em; }
.wf-report-lead { margin: 0; max-width: 72ch; color: var(--muted); font-size: 13px; line-height: 1.55; }
.wf-root--report .wf-report-top { margin-bottom: 10px; }
.wf-review-toolbar--report { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; }
.wf-review-toolbar--report .label-mono { color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.wf-back-link { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px 0 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font: 500 12.5px var(--sans); text-decoration: none; }
.wf-back-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wf-back-link:hover { color: #fff; border-color: var(--plat); }
.wf-root--report .wf-stage .wf-point:not(.is-related):not(.is-selected) { opacity: .38; }
.wf-root--report .wf-stage .wf-point.is-related:not(.is-selected) { stroke-width: calc(1.4px * var(--u, 1)); }
.wf-review-choices--report .wf-bar-title span { max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Referenzgruppe (Schritt 2): kompakte Auswahl als Raster, ohne Anheben beim Hover (kein Flackern an der Kante). */
.wf-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wf-group { position: relative; display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink-2); font: 600 14.5px/1.3 var(--sans); letter-spacing: -.005em; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, color .2s, box-shadow .2s; }
.wf-group .radio { flex: none; width: 18px; height: 18px; }
.wf-group .radio::after { width: 8px; height: 8px; }
.wf-group-t { min-width: 0; overflow-wrap: anywhere; hyphens: auto; text-wrap: balance; }
.wf-group:hover:not(:disabled) { border-color: var(--line-3); background: var(--surface-2); color: var(--ink); }
.wf-group[aria-pressed="true"] { border-color: var(--plat); color: var(--ink); background: linear-gradient(180deg, rgba(220,226,238,.07), var(--surface)); box-shadow: 0 0 0 4px rgba(220,226,238,.05); }
.wf-group[aria-pressed="true"] .radio { border-color: var(--plat); }
.wf-group[aria-pressed="true"] .radio::after { transform: scale(1); }
.wf-group:focus-visible { outline: 2px solid var(--plat); outline-offset: 2px; }
.wf-group:disabled { cursor: progress; opacity: .7; }
.wf-group-note { margin-top: 14px; }
@media (max-width: 980px) { .wf-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .wf-groups { grid-template-columns: minmax(0, 1fr); gap: 8px; } .wf-group { min-height: 54px; padding: 12px 14px; font-size: 14px; } }

/* Auswahlkarten heben sich beim Hover an: eine unsichtbare Verlängerung nach unten hält die Unterkante unter dem
   Zeiger, damit der Hover-Zustand nicht im Takt an- und ausgeht. */
.choice::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; }

/* Analyse-Animation (Schritt 8): erst Front, dann Profil – je 2 s. Punkte erscheinen mit dem Scanstreifen,
   danach verbinden Linien die Gesichtsform; gestrichelt die Messachsen. Zeitpunkte relativ zu --el, damit ein
   erneutes Rendern die Animation nicht neu startet. */
.wf-wait.wf-scan { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: center; gap: 28px 44px; min-height: 0; padding: 22px; }
.wf-scan-frame { position: relative; width: 100%; aspect-ratio: 4 / 5; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #04060a; box-shadow: 0 34px 80px -46px rgba(0, 0, 0, .95); isolation: isolate; }
.wf-scan-frame::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), inset 0 -70px 80px -50px rgba(4, 6, 10, .85); }
.wf-scan-face { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .4s var(--ease); }
.wf-scan[data-phase="0"] .wf-scan-face.is-front, .wf-scan:not([data-phase="0"]) .wf-scan-face.is-profile { opacity: 1; }
.wf-scan-face svg { display: block; width: 100%; height: 100%; }
.wf-scan-face image { filter: saturate(.8) brightness(.78) contrast(1.06); }
.wf-scan-shade { fill: rgba(4, 8, 14, .16); }
.wf-scan-face figcaption { position: absolute; left: 12px; top: 12px; z-index: 3; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(6, 8, 12, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 500 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.wf-scan-lines path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: wfScanDraw .55s var(--ease) calc(var(--d) - var(--el, 0s)) both; }
.wf-scan-lines .is-contour { stroke: rgba(236, 242, 252, .92); stroke-width: 1.5; }
.wf-scan-lines .is-feature { stroke: rgba(236, 242, 252, .78); stroke-width: 1.15; }
.wf-scan-lines .is-mesh { stroke: rgba(127, 214, 232, .42); stroke-width: .9; }
.wf-scan-lines .is-measure { stroke: #7fd6e8; stroke-width: 1.2; stroke-dasharray: 4 5; stroke-dashoffset: 0; opacity: 0; animation: wfScanFade .6s ease calc(var(--d) - var(--el, 0s)) both; }
.wf-scan-dots g { opacity: 0; transform-box: fill-box; transform-origin: center; animation: wfScanDot .38s var(--spring) calc(var(--d) - var(--el, 0s)) both; }
.wf-scan-dots circle { fill: #fff; }
.wf-scan-dots .halo { fill: rgba(127, 214, 232, .22); }
.wf-scan-beam { transform-box: view-box; opacity: 0; animation: wfScanBeam 1.3s cubic-bezier(.45, .05, .35, 1) calc(var(--d) - var(--el, 0s)) both; }
.wf-scan[data-phase="2"] .wf-scan-face.is-profile .wf-scan-lines { animation: wfScanBreathe 1.8s ease-in-out infinite; }
@keyframes wfScanDraw { to { stroke-dashoffset: 0; } }
@keyframes wfScanFade { to { opacity: .9; } }
@keyframes wfScanDot { 0% { opacity: 0; transform: scale(.2); } 60% { opacity: 1; transform: scale(1.35); } 100% { opacity: 1; transform: scale(1); } }
@keyframes wfScanBeam { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: 1; } 86% { opacity: 1; } 100% { opacity: 0; transform: translateY(120%); } }
@keyframes wfScanBreathe { 50% { opacity: .6; } }
.wf-scan-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.wf-scan-side .h3 { margin: 4px 0 0; }
.wf-scan-side .muted { margin: 0; }
.wf-scan-steps { display: grid; gap: 12px; margin: 0 0 6px; padding: 0; list-style: none; }
.wf-scan-steps li { display: flex; align-items: center; gap: 13px; font-size: 15px; font-weight: 600; color: var(--faint); transition: color .3s; }
.wf-scan-steps small { display: block; margin-top: 3px; font: 500 9.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.wf-scan-steps i { position: relative; flex: none; width: 22px; height: 22px; border: 1.5px solid var(--line-3); border-radius: 50%; transition: background .3s, border-color .3s; }
.wf-scan[data-phase="0"] [data-s="1"], .wf-scan[data-phase="1"] [data-s="2"], .wf-scan[data-phase="2"] [data-s="3"] { color: var(--ink); }
.wf-scan[data-phase="0"] [data-s="1"] i, .wf-scan[data-phase="1"] [data-s="2"] i, .wf-scan[data-phase="2"] [data-s="3"] i { border-color: var(--line-3); border-top-color: #7fd6e8; animation: wf-spin .9s linear infinite; }
.wf-scan:not([data-phase="0"]) [data-s="1"], .wf-scan[data-phase="2"] [data-s="2"] { color: var(--ink-2); }
.wf-scan:not([data-phase="0"]) [data-s="1"] i, .wf-scan[data-phase="2"] [data-s="2"] i { border-color: var(--plat); background: var(--plat); }
.wf-scan:not([data-phase="0"]) [data-s="1"] i::after, .wf-scan[data-phase="2"] [data-s="2"] i::after { content: ''; position: absolute; left: 6.5px; top: 3px; width: 5px; height: 10px; border: solid #0b0e14; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 820px) {
  .wf-wait.wf-scan { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; padding: 16px; }
  .wf-scan-frame { width: min(100%, 400px, calc(58vh * .8)); }
  .wf-scan-side { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .wf-scan-lines path, .wf-scan-dots g { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .wf-scan-beam { display: none; }
  .wf-scan-face { transition: none; }
}
.wf-wait.wf-scan { margin-top: 28px; }
.wf-scan-note { max-width: 70ch; }

/* ---------- Messbild ohne weißen Fokusrahmen beim Anklicken (11.11.) ---------- */
.wf-root .wf-stage>svg[data-wf-map]:focus,.wf-root .wf-map-frame>svg:focus{outline:none}

/* ---------- Hinweis vor „Punktsetzung bestätigen und analysieren“ ---------- */
.wf-confirm{display:flex;flex-direction:column;align-items:flex-end;gap:9px;min-width:0}
.wf-precision{display:flex;align-items:center;gap:7px;margin:0;font-size:12px;line-height:1.4;color:#f3cf4e;text-align:right}
.wf-precision svg{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Fotoguide: Vergleich mit wandernder Linie ---------- */
@property --split{syntax:'<percentage>';inherits:true;initial-value:50%}
.wf-tut{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px;align-items:center;margin:2px 0 6px}
.wf-tut-stage{--split:50%;position:relative;width:100%;max-width:540px;aspect-ratio:1/1;justify-self:end;border-radius:18px;overflow:hidden;background:#0a0c12;cursor:ew-resize;touch-action:pan-y;user-select:none;-webkit-user-select:none;box-shadow:0 30px 80px -40px rgba(0,0,0,.85),0 0 0 1px var(--line-2);animation:wfTutSweep 7s cubic-bezier(.65,0,.35,1) infinite}
.wf-tut:hover .wf-tut-stage,.wf-tut:focus-within .wf-tut-stage{animation-play-state:paused}
.wf-tut.is-manual .wf-tut-stage{animation:none}
.wf-tut-img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}
.wf-tut-bad{position:absolute;inset:0;clip-path:inset(0 0 0 var(--split))}
.wf-tut-handle{position:absolute;z-index:2;top:0;bottom:0;left:var(--split);width:2px;margin-left:-1px;background:rgba(255,255,255,.92);box-shadow:0 0 14px rgba(255,255,255,.55);outline:none}
.wf-tut-handle i{position:absolute;top:50%;left:50%;display:grid;place-items:center;width:38px;height:38px;margin:-19px 0 0 -19px;border-radius:50%;background:rgba(10,12,18,.72);border:1.5px solid #fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 6px 20px rgba(0,0,0,.45);transition:transform .2s var(--spring)}
.wf-tut-handle svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.wf-tut-stage:hover .wf-tut-handle i{transform:scale(1.08)}
.wf-tut-handle:focus-visible i{box-shadow:0 0 0 3px rgba(220,226,238,.45),0 6px 20px rgba(0,0,0,.45)}
.wf-tut-tag{position:absolute;z-index:1;top:14px;display:inline-flex;align-items:center;gap:6px;padding:6px 10px 6px 8px;border-radius:999px;font:600 10px var(--mono);letter-spacing:.12em;text-transform:uppercase;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.wf-tut-tag svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wf-tut-tag.is-good{left:14px;background:rgba(14,40,30,.72);color:#7fe3b5;box-shadow:inset 0 0 0 1px rgba(95,212,164,.35)}
.wf-tut-tag.is-avoid{right:14px;background:rgba(48,16,18,.72);color:#ff9a8f;box-shadow:inset 0 0 0 1px rgba(255,120,110,.35)}
.wf-tut-drag{position:absolute;z-index:1;left:50%;bottom:14px;transform:translateX(-50%);padding:6px 12px;border-radius:999px;background:rgba(8,10,15,.66);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-size:11.5px;color:var(--ink-2);white-space:nowrap;pointer-events:none;transition:opacity .3s}
.wf-tut.is-manual .wf-tut-drag{opacity:0}
@keyframes wfTutSweep{0%{--split:50%}22%{--split:86%}62%{--split:14%}100%{--split:50%}}
.wf-tut-side{display:flex;flex-direction:column;gap:14px;min-width:0;max-width:440px}
/* Vier Beispiele als gut sichtbare, klickbare Kacheln mit Vorschaubild; das nächste ungesehene Beispiel pulsiert */
.wf-tut-nav{display:flex;flex-direction:column;gap:10px;margin-bottom:4px}
.wf-tut-nav-h{display:flex;align-items:center;justify-content:space-between;gap:10px}
.wf-tut-hint{display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:620;color:var(--ink)}
.wf-tut-hint svg{width:16px;height:16px;fill:none;stroke:#7fe3b5;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wf-tut-hint-dot{position:relative;width:8px;height:8px;border-radius:50%;background:#f3cf4e;box-shadow:0 0 10px rgba(243,207,78,.7)}
.wf-tut-hint-dot::after{content:'';position:absolute;inset:-5px;border-radius:50%;border:1.5px solid rgba(243,207,78,.6);animation:wfTutPing 1.6s var(--ease) infinite}
.wf-tut-seen{color:var(--muted)}
.wf-tut-nav.is-done .wf-tut-seen{color:#7fe3b5}
.wf-tut-segs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.wf-tut-seg{position:relative;display:flex;align-items:center;gap:10px;min-width:0;min-height:58px;padding:8px 32px 10px 8px;border:1px solid var(--line-2);border-radius:12px;background:rgba(255,255,255,.02);color:var(--ink-2);font:inherit;text-align:left;cursor:pointer;overflow:hidden;transition:border-color .2s,background-color .2s,transform .2s var(--ease)}
.wf-tut-seg:hover{border-color:var(--line-3);background:rgba(255,255,255,.04);transform:translateY(-1px)}
.wf-tut-seg.is-on{border-color:var(--plat);background:linear-gradient(180deg,rgba(220,226,238,.09),rgba(220,226,238,.02));color:var(--ink);box-shadow:0 10px 26px -16px rgba(205,220,255,.6)}
.wf-tut-seg.is-next:not(.is-on){border-color:rgba(243,207,78,.55);animation:wfTutNudge 2.2s var(--ease) infinite}
.wf-tut-seg:focus-visible{outline:2px solid var(--plat);outline-offset:2px}
.wf-tut-thumb{flex:none;width:40px;height:40px;border-radius:9px;background-size:cover;background-position:center 30%;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);filter:saturate(.9)}
.wf-tut-seg:not(.is-on) .wf-tut-thumb{opacity:.75}
.wf-tut-seg-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.wf-tut-seg-t b{font:600 10px var(--mono);letter-spacing:.1em;color:var(--muted)}
.wf-tut-seg.is-on .wf-tut-seg-t b{color:var(--plat)}
.wf-tut-seg-t small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;font-weight:600;line-height:1.3}
.wf-tut-seg-s{position:absolute;top:50%;right:9px;display:grid;place-items:center;width:18px;height:18px;margin-top:-9px}
.wf-tut-seg-s svg{width:14px;height:14px;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wf-tut-seg.is-seen .wf-tut-seg-s svg{stroke:#7fe3b5}
.wf-tut-seg.is-next .wf-tut-seg-s svg{stroke:#f3cf4e;animation:wfTutArrow 1.1s var(--ease) infinite}
.wf-tut-seg>i{position:absolute;left:0;bottom:0;height:3px;width:0;background:var(--plat);box-shadow:var(--glow)}
.wf-tut-seg.is-on>i{animation:wfTutSeg 7s linear forwards}
.wf-tut:hover .wf-tut-seg.is-on>i,.wf-tut:focus-within .wf-tut-seg.is-on>i{animation-play-state:paused}
.wf-tut.is-manual .wf-tut-seg.is-on>i{animation:none;width:100%}
@keyframes wfTutSeg{from{width:0}to{width:100%}}
@keyframes wfTutPing{0%{opacity:1;transform:scale(.6)}100%{opacity:0;transform:scale(1.6)}}
@keyframes wfTutNudge{0%,100%{box-shadow:0 0 0 0 rgba(243,207,78,0)}50%{box-shadow:0 0 0 4px rgba(243,207,78,.16)}}
@keyframes wfTutArrow{0%,100%{transform:translateX(0)}50%{transform:translateX(3px)}}
.wf-tut-title{margin:0;font-size:clamp(22px,2.1vw,28px);font-weight:720;font-stretch:108%;letter-spacing:-.025em;line-height:1.1;text-wrap:balance;animation:wfTutIn .5s var(--ease) both}
.wf-tut-rules{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-direction:column;gap:10px;animation:wfTutIn .5s var(--ease) .08s both}
.wf-tut-rules li{display:flex;align-items:center;gap:11px;font-size:14px;line-height:1.4;color:var(--ink-2)}
.wf-tut-rules svg{width:22px;height:22px;flex:none;padding:4px;border-radius:50%;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;box-sizing:border-box}
.wf-tut-rules .is-good svg{stroke:#7fe3b5;background:rgba(95,212,164,.12)}
.wf-tut-rules .is-avoid svg{stroke:#ff9a8f;background:rgba(255,120,110,.12)}
.wf-tut-chips{list-style:none;margin:8px 0 0;padding:16px 0 0;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.wf-tut-chips li{display:flex;align-items:center;gap:9px;padding:9px 11px;border:1px solid var(--line-2);border-radius:12px;background:rgba(255,255,255,.015);font-size:12.5px;color:var(--ink-2);min-width:0}
.wf-tut-chips svg{width:15px;height:15px;flex:none;fill:none;stroke:var(--plat);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
@keyframes wfTutIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:800px){
  .wf-tut{grid-template-columns:minmax(0,1fr);gap:20px}
  .wf-tut-stage{justify-self:stretch;max-width:none}
  .wf-tut-side{max-width:none}
  .wf-confirm{align-items:stretch}.wf-precision{justify-content:center;text-align:center}
}
@media(prefers-reduced-motion:reduce){.wf-tut-stage{animation:none}.wf-tut-seg.is-on>i{animation:none;width:100%}.wf-tut-seg.is-next,.wf-tut-seg-s svg,.wf-tut-hint-dot::after{animation:none!important}.wf-tut-title,.wf-tut-rules{animation:none}}

/* ---------- Desktop: jeder Schritt von der Referenzwahl bis „analysieren“ passt auf einen Bildschirm ---------- */
@media(min-width:1025px) and (min-height:600px){
  main:has(>.wf-root)+.foot--intro{padding:10px 0 12px;border-top:1px solid var(--line)}
  main:has(>.wf-root)+.foot--intro .foot-bot{margin-top:0;padding-top:0;border-top:0}
  .wf-root{--wf-h:calc(100dvh - var(--top,86px) - 40px);--wf-body:calc(var(--wf-h) - 236px);min-height:var(--wf-h);display:flex;flex-direction:column;padding-bottom:14px;box-sizing:border-box}
  .wf-root>.flow-top{flex:none;padding:18px 0 12px;margin-bottom:12px}
  .wf-root>.flow-top .display{font-size:clamp(26px,2.3vw,34px);margin-top:6px;line-height:1.05}
  .wf-root>.lead{flex:none;margin-bottom:14px;max-width:88ch;font-size:14.5px;line-height:1.5}
  .wf-root>.flow-actions{flex:none;margin-top:auto;padding-top:12px}
  .wf-root>.flow-actions>.btn,.wf-root .wf-confirm>.btn{min-height:44px}
  .wf-root>.hint{margin:8px 0 0}
  /* Geschlecht und Referenzgruppe */
  .wf-root>.choices .choice{min-height:0;padding:22px 24px}
  .wf-root>.choices{flex:1 1 auto;max-height:min(var(--wf-body),400px)}
  .wf-root>.choices .choice{justify-content:flex-end}
  .wf-root>.choices .choice .wf-sex-ic{margin-bottom:auto}
  .wf-root>.wf-groups{grid-auto-rows:minmax(72px,1fr);flex:1 1 auto;max-height:min(var(--wf-body),280px)}
  .wf-root>.wf-groups .wf-group{padding:16px 18px;font-size:15px}
  /* Fotoguide */
  .wf-root .wf-tut{grid-template-columns:auto minmax(0,1fr);gap:40px}
  .wf-root .wf-tut-stage{width:auto;height:min(var(--wf-body),540px);max-width:none;justify-self:start}
  /* Foto wählen */
  .wf-root>.wf-upload{margin:0 0 6px;align-items:stretch}
  .wf-root>.wf-upload>div:first-child{display:flex;flex-direction:column;gap:6px;min-height:0}
  .wf-root>.wf-upload button.wf-photo-picker{min-height:0;height:min(var(--wf-body) - 40px,560px)}
  .wf-root>.wf-upload button.wf-photo-picker>img{width:100%;height:100%;max-height:none;object-fit:contain}
  .wf-root>.wf-upload>.panel{padding:22px 24px;max-height:min(var(--wf-body),560px);overflow:auto}
  .wf-root>.wf-upload>.panel>*+*{margin-top:12px}
  /* Punkte prüfen */
  .wf-root .wf-review-toolbar{margin-top:0;margin-bottom:10px}
  .wf-root{--wf-map-h:max(300px,calc(var(--wf-body) - 150px))}
  .wf-root .wf-stage>svg[data-wf-map]{height:var(--wf-map-h)}
  .wf-root .wf-point-panel,.wf-root .wf-point-panel.is-editing{max-height:calc(var(--wf-map-h) + 58px)}
  .wf-root .wf-point-panel:not(.is-editing){overflow:auto}
  .wf-root .wf-review-grid.is-point-editing .wf-stage>svg[data-wf-map]{height:calc(var(--wf-map-h) + 72px)}
  .wf-root .wf-review-grid.is-point-editing .wf-point-panel.is-editing{max-height:calc(var(--wf-map-h) + 130px)}
  .wf-root .wf-review-grid~.flow-actions{margin-top:12px}
}
@media(min-width:1025px) and (min-height:600px) and (max-height:820px){
  .wf-root>.flow-top{padding:12px 0 10px;margin-bottom:10px}
  .wf-root>.flow-top .display{font-size:26px}
  .wf-root>.lead{margin-bottom:10px;font-size:13.5px}
  .wf-root{--wf-body:calc(var(--wf-h) - 210px)}
  .wf-root{--wf-map-h:max(260px,calc(var(--wf-body) - 150px))}
}

/* ---------- Referenzwahl (Geschlecht, Referenzgruppe): erste Analyse-Schritte ---------- */
.wf-sex,.wf-group{isolation:isolate;overflow:hidden}
.wf-sex::before,.wf-group::before{content:'';position:absolute;inset:0;z-index:2;border-radius:inherit;padding:1.5px;background:linear-gradient(135deg,#3b7cff,#1fb8d4 50%,#2fe0a3);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transition:opacity .35s var(--ease);pointer-events:none}
.wf-sex[aria-pressed="true"]::before,.wf-group[aria-pressed="true"]::before{opacity:1}
.wf-sex .radio,.wf-group .radio{display:none}
.wf-pick-check{position:absolute;z-index:3;top:16px;right:16px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,#3b7cff,#1fb8d4 50%,#2fe0a3);box-shadow:0 6px 18px -6px rgba(31,184,212,.8);transform:scale(0);transition:transform .35s var(--spring)}
.wf-pick-check svg{width:14px;height:14px;fill:none;stroke:#05070b;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
[aria-pressed="true"]>.wf-pick-check{transform:scale(1)}
.wf-sex{padding:26px 28px;border-radius:18px;border-color:var(--line-2);background:radial-gradient(90% 75% at 100% 100%,rgba(59,124,255,.10),transparent 62%),var(--surface)}
.wf-sex--female{background:radial-gradient(90% 75% at 100% 100%,rgba(47,224,163,.08),transparent 62%),var(--surface)}
.wf-sex:hover{transform:translateY(-2px);border-color:var(--line-3)}
.wf-sex[aria-pressed="true"]{border-color:transparent;background:radial-gradient(90% 75% at 100% 100%,rgba(31,184,212,.16),transparent 62%),linear-gradient(180deg,rgba(220,226,238,.05),transparent),var(--surface);box-shadow:0 24px 60px -30px rgba(31,184,212,.55)}
.wf-sex-art{position:absolute;z-index:-1;top:50%;right:5%;height:84%;max-height:300px;width:auto;transform:translateY(-50%);opacity:.42;transition:opacity .5s var(--ease)}
.wf-sex:hover .wf-sex-art{opacity:.65}
.wf-sex[aria-pressed="true"] .wf-sex-art{opacity:.95}
.wf-sex-art circle{fill:#c9d6f2;animation:wfTwinkle 3.6s ease-in-out infinite;animation-delay:var(--d)}
.wf-sex[aria-pressed="true"] .wf-sex-art circle{fill:#8ff0d4}
.wf-sex-line{fill:none;stroke:#6aa6e8;stroke-width:.7;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;opacity:.85;transition:stroke-dashoffset 1.4s var(--ease)}
.wf-sex:hover .wf-sex-line,.wf-sex[aria-pressed="true"] .wf-sex-line{stroke-dashoffset:0}
.wf-sex-mid{stroke:var(--line-3);stroke-width:.5;stroke-dasharray:2 3}
@keyframes wfTwinkle{0%,100%{opacity:.35}50%{opacity:1}}
.wf-sex-ic{display:grid;place-items:center;width:68px;height:68px;margin-bottom:22px;border-radius:22px;background:radial-gradient(circle at 50% 30%,rgba(255,255,255,.08),transparent 70%),var(--bg-2);box-shadow:inset 0 0 0 1px var(--line-2);transition:background .4s var(--ease),box-shadow .4s}
.wf-sex .wf-sex-ic .wf-symbol{display:block;margin:0;font-size:36px;line-height:1;color:var(--plat)}
.wf-sex[aria-pressed="true"] .wf-sex-ic{background:linear-gradient(135deg,#3b7cff,#1fb8d4 55%,#2fe0a3);box-shadow:0 12px 30px -12px rgba(31,184,212,.8)}
.wf-sex[aria-pressed="true"] .wf-sex-ic .wf-symbol{color:#05070b}
.wf-sex .choice-t{font-size:24px}
.wf-sex p{max-width:30ch}
.wf-group{flex-direction:column;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px;border-radius:14px;animation:wfPickIn .5s var(--ease) both;animation-delay:calc(var(--i,0) * 45ms);transition:border-color .25s,background-color .25s,transform .25s var(--ease),box-shadow .3s}
.wf-group::after{content:'';position:absolute;z-index:-1;left:-20%;right:-20%;bottom:-60%;height:90%;background:radial-gradient(closest-side,rgba(31,184,212,.18),transparent);opacity:0;transition:opacity .35s var(--ease)}
.wf-group:hover:not(:disabled){transform:translateY(-2px)}
/* Während des kurzen Speicherns bleibt die angehobene Karte ruhig stehen, ohne Abdunkeln */
.wf-groups .wf-group:disabled{opacity:1}
.wf-groups .wf-group:disabled:hover{transform:translateY(-2px)}
.wf-group:hover:not(:disabled)::after,.wf-group[aria-pressed="true"]::after{opacity:1}
.wf-group[aria-pressed="true"]{border-color:transparent;box-shadow:0 18px 44px -26px rgba(31,184,212,.6)}
.wf-group-n{font:500 10px var(--mono);letter-spacing:.14em;color:var(--faint);transition:color .25s}
.wf-group[aria-pressed="true"] .wf-group-n{color:#7fe3d0}
.wf-group-t{font-size:15px;font-weight:620;line-height:1.3;padding-right:24px}
.wf-group .wf-pick-check{top:12px;right:12px;width:22px;height:22px}
.wf-group .wf-pick-check svg{width:12px;height:12px}
@keyframes wfPickIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:760px){.wf-sex-art{height:70%;right:3%;opacity:.3}.wf-sex .choice-t{font-size:21px}.wf-group{gap:6px}}
@media(prefers-reduced-motion:reduce){.wf-sex-art circle,.wf-group{animation:none}.wf-sex-line{transition:none}}
/* Schrittanzeige bleibt über dem DNA-Strang gut lesbar */
main.has-dna>.wf-root .flow-top .prog{position:relative;padding:8px 10px;margin:-8px -10px;border-radius:10px;background:rgba(6,7,11,.58);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
