... ----------------------------
# Output formatting
# ----------------------------

def format_section(title: str, lines: list[str]) -> str:
    out = [title, ""]
    if not lines:
        out.append("(leer)")
    else:
        for ln in lines:
            out.append(f"- {ln}")
    out.append("")
    return "\n".join(out)

def make_extract(in_path: str, input_root: str, text: str, args) -> str:
    relp...